aws_sdk_connect/client/
update_data_table_primary_values.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 [`UpdateDataTablePrimaryValues`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_id(impl Into<String>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::set_instance_id):<br>required: **true**<br><p>The unique identifier for the Amazon Connect instance.</p><br>
7    ///   - [`data_table_id(impl Into<String>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::data_table_id) / [`set_data_table_id(Option<String>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::set_data_table_id):<br>required: **true**<br><p>The unique identifier for the data table. Must also accept the table ARN with or without a version alias. If the version is provided as part of the identifier or ARN, the version must be one of the two available system managed aliases, $SAVED or $LATEST.</p><br>
8    ///   - [`primary_values(PrimaryValue)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::primary_values) / [`set_primary_values(Option<Vec::<PrimaryValue>>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::set_primary_values):<br>required: **true**<br><p>The current primary values for the record. Required and must include values for all primary attributes. Fails if the table has primary attributes and some primary values are omitted.</p><br>
9    ///   - [`new_primary_values(PrimaryValue)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::new_primary_values) / [`set_new_primary_values(Option<Vec::<PrimaryValue>>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::set_new_primary_values):<br>required: **true**<br><p>The new primary values for the record. Required and must include values for all primary attributes. The combination must be unique within the table.</p><br>
10    ///   - [`lock_version(DataTableLockVersion)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::lock_version) / [`set_lock_version(Option<DataTableLockVersion>)`](crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::set_lock_version):<br>required: **true**<br><p>The lock version information required for optimistic locking to prevent concurrent modifications.</p><br>
11    /// - On success, responds with [`UpdateDataTablePrimaryValuesOutput`](crate::operation::update_data_table_primary_values::UpdateDataTablePrimaryValuesOutput) with field(s):
12    ///   - [`lock_version(Option<DataTableLockVersion>)`](crate::operation::update_data_table_primary_values::UpdateDataTablePrimaryValuesOutput::lock_version): <p>The updated lock version information for the data table and affected components after the primary values change.</p>
13    /// - On failure, responds with [`SdkError<UpdateDataTablePrimaryValuesError>`](crate::operation::update_data_table_primary_values::UpdateDataTablePrimaryValuesError)
14    pub fn update_data_table_primary_values(
15        &self,
16    ) -> crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder {
17        crate::operation::update_data_table_primary_values::builders::UpdateDataTablePrimaryValuesFluentBuilder::new(self.handle.clone())
18    }
19}