Class: AWSCDK::Interfaces::AWSEC2::IPAMAllocationReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEC2::IPAMAllocationReference
- Defined in:
- interfaces/awsec2/ipam_allocation_reference.rb
Overview
A reference to a IPAMAllocation resource.
Instance Attribute Summary collapse
-
#cidr ⇒ String
readonly
The Cidr of the IPAMAllocation resource.
-
#ipam_pool_allocation_id ⇒ String
readonly
The IpamPoolAllocationId of the IPAMAllocation resource.
-
#ipam_pool_id ⇒ String
readonly
The IpamPoolId of the IPAMAllocation resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cidr:, ipam_pool_allocation_id:, ipam_pool_id:) ⇒ IPAMAllocationReference
constructor
A new instance of IPAMAllocationReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cidr:, ipam_pool_allocation_id:, ipam_pool_id:) ⇒ IPAMAllocationReference
Returns a new instance of IPAMAllocationReference.
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
#cidr ⇒ String (readonly)
The Cidr of the IPAMAllocation resource.
22 23 24 |
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 22 def cidr @cidr end |
#ipam_pool_allocation_id ⇒ String (readonly)
The IpamPoolAllocationId of the IPAMAllocation resource.
26 27 28 |
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 26 def ipam_pool_allocation_id @ipam_pool_allocation_id end |
#ipam_pool_id ⇒ String (readonly)
The IpamPoolId of the IPAMAllocation resource.
30 31 32 |
# File 'interfaces/awsec2/ipam_allocation_reference.rb', line 30 def ipam_pool_id @ipam_pool_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |