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