Skip to content
v2.278.0

TransitGatewayConnectPeerConfigurationProperty Struct ​

Describes the Connect peer details.

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 transitGatewayConnectPeerConfigurationProperty: ec2.CfnTransitGatewayConnectPeer.TransitGatewayConnectPeerConfigurationProperty = {
  insideCidrBlocks: ['insideCidrBlocks'],
  peerAddress: 'peerAddress',

  // the properties below are optional
  bgpConfigurations: [{
    bgpStatus: 'bgpStatus',
    peerAddress: 'peerAddress',
    peerAsn: 123,
    transitGatewayAddress: 'transitGatewayAddress',
    transitGatewayAsn: 123,
  }],
  protocol: 'protocol',
  transitGatewayAddress: 'transitGatewayAddress',
};
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

transit_gateway_connect_peer_configuration_property = ec2.CfnTransitGatewayConnectPeer.TransitGatewayConnectPeerConfigurationProperty(
    inside_cidr_blocks=["insideCidrBlocks"],
    peer_address="peerAddress",

    # the properties below are optional
    bgp_configurations=[ec2.CfnTransitGatewayConnectPeer.TransitGatewayAttachmentBgpConfigurationProperty(
        bgp_status="bgpStatus",
        peer_address="peerAddress",
        peer_asn=123,
        transit_gateway_address="transitGatewayAddress",
        transit_gateway_asn=123
    )],
    protocol="protocol",
    transit_gateway_address="transitGatewayAddress"
)
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.*;

TransitGatewayConnectPeerConfigurationProperty transitGatewayConnectPeerConfigurationProperty = TransitGatewayConnectPeerConfigurationProperty.builder()
        .insideCidrBlocks(List.of("insideCidrBlocks"))
        .peerAddress("peerAddress")

        // the properties below are optional
        .bgpConfigurations(List.of(TransitGatewayAttachmentBgpConfigurationProperty.builder()
                .bgpStatus("bgpStatus")
                .peerAddress("peerAddress")
                .peerAsn(123)
                .transitGatewayAddress("transitGatewayAddress")
                .transitGatewayAsn(123)
                .build()))
        .protocol("protocol")
        .transitGatewayAddress("transitGatewayAddress")
        .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 transitGatewayConnectPeerConfigurationProperty = new TransitGatewayConnectPeerConfigurationProperty {
    InsideCidrBlocks = new [] { "insideCidrBlocks" },
    PeerAddress = "peerAddress",

    // the properties below are optional
    BgpConfigurations = new [] { new TransitGatewayAttachmentBgpConfigurationProperty {
        BgpStatus = "bgpStatus",
        PeerAddress = "peerAddress",
        PeerAsn = 123,
        TransitGatewayAddress = "transitGatewayAddress",
        TransitGatewayAsn = 123
    } },
    Protocol = "protocol",
    TransitGatewayAddress = "transitGatewayAddress"
};
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"

transitGatewayConnectPeerConfigurationProperty := &TransitGatewayConnectPeerConfigurationProperty{
	InsideCidrBlocks: []*string{
		jsii.String("insideCidrBlocks"),
	},
	PeerAddress: jsii.String("peerAddress"),

	// the properties below are optional
	BgpConfigurations: []interface{}{
		&TransitGatewayAttachmentBgpConfigurationProperty{
			BgpStatus: jsii.String("bgpStatus"),
			PeerAddress: jsii.String("peerAddress"),
			PeerAsn: jsii.Number(123),
			TransitGatewayAddress: jsii.String("transitGatewayAddress"),
			TransitGatewayAsn: jsii.Number(123),
		},
	},
	Protocol: jsii.String("protocol"),
	TransitGatewayAddress: jsii.String("transitGatewayAddress"),
}

Properties ​

bgpConfigurationsoptionalIResolvable | IResolvable | CfnTransitGatewayConnectPeer.TransitGatewayAttachmentBgpConfigurationProperty[]bgp_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TransitGatewayAttachmentBgpConfigurationProperty]]]bgpConfigurationsoptionalIResolvableBgpConfigurationsoptionalIResolvableBgpConfigurationsoptionalinterface{} #
The BGP configuration details.
insideCidrBlocksstring[]inside_cidr_blockstyping.List[str]insideCidrBlocksList<String>InsideCidrBlocksstring[]InsideCidrBlocks*[]*string required #
The range of interior BGP peer IP addresses.
peerAddressstringpeer_addressstrpeerAddressStringPeerAddressstringPeerAddress*string required #
The Connect peer IP address on the appliance side of the tunnel.
protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #
The tunnel protocol.
transitGatewayAddressoptionalstringtransit_gateway_addressoptionalstrtransitGatewayAddressoptionalStringTransitGatewayAddressoptionalstringTransitGatewayAddressoptional*string #
The Connect peer IP address on the transit gateway side of the tunnel.