CloudFront / Client / get_field_level_encryption_config

get_field_level_encryption_config#

CloudFront.Client.get_field_level_encryption_config(**kwargs)#

Get the field-level encryption configuration information.

See also: AWS API Documentation

Request Syntax

response = client.get_field_level_encryption_config(
    Id='string'
)
Parameters:

Id (string) –

[REQUIRED]

Request the ID for the field-level encryption configuration information.

Return type:

dict

Returns:

Response Syntax

{
    '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'
                    },
                ]
            }
        }
    },
    'ETag': 'string'
}

Response Structure

  • (dict) –

    • FieldLevelEncryptionConfig (dict) –

      Return the field-level encryption configuration information.

      • CallerReference (string) –

        A unique number that ensures the request can’t be replayed.

      • Comment (string) –

        An optional comment about the configuration. The comment cannot be longer than 128 characters.

      • QueryArgProfileConfig (dict) –

        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.

        • ForwardWhenQueryArgProfileIsUnknown (boolean) –

          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.

        • QueryArgProfiles (dict) –

          Profiles specified for query argument-profile mapping for field-level encryption.

          • Quantity (integer) –

            Number of profiles for query argument-profile mapping for field-level encryption.

          • Items (list) –

            Number of items for query argument-profile mapping for field-level encryption.

            • (dict) –

              Query argument-profile mapping for field-level encryption.

              • QueryArg (string) –

                Query argument for field-level encryption query argument-profile mapping.

              • ProfileId (string) –

                ID of profile to use for field-level encryption query argument-profile mapping

      • ContentTypeProfileConfig (dict) –

        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.

        • ForwardWhenContentTypeIsUnknown (boolean) –

          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.

        • ContentTypeProfiles (dict) –

          The configuration for a field-level encryption content type-profile.

          • Quantity (integer) –

            The number of field-level encryption content type-profile mappings.

          • Items (list) –

            Items in a field-level encryption content type-profile mapping.

            • (dict) –

              A field-level encryption content type profile.

              • Format (string) –

                The format for a field-level encryption content type-profile mapping.

              • ProfileId (string) –

                The profile ID for a field-level encryption content type-profile mapping.

              • ContentType (string) –

                The content type for a field-level encryption content type-profile mapping.

    • ETag (string) –

      The current version of the field level encryption configuration. For example: E2QWRUHAPOMQZL.

Exceptions