Skip to main content

encryption_configs

Creates, updates, deletes, gets or lists an encryption_configs resource.

Overview

Nameencryption_configs
TypeResource
Idaws.xray.encryption_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
key_idstringThe ID of the KMS key used for encryption, if applicable.
statusstringThe encryption status. While the status is UPDATING, X-Ray may encrypt data with a combination of the new and old settings. (UPDATING, ACTIVE)
typestringThe type of encryption. Set to KMS for encryption with KMS keys. Set to NONE for default encryption. (NONE, KMS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_encryption_configselectregionRetrieves the current encryption configuration for X-Ray data.
put_encryption_configreplaceregion, TypeUpdates the encryption configuration for X-Ray data.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the current encryption configuration for X-Ray data.

SELECT
key_id,
status,
type
FROM aws.xray.encryption_configs
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Updates the encryption configuration for X-Ray data.

REPLACE aws.xray.encryption_configs
SET
KeyId = '{{ KeyId }}',
Type = '{{ Type }}'
WHERE
region = '{{ region }}' --required
AND Type = '{{ Type }}' --required
RETURNING
encryption_config;