Class: AWSCDK::DAX::CfnSubnetGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DAX::CfnSubnetGroupProps
- Defined in:
- dax/cfn_subnet_group_props.rb
Overview
Properties for defining a CfnSubnetGroup.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the subnet group.
-
#subnet_group_name ⇒ String?
readonly
The name of the subnet group.
-
#subnet_ids ⇒ Array<String>
readonly
A list of VPC subnet IDs for the subnet group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_ids:, description: nil, subnet_group_name: nil) ⇒ CfnSubnetGroupProps
constructor
A new instance of CfnSubnetGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_ids:, description: nil, subnet_group_name: nil) ⇒ CfnSubnetGroupProps
Returns a new instance of CfnSubnetGroupProps.
12 13 14 15 16 17 18 19 |
# File 'dax/cfn_subnet_group_props.rb', line 12 def initialize(subnet_ids:, description: nil, subnet_group_name: nil) @subnet_ids = subnet_ids Jsii::Type.check_type(@subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnetIds") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @subnet_group_name = subnet_group_name Jsii::Type.check_type(@subnet_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetGroupName") unless @subnet_group_name.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The description of the subnet group.
30 31 32 |
# File 'dax/cfn_subnet_group_props.rb', line 30 def description @description end |
#subnet_group_name ⇒ String? (readonly)
The name of the subnet group.
35 36 37 |
# File 'dax/cfn_subnet_group_props.rb', line 35 def subnet_group_name @subnet_group_name end |
#subnet_ids ⇒ Array<String> (readonly)
A list of VPC subnet IDs for the subnet group.
25 26 27 |
# File 'dax/cfn_subnet_group_props.rb', line 25 def subnet_ids @subnet_ids end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'dax/cfn_subnet_group_props.rb', line 37 def self.jsii_properties { :subnet_ids => "subnetIds", :description => "description", :subnet_group_name => "subnetGroupName", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'dax/cfn_subnet_group_props.rb', line 45 def to_jsii result = {} result.merge!({ "subnetIds" => @subnet_ids, "description" => @description, "subnetGroupName" => @subnet_group_name, }) result.compact end |