| 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.EMRContainers.ListJobTemplates
Description
Lists job templates based on a set of parameters. Job template stores values of StartJobRun API request in a template and can be used to start a job run. Job template allows two use cases: avoid repeating recurring StartJobRun API request values, enforcing certain values in StartJobRun API request.
This operation returns paginated results.
Synopsis
- data ListJobTemplates = ListJobTemplates' {}
 - newListJobTemplates :: ListJobTemplates
 - listJobTemplates_createdAfter :: Lens' ListJobTemplates (Maybe UTCTime)
 - listJobTemplates_createdBefore :: Lens' ListJobTemplates (Maybe UTCTime)
 - listJobTemplates_maxResults :: Lens' ListJobTemplates (Maybe Int)
 - listJobTemplates_nextToken :: Lens' ListJobTemplates (Maybe Text)
 - data ListJobTemplatesResponse = ListJobTemplatesResponse' {
- nextToken :: Maybe Text
 - templates :: Maybe [JobTemplate]
 - httpStatus :: Int
 
 - newListJobTemplatesResponse :: Int -> ListJobTemplatesResponse
 - listJobTemplatesResponse_nextToken :: Lens' ListJobTemplatesResponse (Maybe Text)
 - listJobTemplatesResponse_templates :: Lens' ListJobTemplatesResponse (Maybe [JobTemplate])
 - listJobTemplatesResponse_httpStatus :: Lens' ListJobTemplatesResponse Int
 
Creating a Request
data ListJobTemplates Source #
See: newListJobTemplates smart constructor.
Constructors
| ListJobTemplates' | |
Fields 
  | |
Instances
newListJobTemplates :: ListJobTemplates Source #
Create a value of ListJobTemplates 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:createdAfter:ListJobTemplates', listJobTemplates_createdAfter - The date and time after which the job templates were created.
$sel:createdBefore:ListJobTemplates', listJobTemplates_createdBefore - The date and time before which the job templates were created.
$sel:maxResults:ListJobTemplates', listJobTemplates_maxResults - The maximum number of job templates that can be listed.
ListJobTemplates, listJobTemplates_nextToken - The token for the next set of job templates to return.
Request Lenses
listJobTemplates_createdAfter :: Lens' ListJobTemplates (Maybe UTCTime) Source #
The date and time after which the job templates were created.
listJobTemplates_createdBefore :: Lens' ListJobTemplates (Maybe UTCTime) Source #
The date and time before which the job templates were created.
listJobTemplates_maxResults :: Lens' ListJobTemplates (Maybe Int) Source #
The maximum number of job templates that can be listed.
listJobTemplates_nextToken :: Lens' ListJobTemplates (Maybe Text) Source #
The token for the next set of job templates to return.
Destructuring the Response
data ListJobTemplatesResponse Source #
See: newListJobTemplatesResponse smart constructor.
Constructors
| ListJobTemplatesResponse' | |
Fields 
  | |
Instances
newListJobTemplatesResponse Source #
Create a value of ListJobTemplatesResponse 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:
ListJobTemplates, listJobTemplatesResponse_nextToken - This output displays the token for the next set of job templates.
$sel:templates:ListJobTemplatesResponse', listJobTemplatesResponse_templates - This output lists information about the specified job templates.
$sel:httpStatus:ListJobTemplatesResponse', listJobTemplatesResponse_httpStatus - The response's http status code.
Response Lenses
listJobTemplatesResponse_nextToken :: Lens' ListJobTemplatesResponse (Maybe Text) Source #
This output displays the token for the next set of job templates.
listJobTemplatesResponse_templates :: Lens' ListJobTemplatesResponse (Maybe [JobTemplate]) Source #
This output lists information about the specified job templates.
listJobTemplatesResponse_httpStatus :: Lens' ListJobTemplatesResponse Int Source #
The response's http status code.