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 |
Associates a group with a continuous job. The following criteria must be met:
- The job must have been created with the
targetSelection
field set to "CONTINUOUS". - The job status must currently be "IN_PROGRESS".
- The total number of targets associated with a job must not exceed 100.
Requires permission to access the AssociateTargetsWithJob action.
Synopsis
- data AssociateTargetsWithJob = AssociateTargetsWithJob' {}
- newAssociateTargetsWithJob :: NonEmpty Text -> Text -> AssociateTargetsWithJob
- associateTargetsWithJob_namespaceId :: Lens' AssociateTargetsWithJob (Maybe Text)
- associateTargetsWithJob_comment :: Lens' AssociateTargetsWithJob (Maybe Text)
- associateTargetsWithJob_targets :: Lens' AssociateTargetsWithJob (NonEmpty Text)
- associateTargetsWithJob_jobId :: Lens' AssociateTargetsWithJob Text
- data AssociateTargetsWithJobResponse = AssociateTargetsWithJobResponse' {}
- newAssociateTargetsWithJobResponse :: Int -> AssociateTargetsWithJobResponse
- associateTargetsWithJobResponse_jobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- associateTargetsWithJobResponse_jobArn :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- associateTargetsWithJobResponse_description :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- associateTargetsWithJobResponse_httpStatus :: Lens' AssociateTargetsWithJobResponse Int
Creating a Request
data AssociateTargetsWithJob Source #
See: newAssociateTargetsWithJob
smart constructor.
AssociateTargetsWithJob' | |
|
Instances
newAssociateTargetsWithJob Source #
:: NonEmpty Text | |
-> Text | |
-> AssociateTargetsWithJob |
Create a value of AssociateTargetsWithJob
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:namespaceId:AssociateTargetsWithJob'
, associateTargetsWithJob_namespaceId
- The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId
feature is in public preview.
$sel:comment:AssociateTargetsWithJob'
, associateTargetsWithJob_comment
- An optional comment string describing why the job was associated with
the targets.
$sel:targets:AssociateTargetsWithJob'
, associateTargetsWithJob_targets
- A list of thing group ARNs that define the targets of the job.
$sel:jobId:AssociateTargetsWithJob'
, associateTargetsWithJob_jobId
- The unique identifier you assigned to this job when it was created.
Request Lenses
associateTargetsWithJob_namespaceId :: Lens' AssociateTargetsWithJob (Maybe Text) Source #
The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId
feature is in public preview.
associateTargetsWithJob_comment :: Lens' AssociateTargetsWithJob (Maybe Text) Source #
An optional comment string describing why the job was associated with the targets.
associateTargetsWithJob_targets :: Lens' AssociateTargetsWithJob (NonEmpty Text) Source #
A list of thing group ARNs that define the targets of the job.
associateTargetsWithJob_jobId :: Lens' AssociateTargetsWithJob Text Source #
The unique identifier you assigned to this job when it was created.
Destructuring the Response
data AssociateTargetsWithJobResponse Source #
See: newAssociateTargetsWithJobResponse
smart constructor.
Instances
newAssociateTargetsWithJobResponse Source #
Create a value of AssociateTargetsWithJobResponse
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:jobId:AssociateTargetsWithJob'
, associateTargetsWithJobResponse_jobId
- The unique identifier you assigned to this job when it was created.
$sel:jobArn:AssociateTargetsWithJobResponse'
, associateTargetsWithJobResponse_jobArn
- An ARN identifying the job.
$sel:description:AssociateTargetsWithJobResponse'
, associateTargetsWithJobResponse_description
- A short text description of the job.
$sel:httpStatus:AssociateTargetsWithJobResponse'
, associateTargetsWithJobResponse_httpStatus
- The response's http status code.
Response Lenses
associateTargetsWithJobResponse_jobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
The unique identifier you assigned to this job when it was created.
associateTargetsWithJobResponse_jobArn :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
An ARN identifying the job.
associateTargetsWithJobResponse_description :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
A short text description of the job.
associateTargetsWithJobResponse_httpStatus :: Lens' AssociateTargetsWithJobResponse Int Source #
The response's http status code.