aws_sdk_synthetics/client/
create_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 [`CreateGroup`](crate::operation::create_group::builders::CreateGroupFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`name(impl Into<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::set_name):<br>required: **true**<br><p>The name for the group. It can include any Unicode characters.</p> <p>The names for all groups in your account, across all Regions, must be unique.</p><br>
7    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_group::builders::CreateGroupFluentBuilder::set_tags):<br>required: **false**<br><p>A list of key-value pairs to associate with the group. You can associate as many as 50 tags with a group.</p> <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.</p><br>
8    /// - On success, responds with [`CreateGroupOutput`](crate::operation::create_group::CreateGroupOutput) with field(s):
9    ///   - [`group(Option<Group>)`](crate::operation::create_group::CreateGroupOutput::group): <p>A structure that contains information about the group that was just created.</p>
10    /// - On failure, responds with [`SdkError<CreateGroupError>`](crate::operation::create_group::CreateGroupError)
11    pub fn create_group(&self) -> crate::operation::create_group::builders::CreateGroupFluentBuilder {
12        crate::operation::create_group::builders::CreateGroupFluentBuilder::new(self.handle.clone())
13    }
14}