Skip to main content

data_protection_settings

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

Overview

Namedata_protection_settings
TypeResource
Idaws.workspaces_web.data_protection_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
additional_encryption_contextobjectThe additional encryption context of the data protection settings.
associated_portal_arnsarrayA list of web portal ARNs that this data protection settings resource is associated with.
creation_datestring (date-time)The creation date timestamp of the data protection settings.
customer_managed_keystringThe customer managed key used to encrypt sensitive information in the data protection settings. (pattern: <code>arn:[\w+=/,.@-]+:kms:[a-zA-Z0-9-]*:[a-zA-Z0-9]{1,12}:key/[a-zA-Z0-9-]+</code>)
data_protection_settings_arnstringThe ARN of the data protection settings resource. (pattern: <code>arn:[\w+=/,.@-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:[a-zA-Z0-9]{1,12}:[a-zA-Z]+(/[a-fA-F0-9-]{36})+</code>)
descriptionstringThe description of the data protection settings. (pattern: <code>[ _-\d\w]+</code>)
display_namestringThe display name of the data protection settings. (pattern: <code>[ _-\d\w]+</code>)
inline_redaction_configurationobjectThe configuration for in-session inline redaction.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_protection_settingsselectdata_protection_settings_arn, regionGets the data protection settings.
list_data_protection_settingsselectregionnextToken, maxResultsRetrieves a list of data protection settings.
create_data_protection_settingsinsertregionCreates a data protection settings resource that can be associated with a web portal.
associate_data_protection_settingsupdateportal_arn, dataProtectionSettingsArn, regionAssociates a data protection settings resource with a web portal.
disassociate_data_protection_settingsupdateportal_arn, regionDisassociates data protection settings from a web portal.
update_data_protection_settingsupdatedata_protection_settings_arn, regionUpdates data protection settings.
delete_data_protection_settingsdeletedata_protection_settings_arn, regionDeletes data protection settings.

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
dataProtectionSettingsArnstringThe ARN of the data protection settings.
data_protection_settings_arnstringThe ARN of the data protection settings.
portal_arnstringThe ARN of the web portal.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to be included in the next page.
nextTokenstringThe pagination token used to retrieve the next page of results for this operation.

SELECT examples

Gets the data protection settings.

SELECT
additional_encryption_context,
associated_portal_arns,
creation_date,
customer_managed_key,
data_protection_settings_arn,
description,
display_name,
inline_redaction_configuration
FROM aws.workspaces_web.data_protection_settings
WHERE data_protection_settings_arn = '{{ data_protection_settings_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a data protection settings resource that can be associated with a web portal.

INSERT INTO aws.workspaces_web.data_protection_settings (
displayName,
description,
tags,
customerManagedKey,
additionalEncryptionContext,
inlineRedactionConfiguration,
clientToken,
region
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ tags }}',
'{{ customerManagedKey }}',
'{{ additionalEncryptionContext }}',
'{{ inlineRedactionConfiguration }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
data_protection_settings_arn
;

UPDATE examples

Associates a data protection settings resource with a web portal.

UPDATE aws.workspaces_web.data_protection_settings
SET
-- No updatable properties
WHERE
portal_arn = '{{ portal_arn }}' --required
AND dataProtectionSettingsArn = '{{ dataProtectionSettingsArn }}' --required
AND region = '{{ region }}' --required
RETURNING
data_protection_settings_arn,
portal_arn;

DELETE examples

Deletes data protection settings.

DELETE FROM aws.workspaces_web.data_protection_settings
WHERE data_protection_settings_arn = '{{ data_protection_settings_arn }}' --required
AND region = '{{ region }}' --required
;