# CfnConnectionProps

Properties for defining a `CfnConnection`.

Used as props by: [CfnConnection](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_interconnect.CfnConnection.html)

- Source: Generated at build time
- Type last changed: v2.260.0 · 16 Jun 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `activationKey`: string — The activation key for accepting a connection proposal from a partner CSP.

  Mutually exclusive with EnvironmentId.

- `attachPoint`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.AttachPointProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_interconnect.CfnConnection.AttachPointProperty.html) (required) — The logical attachment point in your AWS network where the managed connection will be connected.

- `bandwidth`: string — The bandwidth of the connection (e.g., 50Mbps, 1Gbps). Required when creating a connection through AWS.

- `description`: string — A description of the connection.

- `environmentId`: string — The ID of the environment for the connection.

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

- `remoteAccount`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.RemoteAccountProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_interconnect.CfnConnection.RemoteAccountProperty.html) — The remote account identifier for the connection.

  Required when creating a connection through AWS. Replaces RemoteOwnerAccount.

- `remoteOwnerAccount`: string — this property has been deprecated

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

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
