| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Transfer.ListExecutions
Description
Lists all executions for the specified workflow.
This operation returns paginated results.
Synopsis
- data ListExecutions = ListExecutions' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- workflowId :: Text
- newListExecutions :: Text -> ListExecutions
- listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural)
- listExecutions_nextToken :: Lens' ListExecutions (Maybe Text)
- listExecutions_workflowId :: Lens' ListExecutions Text
- data ListExecutionsResponse = ListExecutionsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- workflowId :: Text
- executions :: [ListedExecution]
- newListExecutionsResponse :: Int -> Text -> ListExecutionsResponse
- listExecutionsResponse_nextToken :: Lens' ListExecutionsResponse (Maybe Text)
- listExecutionsResponse_httpStatus :: Lens' ListExecutionsResponse Int
- listExecutionsResponse_workflowId :: Lens' ListExecutionsResponse Text
- listExecutionsResponse_executions :: Lens' ListExecutionsResponse [ListedExecution]
Creating a Request
data ListExecutions Source #
See: newListExecutions smart constructor.
Constructors
| ListExecutions' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListExecutions |
Create a value of ListExecutions with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:ListExecutions', listExecutions_maxResults - Specifies the maximum number of executions to return.
ListExecutions, listExecutions_nextToken - ListExecutions returns the NextToken parameter in the output. You
can then pass the NextToken parameter 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 10
This 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 the NextToken value you received:
aws transfer list-executions --max-results 10 --next-token $somePointerReturnedFromPreviousListResult
This 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.
ListExecutions, listExecutions_workflowId - A unique identifier for the workflow.
Request Lenses
listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural) Source #
Specifies the maximum number of executions to return.
listExecutions_nextToken :: Lens' ListExecutions (Maybe Text) Source #
ListExecutions returns the NextToken parameter in the output. You
can then pass the NextToken parameter 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 10
This 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 the NextToken value you received:
aws transfer list-executions --max-results 10 --next-token $somePointerReturnedFromPreviousListResult
This 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.
listExecutions_workflowId :: Lens' ListExecutions Text Source #
A unique identifier for the workflow.
Destructuring the Response
data ListExecutionsResponse Source #
See: newListExecutionsResponse smart constructor.
Constructors
| ListExecutionsResponse' | |
Fields
| |
Instances
newListExecutionsResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> ListExecutionsResponse |
Create a value of ListExecutionsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListExecutions, listExecutionsResponse_nextToken - ListExecutions returns the NextToken parameter in the output. You
can then pass the NextToken parameter in a subsequent command to
continue listing additional executions.
$sel:httpStatus:ListExecutionsResponse', listExecutionsResponse_httpStatus - The response's http status code.
ListExecutions, listExecutionsResponse_workflowId - A unique identifier for the workflow.
$sel:executions:ListExecutionsResponse', listExecutionsResponse_executions - Returns the details for each execution.
- NextToken: returned from a call to several APIs, you can use pass it to a subsequent command to continue listing additional executions.
- StartTime: timestamp indicating when the execution began.
- Executions: details of the execution, including the execution ID, initial file location, and Service metadata.
- Status: one of the following values:
IN_PROGRESS,COMPLETED,EXCEPTION,HANDLING_EXEPTION.
Response Lenses
listExecutionsResponse_nextToken :: Lens' ListExecutionsResponse (Maybe Text) Source #
ListExecutions returns the NextToken parameter in the output. You
can then pass the NextToken parameter in a subsequent command to
continue listing additional executions.
listExecutionsResponse_httpStatus :: Lens' ListExecutionsResponse Int Source #
The response's http status code.
listExecutionsResponse_workflowId :: Lens' ListExecutionsResponse Text Source #
A unique identifier for the workflow.
listExecutionsResponse_executions :: Lens' ListExecutionsResponse [ListedExecution] Source #
Returns the details for each execution.
- NextToken: returned from a call to several APIs, you can use pass it to a subsequent command to continue listing additional executions.
- StartTime: timestamp indicating when the execution began.
- Executions: details of the execution, including the execution ID, initial file location, and Service metadata.
- Status: one of the following values:
IN_PROGRESS,COMPLETED,EXCEPTION,HANDLING_EXEPTION.