Class: AWSCDK::EC2::GatewayConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::GatewayConfig
- Defined in:
- ec2/gateway_config.rb
Overview
Pair represents a gateway created by NAT Provider.
Instance Attribute Summary collapse
-
#az ⇒ String
readonly
Availability Zone.
-
#gateway_id ⇒ String
readonly
Identity of gateway spawned by the provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(az:, gateway_id:) ⇒ GatewayConfig
constructor
A new instance of GatewayConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(az:, gateway_id:) ⇒ GatewayConfig
Returns a new instance of GatewayConfig.
9 10 11 12 13 14 |
# File 'ec2/gateway_config.rb', line 9 def initialize(az:, gateway_id:) @az = az Jsii::Type.check_type(@az, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "az") @gateway_id = gateway_id Jsii::Type.check_type(@gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayId") end |
Instance Attribute Details
#az ⇒ String (readonly)
Availability Zone.
19 20 21 |
# File 'ec2/gateway_config.rb', line 19 def az @az end |
#gateway_id ⇒ String (readonly)
Identity of gateway spawned by the provider.
23 24 25 |
# File 'ec2/gateway_config.rb', line 23 def gateway_id @gateway_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'ec2/gateway_config.rb', line 25 def self.jsii_properties { :az => "az", :gateway_id => "gatewayId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ec2/gateway_config.rb', line 32 def to_jsii result = {} result.merge!({ "az" => @az, "gatewayId" => @gateway_id, }) result.compact end |