Struct aws_sdk_iot::client::fluent_builders::AssociateTargetsWithJob [−][src]
pub struct AssociateTargetsWithJob<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to AssociateTargetsWithJob
.
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.
Implementations
impl<C, M, R> AssociateTargetsWithJob<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> AssociateTargetsWithJob<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<AssociateTargetsWithJobOutput, SdkError<AssociateTargetsWithJobError>> where
R::Policy: SmithyRetryPolicy<AssociateTargetsWithJobInputOperationOutputAlias, AssociateTargetsWithJobOutput, AssociateTargetsWithJobError, AssociateTargetsWithJobInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<AssociateTargetsWithJobOutput, SdkError<AssociateTargetsWithJobError>> where
R::Policy: SmithyRetryPolicy<AssociateTargetsWithJobInputOperationOutputAlias, AssociateTargetsWithJobOutput, AssociateTargetsWithJobError, AssociateTargetsWithJobInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Appends an item to targets
.
To override the contents of this collection use set_targets
.
A list of thing group ARNs that define the targets of the job.
A list of thing group ARNs that define the targets of the job.
The unique identifier you assigned to this job when it was created.
The unique identifier you assigned to this job when it was created.
An optional comment string describing why the job was associated with the targets.
An optional comment string describing why the job was associated with the targets.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for AssociateTargetsWithJob<C, M, R>
impl<C, M, R> Send for AssociateTargetsWithJob<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for AssociateTargetsWithJob<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for AssociateTargetsWithJob<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for AssociateTargetsWithJob<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more