# EncryptionEntityProperty

A public key, its provider identity, and the field patterns CloudFront encrypts with that key.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## 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 encryptionEntityProperty: cloudfront.CfnFieldLevelEncryptionProfile.EncryptionEntityProperty = {
  fieldPatterns: ['fieldPatterns'],
  providerId: 'providerId',
  publicKeyId: 'publicKeyId',
};
```

## Properties

- `fieldPatterns`: string[] (required) — The request-body field names to encrypt.

  A pattern is either a full field name or leading characters followed by a wildcard (*). Patterns are case-sensitive and must not overlap.

- `providerId`: string (required) — The provider associated with the public key.

  The same value must be supplied with the private key for an application to decrypt the data.

- `publicKeyId`: string (required) — The identifier of the CloudFront public key used to encrypt the fields that match the patterns.
