Class: AWSCDK::Interfaces::AWSEC2::IPAMPoolReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEC2::IPAMPoolReference
- Defined in:
- interfaces/awsec2/ipam_pool_reference.rb
Overview
A reference to a IPAMPool resource.
Instance Attribute Summary collapse
-
#ipam_pool_arn ⇒ String
readonly
The ARN of the IPAMPool resource.
-
#ipam_pool_id ⇒ String
readonly
The IpamPoolId of the IPAMPool resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ipam_pool_arn:, ipam_pool_id:) ⇒ IPAMPoolReference
constructor
A new instance of IPAMPoolReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ipam_pool_arn:, ipam_pool_id:) ⇒ IPAMPoolReference
Returns a new instance of IPAMPoolReference.
9 10 11 12 13 14 |
# File 'interfaces/awsec2/ipam_pool_reference.rb', line 9 def initialize(ipam_pool_arn:, ipam_pool_id:) @ipam_pool_arn = ipam_pool_arn Jsii::Type.check_type(@ipam_pool_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipamPoolArn") @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_arn ⇒ String (readonly)
The ARN of the IPAMPool resource.
19 20 21 |
# File 'interfaces/awsec2/ipam_pool_reference.rb', line 19 def ipam_pool_arn @ipam_pool_arn end |
#ipam_pool_id ⇒ String (readonly)
The IpamPoolId of the IPAMPool resource.
23 24 25 |
# File 'interfaces/awsec2/ipam_pool_reference.rb', line 23 def ipam_pool_id @ipam_pool_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/awsec2/ipam_pool_reference.rb', line 25 def self.jsii_properties { :ipam_pool_arn => "ipamPoolArn", :ipam_pool_id => "ipamPoolId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/awsec2/ipam_pool_reference.rb', line 32 def to_jsii result = {} result.merge!({ "ipamPoolArn" => @ipam_pool_arn, "ipamPoolId" => @ipam_pool_id, }) result.compact end |