Class: AWSCDK::EC2::AllocateIpv6CIDRRequest
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::AllocateIpv6CIDRRequest
- Defined in:
- ec2/allocate_ipv6_cidr_request.rb
Overview
Request for subnet IPv6 CIDRs to be allocated for a VPC.
Instance Attribute Summary collapse
-
#allocated_subnets ⇒ Array<AWSCDK::EC2::AllocatedSubnet>
readonly
List of subnets allocated with IPv4 CIDRs.
-
#ipv6_cidrs ⇒ Array<String>
readonly
The IPv6 CIDRs to be allocated to the subnets.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allocated_subnets:, ipv6_cidrs:) ⇒ AllocateIpv6CIDRRequest
constructor
A new instance of AllocateIpv6CIDRRequest.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allocated_subnets:, ipv6_cidrs:) ⇒ AllocateIpv6CIDRRequest
Returns a new instance of AllocateIpv6CIDRRequest.
9 10 11 12 13 14 |
# File 'ec2/allocate_ipv6_cidr_request.rb', line 9 def initialize(allocated_subnets:, ipv6_cidrs:) @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") @ipv6_cidrs = ipv6_cidrs Jsii::Type.check_type(@ipv6_cidrs, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "ipv6Cidrs") end |
Instance Attribute Details
#allocated_subnets ⇒ Array<AWSCDK::EC2::AllocatedSubnet> (readonly)
List of subnets allocated with IPv4 CIDRs.
19 20 21 |
# File 'ec2/allocate_ipv6_cidr_request.rb', line 19 def allocated_subnets @allocated_subnets end |
#ipv6_cidrs ⇒ Array<String> (readonly)
The IPv6 CIDRs to be allocated to the subnets.
23 24 25 |
# File 'ec2/allocate_ipv6_cidr_request.rb', line 23 def ipv6_cidrs @ipv6_cidrs end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'ec2/allocate_ipv6_cidr_request.rb', line 25 def self.jsii_properties { :allocated_subnets => "allocatedSubnets", :ipv6_cidrs => "ipv6Cidrs", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ec2/allocate_ipv6_cidr_request.rb', line 32 def to_jsii result = {} result.merge!({ "allocatedSubnets" => @allocated_subnets, "ipv6Cidrs" => @ipv6_cidrs, }) result.compact end |