Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a job.
- createJob :: Text -> NonEmpty Text -> CreateJob
- data CreateJob
- cjJobExecutionsRolloutConfig :: Lens' CreateJob (Maybe JobExecutionsRolloutConfig)
- cjDocumentSource :: Lens' CreateJob (Maybe Text)
- cjDocumentParameters :: Lens' CreateJob (HashMap Text Text)
- cjPresignedURLConfig :: Lens' CreateJob (Maybe PresignedURLConfig)
- cjDocument :: Lens' CreateJob (Maybe Text)
- cjDescription :: Lens' CreateJob (Maybe Text)
- cjTargetSelection :: Lens' CreateJob (Maybe TargetSelection)
- cjJobId :: Lens' CreateJob Text
- cjTargets :: Lens' CreateJob (NonEmpty Text)
- createJobResponse :: Int -> CreateJobResponse
- data CreateJobResponse
- cjrsJobId :: Lens' CreateJobResponse (Maybe Text)
- cjrsJobARN :: Lens' CreateJobResponse (Maybe Text)
- cjrsDescription :: Lens' CreateJobResponse (Maybe Text)
- cjrsResponseStatus :: Lens' CreateJobResponse Int
Creating a Request
Creates a value of CreateJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjJobExecutionsRolloutConfig
- Allows you to create a staged rollout of the job.cjDocumentSource
- An S3 link to the job document.cjDocumentParameters
- Parameters for the job document.cjPresignedURLConfig
- Configuration information for pre-signed S3 URLs.cjDocument
- The job document.cjDescription
- A short text description of the job.cjTargetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.cjJobId
- A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.cjTargets
- A list of things and thing groups to which the job should be sent.
See: createJob
smart constructor.
Request Lenses
cjJobExecutionsRolloutConfig :: Lens' CreateJob (Maybe JobExecutionsRolloutConfig) Source #
Allows you to create a staged rollout of the job.
cjDocumentParameters :: Lens' CreateJob (HashMap Text Text) Source #
Parameters for the job document.
cjPresignedURLConfig :: Lens' CreateJob (Maybe PresignedURLConfig) Source #
Configuration information for pre-signed S3 URLs.
cjTargetSelection :: Lens' CreateJob (Maybe TargetSelection) Source #
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
cjJobId :: Lens' CreateJob Text Source #
A job identifier which must be unique for your AWS account. We recommend using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.
cjTargets :: Lens' CreateJob (NonEmpty Text) Source #
A list of things and thing groups to which the job should be sent.
Destructuring the Response
Creates a value of CreateJobResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjrsJobId
- The unique identifier you assigned to this job.cjrsJobARN
- The job ARN.cjrsDescription
- The job description.cjrsResponseStatus
- -- | The response status code.
data CreateJobResponse Source #
See: createJobResponse
smart constructor.
Response Lenses
cjrsJobId :: Lens' CreateJobResponse (Maybe Text) Source #
The unique identifier you assigned to this job.
cjrsJobARN :: Lens' CreateJobResponse (Maybe Text) Source #
The job ARN.
cjrsDescription :: Lens' CreateJobResponse (Maybe Text) Source #
The job description.
cjrsResponseStatus :: Lens' CreateJobResponse Int Source #
- - | The response status code.