Skip to content
v2.278.0

BgpPeerProperty Struct ​

A key-value pair to associate with a resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_directconnect as directconnect } from 'aws-cdk-lib';
const bgpPeerProperty: directconnect.CfnTransitVirtualInterface.BgpPeerProperty = {
  addressFamily: 'addressFamily',
  asn: 'asn',

  // the properties below are optional
  amazonAddress: 'amazonAddress',
  authKey: 'authKey',
  bgpPeerId: 'bgpPeerId',
  customerAddress: 'customerAddress',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_directconnect as directconnect

bgp_peer_property = directconnect.CfnTransitVirtualInterface.BgpPeerProperty(
    address_family="addressFamily",
    asn="asn",

    # the properties below are optional
    amazon_address="amazonAddress",
    auth_key="authKey",
    bgp_peer_id="bgpPeerId",
    customer_address="customerAddress"
)
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.directconnect.*;

BgpPeerProperty bgpPeerProperty = BgpPeerProperty.builder()
        .addressFamily("addressFamily")
        .asn("asn")

        // the properties below are optional
        .amazonAddress("amazonAddress")
        .authKey("authKey")
        .bgpPeerId("bgpPeerId")
        .customerAddress("customerAddress")
        .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.DirectConnect;

var bgpPeerProperty = new BgpPeerProperty {
    AddressFamily = "addressFamily",
    Asn = "asn",

    // the properties below are optional
    AmazonAddress = "amazonAddress",
    AuthKey = "authKey",
    BgpPeerId = "bgpPeerId",
    CustomerAddress = "customerAddress"
};
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"

bgpPeerProperty := &BgpPeerProperty{
	AddressFamily: jsii.String("addressFamily"),
	Asn: jsii.String("asn"),

	// the properties below are optional
	AmazonAddress: jsii.String("amazonAddress"),
	AuthKey: jsii.String("authKey"),
	BgpPeerId: jsii.String("bgpPeerId"),
	CustomerAddress: jsii.String("customerAddress"),
}

Properties ​

addressFamilystringaddress_familystraddressFamilyStringAddressFamilystringAddressFamily*string required #
The address family for the BGP peer.
amazonAddressoptionalstringamazon_addressoptionalstramazonAddressoptionalStringAmazonAddressoptionalstringAmazonAddressoptional*string #
The IP address assigned to the Amazon interface.
asnstringasnstrasnStringAsnstringAsn*string required #
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
authKeyoptionalstringauth_keyoptionalstrauthKeyoptionalStringAuthKeyoptionalstringAuthKeyoptional*string #
The authentication key for BGP configuration.

This string has a minimum length of 6 characters and and a maximum length of 80 characters.

bgpPeerIdoptionalstringbgp_peer_idoptionalstrbgpPeerIdoptionalStringBgpPeerIdoptionalstringBgpPeerIdoptional*string #
customerAddressoptionalstringcustomer_addressoptionalstrcustomerAddressoptionalStringCustomerAddressoptionalstringCustomerAddressoptional*string #
The IP address assigned to the customer interface.