Skip to content
v2.277.0

CfnConnectPeerProps Struct ​

Properties for defining a CfnConnectPeer.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmanager as networkmanager } from 'aws-cdk-lib';
const cfnConnectPeerProps: networkmanager.CfnConnectPeerProps = {
  connectAttachmentId: 'connectAttachmentId',
  peerAddress: 'peerAddress',

  // the properties below are optional
  bgpOptions: {
    peerAsn: 123,
  },
  coreNetworkAddress: 'coreNetworkAddress',
  insideCidrBlocks: ['insideCidrBlocks'],
  subnetArn: 'subnetArn',
  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_networkmanager as networkmanager

cfn_connect_peer_props = networkmanager.CfnConnectPeerProps(
    connect_attachment_id="connectAttachmentId",
    peer_address="peerAddress",

    # the properties below are optional
    bgp_options=networkmanager.CfnConnectPeer.BgpOptionsProperty(
        peer_asn=123
    ),
    core_network_address="coreNetworkAddress",
    inside_cidr_blocks=["insideCidrBlocks"],
    subnet_arn="subnetArn",
    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.networkmanager.*;

CfnConnectPeerProps cfnConnectPeerProps = CfnConnectPeerProps.builder()
        .connectAttachmentId("connectAttachmentId")
        .peerAddress("peerAddress")

        // the properties below are optional
        .bgpOptions(BgpOptionsProperty.builder()
                .peerAsn(123)
                .build())
        .coreNetworkAddress("coreNetworkAddress")
        .insideCidrBlocks(List.of("insideCidrBlocks"))
        .subnetArn("subnetArn")
        .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.NetworkManager;

var cfnConnectPeerProps = new CfnConnectPeerProps {
    ConnectAttachmentId = "connectAttachmentId",
    PeerAddress = "peerAddress",

    // the properties below are optional
    BgpOptions = new BgpOptionsProperty {
        PeerAsn = 123
    },
    CoreNetworkAddress = "coreNetworkAddress",
    InsideCidrBlocks = new [] { "insideCidrBlocks" },
    SubnetArn = "subnetArn",
    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"

cfnConnectPeerProps := &CfnConnectPeerProps{
	ConnectAttachmentId: jsii.String("connectAttachmentId"),
	PeerAddress: jsii.String("peerAddress"),

	// the properties below are optional
	BgpOptions: &BgpOptionsProperty{
		PeerAsn: jsii.Number(123),
	},
	CoreNetworkAddress: jsii.String("coreNetworkAddress"),
	InsideCidrBlocks: []*string{
		jsii.String("insideCidrBlocks"),
	},
	SubnetArn: jsii.String("subnetArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

bgpOptionsoptionalIResolvable | CfnConnectPeer.BgpOptionsPropertybgp_optionsoptionaltyping.Union[IResolvable, BgpOptionsProperty]bgpOptionsoptionalIResolvableBgpOptionsoptionalIResolvableBgpOptionsoptionalinterface{}#
Describes the BGP options.
connectAttachmentIdstringconnect_attachment_idstrconnectAttachmentIdStringConnectAttachmentIdstringConnectAttachmentId*stringrequired#
The ID of the attachment to connect.
coreNetworkAddressoptionalstringcore_network_addressoptionalstrcoreNetworkAddressoptionalStringCoreNetworkAddressoptionalstringCoreNetworkAddressoptional*string#
The IP address of a core network.
insideCidrBlocksoptionalstring[]inside_cidr_blocksoptionaltyping.List[str]insideCidrBlocksoptionalList<String>InsideCidrBlocksoptionalstring[]InsideCidrBlocksoptional*[]*string#
The inside IP addresses used for a Connect peer configuration.
peerAddressstringpeer_addressstrpeerAddressStringPeerAddressstringPeerAddress*stringrequired#
The IP address of the Connect peer.
subnetArnoptionalstringsubnet_arnoptionalstrsubnetArnoptionalStringSubnetArnoptionalstringSubnetArnoptional*string#
The subnet ARN of the Connect peer.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The list of key-value tags associated with the Connect peer.