Class: AWSCDK::RDS::CfnDBSubnetGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::CfnDBSubnetGroupProps
- Defined in:
- rds/cfn_db_subnet_group_props.rb
Overview
Properties for defining a CfnDBSubnetGroup.
Instance Attribute Summary collapse
-
#db_subnet_group_description ⇒ String
readonly
The description for the DB subnet group.
-
#db_subnet_group_name ⇒ String?
readonly
The name for the DB subnet group.
-
#subnet_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef>
readonly
The EC2 Subnet IDs for the DB subnet group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Tags to assign to the DB subnet group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(db_subnet_group_description:, subnet_ids:, db_subnet_group_name: nil, tags: nil) ⇒ CfnDBSubnetGroupProps
constructor
A new instance of CfnDBSubnetGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(db_subnet_group_description:, subnet_ids:, db_subnet_group_name: nil, tags: nil) ⇒ CfnDBSubnetGroupProps
Returns a new instance of CfnDBSubnetGroupProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'rds/cfn_db_subnet_group_props.rb', line 13 def initialize(db_subnet_group_description:, subnet_ids:, db_subnet_group_name: nil, tags: nil) @db_subnet_group_description = db_subnet_group_description Jsii::Type.check_type(@db_subnet_group_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbSubnetGroupDescription") @subnet_ids = subnet_ids Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InVuaW9uIjp7InR5cGVzIjpbeyJwcmltaXRpdmUiOiJzdHJpbmcifSx7ImZxbiI6ImF3cy1jZGstbGliLmludGVyZmFjZXMuYXdzX2VjMi5JU3VibmV0UmVmIn1dfX0sImtpbmQiOiJhcnJheSJ9fQ==")), "subnetIds") @db_subnet_group_name = db_subnet_group_name Jsii::Type.check_type(@db_subnet_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dbSubnetGroupName") unless @db_subnet_group_name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#db_subnet_group_description ⇒ String (readonly)
The description for the DB subnet group.
28 29 30 |
# File 'rds/cfn_db_subnet_group_props.rb', line 28 def db_subnet_group_description @db_subnet_group_description end |
#db_subnet_group_name ⇒ String? (readonly)
The name for the DB subnet group. This value is stored as a lowercase string.
Constraints:
- Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens.
- Must not be default.
- First character must be a letter.
Example: mydbsubnetgroup
46 47 48 |
# File 'rds/cfn_db_subnet_group_props.rb', line 46 def db_subnet_group_name @db_subnet_group_name end |
#subnet_ids ⇒ Array<String, AWSCDK::Interfaces::AWSEC2::ISubnetRef> (readonly)
The EC2 Subnet IDs for the DB subnet group.
33 34 35 |
# File 'rds/cfn_db_subnet_group_props.rb', line 33 def subnet_ids @subnet_ids end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Tags to assign to the DB subnet group.
51 52 53 |
# File 'rds/cfn_db_subnet_group_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'rds/cfn_db_subnet_group_props.rb', line 53 def self.jsii_properties { :db_subnet_group_description => "dbSubnetGroupDescription", :subnet_ids => "subnetIds", :db_subnet_group_name => "dbSubnetGroupName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
62 63 64 65 66 67 68 69 70 71 |
# File 'rds/cfn_db_subnet_group_props.rb', line 62 def to_jsii result = {} result.merge!({ "dbSubnetGroupDescription" => @db_subnet_group_description, "subnetIds" => @subnet_ids, "dbSubnetGroupName" => @db_subnet_group_name, "tags" => @tags, }) result.compact end |