aws_sdk_connect/client/
update_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 [`UpdatePredefinedAttribute`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_id(impl Into<String>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::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::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::set_name):<br>required: **true**<br><p>The name of the predefined attribute.</p><br>
8    ///   - [`values(PredefinedAttributeValues)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::values) / [`set_values(Option<PredefinedAttributeValues>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::set_values):<br>required: **false**<br><p>The values of the predefined attribute.</p><br>
9    ///   - [`purposes(impl Into<String>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::purposes) / [`set_purposes(Option<Vec::<String>>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::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::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::attribute_configuration) / [`set_attribute_configuration(Option<InputPredefinedAttributeConfiguration>)`](crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::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 [`UpdatePredefinedAttributeOutput`](crate::operation::update_predefined_attribute::UpdatePredefinedAttributeOutput)
12    /// - On failure, responds with [`SdkError<UpdatePredefinedAttributeError>`](crate::operation::update_predefined_attribute::UpdatePredefinedAttributeError)
13    pub fn update_predefined_attribute(&self) -> crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder {
14        crate::operation::update_predefined_attribute::builders::UpdatePredefinedAttributeFluentBuilder::new(self.handle.clone())
15    }
16}