1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`BatchAssociateAnalyticsDataSet`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::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>
    ///   - [`data_set_ids(impl Into<String>)`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::data_set_ids) / [`set_data_set_ids(Option<Vec::<String>>)`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::set_data_set_ids):<br>required: **true**<br><p>An array of dataset identifiers to associate.</p><br>
    ///   - [`target_account_id(impl Into<String>)`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::target_account_id) / [`set_target_account_id(Option<String>)`](crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::set_target_account_id):<br>required: **false**<br><p>The identifier of the target account. Use to associate a dataset to a different account than the one containing the Amazon Connect instance. If not specified, by default this value is the Amazon Web Services account that has the Amazon Connect instance.</p><br>
    /// - On success, responds with [`BatchAssociateAnalyticsDataSetOutput`](crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetOutput) with field(s):
    ///   - [`created(Option<Vec::<AnalyticsDataAssociationResult>>)`](crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetOutput::created): <p>Information about associations that are successfully created: <code>DataSetId</code>, <code>TargetAccountId</code>, <code>ResourceShareId</code>, <code>ResourceShareArn</code>.</p>
    ///   - [`errors(Option<Vec::<ErrorResult>>)`](crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetOutput::errors): <p>A list of errors for datasets that aren't successfully associated with the target account.</p>
    /// - On failure, responds with [`SdkError<BatchAssociateAnalyticsDataSetError>`](crate::operation::batch_associate_analytics_data_set::BatchAssociateAnalyticsDataSetError)
    pub fn batch_associate_analytics_data_set(
        &self,
    ) -> crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder {
        crate::operation::batch_associate_analytics_data_set::builders::BatchAssociateAnalyticsDataSetFluentBuilder::new(self.handle.clone())
    }
}