Class: AWSCDK::EC2::AllocateIpv6CIDRRequest

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

Overview

Request for subnet IPv6 CIDRs to be allocated for a VPC.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allocated_subnets:, ipv6_cidrs:) ⇒ AllocateIpv6CIDRRequest

Returns a new instance of AllocateIpv6CIDRRequest.

Parameters:

  • allocated_subnets (Array<AWSCDK::EC2::AllocatedSubnet>)

    List of subnets allocated with IPv4 CIDRs.

  • ipv6_cidrs (Array<String>)

    The IPv6 CIDRs to be allocated to the subnets.



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

List of subnets allocated with IPv4 CIDRs.

Returns:



19
20
21
# File 'ec2/allocate_ipv6_cidr_request.rb', line 19

def allocated_subnets
  @allocated_subnets
end

#ipv6_cidrsArray<String> (readonly)

The IPv6 CIDRs to be allocated to the subnets.

Returns:

  • (Array<String>)


23
24
25
# File 'ec2/allocate_ipv6_cidr_request.rb', line 23

def ipv6_cidrs
  @ipv6_cidrs
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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