Skip to main content

volumes

Creates, updates, deletes or gets a volume resource or lists volumes in a region

Overview

Namevolumes
TypeResource
DescriptionResource Type definition for AWS::WorkspacesInstances::Volume - Manages WorkSpaces Volume resources
Idawscc.workspacesinstances.volumes

Fields

NameDatatypeDescription
volume_idstringUnique identifier for the volume
availability_zonestringThe Availability Zone in which to create the volume
encryptedbooleanIndicates whether the volume should be encrypted
iopsintegerThe number of I/O operations per second (IOPS)
kms_key_idstringThe identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption
size_in_gbintegerThe size of the volume, in GiBs
snapshot_idstringThe snapshot from which to create the volume
throughputintegerThe throughput to provision for a volume, with a maximum of 1,000 MiB/s
volume_typestringThe volume type
tag_specificationsarrayThe tags passed to EBS volume
regionstringAWS region.

For more information, see AWS::WorkspacesInstances::Volume.

Methods

NameAccessible byRequired Params
create_resourceINSERTAvailabilityZone, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual volume.

SELECT
region,
volume_id,
availability_zone,
encrypted,
iops,
kms_key_id,
size_in_gb,
snapshot_id,
throughput,
volume_type,
tag_specifications
FROM awscc.workspacesinstances.volumes
WHERE region = 'us-east-1' AND data__Identifier = '<VolumeId>';

INSERT example

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

/*+ create */
INSERT INTO awscc.workspacesinstances.volumes (
AvailabilityZone,
region
)
SELECT
'{{ AvailabilityZone }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesinstances.volumes
WHERE data__Identifier = '<VolumeId>'
AND region = 'us-east-1';

Permissions

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

Create

workspaces-instances:CreateVolume,
ec2:CreateVolume,
ec2:CreateTags

Read

ec2:DescribeVolumes

Delete

workspaces-instances:DeleteVolume,
ec2:DescribeVolumes,
ec2:DeleteVolume

List

ec2:DescribeVolumes