DevOpsAgentService / Paginator / ListAssetVersions
ListAssetVersions¶
- class DevOpsAgentService.Paginator.ListAssetVersions¶
paginator = client.get_paginator('list_asset_versions')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
DevOpsAgentService.Client.list_asset_versions().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( agentSpaceId='string', assetId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier for the agent space containing the asset
assetId (string) –
[REQUIRED]
The unique identifier of the asset whose versions to list
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'version': 123, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Response structure for listing asset versions
items (list) –
The list of version metadata for the asset
(dict) –
Metadata for a single version of an asset, including the version number and timestamps.
version (integer) –
The version number of this asset
createdAt (datetime) –
Timestamp when this asset version was created
updatedAt (datetime) –
Timestamp when this asset version was last updated
NextToken (string) –
A token to resume pagination.