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 |
Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.
This operation returns paginated results.
Synopsis
- data DescribeJobs = DescribeJobs' {}
- newDescribeJobs :: DescribeJobs
- describeJobs_filters :: Lens' DescribeJobs (Maybe DescribeJobsRequestFilters)
- describeJobs_maxResults :: Lens' DescribeJobs (Maybe Natural)
- describeJobs_nextToken :: Lens' DescribeJobs (Maybe Text)
- data DescribeJobsResponse = DescribeJobsResponse' {}
- newDescribeJobsResponse :: Int -> DescribeJobsResponse
- describeJobsResponse_items :: Lens' DescribeJobsResponse (Maybe [Job])
- describeJobsResponse_nextToken :: Lens' DescribeJobsResponse (Maybe Text)
- describeJobsResponse_httpStatus :: Lens' DescribeJobsResponse Int
Creating a Request
data DescribeJobs Source #
See: newDescribeJobs
smart constructor.
DescribeJobs' | |
|
Instances
newDescribeJobs :: DescribeJobs Source #
Create a value of DescribeJobs
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:filters:DescribeJobs'
, describeJobs_filters
- A set of filters by which to return Jobs.
$sel:maxResults:DescribeJobs'
, describeJobs_maxResults
- Maximum number of Jobs to retrieve.
DescribeJobs
, describeJobs_nextToken
- The token of the next Job to retrieve.
Request Lenses
describeJobs_filters :: Lens' DescribeJobs (Maybe DescribeJobsRequestFilters) Source #
A set of filters by which to return Jobs.
describeJobs_maxResults :: Lens' DescribeJobs (Maybe Natural) Source #
Maximum number of Jobs to retrieve.
describeJobs_nextToken :: Lens' DescribeJobs (Maybe Text) Source #
The token of the next Job to retrieve.
Destructuring the Response
data DescribeJobsResponse Source #
See: newDescribeJobsResponse
smart constructor.
Instances
newDescribeJobsResponse Source #
Create a value of DescribeJobsResponse
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:items:DescribeJobsResponse'
, describeJobsResponse_items
- An array of Jobs.
DescribeJobs
, describeJobsResponse_nextToken
- The token of the next Job to retrieve.
$sel:httpStatus:DescribeJobsResponse'
, describeJobsResponse_httpStatus
- The response's http status code.
Response Lenses
describeJobsResponse_items :: Lens' DescribeJobsResponse (Maybe [Job]) Source #
An array of Jobs.
describeJobsResponse_nextToken :: Lens' DescribeJobsResponse (Maybe Text) Source #
The token of the next Job to retrieve.
describeJobsResponse_httpStatus :: Lens' DescribeJobsResponse Int Source #
The response's http status code.