Class: AWSCDK::EC2::CfnSubnetCIDRBlockProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnSubnetCIDRBlockProps
- Defined in:
- ec2/cfn_subnet_cidr_block_props.rb
Overview
Properties for defining a CfnSubnetCidrBlock.
Instance Attribute Summary collapse
-
#ipv6_cidr_block ⇒ String?
readonly
The IPv6 network range for the subnet, in CIDR notation.
-
#ipv6_ipam_pool_id ⇒ String?
readonly
An IPv6 IPAM pool ID for the subnet.
-
#ipv6_netmask_length ⇒ Numeric?
readonly
An IPv6 netmask length for the subnet.
-
#subnet_id ⇒ String, AWSCDK::Interfaces::AWSEC2::ISubnetRef
readonly
The ID of the subnet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_id:, ipv6_cidr_block: nil, ipv6_ipam_pool_id: nil, ipv6_netmask_length: nil) ⇒ CfnSubnetCIDRBlockProps
constructor
A new instance of CfnSubnetCIDRBlockProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_id:, ipv6_cidr_block: nil, ipv6_ipam_pool_id: nil, ipv6_netmask_length: nil) ⇒ CfnSubnetCIDRBlockProps
Returns a new instance of CfnSubnetCIDRBlockProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 13 def initialize(subnet_id:, ipv6_cidr_block: nil, ipv6_ipam_pool_id: nil, ipv6_netmask_length: nil) @subnet_id = subnet_id Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVN1Ym5ldFJlZiJ9XX19")), "subnetId") @ipv6_cidr_block = ipv6_cidr_block Jsii::Type.check_type(@ipv6_cidr_block, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6CidrBlock") unless @ipv6_cidr_block.nil? @ipv6_ipam_pool_id = ipv6_ipam_pool_id Jsii::Type.check_type(@ipv6_ipam_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6IpamPoolId") unless @ipv6_ipam_pool_id.nil? @ipv6_netmask_length = ipv6_netmask_length Jsii::Type.check_type(@ipv6_netmask_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "ipv6NetmaskLength") unless @ipv6_netmask_length.nil? end |
Instance Attribute Details
#ipv6_cidr_block ⇒ String? (readonly)
The IPv6 network range for the subnet, in CIDR notation.
33 34 35 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 33 def ipv6_cidr_block @ipv6_cidr_block end |
#ipv6_ipam_pool_id ⇒ String? (readonly)
An IPv6 IPAM pool ID for the subnet.
38 39 40 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 38 def ipv6_ipam_pool_id @ipv6_ipam_pool_id end |
#ipv6_netmask_length ⇒ Numeric? (readonly)
An IPv6 netmask length for the subnet.
43 44 45 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 43 def ipv6_netmask_length @ipv6_netmask_length end |
#subnet_id ⇒ String, AWSCDK::Interfaces::AWSEC2::ISubnetRef (readonly)
The ID of the subnet.
28 29 30 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 28 def subnet_id @subnet_id end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 45 def self.jsii_properties { :subnet_id => "subnetId", :ipv6_cidr_block => "ipv6CidrBlock", :ipv6_ipam_pool_id => "ipv6IpamPoolId", :ipv6_netmask_length => "ipv6NetmaskLength", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'ec2/cfn_subnet_cidr_block_props.rb', line 54 def to_jsii result = {} result.merge!({ "subnetId" => @subnet_id, "ipv6CidrBlock" => @ipv6_cidr_block, "ipv6IpamPoolId" => @ipv6_ipam_pool_id, "ipv6NetmaskLength" => @ipv6_netmask_length, }) result.compact end |