aws_sdk_iot/client/
update_thing_groups_for_thing.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateThingGroupsForThing`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`thing_name(impl Into<String>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::thing_name) / [`set_thing_name(Option<String>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::set_thing_name):<br>required: **false**<br><p>The thing whose group memberships will be updated.</p><br>
7    ///   - [`thing_groups_to_add(impl Into<String>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::thing_groups_to_add) / [`set_thing_groups_to_add(Option<Vec::<String>>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::set_thing_groups_to_add):<br>required: **false**<br><p>The groups to which the thing will be added.</p><br>
8    ///   - [`thing_groups_to_remove(impl Into<String>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::thing_groups_to_remove) / [`set_thing_groups_to_remove(Option<Vec::<String>>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::set_thing_groups_to_remove):<br>required: **false**<br><p>The groups from which the thing will be removed.</p><br>
9    ///   - [`override_dynamic_groups(bool)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::override_dynamic_groups) / [`set_override_dynamic_groups(Option<bool>)`](crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::set_override_dynamic_groups):<br>required: **false**<br><p>Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.</p><br>
10    /// - On success, responds with [`UpdateThingGroupsForThingOutput`](crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingOutput)
11    /// - On failure, responds with [`SdkError<UpdateThingGroupsForThingError>`](crate::operation::update_thing_groups_for_thing::UpdateThingGroupsForThingError)
12    pub fn update_thing_groups_for_thing(&self) -> crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder {
13        crate::operation::update_thing_groups_for_thing::builders::UpdateThingGroupsForThingFluentBuilder::new(self.handle.clone())
14    }
15}