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
Idaws.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

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all data_protection_settings in a region.

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 aws.workspacesweb.data_protection_settings
WHERE region = 'us-east-1';

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 aws.workspacesweb.data_protection_settings
WHERE region = 'us-east-1' AND data__Identifier = '<DataProtectionSettingsArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.workspacesweb.data_protection_settings (
AdditionalEncryptionContext,
CustomerManagedKey,
Description,
DisplayName,
InlineRedactionConfiguration,
Tags,
region
)
SELECT
'{{ AdditionalEncryptionContext }}',
'{{ CustomerManagedKey }}',
'{{ Description }}',
'{{ DisplayName }}',
'{{ InlineRedactionConfiguration }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.workspacesweb.data_protection_settings
WHERE data__Identifier = '<DataProtectionSettingsArn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

workspaces-web:GetDataProtectionSettings,
workspaces-web:ListDataProtectionSettings,
workspaces-web:ListTagsForResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Update

workspaces-web:UpdateDataProtectionSettings,
workspaces-web:GetDataProtectionSettings,
workspaces-web:ListDataProtectionSettings,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:ListTagsForResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Delete

workspaces-web:GetDataProtectionSettings,
workspaces-web:ListDataProtectionSettings,
workspaces-web:DeleteDataProtectionSettings,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

List

workspaces-web:ListDataProtectionSettings,
kms:Decrypt,
kms:DescribeKey