user_settings
Creates, updates, deletes or gets an user_setting resource or lists user_settings in a region
Overview
| Name | user_settings |
| Type | Resource |
| Description | Definition of AWS::WorkSpacesWeb::UserSettings Resource Type |
| Id | awscc.workspacesweb.user_settings |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
additional_encryption_context | object | |
associated_portal_arns | array | |
cookie_synchronization_configuration | object | |
copy_allowed | string | |
customer_managed_key | string | |
disconnect_timeout_in_minutes | number | |
idle_disconnect_timeout_in_minutes | number | |
tags | array | |
toolbar_configuration | object | |
user_settings_arn | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
user_settings_arn | string | |
region | string | AWS region. |
For more information, see AWS::WorkSpacesWeb::UserSettings.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | user_settings | INSERT | CopyAllowed, DownloadAllowed, PasteAllowed, PrintAllowed, UploadAllowed, region |
delete_resource | user_settings | DELETE | Identifier, region |
update_resource | user_settings | UPDATE | Identifier, PatchDocument, region |
list_resources | user_settings_list_only | SELECT | region |
get_resource | user_settings | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all user_settings in a region.
SELECT
region,
user_settings_arn
FROM awscc.workspacesweb.user_settings_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new user_setting resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ 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 }}';
/*+ create */
INSERT INTO awscc.workspacesweb.user_settings (
AdditionalEncryptionContext,
CookieSynchronizationConfiguration,
CopyAllowed,
CustomerManagedKey,
DisconnectTimeoutInMinutes,
DownloadAllowed,
IdleDisconnectTimeoutInMinutes,
PasteAllowed,
PrintAllowed,
Tags,
ToolbarConfiguration,
UploadAllowed,
DeepLinkAllowed,
region
)
SELECT
'{{ additional_encryption_context }}',
'{{ 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 }}',
'{{ deep_link_allowed }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: user_setting
props:
- name: additional_encryption_context
value: {}
- name: cookie_synchronization_configuration
value:
allowlist:
- domain: '{{ domain }}'
name: '{{ name }}'
path: '{{ path }}'
blocklist:
- null
- name: copy_allowed
value: '{{ copy_allowed }}'
- name: customer_managed_key
value: '{{ customer_managed_key }}'
- name: disconnect_timeout_in_minutes
value: null
- name: download_allowed
value: null
- name: idle_disconnect_timeout_in_minutes
value: null
- name: paste_allowed
value: null
- name: print_allowed
value: null
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: toolbar_configuration
value:
toolbar_type: '{{ toolbar_type }}'
visual_mode: '{{ visual_mode }}'
hidden_toolbar_items:
- '{{ hidden_toolbar_items[0] }}'
max_display_resolution: '{{ max_display_resolution }}'
- name: upload_allowed
value: null
- name: deep_link_allowed
value: null
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:
- Create
- Read
- Update
- Delete
- List
workspaces-web:CreateUserSettings,
workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt,
kms:GenerateDataKeyWithoutPlaintext,
kms:ReEncryptTo,
kms:ReEncryptFrom
workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
workspaces-web:UpdateUserSettings,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetUserSettings,
workspaces-web:ListTagsForResource,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
workspaces-web:GetUserSettings,
workspaces-web:DeleteUserSettings,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt
workspaces-web:ListUserSettings,
kms:CreateGrant,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt