aws_sdk_iot/client/
update_thing_group.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 [`UpdateThingGroup`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`thing_group_name(impl Into<String>)`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::thing_group_name) / [`set_thing_group_name(Option<String>)`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::set_thing_group_name):<br>required: **true**<br><p>The thing group to update.</p><br>
7    ///   - [`thing_group_properties(ThingGroupProperties)`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::thing_group_properties) / [`set_thing_group_properties(Option<ThingGroupProperties>)`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::set_thing_group_properties):<br>required: **true**<br><p>The thing group properties.</p><br>
8    ///   - [`expected_version(i64)`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::expected_version) / [`set_expected_version(Option<i64>)`](crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::set_expected_version):<br>required: **false**<br><p>The expected version of the thing group. If this does not match the version of the thing group being updated, the update will fail.</p><br>
9    /// - On success, responds with [`UpdateThingGroupOutput`](crate::operation::update_thing_group::UpdateThingGroupOutput) with field(s):
10    ///   - [`version(i64)`](crate::operation::update_thing_group::UpdateThingGroupOutput::version): <p>The version of the updated thing group.</p>
11    /// - On failure, responds with [`SdkError<UpdateThingGroupError>`](crate::operation::update_thing_group::UpdateThingGroupError)
12    pub fn update_thing_group(&self) -> crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder {
13        crate::operation::update_thing_group::builders::UpdateThingGroupFluentBuilder::new(self.handle.clone())
14    }
15}