Class: AWSCDK::EC2::VpnGatewayProps

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

Overview

The VpnGateway Properties.

Direct Known Subclasses

EnableVpnGatewayOptions

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, amazon_side_asn: nil) ⇒ VpnGatewayProps

Returns a new instance of VpnGatewayProps.

Parameters:

  • type (String)

    Default type ipsec.1.

  • amazon_side_asn (Numeric, nil) (defaults to: nil)

    Explicitly specify an Asn or let aws pick an Asn for you.



9
10
11
12
13
14
# File 'ec2/vpn_gateway_props.rb', line 9

def initialize(type:, amazon_side_asn: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @amazon_side_asn = amazon_side_asn
  Jsii::Type.check_type(@amazon_side_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "amazonSideAsn") unless @amazon_side_asn.nil?
end

Instance Attribute Details

#amazon_side_asnNumeric? (readonly)

Note:

Default: 65000

Explicitly specify an Asn or let aws pick an Asn for you.

Returns:

  • (Numeric, nil)


24
25
26
# File 'ec2/vpn_gateway_props.rb', line 24

def amazon_side_asn
  @amazon_side_asn
end

#typeString (readonly)

Default type ipsec.1.

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'ec2/vpn_gateway_props.rb', line 26

def self.jsii_properties
  {
    :type => "type",
    :amazon_side_asn => "amazonSideAsn",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'ec2/vpn_gateway_props.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "amazonSideAsn" => @amazon_side_asn,
  })
  result.compact
end