Skip to main content

browser_settings

Creates, updates, deletes or gets a browser_setting resource or lists browser_settings in a region

Overview

Namebrowser_settings
TypeResource
DescriptionDefinition of AWS::WorkSpacesWeb::BrowserSettings Resource Type
Idawscc.workspacesweb.browser_settings

Fields

NameDatatypeDescription
additional_encryption_contextobject
associated_portal_arnsarray
browser_policystring
browser_settings_arnstring
customer_managed_keystring
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcebrowser_settingsINSERTregion
delete_resourcebrowser_settingsDELETEIdentifier, region
update_resourcebrowser_settingsUPDATEIdentifier, PatchDocument, region
list_resourcesbrowser_settings_list_onlySELECTregion
get_resourcebrowser_settingsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual browser_setting.

SELECT
region,
additional_encryption_context,
associated_portal_arns,
browser_policy,
browser_settings_arn,
customer_managed_key,
tags
FROM awscc.workspacesweb.browser_settings
WHERE
region = '{{ region }}' AND
Identifier = '{{ browser_settings_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.workspacesweb.browser_settings (
AdditionalEncryptionContext,
BrowserPolicy,
CustomerManagedKey,
Tags,
region
)
SELECT
'{{ additional_encryption_context }}',
'{{ browser_policy }}',
'{{ customer_managed_key }}',
'{{ 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 browser_setting resource, using stack-deploy.

/*+ update */
UPDATE awscc.workspacesweb.browser_settings
SET PatchDocument = string('{{ {
"BrowserPolicy": browser_policy,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ browser_settings_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.browser_settings
WHERE
Identifier = '{{ browser_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 browser_settings resource, the following permissions are required:

workspaces-web:CreateBrowserSettings,
workspaces-web:GetBrowserSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource,
kms:DescribeKey,
kms:GenerateDataKey,
kms:Decrypt,
kms:GenerateDataKeyWithoutPlaintext,
kms:ReEncryptTo,
kms:ReEncryptFrom