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 |
Retrieves the names of all job resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.
This operation takes the optional Tags
field, which you can use as a
filter on the response so that tagged resources can be retrieved as a
group. If you choose to use tags filtering, only resources with the tag
are retrieved.
Synopsis
- data ListJobs = ListJobs' {}
- newListJobs :: ListJobs
- listJobs_maxResults :: Lens' ListJobs (Maybe Natural)
- listJobs_nextToken :: Lens' ListJobs (Maybe Text)
- listJobs_tags :: Lens' ListJobs (Maybe (HashMap Text Text))
- data ListJobsResponse = ListJobsResponse' {}
- newListJobsResponse :: Int -> ListJobsResponse
- listJobsResponse_jobNames :: Lens' ListJobsResponse (Maybe [Text])
- listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text)
- listJobsResponse_httpStatus :: Lens' ListJobsResponse Int
Creating a Request
See: newListJobs
smart constructor.
Instances
newListJobs :: ListJobs Source #
Create a value of ListJobs
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:ListJobs'
, listJobs_maxResults
- The maximum size of a list to return.
ListJobs
, listJobs_nextToken
- A continuation token, if this is a continuation request.
$sel:tags:ListJobs'
, listJobs_tags
- Specifies to return only these tagged resources.
Request Lenses
listJobs_nextToken :: Lens' ListJobs (Maybe Text) Source #
A continuation token, if this is a continuation request.
listJobs_tags :: Lens' ListJobs (Maybe (HashMap Text Text)) Source #
Specifies to return only these tagged resources.
Destructuring the Response
data ListJobsResponse Source #
See: newListJobsResponse
smart constructor.
Instances
Create a value of ListJobsResponse
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:jobNames:ListJobsResponse'
, listJobsResponse_jobNames
- The names of all jobs in the account, or the jobs with the specified
tags.
ListJobs
, listJobsResponse_nextToken
- A continuation token, if the returned list does not contain the last
metric available.
$sel:httpStatus:ListJobsResponse'
, listJobsResponse_httpStatus
- The response's http status code.
Response Lenses
listJobsResponse_jobNames :: Lens' ListJobsResponse (Maybe [Text]) Source #
The names of all jobs in the account, or the jobs with the specified tags.
listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text) Source #
A continuation token, if the returned list does not contain the last metric available.
listJobsResponse_httpStatus :: Lens' ListJobsResponse Int Source #
The response's http status code.