Skip to main content

view_versions

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

Overview​

Nameview_versions
TypeResource
Idaws.connect.view_versions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the view version.
descriptionstringThe description of the view version. (pattern: <code>^([\p{L}\p{N}.:/=+-@,()']+[\p{L}\p{Z}\p{N}.:/=+-@,()']*)$</code>)
idstringThe identifier of the view version. (pattern: <code>^[a-zA-Z0-9_-:/$]+$</code>)
namestringThe name of the view version. (pattern: <code>^([\p{L}\p{N}.:/=+-@()']+[\p{L}\p{Z}\p{N}.:/=+-@()']*)$</code>)
typestringThe type of the view version. (CUSTOMER_MANAGED, AWS_MANAGED)
versionintegerThe sequentially incremented version of the view version.
version_descriptionstringThe description of the view version. (pattern: <code>^([\p{L}\p{N}.:/=+-@,()']+[\p{L}\p{Z}\p{N}.:/=+-@,()']*)$</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_view_versionsselectinstance_id, view_id, regionnextToken, maxResultsReturns all the available versions for the specified Connect Customer instance and view identifier. Results will be sorted from highest to lowest.
create_view_versioninsertinstance_id, view_id, regionPublishes a new version of the view identifier. Versions are immutable and monotonically increasing. It returns the highest version if there is no change in content compared to that version. An error is displayed if the supplied ViewContentSha256 is different from the ViewContentSha256 of the $LATEST alias.
delete_view_versiondeleteinstance_id, view_id, view_version, regionDeletes the particular version specified in ViewVersion identifier.

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
instance_idstringThe identifier of the Connect Customer instance. You can find the instanceId in the ARN of the instance.
regionstringAWS region (default: us-east-1)
view_idstringThe identifier of the view. Both ViewArn and ViewId can be used.
view_versionintegerThe version number of the view.
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples​

Returns all the available versions for the specified Connect Customer instance and view identifier. Results will be sorted from highest to lowest.

SELECT
arn,
description,
id,
name,
type,
version,
version_description
FROM aws.connect.view_versions
WHERE instance_id = '{{ instance_id }}' -- required
AND view_id = '{{ view_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples​

Publishes a new version of the view identifier. Versions are immutable and monotonically increasing. It returns the highest version if there is no change in content compared to that version. An error is displayed if the supplied ViewContentSha256 is different from the ViewContentSha256 of the $LATEST alias.

INSERT INTO aws.connect.view_versions (
VersionDescription,
ViewContentSha256,
instance_id,
view_id,
region
)
SELECT
'{{ VersionDescription }}',
'{{ ViewContentSha256 }}',
'{{ instance_id }}',
'{{ view_id }}',
'{{ region }}'
RETURNING
view
;

DELETE examples​

Deletes the particular version specified in ViewVersion identifier.

DELETE FROM aws.connect.view_versions
WHERE instance_id = '{{ instance_id }}' --required
AND view_id = '{{ view_id }}' --required
AND view_version = '{{ view_version }}' --required
AND region = '{{ region }}' --required
;