Skip to content
v2.278.0

CfnTransitGatewayConnectPeerProps Struct ​

Properties for defining a CfnTransitGatewayConnectPeer.

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 cfnTransitGatewayConnectPeerProps: ec2.CfnTransitGatewayConnectPeerProps = {
  connectPeerConfiguration: {
    insideCidrBlocks: ['insideCidrBlocks'],
    peerAddress: 'peerAddress',

    // the properties below are optional
    bgpConfigurations: [{
      bgpStatus: 'bgpStatus',
      peerAddress: 'peerAddress',
      peerAsn: 123,
      transitGatewayAddress: 'transitGatewayAddress',
      transitGatewayAsn: 123,
    }],
    protocol: 'protocol',
    transitGatewayAddress: 'transitGatewayAddress',
  },
  transitGatewayAttachmentId: 'transitGatewayAttachmentId',

  // the properties below are optional
  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_transit_gateway_connect_peer_props = ec2.CfnTransitGatewayConnectPeerProps(
    connect_peer_configuration=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"
    ),
    transit_gateway_attachment_id="transitGatewayAttachmentId",

    # the properties below are optional
    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.*;

CfnTransitGatewayConnectPeerProps cfnTransitGatewayConnectPeerProps = CfnTransitGatewayConnectPeerProps.builder()
        .connectPeerConfiguration(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())
        .transitGatewayAttachmentId("transitGatewayAttachmentId")

        // the properties below are optional
        .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 cfnTransitGatewayConnectPeerProps = new CfnTransitGatewayConnectPeerProps {
    ConnectPeerConfiguration = 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"
    },
    TransitGatewayAttachmentId = "transitGatewayAttachmentId",

    // the properties below are optional
    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"

cfnTransitGatewayConnectPeerProps := &CfnTransitGatewayConnectPeerProps{
	ConnectPeerConfiguration: &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"),
	},
	TransitGatewayAttachmentId: jsii.String("transitGatewayAttachmentId"),

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

connectPeerConfigurationIResolvable | CfnTransitGatewayConnectPeer.TransitGatewayConnectPeerConfigurationPropertyconnect_peer_configurationtyping.Union[IResolvable, TransitGatewayConnectPeerConfigurationProperty]connectPeerConfigurationIResolvableConnectPeerConfigurationIResolvableConnectPeerConfigurationinterface{} required #
The Connect peer details.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the Connect peer.
transitGatewayAttachmentIdstringtransit_gateway_attachment_idstrtransitGatewayAttachmentIdStringTransitGatewayAttachmentIdstringTransitGatewayAttachmentId*string required #
The ID of the Connect attachment.