BedrockAgentCoreControl / Client / list_datasets
list_datasets¶
- BedrockAgentCoreControl.Client.list_datasets(**kwargs)¶
Lists all datasets in the caller’s account, paginated. No presigned URLs in list results.
See also: AWS API Documentation
Request Syntax
response = client.list_datasets( nextToken='string', maxResults=123 )
- Parameters:
nextToken (string) – The token for the next page of results.
maxResults (integer) – The maximum number of datasets to return per page.
- Return type:
dict
- Returns:
Response Syntax
{ 'datasets': [ { 'datasetArn': 'string', 'datasetId': 'string', 'datasetName': 'string', 'description': 'string', 'status': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED', 'draftStatus': 'MODIFIED'|'UNMODIFIED', 'schemaType': 'AGENTCORE_EVALUATION_PREDEFINED_V1'|'AGENTCORE_EVALUATION_SIMULATED_V1', 'exampleCount': 123, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
datasets (list) –
The list of datasets.
(dict) –
Summary information about a dataset.
datasetArn (string) –
The Amazon Resource Name (ARN) of the dataset.
datasetId (string) –
The unique identifier of the dataset.
datasetName (string) –
The name of the dataset.
description (string) –
The description of the dataset.
status (string) –
The current status of the dataset.
draftStatus (string) –
Publish synchronization state. Only authoritative when status == ACTIVE.
schemaType (string) –
The schema type of the dataset.
exampleCount (integer) –
The number of examples in the dataset.
createdAt (datetime) –
The timestamp when the dataset was created.
updatedAt (datetime) –
The timestamp when the dataset was last updated.
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.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException