Class: AWSCDK::EC2::CfnVPNGatewayProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPNGatewayProps
- Defined in:
- ec2/cfn_vpn_gateway_props.rb
Overview
Properties for defining a CfnVPNGateway.
Instance Attribute Summary collapse
-
#amazon_side_asn ⇒ Numeric?
readonly
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Any tags assigned to the virtual private gateway.
-
#type ⇒ String
readonly
The type of VPN connection the virtual private gateway supports.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, amazon_side_asn: nil, tags: nil) ⇒ CfnVPNGatewayProps
constructor
A new instance of CfnVPNGatewayProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, amazon_side_asn: nil, tags: nil) ⇒ CfnVPNGatewayProps
Returns a new instance of CfnVPNGatewayProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_vpn_gateway_props.rb', line 12 def initialize(type:, amazon_side_asn: nil, tags: 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? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#amazon_side_asn ⇒ Numeric? (readonly)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
30 31 32 |
# File 'ec2/cfn_vpn_gateway_props.rb', line 30 def amazon_side_asn @amazon_side_asn end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Any tags assigned to the virtual private gateway.
35 36 37 |
# File 'ec2/cfn_vpn_gateway_props.rb', line 35 def @tags end |
#type ⇒ String (readonly)
The type of VPN connection the virtual private gateway supports.
25 26 27 |
# File 'ec2/cfn_vpn_gateway_props.rb', line 25 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'ec2/cfn_vpn_gateway_props.rb', line 37 def self.jsii_properties { :type => "type", :amazon_side_asn => "amazonSideAsn", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'ec2/cfn_vpn_gateway_props.rb', line 45 def to_jsii result = {} result.merge!({ "type" => @type, "amazonSideAsn" => @amazon_side_asn, "tags" => @tags, }) result.compact end |