Class: AWSCDK::EC2::GatewayConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/gateway_config.rb

Overview

Pair represents a gateway created by NAT Provider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(az:, gateway_id:) ⇒ GatewayConfig

Returns a new instance of GatewayConfig.

Parameters:

  • az (String)

    Availability Zone.

  • gateway_id (String)

    Identity of gateway spawned by the provider.



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

#azString (readonly)

Availability Zone.

Returns:

  • (String)


19
20
21
# File 'ec2/gateway_config.rb', line 19

def az
  @az
end

#gateway_idString (readonly)

Identity of gateway spawned by the provider.

Returns:

  • (String)


23
24
25
# File 'ec2/gateway_config.rb', line 23

def gateway_id
  @gateway_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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