# CfnPublicKeyProps

Properties for defining a `CfnPublicKey`.

Extends: CfnPublicKeyProps
Used as props by: CfnPublicKey

- Source: Generated code

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnPublicKeyProps: cloudfront.CfnPublicKeyProps = {
  publicKeyConfig: {
    callerReference: 'callerReference',
    encodedKey: 'encodedKey',
    name: 'name',

    // the properties below are optional
    comment: 'comment',
  },
};
```

## Properties

- `publicKeyConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPublicKey.PublicKeyConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnPublicKey.PublicKeyConfigProperty.html) (required) — Configuration information about a public key that you can use with [signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) , or with [field-level encryption](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/field-level-encryption.html) .
