CfnFieldLevelEncryptionProfileProps Struct
Properties for defining a CfnFieldLevelEncryptionProfile.
| Source | |
|---|---|
| Type last changed |
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 cfnFieldLevelEncryptionProfileProps: cloudfront.CfnFieldLevelEncryptionProfileProps = {
fieldLevelEncryptionProfileConfig: {
callerReference: 'callerReference',
encryptionEntities: [{
fieldPatterns: ['fieldPatterns'],
providerId: 'providerId',
publicKeyId: 'publicKeyId',
}],
name: 'name',
// the properties below are optional
comment: 'comment',
},
};
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
// 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();
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"
}
};
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
fieldLevelEncryptionProfileConfigIResolvable | CfnFieldLevelEncryptionProfile.field_level_encryption_profile_configtyping.Union[IResolvable, FieldLevelEncryptionProfileConfigProperty]fieldLevelEncryptionProfileConfigIResolvableFieldLevelEncryptionProfileConfigIResolvableFieldLevelEncryptionProfileConfiginterface{} required #The configuration of a field-level encryption profile.