aws_sdk_connect/client/create_user_hierarchy_group.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateUserHierarchyGroup`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::set_name):<br>required: **true**<br><p>The name of the user hierarchy group. Must not be more than 100 characters.</p><br>
/// - [`parent_group_id(impl Into<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::parent_group_id) / [`set_parent_group_id(Option<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::set_parent_group_id):<br>required: **false**<br><p>The identifier for the parent hierarchy group. The user hierarchy is created at level one if the parent group ID is null.</p><br>
/// - [`instance_id(impl Into<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.</p><br>
/// - On success, responds with [`CreateUserHierarchyGroupOutput`](crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupOutput) with field(s):
/// - [`hierarchy_group_id(Option<String>)`](crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupOutput::hierarchy_group_id): <p>The identifier of the hierarchy group.</p>
/// - [`hierarchy_group_arn(Option<String>)`](crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupOutput::hierarchy_group_arn): <p>The Amazon Resource Name (ARN) of the hierarchy group.</p>
/// - On failure, responds with [`SdkError<CreateUserHierarchyGroupError>`](crate::operation::create_user_hierarchy_group::CreateUserHierarchyGroupError)
pub fn create_user_hierarchy_group(&self) -> crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder {
crate::operation::create_user_hierarchy_group::builders::CreateUserHierarchyGroupFluentBuilder::new(self.handle.clone())
}
}