Class: AWSCDK::EC2::CfnVPNConcentratorProps

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

Overview

Properties for defining a CfnVPNConcentrator.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transit_gateway_id:, type:, tags: nil) ⇒ CfnVPNConcentratorProps

Returns a new instance of CfnVPNConcentratorProps.

Parameters:

  • transit_gateway_id (String)

    The ID of the transit gateway associated with the VPN concentrator.

  • type (String)

    The type of VPN concentrator.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Any tags assigned to the VPN concentrator.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#tagsArray<AWSCDK::CfnTag>? (readonly)

Any tags assigned to the VPN concentrator.



35
36
37
# File 'ec2/cfn_vpn_concentrator_props.rb', line 35

def tags
  @tags
end

#transit_gateway_idString (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

#typeString (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_propertiesObject



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_jsiiObject



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