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
Idawscc.workspacesweb.user_settings

Fields

NameDatatypeDescription
additional_encryption_contextobject
associated_portal_arnsarray
cookie_synchronization_configurationobject
copy_allowedstring
customer_managed_keystring
disconnect_timeout_in_minutesnumber
idle_disconnect_timeout_in_minutesnumber
tagsarray
toolbar_configurationobject
user_settings_arnstring
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceuser_settingsINSERTCopyAllowed, DownloadAllowed, PasteAllowed, PrintAllowed, UploadAllowed, region
delete_resourceuser_settingsDELETEIdentifier, region
update_resourceuser_settingsUPDATEIdentifier, PatchDocument, region
list_resourcesuser_settings_list_onlySELECTregion
get_resourceuser_settingsSELECTIdentifier, region

SELECT examples

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,
toolbar_configuration,
upload_allowed,
user_settings_arn,
deep_link_allowed
FROM awscc.workspacesweb.user_settings
WHERE
region = 'us-east-1' AND
Identifier = '{{ user_settings_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.workspacesweb.user_settings (
CopyAllowed,
DownloadAllowed,
PasteAllowed,
PrintAllowed,
UploadAllowed,
region
)
SELECT
'{{ copy_allowed }}',
'{{ download_allowed }}',
'{{ paste_allowed }}',
'{{ print_allowed }}',
'{{ upload_allowed }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.workspacesweb.user_settings
SET PatchDocument = string('{{ {
"AdditionalEncryptionContext": additional_encryption_context,
"CookieSynchronizationConfiguration": cookie_synchronization_configuration,
"CopyAllowed": copy_allowed,
"CustomerManagedKey": customer_managed_key,
"DisconnectTimeoutInMinutes": disconnect_timeout_in_minutes,
"DownloadAllowed": download_allowed,
"IdleDisconnectTimeoutInMinutes": idle_disconnect_timeout_in_minutes,
"PasteAllowed": paste_allowed,
"PrintAllowed": print_allowed,
"Tags": tags,
"ToolbarConfiguration": toolbar_configuration,
"UploadAllowed": upload_allowed,
"DeepLinkAllowed": deep_link_allowed
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ user_settings_arn }}';

DELETE example

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

Permissions

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

workspaces-web:CreateUserSettings,
workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt,
kms:GenerateDataKeyWithoutPlaintext,
kms:ReEncryptTo,
kms:ReEncryptFrom