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
Idawscc.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.

For more information, see AWS::Connect::ViewVersion.

Methods

NameResourceAccessible byRequired Params
create_resourceview_versionsINSERTViewArn, region
delete_resourceview_versionsDELETEIdentifier, region
list_resourcesview_versions_list_onlySELECTregion
get_resourceview_versionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual view_version.

SELECT
region,
view_arn,
view_version_arn,
version_description,
view_content_sha256,
version
FROM awscc.connect.view_versions
WHERE
region = '{{ region }}' AND
Identifier = '{{ view_version_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.connect.view_versions (
ViewArn,
region
)
SELECT
'{{ view_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.view_versions
WHERE
Identifier = '{{ view_version_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

connect:CreateViewVersion