Skip to main content

user_settings

Creates, updates, deletes or gets an user_setting resource or lists user_settings in a region

Overview

Nameuser_settings
TypeResource
DescriptionDefinition of AWS::WorkSpacesWeb::UserSettings Resource Type
Idaws.workspacesweb.user_settings

Fields

NameDatatypeDescription
additional_encryption_contextobject
associated_portal_arnsarray
cookie_synchronization_configurationobject
copy_allowedstring
customer_managed_keystring
disconnect_timeout_in_minutesnumber
download_allowedstring
idle_disconnect_timeout_in_minutesnumber
paste_allowedstring
print_allowedstring
tagsarray
upload_allowedstring
user_settings_arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTCopyAllowed, DownloadAllowed, PasteAllowed, PrintAllowed, UploadAllowed, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all user_settings in a region.

SELECT
region,
additional_encryption_context,
associated_portal_arns,
cookie_synchronization_configuration,
copy_allowed,
customer_managed_key,
disconnect_timeout_in_minutes,
download_allowed,
idle_disconnect_timeout_in_minutes,
paste_allowed,
print_allowed,
tags,
upload_allowed,
user_settings_arn
FROM aws.workspacesweb.user_settings
WHERE region = 'us-east-1';

Gets all properties from an individual user_setting.

SELECT
region,
additional_encryption_context,
associated_portal_arns,
cookie_synchronization_configuration,
copy_allowed,
customer_managed_key,
disconnect_timeout_in_minutes,
download_allowed,
idle_disconnect_timeout_in_minutes,
paste_allowed,
print_allowed,
tags,
upload_allowed,
user_settings_arn
FROM aws.workspacesweb.user_settings
WHERE region = 'us-east-1' AND data__Identifier = '<UserSettingsArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.workspacesweb.user_settings (
CopyAllowed,
DownloadAllowed,
PasteAllowed,
PrintAllowed,
UploadAllowed,
region
)
SELECT
'{{ CopyAllowed }}',
'{{ DownloadAllowed }}',
'{{ PasteAllowed }}',
'{{ PrintAllowed }}',
'{{ UploadAllowed }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

workspaces-web:CreateUserSettings,
workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Read

workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Update

workspaces-web:UpdateUserSettings,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

Delete

workspaces-web:GetUserSettings,
workspaces-web:DeleteUserSettings,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt

List

workspaces-web:ListUserSettings,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt