Class: AWSCDK::EC2::CfnLocalGatewayVirtualInterfaceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLocalGatewayVirtualInterfaceProps
- Defined in:
- ec2/cfn_local_gateway_virtual_interface_props.rb
Overview
Properties for defining a CfnLocalGatewayVirtualInterface.
Instance Attribute Summary collapse
-
#local_address ⇒ String
readonly
The local address.
-
#local_gateway_virtual_interface_group_id ⇒ String
readonly
The ID of the local gateway virtual interface group.
-
#outpost_lag_id ⇒ String
readonly
The Outpost LAG ID.
-
#peer_address ⇒ String
readonly
The peer address.
-
#peer_bgp_asn ⇒ Numeric?
readonly
The peer BGP ASN.
-
#peer_bgp_asn_extended ⇒ Numeric?
readonly
The extended 32-bit ASN of the BGP peer for use with larger ASN values.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags assigned to the virtual interface.
-
#vlan ⇒ Numeric
readonly
The ID of the VLAN.
Class Method Summary collapse
Instance Method Summary collapse
-
#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
constructor
A new instance of CfnLocalGatewayVirtualInterfaceProps.
- #to_jsii ⇒ Object
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.
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 = .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
#local_address ⇒ String (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_id ⇒ String (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_id ⇒ String (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_address ⇒ String (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_asn ⇒ Numeric? (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_extended ⇒ Numeric? (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 |
#tags ⇒ Array<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 end |
#vlan ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |