Class: AWSCDK::EC2::CfnLocalGatewayVirtualInterfaceGroupProps

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

Overview

Properties for defining a CfnLocalGatewayVirtualInterfaceGroup.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(local_gateway_id:, local_bgp_asn: nil, local_bgp_asn_extended: nil, tags: nil) ⇒ CfnLocalGatewayVirtualInterfaceGroupProps

Returns a new instance of CfnLocalGatewayVirtualInterfaceGroupProps.

Parameters:

  • local_gateway_id (String)

    The ID of the local gateway.

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

    The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).

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

    The extended 32-bit ASN for the local BGP configuration.

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

    The tags assigned to the virtual interface group.



13
14
15
16
17
18
19
20
21
22
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 13

def initialize(local_gateway_id:, local_bgp_asn: nil, local_bgp_asn_extended: nil, tags: nil)
  @local_gateway_id = local_gateway_id
  Jsii::Type.check_type(@local_gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localGatewayId")
  @local_bgp_asn = local_bgp_asn
  Jsii::Type.check_type(@local_bgp_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "localBgpAsn") unless @local_bgp_asn.nil?
  @local_bgp_asn_extended = local_bgp_asn_extended
  Jsii::Type.check_type(@local_bgp_asn_extended, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "localBgpAsnExtended") unless @local_bgp_asn_extended.nil?
  @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

#local_bgp_asnNumeric? (readonly)

The Autonomous System Number(ASN) for the local Border Gateway Protocol (BGP).



33
34
35
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 33

def local_bgp_asn
  @local_bgp_asn
end

#local_bgp_asn_extendedNumeric? (readonly)

The extended 32-bit ASN for the local BGP configuration.



38
39
40
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 38

def local_bgp_asn_extended
  @local_bgp_asn_extended
end

#local_gateway_idString (readonly)

The ID of the local gateway.



28
29
30
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 28

def local_gateway_id
  @local_gateway_id
end

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

The tags assigned to the virtual interface group.



43
44
45
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 45

def self.jsii_properties
  {
    :local_gateway_id => "localGatewayId",
    :local_bgp_asn => "localBgpAsn",
    :local_bgp_asn_extended => "localBgpAsnExtended",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'ec2/cfn_local_gateway_virtual_interface_group_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "localGatewayId" => @local_gateway_id,
    "localBgpAsn" => @local_bgp_asn,
    "localBgpAsnExtended" => @local_bgp_asn_extended,
    "tags" => @tags,
  })
  result.compact
end