Skip to main content

data_protection_settings

Creates, updates, deletes or gets a data_protection_setting resource or lists data_protection_settings in a region

Overview

Namedata_protection_settings
TypeResource
DescriptionDefinition of AWS::WorkSpacesWeb::DataProtectionSettings Resource Type
Idawscc.workspacesweb.data_protection_settings

Fields

NameDatatypeDescription
additional_encryption_contextobject
associated_portal_arnsarray
creation_datestring
customer_managed_keystring
data_protection_settings_arnstring
descriptionstring
display_namestring
inline_redaction_configurationobject
tagsarray
regionstringAWS region.

For more information, see AWS::WorkSpacesWeb::DataProtectionSettings.

Methods

NameResourceAccessible byRequired Params
create_resourcedata_protection_settingsINSERTregion
delete_resourcedata_protection_settingsDELETEIdentifier, region
update_resourcedata_protection_settingsUPDATEIdentifier, PatchDocument, region
list_resourcesdata_protection_settings_list_onlySELECTregion
get_resourcedata_protection_settingsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_protection_setting.

SELECT
region,
additional_encryption_context,
associated_portal_arns,
creation_date,
customer_managed_key,
data_protection_settings_arn,
description,
display_name,
inline_redaction_configuration,
tags
FROM awscc.workspacesweb.data_protection_settings
WHERE
region = 'us-east-1' AND
Identifier = '{{ data_protection_settings_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_protection_setting resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.workspacesweb.data_protection_settings (
AdditionalEncryptionContext,
CustomerManagedKey,
Description,
DisplayName,
InlineRedactionConfiguration,
Tags,
region
)
SELECT
'{{ additional_encryption_context }}',
'{{ customer_managed_key }}',
'{{ description }}',
'{{ display_name }}',
'{{ inline_redaction_configuration }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a data_protection_setting resource, using stack-deploy.

/*+ update */
UPDATE awscc.workspacesweb.data_protection_settings
SET PatchDocument = string('{{ {
"Description": description,
"DisplayName": display_name,
"InlineRedactionConfiguration": inline_redaction_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ data_protection_settings_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.data_protection_settings
WHERE
Identifier = '{{ data_protection_settings_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the data_protection_settings resource, the following permissions are required:

workspaces-web:CreateDataProtectionSettings,
workspaces-web:GetDataProtectionSettings,
workspaces-web:ListDataProtectionSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt,
kms:GenerateDataKeyWithoutPlaintext,
kms:ReEncryptTo,
kms:ReEncryptFrom