Skip to content
v2.275.0

ContentTypeProfileConfigProperty Struct Added in v2.275.0 ​

How CloudFront handles content types, including the profile paired with each one.

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 contentTypeProfileConfigProperty: cloudfront.CfnFieldLevelEncryptionConfig.ContentTypeProfileConfigProperty = {
  contentTypeProfiles: [{
    contentType: 'contentType',
    format: 'format',
    profileId: 'profileId',
  }],
  forwardWhenContentTypeIsUnknown: false,
};

Properties ​

contentTypeProfilesIResolvable | IResolvable | CfnFieldLevelEncryptionConfig.ContentTypeProfileProperty[]content_type_profilestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ContentTypeProfileProperty]]]contentTypeProfilesIResolvableContentTypeProfilesIResolvableContentTypeProfilesinterface{}required#
The content types paired with a profile.

Required, and at least one item, because the service synthesizes one default item when the list is absent or empty, so neither state round-trips.

forwardWhenContentTypeIsUnknownboolean | IResolvableforward_when_content_type_is_unknowntyping.Union[bool, IResolvable]forwardWhenContentTypeIsUnknownBooleanForwardWhenContentTypeIsUnknownboolForwardWhenContentTypeIsUnknowninterface{}required#
Whether CloudFront forwards a request when the content type names a profile that does not exist.