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 |
Creates a job template.
Requires permission to access the CreateJobTemplate action.
Synopsis
- data CreateJobTemplate = CreateJobTemplate' {
- jobExecutionsRolloutConfig :: Maybe JobExecutionsRolloutConfig
- jobArn :: Maybe Text
- documentSource :: Maybe Text
- abortConfig :: Maybe AbortConfig
- presignedUrlConfig :: Maybe PresignedUrlConfig
- document :: Maybe Text
- timeoutConfig :: Maybe TimeoutConfig
- tags :: Maybe [Tag]
- jobTemplateId :: Text
- description :: Text
- newCreateJobTemplate :: Text -> Text -> CreateJobTemplate
- createJobTemplate_jobExecutionsRolloutConfig :: Lens' CreateJobTemplate (Maybe JobExecutionsRolloutConfig)
- createJobTemplate_jobArn :: Lens' CreateJobTemplate (Maybe Text)
- createJobTemplate_documentSource :: Lens' CreateJobTemplate (Maybe Text)
- createJobTemplate_abortConfig :: Lens' CreateJobTemplate (Maybe AbortConfig)
- createJobTemplate_presignedUrlConfig :: Lens' CreateJobTemplate (Maybe PresignedUrlConfig)
- createJobTemplate_document :: Lens' CreateJobTemplate (Maybe Text)
- createJobTemplate_timeoutConfig :: Lens' CreateJobTemplate (Maybe TimeoutConfig)
- createJobTemplate_tags :: Lens' CreateJobTemplate (Maybe [Tag])
- createJobTemplate_jobTemplateId :: Lens' CreateJobTemplate Text
- createJobTemplate_description :: Lens' CreateJobTemplate Text
- data CreateJobTemplateResponse = CreateJobTemplateResponse' {}
- newCreateJobTemplateResponse :: Int -> CreateJobTemplateResponse
- createJobTemplateResponse_jobTemplateId :: Lens' CreateJobTemplateResponse (Maybe Text)
- createJobTemplateResponse_jobTemplateArn :: Lens' CreateJobTemplateResponse (Maybe Text)
- createJobTemplateResponse_httpStatus :: Lens' CreateJobTemplateResponse Int
Creating a Request
data CreateJobTemplate Source #
See: newCreateJobTemplate
smart constructor.
CreateJobTemplate' | |
|
Instances
:: Text | |
-> Text | |
-> 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:
$sel:jobExecutionsRolloutConfig:CreateJobTemplate'
, createJobTemplate_jobExecutionsRolloutConfig
- Undocumented member.
$sel:jobArn:CreateJobTemplate'
, createJobTemplate_jobArn
- The ARN of the job to use as the basis for the job template.
$sel:documentSource:CreateJobTemplate'
, createJobTemplate_documentSource
- An S3 link to the job document to use in the template. Required if you
don't specify a value for document
.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
$sel:abortConfig:CreateJobTemplate'
, createJobTemplate_abortConfig
- Undocumented member.
$sel:presignedUrlConfig:CreateJobTemplate'
, createJobTemplate_presignedUrlConfig
- Undocumented member.
$sel:document:CreateJobTemplate'
, createJobTemplate_document
- The job document. Required if you don't specify a value for
documentSource
.
$sel:timeoutConfig:CreateJobTemplate'
, createJobTemplate_timeoutConfig
- Undocumented member.
$sel:tags:CreateJobTemplate'
, createJobTemplate_tags
- Metadata that can be used to manage the job template.
$sel:jobTemplateId:CreateJobTemplate'
, createJobTemplate_jobTemplateId
- A unique identifier for the job template. We recommend using a UUID.
Alpha-numeric characters, "-", and "_" are valid for use here.
$sel:description:CreateJobTemplate'
, createJobTemplate_description
- A description of the job document.
Request Lenses
createJobTemplate_jobExecutionsRolloutConfig :: Lens' CreateJobTemplate (Maybe JobExecutionsRolloutConfig) Source #
Undocumented member.
createJobTemplate_jobArn :: Lens' CreateJobTemplate (Maybe Text) Source #
The ARN of the job to use as the basis for the job template.
createJobTemplate_documentSource :: Lens' CreateJobTemplate (Maybe Text) Source #
An S3 link to the job document to use in the template. Required if you
don't specify a value for document
.
If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.
The placeholder link is of the following form:
${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}
where bucket is your bucket name and key is the object in the bucket to which you are linking.
createJobTemplate_abortConfig :: Lens' CreateJobTemplate (Maybe AbortConfig) Source #
Undocumented member.
createJobTemplate_presignedUrlConfig :: Lens' CreateJobTemplate (Maybe PresignedUrlConfig) Source #
Undocumented member.
createJobTemplate_document :: Lens' CreateJobTemplate (Maybe Text) Source #
The job document. Required if you don't specify a value for
documentSource
.
createJobTemplate_timeoutConfig :: Lens' CreateJobTemplate (Maybe TimeoutConfig) Source #
Undocumented member.
createJobTemplate_tags :: Lens' CreateJobTemplate (Maybe [Tag]) Source #
Metadata that can be used to manage the job template.
createJobTemplate_jobTemplateId :: Lens' CreateJobTemplate Text Source #
A unique identifier for the job template. We recommend using a UUID. Alpha-numeric characters, "-", and "_" are valid for use here.
createJobTemplate_description :: Lens' CreateJobTemplate Text Source #
A description of the job document.
Destructuring the Response
data CreateJobTemplateResponse Source #
See: newCreateJobTemplateResponse
smart constructor.
CreateJobTemplateResponse' | |
|
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:
$sel:jobTemplateId:CreateJobTemplate'
, createJobTemplateResponse_jobTemplateId
- The unique identifier of the job template.
$sel:jobTemplateArn:CreateJobTemplateResponse'
, createJobTemplateResponse_jobTemplateArn
- The ARN of the job template.
$sel:httpStatus:CreateJobTemplateResponse'
, createJobTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
createJobTemplateResponse_jobTemplateId :: Lens' CreateJobTemplateResponse (Maybe Text) Source #
The unique identifier of the job template.
createJobTemplateResponse_jobTemplateArn :: Lens' CreateJobTemplateResponse (Maybe Text) Source #
The ARN of the job template.
createJobTemplateResponse_httpStatus :: Lens' CreateJobTemplateResponse Int Source #
The response's http status code.