Skip to content
v2.278.0

CfnConnectionProps Struct ​

Properties for defining a CfnConnection.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_interconnect as interconnect } from 'aws-cdk-lib';
const cfnConnectionProps: interconnect.CfnConnectionProps = {
  attachPoint: {
    arn: 'arn',
    directConnectGateway: 'directConnectGateway',
  },

  // the properties below are optional
  activationKey: 'activationKey',
  bandwidth: 'bandwidth',
  description: 'description',
  environmentId: 'environmentId',
  remoteAccount: {
    identifier: 'identifier',
  },
  remoteOwnerAccount: 'remoteOwnerAccount',
  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_interconnect as interconnect

cfn_connection_props = interconnect.CfnConnectionProps(
    attach_point=interconnect.CfnConnection.AttachPointProperty(
        arn="arn",
        direct_connect_gateway="directConnectGateway"
    ),

    # the properties below are optional
    activation_key="activationKey",
    bandwidth="bandwidth",
    description="description",
    environment_id="environmentId",
    remote_account=interconnect.CfnConnection.RemoteAccountProperty(
        identifier="identifier"
    ),
    remote_owner_account="remoteOwnerAccount",
    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.interconnect.*;

CfnConnectionProps cfnConnectionProps = CfnConnectionProps.builder()
        .attachPoint(AttachPointProperty.builder()
                .arn("arn")
                .directConnectGateway("directConnectGateway")
                .build())

        // the properties below are optional
        .activationKey("activationKey")
        .bandwidth("bandwidth")
        .description("description")
        .environmentId("environmentId")
        .remoteAccount(RemoteAccountProperty.builder()
                .identifier("identifier")
                .build())
        .remoteOwnerAccount("remoteOwnerAccount")
        .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.Interconnect;

var cfnConnectionProps = new CfnConnectionProps {
    AttachPoint = new AttachPointProperty {
        Arn = "arn",
        DirectConnectGateway = "directConnectGateway"
    },

    // the properties below are optional
    ActivationKey = "activationKey",
    Bandwidth = "bandwidth",
    Description = "description",
    EnvironmentId = "environmentId",
    RemoteAccount = new RemoteAccountProperty {
        Identifier = "identifier"
    },
    RemoteOwnerAccount = "remoteOwnerAccount",
    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"

cfnConnectionProps := &CfnConnectionProps{
	AttachPoint: &AttachPointProperty{
		Arn: jsii.String("arn"),
		DirectConnectGateway: jsii.String("directConnectGateway"),
	},

	// the properties below are optional
	ActivationKey: jsii.String("activationKey"),
	Bandwidth: jsii.String("bandwidth"),
	Description: jsii.String("description"),
	EnvironmentId: jsii.String("environmentId"),
	RemoteAccount: &RemoteAccountProperty{
		Identifier: jsii.String("identifier"),
	},
	RemoteOwnerAccount: jsii.String("remoteOwnerAccount"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

activationKeyoptionalstringactivation_keyoptionalstractivationKeyoptionalStringActivationKeyoptionalstringActivationKeyoptional*string #
The activation key for accepting a connection proposal from a partner CSP.

Mutually exclusive with EnvironmentId.

attachPointIResolvable | CfnConnection.AttachPointPropertyattach_pointtyping.Union[IResolvable, AttachPointProperty]attachPointIResolvableAttachPointIResolvableAttachPointinterface{} required #
The logical attachment point in your AWS network where the managed connection will be connected.
bandwidthoptionalstringbandwidthoptionalstrbandwidthoptionalStringBandwidthoptionalstringBandwidthoptional*string #
The bandwidth of the connection (e.g., 50Mbps, 1Gbps). Required when creating a connection through AWS.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the connection.
environmentIdoptionalstringenvironment_idoptionalstrenvironmentIdoptionalStringEnvironmentIdoptionalstringEnvironmentIdoptional*string #
The ID of the environment for the connection.

Required when creating a connection through AWS. Mutually exclusive with ActivationKey.

remoteAccountoptionalIResolvable | CfnConnection.RemoteAccountPropertyremote_accountoptionaltyping.Union[IResolvable, RemoteAccountProperty]remoteAccountoptionalIResolvableRemoteAccountoptionalIResolvableRemoteAccountoptionalinterface{} #
The remote account identifier for the connection.

Required when creating a connection through AWS. Replaces RemoteOwnerAccount.

remoteOwnerAccountoptionalstringremote_owner_accountoptionalstrremoteOwnerAccountoptionalStringRemoteOwnerAccountoptionalstringRemoteOwnerAccountoptional*string deprecated #
this property has been deprecated

Use RemoteAccount instead. The account ID of the remote owner. Required when creating a connection through AWS.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.