CfnLocalGatewayVirtualInterfaceProps Struct
Properties for defining a CfnLocalGatewayVirtualInterface.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnLocalGatewayVirtualInterfaceProps: ec2.CfnLocalGatewayVirtualInterfaceProps = {
localAddress: 'localAddress',
localGatewayVirtualInterfaceGroupId: 'localGatewayVirtualInterfaceGroupId',
outpostLagId: 'outpostLagId',
peerAddress: 'peerAddress',
vlan: 123,
// the properties below are optional
peerBgpAsn: 123,
peerBgpAsnExtended: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_local_gateway_virtual_interface_props = ec2.CfnLocalGatewayVirtualInterfaceProps(
local_address="localAddress",
local_gateway_virtual_interface_group_id="localGatewayVirtualInterfaceGroupId",
outpost_lag_id="outpostLagId",
peer_address="peerAddress",
vlan=123,
# the properties below are optional
peer_bgp_asn=123,
peer_bgp_asn_extended=123,
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnLocalGatewayVirtualInterfaceProps cfnLocalGatewayVirtualInterfaceProps = CfnLocalGatewayVirtualInterfaceProps.builder()
.localAddress("localAddress")
.localGatewayVirtualInterfaceGroupId("localGatewayVirtualInterfaceGroupId")
.outpostLagId("outpostLagId")
.peerAddress("peerAddress")
.vlan(123)
// the properties below are optional
.peerBgpAsn(123)
.peerBgpAsnExtended(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnLocalGatewayVirtualInterfaceProps = new CfnLocalGatewayVirtualInterfaceProps {
LocalAddress = "localAddress",
LocalGatewayVirtualInterfaceGroupId = "localGatewayVirtualInterfaceGroupId",
OutpostLagId = "outpostLagId",
PeerAddress = "peerAddress",
Vlan = 123,
// the properties below are optional
PeerBgpAsn = 123,
PeerBgpAsnExtended = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnLocalGatewayVirtualInterfaceProps := &CfnLocalGatewayVirtualInterfaceProps{
LocalAddress: jsii.String("localAddress"),
LocalGatewayVirtualInterfaceGroupId: jsii.String("localGatewayVirtualInterfaceGroupId"),
OutpostLagId: jsii.String("outpostLagId"),
PeerAddress: jsii.String("peerAddress"),
Vlan: jsii.Number(123),
// the properties below are optional
PeerBgpAsn: jsii.Number(123),
PeerBgpAsnExtended: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
localAddressstringlocal_addressstrlocalAddressStringLocalAddressstringLocalAddress*string required #The local address.
localGatewayVirtualInterfaceGroupIdstringlocal_gateway_virtual_interface_group_idstrlocalGatewayVirtualInterfaceGroupIdStringLocalGatewayVirtualInterfaceGroupIdstringLocalGatewayVirtualInterfaceGroupId*string required #The ID of the local gateway virtual interface group.
outpostLagIdstringoutpost_lag_idstroutpostLagIdStringOutpostLagIdstringOutpostLagId*string required #The Outpost LAG ID.
The peer address.
peerBgpAsnoptionalnumberpeer_bgp_asnoptionalint | floatpeerBgpAsnoptionalNumberPeerBgpAsnoptionaldoublePeerBgpAsnoptional*float64 #The peer BGP ASN.
peerBgpAsnExtendedoptionalnumberpeer_bgp_asn_extendedoptionalint | floatpeerBgpAsnExtendedoptionalNumberPeerBgpAsnExtendedoptionaldoublePeerBgpAsnExtendedoptional*float64 #The extended 32-bit ASN of the BGP peer for use with larger ASN values.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags assigned to the virtual interface.
The ID of the VLAN.