| 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 |
Network.AWS.IoT.AssociateTargetsWithJob
Description
Associates a group with a continuous job. The following criteria must be met:
- The job must have been created with the
targetSelectionfield set to CONTINUOUS. - The job status must currently be IN_PROGRESS.
- The total number of targets associated with a job must not exceed 100.
Synopsis
- associateTargetsWithJob :: NonEmpty Text -> Text -> AssociateTargetsWithJob
- data AssociateTargetsWithJob
- atwjComment :: Lens' AssociateTargetsWithJob (Maybe Text)
- atwjTargets :: Lens' AssociateTargetsWithJob (NonEmpty Text)
- atwjJobId :: Lens' AssociateTargetsWithJob Text
- associateTargetsWithJobResponse :: Int -> AssociateTargetsWithJobResponse
- data AssociateTargetsWithJobResponse
- atwjrsJobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- atwjrsJobARN :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- atwjrsDescription :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- atwjrsResponseStatus :: Lens' AssociateTargetsWithJobResponse Int
Creating a Request
associateTargetsWithJob Source #
Arguments
| :: NonEmpty Text | |
| -> Text | |
| -> AssociateTargetsWithJob |
Creates a value of AssociateTargetsWithJob with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atwjComment- An optional comment string describing why the job was associated with the targets.atwjTargets- A list of thing group ARNs that define the targets of the job.atwjJobId- The unique identifier you assigned to this job when it was created.
data AssociateTargetsWithJob Source #
See: associateTargetsWithJob smart constructor.
Instances
Request Lenses
atwjComment :: Lens' AssociateTargetsWithJob (Maybe Text) Source #
An optional comment string describing why the job was associated with the targets.
atwjTargets :: Lens' AssociateTargetsWithJob (NonEmpty Text) Source #
A list of thing group ARNs that define the targets of the job.
atwjJobId :: Lens' AssociateTargetsWithJob Text Source #
The unique identifier you assigned to this job when it was created.
Destructuring the Response
associateTargetsWithJobResponse Source #
Arguments
| :: Int | |
| -> AssociateTargetsWithJobResponse |
Creates a value of AssociateTargetsWithJobResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atwjrsJobId- The unique identifier you assigned to this job when it was created.atwjrsJobARN- An ARN identifying the job.atwjrsDescription- A short text description of the job.atwjrsResponseStatus- -- | The response status code.
data AssociateTargetsWithJobResponse Source #
See: associateTargetsWithJobResponse smart constructor.
Instances
Response Lenses
atwjrsJobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
The unique identifier you assigned to this job when it was created.
atwjrsJobARN :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
An ARN identifying the job.
atwjrsDescription :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
A short text description of the job.
atwjrsResponseStatus :: Lens' AssociateTargetsWithJobResponse Int Source #
- - | The response status code.