listWorkflows method
Lists all workflows in your account, with optional pagination support. This operation returns summary information for workflows, showing only the most recently created version of each workflow. Amazon Managed Workflows for Apache Airflow Serverless maintains workflow metadata in a highly available, distributed storage system that enables efficient querying and filtering. The service implements proper access controls to ensure you can only view workflows that you have permissions to access, supporting both individual and team-based workflow management scenarios.
May throw AccessDeniedException.
May throw InternalServerException.
May throw OperationTimeoutException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of workflows you want to return in a single response.
Parameter nextToken :
The pagination token you need to use to retrieve the next set of results.
This value is returned from a previous call to ListWorkflows.
Implementation
Future<ListWorkflowsResponse> listWorkflows({
int? maxResults,
String? nextToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AmazonMWAAServerless.ListWorkflows'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListWorkflowsResponse.fromJson(jsonResponse.body);
}