# CfnPublicKeyProps

Properties for defining a `CfnPublicKey`.

Extends: CfnPublicKeyProps
Used as props by: CfnPublicKey

- Source: Generated code
- Type last changed: v2.154.1 · 23 Aug 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ivs as ivs } from 'aws-cdk-lib';
const cfnPublicKeyProps: ivs.CfnPublicKeyProps = {
  name: 'name',
  publicKeyMaterial: 'publicKeyMaterial',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `name`: string — Public key name.

  The value does not need to be unique.

- `publicKeyMaterial`: string — The public portion of a customer-generated key pair.

  Note that this field is required to create the AWS::IVS::PublicKey resource.

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