Class: AWSCDK::EC2::SubnetIpamOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::SubnetIpamOptions
- Defined in:
- ec2/subnet_ipam_options.rb
Overview
CIDR Allocated Subnets.
Instance Attribute Summary collapse
-
#allocated_subnets ⇒ Array<AWSCDK::EC2::AllocatedSubnet>
readonly
CIDR Allocations for Subnets.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allocated_subnets:) ⇒ SubnetIpamOptions
constructor
A new instance of SubnetIpamOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allocated_subnets:) ⇒ SubnetIpamOptions
Returns a new instance of SubnetIpamOptions.
8 9 10 11 |
# File 'ec2/subnet_ipam_options.rb', line 8 def initialize(allocated_subnets:) @allocated_subnets = allocated_subnets.is_a?(Array) ? allocated_subnets.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::EC2::AllocatedSubnet.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : allocated_subnets Jsii::Type.check_type(@allocated_subnets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQWxsb2NhdGVkU3VibmV0In0sImtpbmQiOiJhcnJheSJ9fQ==")), "allocatedSubnets") end |
Instance Attribute Details
#allocated_subnets ⇒ Array<AWSCDK::EC2::AllocatedSubnet> (readonly)
CIDR Allocations for Subnets.
16 17 18 |
# File 'ec2/subnet_ipam_options.rb', line 16 def allocated_subnets @allocated_subnets end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'ec2/subnet_ipam_options.rb', line 18 def self.jsii_properties { :allocated_subnets => "allocatedSubnets", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'ec2/subnet_ipam_options.rb', line 24 def to_jsii result = {} result.merge!({ "allocatedSubnets" => @allocated_subnets, }) result.compact end |