# CfnPrivateConnectionProps

Properties for defining a `CfnPrivateConnection`.

Extends: CfnPrivateConnectionProps
Used as props by: CfnPrivateConnection

- Source: Generated code
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const cfnPrivateConnectionProps: securityagent.CfnPrivateConnectionProps = {
  privateConnectionName: 'privateConnectionName',

  // the properties below are optional
  certificate: 'certificate',
  mode: {
    selfManaged: {
      resourceConfigurationId: 'resourceConfigurationId',
    },
    serviceManaged: {
      hostAddress: 'hostAddress',
      subnetIds: ['subnetIds'],
      vpcId: 'vpcId',

      // the properties below are optional
      dnsResolution: 'dnsResolution',
      ipAddressType: 'ipAddressType',
      ipv4AddressesPerEni: 123,
      portRanges: ['portRanges'],
      securityGroupIds: ['securityGroupIds'],
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `certificate`: string — The PEM-encoded certificate chain for the private connection.

- `mode`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPrivateConnection.ModeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityagent.CfnPrivateConnection.ModeProperty.html) — The configuration for the private connection.

  Specify either a service-managed or a self-managed mode.

- `privateConnectionName`: string (required) — A unique name for the private connection within your account.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags attached to the private connection.
