Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Lists all executions for the specified workflow.
Synopsis
- data ListExecutions = ListExecutions' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- workflowId :: Text
- newListExecutions :: Text -> ListExecutions
- listExecutions_nextToken :: Lens' ListExecutions (Maybe Text)
- listExecutions_maxResults :: Lens' ListExecutions (Maybe Natural)
- 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.
ListExecutions' | |
|
Instances
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:nextToken: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, callthe API
by specifing 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,
suppling 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.
$sel:maxResults:ListExecutions'
, listExecutions_maxResults
- Specifies the aximum number of executions to return.
$sel:workflowId:ListExecutions'
, listExecutions_workflowId
- A unique identifier for the workflow.
Request Lenses
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, callthe API
by specifing 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,
suppling 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_maxResults :: Lens' ListExecutions (Maybe Natural) Source #
Specifies the aximum number of executions to return.
listExecutions_workflowId :: Lens' ListExecutions Text Source #
A unique identifier for the workflow.
Destructuring the Response
data ListExecutionsResponse Source #
See: newListExecutionsResponse
smart constructor.
ListExecutionsResponse' | |
|
Instances
newListExecutionsResponse Source #
:: 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:
$sel:nextToken: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.
$sel:workflowId: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
.