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

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

DELETE example

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

workspaces:CreateWorkspacesPool,
workspaces:DescribeWorkspacesPools,
workspaces:CreateTags