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

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

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.user_settings
WHERE
Identifier = '{{ user_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 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