Class: AWSCDK::EC2::CfnLocalGatewayVirtualInterfaceProps

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

Overview

Properties for defining a CfnLocalGatewayVirtualInterface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(local_address:, local_gateway_virtual_interface_group_id:, outpost_lag_id:, peer_address:, vlan:, peer_bgp_asn: nil, peer_bgp_asn_extended: nil, tags: nil) ⇒ CfnLocalGatewayVirtualInterfaceProps

Returns a new instance of CfnLocalGatewayVirtualInterfaceProps.

Parameters:

  • local_address (String)

    The local address.

  • local_gateway_virtual_interface_group_id (String)

    The ID of the local gateway virtual interface group.

  • outpost_lag_id (String)

    The Outpost LAG ID.

  • peer_address (String)

    The peer address.

  • vlan (Numeric)

    The ID of the VLAN.

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

    The peer BGP ASN.

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

    The extended 32-bit ASN of the BGP peer for use with larger ASN values.

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

    The tags assigned to the virtual interface.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 17

def initialize(local_address:, local_gateway_virtual_interface_group_id:, outpost_lag_id:, peer_address:, vlan:, peer_bgp_asn: nil, peer_bgp_asn_extended: nil, tags: nil)
  @local_address = local_address
  Jsii::Type.check_type(@local_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localAddress")
  @local_gateway_virtual_interface_group_id = local_gateway_virtual_interface_group_id
  Jsii::Type.check_type(@local_gateway_virtual_interface_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localGatewayVirtualInterfaceGroupId")
  @outpost_lag_id = outpost_lag_id
  Jsii::Type.check_type(@outpost_lag_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "outpostLagId")
  @peer_address = peer_address
  Jsii::Type.check_type(@peer_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "peerAddress")
  @vlan = vlan
  Jsii::Type.check_type(@vlan, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "vlan")
  @peer_bgp_asn = peer_bgp_asn
  Jsii::Type.check_type(@peer_bgp_asn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "peerBgpAsn") unless @peer_bgp_asn.nil?
  @peer_bgp_asn_extended = peer_bgp_asn_extended
  Jsii::Type.check_type(@peer_bgp_asn_extended, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "peerBgpAsnExtended") unless @peer_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_addressString (readonly)

The local address.



40
41
42
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 40

def local_address
  @local_address
end

#local_gateway_virtual_interface_group_idString (readonly)

The ID of the local gateway virtual interface group.



45
46
47
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 45

def local_gateway_virtual_interface_group_id
  @local_gateway_virtual_interface_group_id
end

#outpost_lag_idString (readonly)

The Outpost LAG ID.



50
51
52
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 50

def outpost_lag_id
  @outpost_lag_id
end

#peer_addressString (readonly)

The peer address.



55
56
57
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 55

def peer_address
  @peer_address
end

#peer_bgp_asnNumeric? (readonly)

The peer BGP ASN.



65
66
67
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 65

def peer_bgp_asn
  @peer_bgp_asn
end

#peer_bgp_asn_extendedNumeric? (readonly)

The extended 32-bit ASN of the BGP peer for use with larger ASN values.



70
71
72
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 70

def peer_bgp_asn_extended
  @peer_bgp_asn_extended
end

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

The tags assigned to the virtual interface.



75
76
77
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 75

def tags
  @tags
end

#vlanNumeric (readonly)

The ID of the VLAN.



60
61
62
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 60

def vlan
  @vlan
end

Class Method Details

.jsii_propertiesObject



77
78
79
80
81
82
83
84
85
86
87
88
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 77

def self.jsii_properties
  {
    :local_address => "localAddress",
    :local_gateway_virtual_interface_group_id => "localGatewayVirtualInterfaceGroupId",
    :outpost_lag_id => "outpostLagId",
    :peer_address => "peerAddress",
    :vlan => "vlan",
    :peer_bgp_asn => "peerBgpAsn",
    :peer_bgp_asn_extended => "peerBgpAsnExtended",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'ec2/cfn_local_gateway_virtual_interface_props.rb', line 90

def to_jsii
  result = {}
  result.merge!({
    "localAddress" => @local_address,
    "localGatewayVirtualInterfaceGroupId" => @local_gateway_virtual_interface_group_id,
    "outpostLagId" => @outpost_lag_id,
    "peerAddress" => @peer_address,
    "vlan" => @vlan,
    "peerBgpAsn" => @peer_bgp_asn,
    "peerBgpAsnExtended" => @peer_bgp_asn_extended,
    "tags" => @tags,
  })
  result.compact
end