Skip to main content

field_level_encryption_profiles

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

Overview

Namefield_level_encryption_profiles
TypeResource
Idaws.cloudfront.field_level_encryption_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
field_level_encryption_profile_configstringA complex data type that includes the profile name and the encryption entities for the field-level encryption profile.
idstringThe ID for a field-level encryption profile configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.
last_modified_timestringThe last time the field-level encryption profile was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_field_level_encryption_profileselectid, regionGet the field-level encryption profile information.
list_field_level_encryption_profilesselectregionMarker, MaxItemsRequest a list of field-level encryption profiles that have been created in CloudFront for this account.
create_field_level_encryption_profileinsertregion, FieldLevelEncryptionProfileConfigCreate a field-level encryption profile.
update_field_level_encryption_profileupdateid, region, FieldLevelEncryptionProfileConfigIf-MatchUpdate a field-level encryption profile.
delete_field_level_encryption_profiledeleteid, regionIf-MatchRemove a field-level encryption profile.

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
idstringRequest the ID of the profile 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 profile to delete. For example: E2QWRUHAPOMQZL.
MarkerstringUse this when paginating results to indicate where to begin in your list of profiles. The results include profiles 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 profile on that page).
MaxItemsstringThe maximum number of field-level encryption profiles you want in the response body.

SELECT examples

Get the field-level encryption profile information.

SELECT
field_level_encryption_profile_config,
id,
last_modified_time
FROM aws.cloudfront.field_level_encryption_profiles
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a field-level encryption profile.

INSERT INTO aws.cloudfront.field_level_encryption_profiles (
FieldLevelEncryptionProfileConfig,
region
)
SELECT
'{{ FieldLevelEncryptionProfileConfig }}' /* required */,
'{{ region }}'
RETURNING
field_level_encryption_profile_config,
id,
last_modified_time
;

UPDATE examples

Update a field-level encryption profile.

UPDATE aws.cloudfront.field_level_encryption_profiles
SET
FieldLevelEncryptionProfileConfig = '{{ FieldLevelEncryptionProfileConfig }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND FieldLevelEncryptionProfileConfig = '{{ FieldLevelEncryptionProfileConfig }}' --required
AND `If-Match` = '{{ If-Match}}'
RETURNING
field_level_encryption_profile_config,
id,
last_modified_time;

DELETE examples

Remove a field-level encryption profile.

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