Class: AWSCDK::RDS::CfnDBProxyEndpoint::TagFormatProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rds/cfn_db_proxy_endpoint.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: nil, value: nil) ⇒ TagFormatProperty

Returns a new instance of TagFormatProperty.

Parameters:

  • key (String, nil) (defaults to: nil)

    A key is the required name of the tag.

  • value (String, nil) (defaults to: nil)

    A value is the optional value of the tag.



630
631
632
633
634
635
# File 'rds/cfn_db_proxy_endpoint.rb', line 630

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

#keyString? (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.:/=+-@]*)$").



643
644
645
# File 'rds/cfn_db_proxy_endpoint.rb', line 643

def key
  @key
end

#valueString? (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.:/=+-@]*)$").



650
651
652
# File 'rds/cfn_db_proxy_endpoint.rb', line 650

def value
  @value
end

Class Method Details

.jsii_propertiesObject



652
653
654
655
656
657
# File 'rds/cfn_db_proxy_endpoint.rb', line 652

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



659
660
661
662
663
664
665
666
# File 'rds/cfn_db_proxy_endpoint.rb', line 659

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end