# CfnConnectionProps

Properties for defining a `CfnConnection`.

Extends: CfnConnectionProps
Used as props by: CfnConnection

- Source: Generated code
- Type last changed: v2.138.0 · 18 Apr 2024

## Example

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

  // the properties below are optional
  hostArn: 'hostArn',
  providerType: 'providerType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `connectionName`: string (required) — The name of the connection.

  Connection names must be unique in an AWS account .

- `hostArn`: string — The Amazon Resource Name (ARN) of the host associated with the connection.

- `providerType`: string — The name of the external provider where your third-party code repository is configured.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Specifies the tags applied to a connection.
