list_executions
async
¶
list_executions(
workflow_id: WorkflowId,
*,
config_overrides: Optional[AsyncTransferClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListExecutionsResponse
Lists all in-progress executions for the specified workflow.
If the specified workflow ID cannot be found, ListExecutions returns a ResourceNotFound exception.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return.
-
next_token(Optional[NextToken], default:None) –ListExecutionsreturns theNextTokenparameter in the output. You can then pass theNextTokenparameter in a subsequent command to continue listing additional executions.This is useful for pagination, for instance. If you have 100 executions for a workflow, you might only want to list first 10. If so, call the API by specifying the
max-results:aws transfer list-executions --max-results 10This returns details for the first 10 executions, as well as the pointer (
NextToken) to the eleventh execution. You can now call the API again, supplying theNextTokenvalue you received:aws transfer list-executions --max-results 10 --next-token $somePointerReturnedFromPreviousListResultThis call returns the next 10 executions, the 11th through the 20th. You can then repeat the call until the details for all 100 executions have been returned.
-
workflow_id(WorkflowId) –A unique identifier for the workflow.
Raises:
-
InternalServiceError–This exception is thrown when an error occurs in the Transfer Family service.
-
InvalidNextTokenException–The
NextTokenparameter that was passed is invalid. -
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
ResourceNotFoundException–This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.
-
ServiceUnavailableException–The request has failed because the Amazon Web ServicesTransfer Family service is not available.
-
UnknownServiceError–The service returned an error code this client does not model.