Skip to main content

view_versions

Creates, updates, deletes or gets a view_version resource or lists view_versions in a region

Overview

Nameview_versions
TypeResource
DescriptionResource Type definition for AWS::Connect::ViewVersion
Idaws.connect.view_versions

Fields

NameDatatypeDescription
view_arnstringThe Amazon Resource Name (ARN) of the view for which a version is being created.
view_version_arnstringThe Amazon Resource Name (ARN) of the created view version.
version_descriptionstringThe description for the view version.
view_content_sha256stringThe view content hash to be checked.
versionintegerThe version of the view.
regionstringAWS region.

Methods

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

SELECT examples

Gets all view_versions in a region.

SELECT
region,
view_arn,
view_version_arn,
version_description,
view_content_sha256,
version
FROM aws.connect.view_versions
WHERE region = 'us-east-1';

Gets all properties from an individual view_version.

SELECT
region,
view_arn,
view_version_arn,
version_description,
view_content_sha256,
version
FROM aws.connect.view_versions
WHERE region = 'us-east-1' AND data__Identifier = '<ViewVersionArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.view_versions (
ViewArn,
region
)
SELECT
'{{ ViewArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.view_versions
WHERE data__Identifier = '<ViewVersionArn>'
AND region = 'us-east-1';

Permissions

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

Create

connect:CreateViewVersion

Read

connect:DescribeView

List

connect:ListViewVersions

Delete

connect:DeleteViewVersion