asset_versions
Creates, updates, deletes, gets or lists an asset_versions resource.
Overview
| Name | asset_versions |
| Type | Resource |
| Id | aws.devops_agent.asset_versions |
Fields
The following fields are returned by SELECT queries:
- list_asset_versions
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | Timestamp when this asset version was created |
updated_at | string (date-time) | Timestamp when this asset version was last updated |
version | integer | The version number of this asset |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_asset_versions | select | agent_space_id, asset_id, region | maxResults, nextToken | Lists 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.
| Name | Datatype | Description |
|---|---|---|
agent_space_id | string | The unique identifier for the agent space containing the asset |
asset_id | string | The unique identifier of the asset whose versions to list |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return in a single response |
nextToken | string | Pagination token from a previous response to retrieve the next page of results |
SELECT examples
- list_asset_versions
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 }}'
;