ContentTypeProfileProperty Struct
A content type paired with the field-level encryption profile that encrypts it.
| Source | |
|---|---|
| Type last changed |
Example
// 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 contentTypeProfileProperty: cloudfront.CfnFieldLevelEncryptionConfig.ContentTypeProfileProperty = {
contentType: 'contentType',
format: 'format',
profileId: 'profileId',
};
# 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
content_type_profile_property = cloudfront.CfnFieldLevelEncryptionConfig.ContentTypeProfileProperty(
content_type="contentType",
format="format",
profile_id="profileId"
)
// 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.*;
ContentTypeProfileProperty contentTypeProfileProperty = ContentTypeProfileProperty.builder()
.contentType("contentType")
.format("format")
.profileId("profileId")
.build();
// 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 contentTypeProfileProperty = new ContentTypeProfileProperty {
ContentType = "contentType",
Format = "format",
ProfileId = "profileId"
};
// 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"
contentTypeProfileProperty := &ContentTypeProfileProperty{
ContentType: jsii.String("contentType"),
Format: jsii.String("format"),
ProfileId: jsii.String("profileId"),
}
Properties
The service accepts only application/x-www-form-urlencoded.
notes
Required, so that it cannot be omitted: the service accepts a content-type profile with the member absent on create and refuses one on update, and an update sends the whole profile list, so a configuration created that way could never be updated again. Supply an empty string to configure a content type and forward it WITHOUT field-level encryption. That mode is available through this resource and round-trips: create, update and read all accept and return the empty string, and it is the service's own encoding for the state -- asked for a content-type list with no items, CloudFront returns one item whose ProfileId is empty. Note that this is not the same as omitting the content type from the configuration, because ForwardWhenContentTypeIsUnknown governs only content types absent from it.