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