| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.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.
Requires permission to access the AssociateTargetsWithJob action.
Synopsis
- data AssociateTargetsWithJob = AssociateTargetsWithJob' {}
- newAssociateTargetsWithJob :: NonEmpty Text -> Text -> AssociateTargetsWithJob
- associateTargetsWithJob_comment :: Lens' AssociateTargetsWithJob (Maybe Text)
- associateTargetsWithJob_namespaceId :: Lens' AssociateTargetsWithJob (Maybe Text)
- associateTargetsWithJob_targets :: Lens' AssociateTargetsWithJob (NonEmpty Text)
- associateTargetsWithJob_jobId :: Lens' AssociateTargetsWithJob Text
- data AssociateTargetsWithJobResponse = AssociateTargetsWithJobResponse' {}
- newAssociateTargetsWithJobResponse :: Int -> AssociateTargetsWithJobResponse
- associateTargetsWithJobResponse_description :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- associateTargetsWithJobResponse_jobArn :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- associateTargetsWithJobResponse_jobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text)
- associateTargetsWithJobResponse_httpStatus :: Lens' AssociateTargetsWithJobResponse Int
Creating a Request
data AssociateTargetsWithJob Source #
See: newAssociateTargetsWithJob smart constructor.
Constructors
| AssociateTargetsWithJob' | |
Fields
| |
Instances
newAssociateTargetsWithJob Source #
Arguments
| :: 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:
AssociateTargetsWithJob, associateTargetsWithJob_comment - An optional comment string describing why the job was associated with
the targets.
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.
AssociateTargetsWithJob, associateTargetsWithJob_targets - A list of thing group ARNs that define the targets of the job.
AssociateTargetsWithJob, associateTargetsWithJob_jobId - The unique identifier you assigned to this job when it was created.
Request Lenses
associateTargetsWithJob_comment :: Lens' AssociateTargetsWithJob (Maybe Text) Source #
An optional comment string describing why the job was associated with the targets.
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_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.
Constructors
| AssociateTargetsWithJobResponse' | |
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:
AssociateTargetsWithJobResponse, associateTargetsWithJobResponse_description - A short text description of the job.
AssociateTargetsWithJobResponse, associateTargetsWithJobResponse_jobArn - An ARN identifying the job.
AssociateTargetsWithJob, associateTargetsWithJobResponse_jobId - The unique identifier you assigned to this job when it was created.
$sel:httpStatus:AssociateTargetsWithJobResponse', associateTargetsWithJobResponse_httpStatus - The response's http status code.
Response Lenses
associateTargetsWithJobResponse_description :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
A short text description of the job.
associateTargetsWithJobResponse_jobArn :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
An ARN identifying the job.
associateTargetsWithJobResponse_jobId :: Lens' AssociateTargetsWithJobResponse (Maybe Text) Source #
The unique identifier you assigned to this job when it was created.
associateTargetsWithJobResponse_httpStatus :: Lens' AssociateTargetsWithJobResponse Int Source #
The response's http status code.