# BgpPeerProperty

A key-value pair to associate with a resource.

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `addressFamily`: string (required) — The address family for the BGP peer.

- `amazonAddress`: string — The IP address assigned to the Amazon interface.

- `asn`: string (required) — The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

- `authKey`: string — The authentication key for BGP configuration.

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

- `bgpPeerId`: string

- `customerAddress`: string — The IP address assigned to the customer interface.
