libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.CreateJobTemplate

Description

Creates a job template.

Requires permission to access the CreateJobTemplate action.

Synopsis

Creating a Request

data CreateJobTemplate Source #

See: newCreateJobTemplate smart constructor.

Constructors

CreateJobTemplate' 

Fields

Instances

Instances details
Eq CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Read CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Show CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Generic CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Associated Types

type Rep CreateJobTemplate :: Type -> Type #

NFData CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Methods

rnf :: CreateJobTemplate -> () #

Hashable CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

ToJSON CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

AWSRequest CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Associated Types

type AWSResponse CreateJobTemplate #

ToHeaders CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

ToPath CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

ToQuery CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

type Rep CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

type AWSResponse CreateJobTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

newCreateJobTemplate Source #

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_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_document :: Lens' CreateJobTemplate (Maybe Text) Source #

The job document. Required if you don't specify a value for documentSource.

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.

Constructors

CreateJobTemplateResponse' 

Fields

Instances

Instances details
Eq CreateJobTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Read CreateJobTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Show CreateJobTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Generic CreateJobTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

Associated Types

type Rep CreateJobTemplateResponse :: Type -> Type #

NFData CreateJobTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

type Rep CreateJobTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateJobTemplate

type Rep CreateJobTemplateResponse = D1 ('MetaData "CreateJobTemplateResponse" "Amazonka.IoT.CreateJobTemplate" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateJobTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobTemplateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "jobTemplateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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