aws_sdk_connect/client/
associate_instance_storage_config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateInstanceStorageConfig`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::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>
    ///   - [`resource_type(InstanceStorageResourceType)`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::resource_type) / [`set_resource_type(Option<InstanceStorageResourceType>)`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::set_resource_type):<br>required: **true**<br><p>A valid resource type. To <a href="https://docs.aws.amazon.com/connect/latest/adminguide/enable-contact-analysis-segment-streams.html">enable streaming for real-time analysis of contacts</a>, use the following types:</p> <ul>  <li>   <p>For chat contacts, use <code>REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS</code>.</p></li>  <li>   <p>For voice contacts, use <code>REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS</code>.</p></li> </ul><note>  <p><code>REAL_TIME_CONTACT_ANALYSIS_SEGMENTS</code> is deprecated, but it is still supported and will apply only to VOICE channel contacts. Use <code>REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS</code> for voice contacts moving forward.</p>  <p>If you have previously associated a stream with <code>REAL_TIME_CONTACT_ANALYSIS_SEGMENTS</code>, no action is needed to update the stream to <code>REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS</code>.</p> </note><br>
    ///   - [`storage_config(InstanceStorageConfig)`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::storage_config) / [`set_storage_config(Option<InstanceStorageConfig>)`](crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::set_storage_config):<br>required: **true**<br><p>A valid storage type.</p><br>
    /// - On success, responds with [`AssociateInstanceStorageConfigOutput`](crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigOutput) with field(s):
    ///   - [`association_id(Option<String>)`](crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigOutput::association_id): <p>The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.</p>
    /// - On failure, responds with [`SdkError<AssociateInstanceStorageConfigError>`](crate::operation::associate_instance_storage_config::AssociateInstanceStorageConfigError)
    pub fn associate_instance_storage_config(
        &self,
    ) -> crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder {
        crate::operation::associate_instance_storage_config::builders::AssociateInstanceStorageConfigFluentBuilder::new(self.handle.clone())
    }
}