Skip to main content

workspaces_pools

Creates, updates, deletes or gets a workspaces_pool resource or lists workspaces_pools in a region

Overview

Nameworkspaces_pools
TypeResource
DescriptionResource Type definition for AWS::WorkSpaces::WorkspacesPool
Idawscc.workspaces.workspaces_pools

Fields

NameDatatypeDescription
pool_idstring
pool_arnstring
capacityobject
pool_namestring
descriptionstring
created_atstring
bundle_idstring
directory_idstring
application_settingsobject
timeout_settingsobject
running_modestring
tagsarray
regionstringAWS region.

For more information, see AWS::WorkSpaces::WorkspacesPool.

Methods

NameResourceAccessible byRequired Params
create_resourceworkspaces_poolsINSERTPoolName, BundleId, DirectoryId, Capacity, region
delete_resourceworkspaces_poolsDELETEIdentifier, region
update_resourceworkspaces_poolsUPDATEIdentifier, PatchDocument, region
list_resourcesworkspaces_pools_list_onlySELECTregion
get_resourceworkspaces_poolsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual workspaces_pool.

SELECT
region,
pool_id,
pool_arn,
capacity,
pool_name,
description,
created_at,
bundle_id,
directory_id,
application_settings,
timeout_settings,
running_mode,
tags
FROM awscc.workspaces.workspaces_pools
WHERE
region = 'us-east-1' AND
Identifier = '{{ pool_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.workspaces.workspaces_pools (
Capacity,
PoolName,
BundleId,
DirectoryId,
region
)
SELECT
'{{ capacity }}',
'{{ pool_name }}',
'{{ bundle_id }}',
'{{ directory_id }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.workspaces.workspaces_pools
SET PatchDocument = string('{{ {
"Capacity": capacity,
"Description": description,
"BundleId": bundle_id,
"DirectoryId": directory_id,
"ApplicationSettings": application_settings,
"TimeoutSettings": timeout_settings,
"RunningMode": running_mode,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ pool_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.workspaces.workspaces_pools
WHERE
Identifier = '{{ pool_id }}' AND
region = 'us-east-1';

Permissions

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

workspaces:CreateWorkspacesPool,
workspaces:DescribeWorkspacesPools,
workspaces:CreateTags