Class: AWSCDK::EC2::VpnGatewayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::VpnGatewayProps
- Defined in:
- ec2/vpn_gateway_props.rb
Overview
The VpnGateway Properties.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#amazon_side_asn ⇒ Numeric?
readonly
Explicitly specify an Asn or let aws pick an Asn for you.
-
#type ⇒ String
readonly
Default type ipsec.1.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, amazon_side_asn: nil) ⇒ VpnGatewayProps
constructor
A new instance of VpnGatewayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, amazon_side_asn: nil) ⇒ VpnGatewayProps
Returns a new instance of VpnGatewayProps.
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_asn ⇒ Numeric? (readonly)
Note:
Default: 65000
Explicitly specify an Asn or let aws pick an Asn for you.
24 25 26 |
# File 'ec2/vpn_gateway_props.rb', line 24 def amazon_side_asn @amazon_side_asn end |
#type ⇒ String (readonly)
Default type ipsec.1.
19 20 21 |
# File 'ec2/vpn_gateway_props.rb', line 19 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |