# FieldLevelEncryptionProfileConfigProperty

The configuration of a field-level encryption profile.

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

TypeScript:

```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 fieldLevelEncryptionProfileConfigProperty: cloudfront.CfnFieldLevelEncryptionProfile.FieldLevelEncryptionProfileConfigProperty = {
  callerReference: 'callerReference',
  encryptionEntities: [{
    fieldPatterns: ['fieldPatterns'],
    providerId: 'providerId',
    publicKeyId: 'publicKeyId',
  }],
  name: 'name',

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

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

field_level_encryption_profile_config_property = cloudfront.CfnFieldLevelEncryptionProfile.FieldLevelEncryptionProfileConfigProperty(
    caller_reference="callerReference",
    encryption_entities=[cloudfront.CfnFieldLevelEncryptionProfile.EncryptionEntityProperty(
        field_patterns=["fieldPatterns"],
        provider_id="providerId",
        public_key_id="publicKeyId"
    )],
    name="name",

    # the properties below are optional
    comment="comment"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

FieldLevelEncryptionProfileConfigProperty fieldLevelEncryptionProfileConfigProperty = FieldLevelEncryptionProfileConfigProperty.builder()
        .callerReference("callerReference")
        .encryptionEntities(List.of(EncryptionEntityProperty.builder()
                .fieldPatterns(List.of("fieldPatterns"))
                .providerId("providerId")
                .publicKeyId("publicKeyId")
                .build()))
        .name("name")

        // the properties below are optional
        .comment("comment")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var fieldLevelEncryptionProfileConfigProperty = new FieldLevelEncryptionProfileConfigProperty {
    CallerReference = "callerReference",
    EncryptionEntities = new [] { new EncryptionEntityProperty {
        FieldPatterns = new [] { "fieldPatterns" },
        ProviderId = "providerId",
        PublicKeyId = "publicKeyId"
    } },
    Name = "name",

    // the properties below are optional
    Comment = "comment"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fieldLevelEncryptionProfileConfigProperty := &FieldLevelEncryptionProfileConfigProperty{
	CallerReference: jsii.String("callerReference"),
	EncryptionEntities: []interface{}{
		&EncryptionEntityProperty{
			FieldPatterns: []*string{
				jsii.String("fieldPatterns"),
			},
			ProviderId: jsii.String("providerId"),
			PublicKeyId: jsii.String("publicKeyId"),
		},
	},
	Name: jsii.String("name"),

	// the properties below are optional
	Comment: jsii.String("comment"),
}
```

## Properties

- `callerReference`: string (required) — A unique value that identifies the creation request.

  Caller references are unique within an AWS account and cannot be changed after creation.

- `comment`: string — An optional comment describing the field-level encryption profile.

- `encryptionEntities`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFieldLevelEncryptionProfile.EncryptionEntityProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnFieldLevelEncryptionProfile.EncryptionEntityProperty.html)[] (required) — The encryption entities of the field-level encryption profile.

  At least one entity is required.

- `name`: string (required) — The name of the field-level encryption profile.

  Names are unique within an AWS account.
