# CfnPrivateConnectionProps

Properties for defining a `CfnPrivateConnection`.

Extends: CfnPrivateConnectionProps
Used as props by: CfnPrivateConnection

- Source: Generated code
- Type last changed: v2.251.0 · 24 Apr 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
const cfnPrivateConnectionProps: devopsagent.CfnPrivateConnectionProps = {
  connectionConfiguration: {
    selfManaged: {
      resourceConfigurationId: 'resourceConfigurationId',
    },
    serviceManaged: {
      hostAddress: 'hostAddress',
      vpcId: 'vpcId',

      // the properties below are optional
      dnsResolution: 'dnsResolution',
      ipAddressType: 'ipAddressType',
      ipv4AddressesPerEni: 123,
      portRanges: ['portRanges'],
      securityGroupIds: ['securityGroupIds'],
      subnetIds: ['subnetIds'],
    },
  },
  name: 'name',

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

## Properties

- `certificate`: string — Certificate for the Private Connection.

- `connectionConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrivateConnection.ConnectionConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnPrivateConnection.ConnectionConfigurationProperty.html) (required) — The connection configuration, either SelfManaged or ServiceManaged.

- `name`: string (required) — Unique name for this Private Connection within the account.

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