Skip to main content

asset_versions

Creates, updates, deletes, gets or lists an asset_versions resource.

Overview

Nameasset_versions
TypeResource
Idaws.devops_agent.asset_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)Timestamp when this asset version was created
updated_atstring (date-time)Timestamp when this asset version was last updated
versionintegerThe version number of this asset

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_asset_versionsselectagent_space_id, asset_id, regionmaxResults, nextTokenLists versions of an asset in the specified agent space

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
agent_space_idstringThe unique identifier for the agent space containing the asset
asset_idstringThe unique identifier of the asset whose versions to list
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in a single response
nextTokenstringPagination token from a previous response to retrieve the next page of results

SELECT examples

Lists versions of an asset in the specified agent space

SELECT
created_at,
updated_at,
version
FROM aws.devops_agent.asset_versions
WHERE agent_space_id = '{{ agent_space_id }}' -- required
AND asset_id = '{{ asset_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;