Skip to content
v2.278.0

BgpOptionsProperty Struct ​

The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.

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 bgpOptionsProperty: ec2.CfnRouteServerPeer.BgpOptionsProperty = {
  peerAsn: 123,
  peerLivenessDetection: 'peerLivenessDetection',
};
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_ec2 as ec2

bgp_options_property = ec2.CfnRouteServerPeer.BgpOptionsProperty(
    peer_asn=123,
    peer_liveness_detection="peerLivenessDetection"
)
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.*;

BgpOptionsProperty bgpOptionsProperty = BgpOptionsProperty.builder()
        .peerAsn(123)
        .peerLivenessDetection("peerLivenessDetection")
        .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 bgpOptionsProperty = new BgpOptionsProperty {
    PeerAsn = 123,
    PeerLivenessDetection = "peerLivenessDetection"
};
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"

bgpOptionsProperty := &BgpOptionsProperty{
	PeerAsn: jsii.Number(123),
	PeerLivenessDetection: jsii.String("peerLivenessDetection"),
}

Properties ​

peerAsnoptionalnumberpeer_asnoptionalint | floatpeerAsnoptionalNumberPeerAsnoptionaldoublePeerAsnoptional*float64 #
The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance.

Valid values are from 1 to 4294967295. We recommend using a private ASN in the 64512–65534 (16-bit ASN) or 4200000000–4294967294 (32-bit ASN) range.

peerLivenessDetectionoptionalstringpeer_liveness_detectionoptionalstrpeerLivenessDetectionoptionalStringPeerLivenessDetectionoptionalstringPeerLivenessDetectionoptional*string #
The liveness detection protocol used for the BGP peer.
notes

The requested liveness detection protocol for the BGP peer.

  • bgp-keepalive : The standard BGP keep alive mechanism ( RFC4271 ) that is stable but may take longer to fail-over in cases of network impact or router failure.
  • bfd : An additional Bidirectional Forwarding Detection (BFD) protocol ( RFC5880 ) that enables fast failover by using more sensitive liveness detection.

Defaults to bgp-keepalive .