Class: AWSCDK::RDS::CfnDBProxy::TagFormatProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::CfnDBProxy::TagFormatProperty
- Defined in:
- rds/cfn_db_proxy.rb
Overview
Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide .
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
A key is the required name of the tag.
-
#value ⇒ String?
readonly
A value is the optional value of the tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, value: nil) ⇒ TagFormatProperty
constructor
A new instance of TagFormatProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, value: nil) ⇒ TagFormatProperty
Returns a new instance of TagFormatProperty.
781 782 783 784 785 786 |
# File 'rds/cfn_db_proxy.rb', line 781 def initialize(key: nil, value: nil) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String? (readonly)
A key is the required name of the tag.
The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with aws: or rds: . The string can only contain only the set of Unicode letters, digits, white-space, '', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\pL\pZ\pN.:/=+-@]*)$").
794 795 796 |
# File 'rds/cfn_db_proxy.rb', line 794 def key @key end |
#value ⇒ String? (readonly)
A value is the optional value of the tag.
The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with aws: or rds: . The string can only contain only the set of Unicode letters, digits, white-space, '', '.', ':', '/', '=', '+', '-', '@' (Java regex: "^([\pL\pZ\pN.:/=+-@]*)$").
801 802 803 |
# File 'rds/cfn_db_proxy.rb', line 801 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
803 804 805 806 807 808 |
# File 'rds/cfn_db_proxy.rb', line 803 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
810 811 812 813 814 815 816 817 |
# File 'rds/cfn_db_proxy.rb', line 810 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |