| 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.CreateJobTemplate
Description
Creates a job template. 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.
Synopsis
- data CreateJobTemplate = CreateJobTemplate' {
- kmsKeyArn :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- name :: Text
- clientToken :: Text
- jobTemplateData :: JobTemplateData
- newCreateJobTemplate :: Text -> Text -> JobTemplateData -> CreateJobTemplate
- createJobTemplate_kmsKeyArn :: Lens' CreateJobTemplate (Maybe Text)
- createJobTemplate_tags :: Lens' CreateJobTemplate (Maybe (HashMap Text Text))
- createJobTemplate_name :: Lens' CreateJobTemplate Text
- createJobTemplate_clientToken :: Lens' CreateJobTemplate Text
- createJobTemplate_jobTemplateData :: Lens' CreateJobTemplate JobTemplateData
- data CreateJobTemplateResponse = CreateJobTemplateResponse' {}
- newCreateJobTemplateResponse :: Int -> CreateJobTemplateResponse
- createJobTemplateResponse_arn :: Lens' CreateJobTemplateResponse (Maybe Text)
- createJobTemplateResponse_createdAt :: Lens' CreateJobTemplateResponse (Maybe UTCTime)
- createJobTemplateResponse_id :: Lens' CreateJobTemplateResponse (Maybe Text)
- createJobTemplateResponse_name :: Lens' CreateJobTemplateResponse (Maybe Text)
- createJobTemplateResponse_httpStatus :: Lens' CreateJobTemplateResponse Int
Creating a Request
data CreateJobTemplate Source #
See: newCreateJobTemplate smart constructor.
Constructors
| CreateJobTemplate' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> JobTemplateData | |
| -> CreateJobTemplate |
Create a value of CreateJobTemplate 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:
CreateJobTemplate, createJobTemplate_kmsKeyArn - The KMS key ARN used to encrypt the job template.
CreateJobTemplate, createJobTemplate_tags - The tags that are associated with the job template.
CreateJobTemplate, createJobTemplate_name - The specified name of the job template.
CreateJobTemplate, createJobTemplate_clientToken - The client token of the job template.
CreateJobTemplate, createJobTemplate_jobTemplateData - The job template data which holds values of StartJobRun API request.
Request Lenses
createJobTemplate_kmsKeyArn :: Lens' CreateJobTemplate (Maybe Text) Source #
The KMS key ARN used to encrypt the job template.
createJobTemplate_tags :: Lens' CreateJobTemplate (Maybe (HashMap Text Text)) Source #
The tags that are associated with the job template.
createJobTemplate_name :: Lens' CreateJobTemplate Text Source #
The specified name of the job template.
createJobTemplate_clientToken :: Lens' CreateJobTemplate Text Source #
The client token of the job template.
createJobTemplate_jobTemplateData :: Lens' CreateJobTemplate JobTemplateData Source #
The job template data which holds values of StartJobRun API request.
Destructuring the Response
data CreateJobTemplateResponse Source #
See: newCreateJobTemplateResponse smart constructor.
Constructors
| CreateJobTemplateResponse' | |
Fields
| |
Instances
newCreateJobTemplateResponse Source #
Create a value of CreateJobTemplateResponse 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:
CreateJobTemplateResponse, createJobTemplateResponse_arn - This output display the ARN of the created job template.
CreateJobTemplateResponse, createJobTemplateResponse_createdAt - This output displays the date and time when the job template was
created.
CreateJobTemplateResponse, createJobTemplateResponse_id - This output display the created job template ID.
CreateJobTemplate, createJobTemplateResponse_name - This output displays the name of the created job template.
$sel:httpStatus:CreateJobTemplateResponse', createJobTemplateResponse_httpStatus - The response's http status code.
Response Lenses
createJobTemplateResponse_arn :: Lens' CreateJobTemplateResponse (Maybe Text) Source #
This output display the ARN of the created job template.
createJobTemplateResponse_createdAt :: Lens' CreateJobTemplateResponse (Maybe UTCTime) Source #
This output displays the date and time when the job template was created.
createJobTemplateResponse_id :: Lens' CreateJobTemplateResponse (Maybe Text) Source #
This output display the created job template ID.
createJobTemplateResponse_name :: Lens' CreateJobTemplateResponse (Maybe Text) Source #
This output displays the name of the created job template.
createJobTemplateResponse_httpStatus :: Lens' CreateJobTemplateResponse Int Source #
The response's http status code.