Class: AWSCDK::Interfaces::AWSEC2::SubnetCIDRBlockReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEC2::SubnetCIDRBlockReference
- Defined in:
- interfaces/awsec2/subnet_cidr_block_reference.rb
Overview
A reference to a SubnetCidrBlock resource.
Instance Attribute Summary collapse
-
#subnet_cidr_block_id ⇒ String
readonly
The Id of the SubnetCidrBlock resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_cidr_block_id:) ⇒ SubnetCIDRBlockReference
constructor
A new instance of SubnetCIDRBlockReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_cidr_block_id:) ⇒ SubnetCIDRBlockReference
Returns a new instance of SubnetCIDRBlockReference.
8 9 10 11 |
# File 'interfaces/awsec2/subnet_cidr_block_reference.rb', line 8 def initialize(subnet_cidr_block_id:) @subnet_cidr_block_id = subnet_cidr_block_id Jsii::Type.check_type(@subnet_cidr_block_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetCidrBlockId") end |
Instance Attribute Details
#subnet_cidr_block_id ⇒ String (readonly)
The Id of the SubnetCidrBlock resource.
16 17 18 |
# File 'interfaces/awsec2/subnet_cidr_block_reference.rb', line 16 def subnet_cidr_block_id @subnet_cidr_block_id end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/awsec2/subnet_cidr_block_reference.rb', line 18 def self.jsii_properties { :subnet_cidr_block_id => "subnetCidrBlockId", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/awsec2/subnet_cidr_block_reference.rb', line 24 def to_jsii result = {} result.merge!({ "subnetCidrBlockId" => @subnet_cidr_block_id, }) result.compact end |