Skip to main content

workspace_bundles

Creates, updates, deletes, gets or lists a workspace_bundles resource.

Overview

Nameworkspace_bundles
TypeResource
Idaws.workspaces.workspace_bundles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bundle_idstringThe identifier of the bundle. (pattern: <code>^wsb-[0-9a-z]{8,63}$</code>)
bundle_typestringThe type of WorkSpace bundle. (REGULAR, STANDBY)
compute_typeobjectDescribes the compute type of the bundle.
creation_timestring (date-time)The time when the bundle was created.
descriptionstringThe description of the bundle.
image_idstringThe identifier of the image that was used to create the bundle. (pattern: <code>wsi-[0-9a-z]{9,63}$</code>)
last_updated_timestring (date-time)The last time that the bundle was updated.
namestringThe name of the bundle.
ownerstringThe owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is provided by Amazon Web Services.
root_storageobjectDescribes the root volume for a WorkSpace bundle.
statestringThe state of the WorkSpace bundle. (AVAILABLE, PENDING, ERROR)
user_storageobjectDescribes the user volume for a WorkSpace bundle.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_workspace_bundlesselectregionRetrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both.
create_workspace_bundleinsertregion, BundleName, BundleDescription, ImageId, ComputeType, UserStorageCreates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle.
update_workspace_bundleupdateregionUpdates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle. Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them.
delete_workspace_bundledeleteregionDeletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both.

SELECT
bundle_id,
bundle_type,
compute_type,
creation_time,
description,
image_id,
last_updated_time,
name,
owner,
root_storage,
state,
user_storage
FROM aws.workspaces.workspace_bundles
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle.

INSERT INTO aws.workspaces.workspace_bundles (
BundleName,
BundleDescription,
ImageId,
ComputeType,
UserStorage,
RootStorage,
Tags,
region
)
SELECT
'{{ BundleName }}' /* required */,
'{{ BundleDescription }}' /* required */,
'{{ ImageId }}' /* required */,
'{{ ComputeType }}' /* required */,
'{{ UserStorage }}' /* required */,
'{{ RootStorage }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
workspace_bundle
;

UPDATE examples

Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle. Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them.

UPDATE aws.workspaces.workspace_bundles
SET
BundleId = '{{ BundleId }}',
ImageId = '{{ ImageId }}'
WHERE
region = '{{ region }}' --required;

DELETE examples

Deletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image.

DELETE FROM aws.workspaces.workspace_bundles
WHERE region = '{{ region }}' --required
;