Skip to main content

field_level_encryption_configs

Creates, updates, deletes, gets or lists a field_level_encryption_configs resource.

Overview​

Namefield_level_encryption_configs
TypeResource
Idaws.cloudfront.field_level_encryption_configs

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
caller_referencestringA unique number that ensures the request can't be replayed.
commentstringAn optional comment about the configuration. The comment cannot be longer than 128 characters.
content_type_profile_configstringA 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.
query_arg_profile_configstringA 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.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_field_level_encryption_configselectid, regionGet the field-level encryption configuration information.
list_field_level_encryption_configsselectregionMarker, MaxItemsList all field-level encryption configurations that have been created in CloudFront for this account.
create_field_level_encryption_configinsertregion, FieldLevelEncryptionConfigCreate a new field-level encryption configuration.
update_field_level_encryption_configupdateid, region, FieldLevelEncryptionConfigIf-MatchUpdate a field-level encryption configuration.
delete_field_level_encryption_configdeleteid, regionIf-MatchRemove a field-level encryption configuration.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the configuration you want to delete from CloudFront.
regionstringAWS region (default: us-east-1)
If-MatchstringThe value of the ETag header that you received when retrieving the configuration identity to delete. For example: E2QWRUHAPOMQZL.
MarkerstringUse this when paginating results to indicate where to begin in your list of configurations. The results include configurations in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last configuration on that page).
MaxItemsstringThe maximum number of field-level encryption configurations you want in the response body.

SELECT examples​

Get the field-level encryption configuration information.

SELECT
caller_reference,
comment,
content_type_profile_config,
query_arg_profile_config
FROM aws.cloudfront.field_level_encryption_configs
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Create a new field-level encryption configuration.

INSERT INTO aws.cloudfront.field_level_encryption_configs (
FieldLevelEncryptionConfig,
region
)
SELECT
'{{ FieldLevelEncryptionConfig }}' /* required */,
'{{ region }}'
RETURNING
e_tag,
field_level_encryption,
location
;

UPDATE examples​

Update a field-level encryption configuration.

UPDATE aws.cloudfront.field_level_encryption_configs
SET
FieldLevelEncryptionConfig = '{{ FieldLevelEncryptionConfig }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND FieldLevelEncryptionConfig = '{{ FieldLevelEncryptionConfig }}' --required
AND `If-Match` = '{{ If-Match}}'
RETURNING
e_tag,
field_level_encryption;

DELETE examples​

Remove a field-level encryption configuration.

DELETE FROM aws.cloudfront.field_level_encryption_configs
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND `If-Match` = '{{ If-Match }}'
;