aws_sdk_connect/client/
update_contact_attributes.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateContactAttributes`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`initial_contact_id(impl Into<String>)`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::initial_contact_id) / [`set_initial_contact_id(Option<String>)`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::set_initial_contact_id):<br>required: **true**<br><p>The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.</p><br>
    ///   - [`instance_id(impl Into<String>)`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::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>
    ///   - [`attributes(impl Into<String>, impl Into<String>)`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::attributes) / [`set_attributes(Option<HashMap::<String, String>>)`](crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::set_attributes):<br>required: **true**<br><p>The Amazon Connect attributes. These attributes can be accessed in flows just like any other contact attributes.</p> <p>You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.</p> <p>When the attributes for a contact exceed 32 KB, the contact is routed down the Error branch of the flow. As a mitigation, consider the following options:</p> <ul>  <li>   <p>Remove unnecessary attributes by setting their values to empty.</p></li>  <li>   <p>If the attributes are only used in one flow and don't need to be referred to outside of that flow (for example, by a Lambda or another flow), then use flow attributes. This way you aren't needlessly persisting the 32 KB of information from one flow to another. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/set-contact-attributes.html">Flow block: Set contact attributes</a> in the <i>Amazon Connect Administrator Guide</i>.</p></li> </ul><br>
    /// - On success, responds with [`UpdateContactAttributesOutput`](crate::operation::update_contact_attributes::UpdateContactAttributesOutput)
    /// - On failure, responds with [`SdkError<UpdateContactAttributesError>`](crate::operation::update_contact_attributes::UpdateContactAttributesError)
    pub fn update_contact_attributes(&self) -> crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder {
        crate::operation::update_contact_attributes::builders::UpdateContactAttributesFluentBuilder::new(self.handle.clone())
    }
}