CloudFront.Client.
create_field_level_encryption_config
(**kwargs)¶Create a new field-level encryption configuration.
See also: AWS API Documentation
Request Syntax
response = client.create_field_level_encryption_config(
FieldLevelEncryptionConfig={
'CallerReference': 'string',
'Comment': 'string',
'QueryArgProfileConfig': {
'ForwardWhenQueryArgProfileIsUnknown': True|False,
'QueryArgProfiles': {
'Quantity': 123,
'Items': [
{
'QueryArg': 'string',
'ProfileId': 'string'
},
]
}
},
'ContentTypeProfileConfig': {
'ForwardWhenContentTypeIsUnknown': True|False,
'ContentTypeProfiles': {
'Quantity': 123,
'Items': [
{
'Format': 'URLEncoded',
'ProfileId': 'string',
'ContentType': 'string'
},
]
}
}
}
)
[REQUIRED]
The request to create a new field-level encryption configuration.
A unique number that ensures the request can't be replayed.
An optional comment about the configuration. The comment cannot be longer than 128 characters.
A complex data type that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.
Profiles specified for query argument-profile mapping for field-level encryption.
Number of profiles for query argument-profile mapping for field-level encryption.
Number of items for query argument-profile mapping for field-level encryption.
Query argument-profile mapping for field-level encryption.
Query argument for field-level encryption query argument-profile mapping.
ID of profile to use for field-level encryption query argument-profile mapping
A complex data type that specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
The configuration for a field-level encryption content type-profile.
The number of field-level encryption content type-profile mappings.
Items in a field-level encryption content type-profile mapping.
A field-level encryption content type profile.
The format for a field-level encryption content type-profile mapping.
The profile ID for a field-level encryption content type-profile mapping.
The content type for a field-level encryption content type-profile mapping.
{
'FieldLevelEncryption': {
'Id': 'string',
'LastModifiedTime': datetime(2015, 1, 1),
'FieldLevelEncryptionConfig': {
'CallerReference': 'string',
'Comment': 'string',
'QueryArgProfileConfig': {
'ForwardWhenQueryArgProfileIsUnknown': True|False,
'QueryArgProfiles': {
'Quantity': 123,
'Items': [
{
'QueryArg': 'string',
'ProfileId': 'string'
},
]
}
},
'ContentTypeProfileConfig': {
'ForwardWhenContentTypeIsUnknown': True|False,
'ContentTypeProfiles': {
'Quantity': 123,
'Items': [
{
'Format': 'URLEncoded',
'ProfileId': 'string',
'ContentType': 'string'
},
]
}
}
}
},
'Location': 'string',
'ETag': 'string'
}
Response Structure
Returned when you create a new field-level encryption configuration.
The configuration ID for a field-level encryption configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.
The last time the field-level encryption configuration was changed.
A complex data type that includes the profile configurations specified for field-level encryption.
A unique number that ensures the request can't be replayed.
An optional comment about the configuration. The comment cannot be longer than 128 characters.
A complex data type that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.
Profiles specified for query argument-profile mapping for field-level encryption.
Number of profiles for query argument-profile mapping for field-level encryption.
Number of items for query argument-profile mapping for field-level encryption.
Query argument-profile mapping for field-level encryption.
Query argument for field-level encryption query argument-profile mapping.
ID of profile to use for field-level encryption query argument-profile mapping
A complex data type that specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
The configuration for a field-level encryption content type-profile.
The number of field-level encryption content type-profile mappings.
Items in a field-level encryption content type-profile mapping.
A field-level encryption content type profile.
The format for a field-level encryption content type-profile mapping.
The profile ID for a field-level encryption content type-profile mapping.
The content type for a field-level encryption content type-profile mapping.
The fully qualified URI of the new configuration resource just created.
The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL
.
Exceptions
CloudFront.Client.exceptions.InconsistentQuantities
CloudFront.Client.exceptions.InvalidArgument
CloudFront.Client.exceptions.NoSuchFieldLevelEncryptionProfile
CloudFront.Client.exceptions.FieldLevelEncryptionConfigAlreadyExists
CloudFront.Client.exceptions.TooManyFieldLevelEncryptionConfigs
CloudFront.Client.exceptions.TooManyFieldLevelEncryptionQueryArgProfiles
CloudFront.Client.exceptions.TooManyFieldLevelEncryptionContentTypeProfiles
CloudFront.Client.exceptions.QueryArgProfileEmpty