aws_sdk_connect/client/create_traffic_distribution_group.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateTrafficDistributionGroup`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::set_name):<br>required: **true**<br><p>The name for the traffic distribution group.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::set_description):<br>required: **false**<br><p>A description for the traffic distribution group.</p><br>
/// - [`instance_id(impl Into<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance that has been replicated. You can find the <code>instanceId</code> in the ARN of the instance.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::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 [`CreateTrafficDistributionGroupOutput`](crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupOutput) with field(s):
/// - [`id(Option<String>)`](crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupOutput::id): <p>The identifier of the traffic distribution group. This can be the ID or the ARN of the traffic distribution group.</p>
/// - [`arn(Option<String>)`](crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupOutput::arn): <p>The Amazon Resource Name (ARN) of the traffic distribution group.</p>
/// - On failure, responds with [`SdkError<CreateTrafficDistributionGroupError>`](crate::operation::create_traffic_distribution_group::CreateTrafficDistributionGroupError)
pub fn create_traffic_distribution_group(
&self,
) -> crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder {
crate::operation::create_traffic_distribution_group::builders::CreateTrafficDistributionGroupFluentBuilder::new(self.handle.clone())
}
}