# CfnFieldLevelEncryptionProfileProps

Properties for defining a `CfnFieldLevelEncryptionProfile`.

Used as props by: [CfnFieldLevelEncryptionProfile](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnFieldLevelEncryptionProfile.html)

- 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 cfnFieldLevelEncryptionProfileProps: cloudfront.CfnFieldLevelEncryptionProfileProps = {
  fieldLevelEncryptionProfileConfig: {
    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

cfn_field_level_encryption_profile_props = cloudfront.CfnFieldLevelEncryptionProfileProps(
    field_level_encryption_profile_config=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.*;

CfnFieldLevelEncryptionProfileProps cfnFieldLevelEncryptionProfileProps = CfnFieldLevelEncryptionProfileProps.builder()
        .fieldLevelEncryptionProfileConfig(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())
        .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 cfnFieldLevelEncryptionProfileProps = new CfnFieldLevelEncryptionProfileProps {
    FieldLevelEncryptionProfileConfig = 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"

cfnFieldLevelEncryptionProfileProps := &CfnFieldLevelEncryptionProfileProps{
	FieldLevelEncryptionProfileConfig: &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

- `fieldLevelEncryptionProfileConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFieldLevelEncryptionProfile.FieldLevelEncryptionProfileConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnFieldLevelEncryptionProfile.FieldLevelEncryptionProfileConfigProperty.html) (required) — The configuration of a field-level encryption profile.
