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
Idaws.workspaces.workspaces_pools

Fields

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

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

Methods

NameAccessible byRequired Params
create_resourceINSERTPoolName, BundleId, DirectoryId, Capacity, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all workspaces_pools in a region.

SELECT
region,
pool_id,
pool_arn,
capacity,
pool_name,
description,
created_at,
bundle_id,
directory_id,
application_settings,
timeout_settings,
tags
FROM aws.workspaces.workspaces_pools
WHERE region = 'us-east-1';

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,
tags
FROM aws.workspaces.workspaces_pools
WHERE region = 'us-east-1' AND data__Identifier = '<PoolId>';

INSERT example

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

/*+ create */
INSERT INTO aws.workspaces.workspaces_pools (
Capacity,
PoolName,
BundleId,
DirectoryId,
region
)
SELECT
'{{ Capacity }}',
'{{ PoolName }}',
'{{ BundleId }}',
'{{ DirectoryId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.workspaces.workspaces_pools
WHERE data__Identifier = '<PoolId>'
AND region = 'us-east-1';

Permissions

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

Create

workspaces:CreateWorkspacesPool,
workspaces:DescribeWorkspacesPools

Read

workspaces:DescribeWorkspacesPools

Update

workspaces:UpdateWorkspacesPool

Delete

workspaces:DescribeWorkspacesPools,
workspaces:TerminateWorkspacesPool

List

workspaces:DescribeWorkspacesPools