workspaces_pools
Creates, updates, deletes or gets a workspaces_pool resource or lists workspaces_pools in a region
Overview
| Name | workspaces_pools |
| Type | Resource |
| Description | Resource Type definition for AWS::WorkSpaces::WorkspacesPool |
| Id | awscc.workspaces.workspaces_pools |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
pool_id | string | |
pool_arn | string | |
capacity | object | |
pool_name | string | |
description | string | |
created_at | string | |
bundle_id | string | |
directory_id | string | |
application_settings | object | |
timeout_settings | object | |
running_mode | string | |
tags | array | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
pool_id | string | |
region | string | AWS region. |
For more information, see AWS::WorkSpaces::WorkspacesPool.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | workspaces_pools | INSERT | PoolName, BundleId, DirectoryId, Capacity, region |
delete_resource | workspaces_pools | DELETE | Identifier, region |
update_resource | workspaces_pools | UPDATE | Identifier, PatchDocument, region |
list_resources | workspaces_pools_list_only | SELECT | region |
get_resource | workspaces_pools | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 }}';
Lists all workspaces_pools in a region.
SELECT
region,
pool_id
FROM awscc.workspaces.workspaces_pools_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new workspaces_pool resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.workspaces.workspaces_pools (
Capacity,
PoolName,
BundleId,
DirectoryId,
region
)
SELECT
'{{ capacity }}',
'{{ pool_name }}',
'{{ bundle_id }}',
'{{ directory_id }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.workspaces.workspaces_pools (
Capacity,
PoolName,
Description,
BundleId,
DirectoryId,
ApplicationSettings,
TimeoutSettings,
RunningMode,
Tags,
region
)
SELECT
'{{ capacity }}',
'{{ pool_name }}',
'{{ description }}',
'{{ bundle_id }}',
'{{ directory_id }}',
'{{ application_settings }}',
'{{ timeout_settings }}',
'{{ running_mode }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: workspaces_pool
props:
- name: capacity
value:
desired_user_sessions: '{{ desired_user_sessions }}'
- name: pool_name
value: '{{ pool_name }}'
- name: description
value: '{{ description }}'
- name: bundle_id
value: '{{ bundle_id }}'
- name: directory_id
value: '{{ directory_id }}'
- name: application_settings
value:
status: '{{ status }}'
settings_group: '{{ settings_group }}'
- name: timeout_settings
value:
disconnect_timeout_in_seconds: '{{ disconnect_timeout_in_seconds }}'
idle_disconnect_timeout_in_seconds: '{{ idle_disconnect_timeout_in_seconds }}'
max_user_duration_in_seconds: '{{ max_user_duration_in_seconds }}'
- name: running_mode
value: '{{ running_mode }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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:
- Create
- Read
- Update
- Delete
- List
workspaces:CreateWorkspacesPool,
workspaces:DescribeWorkspacesPools,
workspaces:CreateTags
workspaces:DescribeWorkspacesPools,
workspaces:DescribeTags
workspaces:UpdateWorkspacesPool,
workspaces:CreateTags,
workspaces:DeleteTags,
workspaces:DescribeWorkspacesPools,
workspaces:DescribeTags
workspaces:DescribeWorkspacesPools,
workspaces:TerminateWorkspacesPool,
workspaces:DeleteTags
workspaces:DescribeWorkspacesPools,
workspaces:DescribeTags