Class: AWSCDK::EC2::AllocateVPCIpv6CIDRRequest

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

Overview

Request for allocation of the VPC IPv6 CIDR.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope:, vpc_id:) ⇒ AllocateVPCIpv6CIDRRequest

Returns a new instance of AllocateVPCIpv6CIDRRequest.

Parameters:

  • scope (Constructs::Construct)

    The VPC construct to attach to.

  • vpc_id (String)

    The id of the VPC.



9
10
11
12
13
14
# File 'ec2/allocate_vpc_ipv6_cidr_request.rb', line 9

def initialize(scope:, vpc_id:)
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  @vpc_id = vpc_id
  Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "vpcId")
end

Instance Attribute Details

#scopeConstructs::Construct (readonly)

The VPC construct to attach to.

Returns:

  • (Constructs::Construct)


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

def scope
  @scope
end

#vpc_idString (readonly)

The id of the VPC.

Returns:

  • (String)


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

def vpc_id
  @vpc_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'ec2/allocate_vpc_ipv6_cidr_request.rb', line 25

def self.jsii_properties
  {
    :scope => "scope",
    :vpc_id => "vpcId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'ec2/allocate_vpc_ipv6_cidr_request.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "scope" => @scope,
    "vpcId" => @vpc_id,
  })
  result.compact
end