AgentsforBedrock / Client / list_flows
list_flows#
- AgentsforBedrock.Client.list_flows(**kwargs)#
Returns a list of flows and information about each flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
See also: AWS API Documentation
Request Syntax
response = client.list_flows( maxResults=123, nextToken='string' )
- Parameters:
maxResults (integer) – The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results.nextToken (string) – If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'flowSummaries': [ { 'arn': 'string', 'createdAt': datetime(2015, 1, 1), 'description': 'string', 'id': 'string', 'name': 'string', 'status': 'Failed'|'Prepared'|'Preparing'|'NotPrepared', 'updatedAt': datetime(2015, 1, 1), 'version': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
flowSummaries (list) –
A list, each member of which contains information about a flow.
(dict) –
Contains the definition of a flow.
arn (string) –
The Amazon Resource Name (ARN) of the flow.
createdAt (datetime) –
The time at which the flow was created.
description (string) –
A description of the flow.
id (string) –
The unique identifier of the flow.
name (string) –
The name of the flow.
status (string) –
The status of the flow. The following statuses are possible:
NotPrepared – The flow has been created or updated, but hasn’t been prepared. If you just created the flow, you can’t test it. If you updated the flow, the
DRAFTversion won’t contain the latest changes for testing. Send a PrepareFlow request to package the latest changes into theDRAFTversion.Preparing – The flow is being prepared so that the
DRAFTversion contains the latest changes for testing.Prepared – The flow is prepared and the
DRAFTversion contains the latest changes for testing.Failed – The last API operation that you invoked on the flow failed. Send a GetFlow request and check the error message in the
validationsfield.
updatedAt (datetime) –
The time at which the flow was last updated.
version (string) –
The latest version of the flow.
nextToken (string) –
If the total number of results is greater than the
maxResultsvalue provided in the request, use this token when making another request in thenextTokenfield to return the next batch of results.
Exceptions
AgentsforBedrock.Client.exceptions.ThrottlingExceptionAgentsforBedrock.Client.exceptions.AccessDeniedExceptionAgentsforBedrock.Client.exceptions.ValidationExceptionAgentsforBedrock.Client.exceptions.InternalServerException