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