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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.data_protection_settings
WHERE
Identifier = '{{ data_protection_settings_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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