Class: AWSCDK::Interfaces::AWSEC2::IPAMPoolCIDRReference

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

Overview

A reference to a IPAMPoolCidr resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ipam_pool_cidr_id:, ipam_pool_id:) ⇒ IPAMPoolCIDRReference

Returns a new instance of IPAMPoolCIDRReference.

Parameters:

  • ipam_pool_cidr_id (String)

    The IpamPoolCidrId of the IPAMPoolCidr resource.

  • ipam_pool_id (String)

    The IpamPoolId of the IPAMPoolCidr resource.



9
10
11
12
13
14
# File 'interfaces/awsec2/ipam_pool_cidr_reference.rb', line 9

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

Instance Attribute Details

#ipam_pool_cidr_idString (readonly)

The IpamPoolCidrId of the IPAMPoolCidr resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/awsec2/ipam_pool_cidr_reference.rb', line 19

def ipam_pool_cidr_id
  @ipam_pool_cidr_id
end

#ipam_pool_idString (readonly)

The IpamPoolId of the IPAMPoolCidr resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/awsec2/ipam_pool_cidr_reference.rb', line 23

def ipam_pool_id
  @ipam_pool_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/awsec2/ipam_pool_cidr_reference.rb', line 25

def self.jsii_properties
  {
    :ipam_pool_cidr_id => "ipamPoolCidrId",
    :ipam_pool_id => "ipamPoolId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "ipamPoolCidrId" => @ipam_pool_cidr_id,
    "ipamPoolId" => @ipam_pool_id,
  })
  result.compact
end