view_versions
Creates, updates, deletes or gets a view_version
resource or lists view_versions
in a region
Overview
Name | view_versions |
Type | Resource |
Description | Resource Type definition for AWS::Connect::ViewVersion |
Id | aws.connect.view_versions |
Fields
Name | Datatype | Description |
---|---|---|
view_arn | string | The Amazon Resource Name (ARN) of the view for which a version is being created. |
view_version_arn | string | The Amazon Resource Name (ARN) of the created view version. |
version_description | string | The description for the view version. |
view_content_sha256 | string | The view content hash to be checked. |
version | integer | The version of the view. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ViewArn, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.connect.view_versions (
ViewArn,
region
)
SELECT
'{{ ViewArn }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.connect.view_versions (
ViewArn,
VersionDescription,
ViewContentSha256,
region
)
SELECT
'{{ ViewArn }}',
'{{ VersionDescription }}',
'{{ ViewContentSha256 }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: view_version
props:
- name: ViewArn
value: '{{ ViewArn }}'
- name: VersionDescription
value: '{{ VersionDescription }}'
- name: ViewContentSha256
value: '{{ ViewContentSha256 }}'
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