# CfnSecurityKeyProps

Properties for defining a `CfnSecurityKey`.

Extends: CfnSecurityKeyProps
Used as props by: CfnSecurityKey

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnSecurityKeyProps: connect.CfnSecurityKeyProps = {
  instanceId: 'instanceId',
  key: 'key',
};
```

## Properties

- `instanceId`: string | [IInstanceRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_connect.IInstanceRef.html) (required) — The Amazon Resource Name (ARN) of the instance.

  *Minimum* : `1`

  *Maximum* : `100`

- `key`: string (required) — A valid security key in PEM format. For example:.

  `"-----BEGIN PUBLIC KEY-----\ [a lot of characters] ----END PUBLIC KEY-----"`

  *Minimum* : `1`

  *Maximum* : `1024`
