# CfnConnectionProps

Properties for defining a `CfnConnection`.

Extends: CfnConnectionProps
Used as props by: CfnConnection

- Source: Generated code
- Type last changed: v2.260.0 · 16 Jun 2026

## 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',
  }],
};
```

## Properties

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

  Mutually exclusive with EnvironmentId.

- `attachPoint`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.AttachPointProperty](/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](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.RemoteAccountProperty](/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](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
