Class: AWSCDK::EC2::CfnVPNConcentratorProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPNConcentratorProps
- Defined in:
- ec2/cfn_vpn_concentrator_props.rb
Overview
Properties for defining a CfnVPNConcentrator.
Instance Attribute Summary collapse
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Any tags assigned to the VPN concentrator.
-
#transit_gateway_id ⇒ String
readonly
The ID of the transit gateway associated with the VPN concentrator.
-
#type ⇒ String
readonly
The type of VPN concentrator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(transit_gateway_id:, type:, tags: nil) ⇒ CfnVPNConcentratorProps
constructor
A new instance of CfnVPNConcentratorProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(transit_gateway_id:, type:, tags: nil) ⇒ CfnVPNConcentratorProps
Returns a new instance of CfnVPNConcentratorProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_vpn_concentrator_props.rb', line 12 def initialize(transit_gateway_id:, type:, tags: nil) @transit_gateway_id = transit_gateway_id Jsii::Type.check_type(@transit_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transitGatewayId") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @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
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Any tags assigned to the VPN concentrator.
35 36 37 |
# File 'ec2/cfn_vpn_concentrator_props.rb', line 35 def @tags end |
#transit_gateway_id ⇒ String (readonly)
The ID of the transit gateway associated with the VPN concentrator.
25 26 27 |
# File 'ec2/cfn_vpn_concentrator_props.rb', line 25 def transit_gateway_id @transit_gateway_id end |
#type ⇒ String (readonly)
The type of VPN concentrator.
30 31 32 |
# File 'ec2/cfn_vpn_concentrator_props.rb', line 30 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'ec2/cfn_vpn_concentrator_props.rb', line 37 def self.jsii_properties { :transit_gateway_id => "transitGatewayId", :type => "type", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'ec2/cfn_vpn_concentrator_props.rb', line 45 def to_jsii result = {} result.merge!({ "transitGatewayId" => @transit_gateway_id, "type" => @type, "tags" => @tags, }) result.compact end |