aws_sdk_connect/client/
create_predefined_attribute.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 [`CreatePredefinedAttribute`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_name):<br>required: **true**<br><p>The name of the predefined attribute.</p><br>
8    ///   - [`values(PredefinedAttributeValues)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::values) / [`set_values(Option<PredefinedAttributeValues>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_values):<br>required: **false**<br><p>The values of the predefined attribute.</p><br>
9    ///   - [`purposes(impl Into<String>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::purposes) / [`set_purposes(Option<Vec::<String>>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_purposes):<br>required: **false**<br><p>Values that enable you to categorize your predefined attributes. You can use them in custom UI elements across the Amazon Connect admin website.</p><br>
10    ///   - [`attribute_configuration(InputPredefinedAttributeConfiguration)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::attribute_configuration) / [`set_attribute_configuration(Option<InputPredefinedAttributeConfiguration>)`](crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::set_attribute_configuration):<br>required: **false**<br><p>Custom metadata that is associated to predefined attributes to control behavior in upstream services, such as controlling how a predefined attribute should be displayed in the Amazon Connect admin website.</p><br>
11    /// - On success, responds with [`CreatePredefinedAttributeOutput`](crate::operation::create_predefined_attribute::CreatePredefinedAttributeOutput)
12    /// - On failure, responds with [`SdkError<CreatePredefinedAttributeError>`](crate::operation::create_predefined_attribute::CreatePredefinedAttributeError)
13    pub fn create_predefined_attribute(&self) -> crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder {
14        crate::operation::create_predefined_attribute::builders::CreatePredefinedAttributeFluentBuilder::new(self.handle.clone())
15    }
16}