BedrockAgentCoreControl / Client / list_dataset_versions
list_dataset_versions¶
- BedrockAgentCoreControl.Client.list_dataset_versions(**kwargs)¶
Lists all published versions of a dataset, sorted by version number descending (newest first). Does not include the DRAFT working copy.
See also: AWS API Documentation
Request Syntax
response = client.list_dataset_versions( datasetId='string', nextToken='string', maxResults=123 )
- Parameters:
datasetId (string) –
[REQUIRED]
The unique identifier of the dataset.
nextToken (string) – The token for the next page of results.
maxResults (integer) – The maximum number of versions to return per page.
- Return type:
dict
- Returns:
Response Syntax
{ 'versions': [ { 'datasetVersion': 'string', 'exampleCount': 123, 'createdAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
versions (list) –
The list of published dataset versions.
(dict) –
Summary information about a published dataset version.
datasetVersion (string) –
The version number of this published snapshot.
exampleCount (integer) –
The number of examples in this version.
createdAt (datetime) –
The timestamp when this version was published.
nextToken (string) –
The token for the next page of results, or null if there are no more results.
Exceptions
BedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException