1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateTargetsWithJob`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`targets(impl Into<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::targets) / [`set_targets(Option<Vec::<String>>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::set_targets):<br>required: **true**<br><p>A list of thing group ARNs that define the targets of the job.</p><br>
    ///   - [`job_id(impl Into<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::set_job_id):<br>required: **true**<br><p>The unique identifier you assigned to this job when it was created.</p><br>
    ///   - [`comment(impl Into<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::comment) / [`set_comment(Option<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::set_comment):<br>required: **false**<br><p>An optional comment string describing why the job was associated with the targets.</p><br>
    ///   - [`namespace_id(impl Into<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::namespace_id) / [`set_namespace_id(Option<String>)`](crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::set_namespace_id):<br>required: **false**<br><p>The namespace used to indicate that a job is a customer-managed job.</p> <p>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.</p> <p><code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code></p><note>  <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting up IoT Greengrass core devices.</a></p> </note><br>
    /// - On success, responds with [`AssociateTargetsWithJobOutput`](crate::operation::associate_targets_with_job::AssociateTargetsWithJobOutput) with field(s):
    ///   - [`job_arn(Option<String>)`](crate::operation::associate_targets_with_job::AssociateTargetsWithJobOutput::job_arn): <p>An ARN identifying the job.</p>
    ///   - [`job_id(Option<String>)`](crate::operation::associate_targets_with_job::AssociateTargetsWithJobOutput::job_id): <p>The unique identifier you assigned to this job when it was created.</p>
    ///   - [`description(Option<String>)`](crate::operation::associate_targets_with_job::AssociateTargetsWithJobOutput::description): <p>A short text description of the job.</p>
    /// - On failure, responds with [`SdkError<AssociateTargetsWithJobError>`](crate::operation::associate_targets_with_job::AssociateTargetsWithJobError)
    pub fn associate_targets_with_job(&self) -> crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder {
        crate::operation::associate_targets_with_job::builders::AssociateTargetsWithJobFluentBuilder::new(self.handle.clone())
    }
}