aws_sdk_iot/client/create_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 [`CreateThingGroup`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`thing_group_name(impl Into<String>)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::thing_group_name) / [`set_thing_group_name(Option<String>)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::set_thing_group_name):<br>required: **true**<br><p>The thing group name to create.</p><br>
7 /// - [`parent_group_name(impl Into<String>)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::parent_group_name) / [`set_parent_group_name(Option<String>)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::set_parent_group_name):<br>required: **false**<br><p>The name of the parent thing group.</p><br>
8 /// - [`thing_group_properties(ThingGroupProperties)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::thing_group_properties) / [`set_thing_group_properties(Option<ThingGroupProperties>)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::set_thing_group_properties):<br>required: **false**<br><p>The thing group properties.</p><br>
9 /// - [`tags(Tag)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata which can be used to manage the thing group.</p><br>
10 /// - On success, responds with [`CreateThingGroupOutput`](crate::operation::create_thing_group::CreateThingGroupOutput) with field(s):
11 /// - [`thing_group_name(Option<String>)`](crate::operation::create_thing_group::CreateThingGroupOutput::thing_group_name): <p>The thing group name.</p>
12 /// - [`thing_group_arn(Option<String>)`](crate::operation::create_thing_group::CreateThingGroupOutput::thing_group_arn): <p>The thing group ARN.</p>
13 /// - [`thing_group_id(Option<String>)`](crate::operation::create_thing_group::CreateThingGroupOutput::thing_group_id): <p>The thing group ID.</p>
14 /// - On failure, responds with [`SdkError<CreateThingGroupError>`](crate::operation::create_thing_group::CreateThingGroupError)
15 pub fn create_thing_group(&self) -> crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder {
16 crate::operation::create_thing_group::builders::CreateThingGroupFluentBuilder::new(self.handle.clone())
17 }
18}