Class: AWSCDK::EC2::SubnetIpamOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/subnet_ipam_options.rb

Overview

CIDR Allocated Subnets.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allocated_subnets:) ⇒ SubnetIpamOptions

Returns a new instance of SubnetIpamOptions.

Parameters:



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_subnetsArray<AWSCDK::EC2::AllocatedSubnet> (readonly)

CIDR Allocations for Subnets.

Returns:



16
17
18
# File 'ec2/subnet_ipam_options.rb', line 16

def allocated_subnets
  @allocated_subnets
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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