Class: AWSCDK::Interfaces::AWSEC2::IPAMAllocationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/awsec2/ipam_allocation_reference.rb

Overview

A reference to a IPAMAllocation resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cidr:, ipam_pool_allocation_id:, ipam_pool_id:) ⇒ IPAMAllocationReference

Returns a new instance of IPAMAllocationReference.

Parameters:

  • cidr (String)

    The Cidr of the IPAMAllocation resource.

  • ipam_pool_allocation_id (String)

    The IpamPoolAllocationId of the IPAMAllocation resource.

  • ipam_pool_id (String)

    The IpamPoolId of the IPAMAllocation resource.



10
11
12
13
14
15
16
17
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 10

def initialize(cidr:, ipam_pool_allocation_id:, ipam_pool_id:)
  @cidr = cidr
  Jsii::Type.check_type(@cidr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cidr")
  @ipam_pool_allocation_id = ipam_pool_allocation_id
  Jsii::Type.check_type(@ipam_pool_allocation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamPoolAllocationId")
  @ipam_pool_id = ipam_pool_id
  Jsii::Type.check_type(@ipam_pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamPoolId")
end

Instance Attribute Details

#cidrString (readonly)

The Cidr of the IPAMAllocation resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 22

def cidr
  @cidr
end

#ipam_pool_allocation_idString (readonly)

The IpamPoolAllocationId of the IPAMAllocation resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 26

def ipam_pool_allocation_id
  @ipam_pool_allocation_id
end

#ipam_pool_idString (readonly)

The IpamPoolId of the IPAMAllocation resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 30

def ipam_pool_id
  @ipam_pool_id
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 32

def self.jsii_properties
  {
    :cidr => "cidr",
    :ipam_pool_allocation_id => "ipamPoolAllocationId",
    :ipam_pool_id => "ipamPoolId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "cidr" => @cidr,
    "ipamPoolAllocationId" => @ipam_pool_allocation_id,
    "ipamPoolId" => @ipam_pool_id,
  })
  result.compact
end