aws_sdk_dynamodb/operation/update_table/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::update_table::_update_table_output::UpdateTableOutputBuilder;
3
4pub use crate::operation::update_table::_update_table_input::UpdateTableInputBuilder;
5
6impl crate::operation::update_table::builders::UpdateTableInputBuilder {
7                    /// Sends a request with this input using the given client.
8                    pub async fn send_with(self, client: &crate::Client) -> ::std::result::Result<
9                        crate::operation::update_table::UpdateTableOutput,
10                        ::aws_smithy_runtime_api::client::result::SdkError<
11                            crate::operation::update_table::UpdateTableError,
12                            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse
13                        >
14                    > {
15                        let mut fluent_builder = client.update_table();
16                        fluent_builder.inner = self;
17                        fluent_builder.send().await
18                    }
19                }
20/// Fluent builder constructing a request to `UpdateTable`.
21/// 
22/// <p>Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.</p>
23/// <p>You can only perform one of the following operations at once:</p>
24/// <ul>
25/// <li>
26/// <p>Modify the provisioned throughput settings of the table.</p></li>
27/// <li>
28/// <p>Remove a global secondary index from the table.</p></li>
29/// <li>
30/// <p>Create a new global secondary index on the table. After the index begins backfilling, you can use <code>UpdateTable</code> to perform other operations.</p></li>
31/// </ul>
32/// <p><code>UpdateTable</code> is an asynchronous operation; while it's executing, the table status changes from <code>ACTIVE</code> to <code>UPDATING</code>. While it's <code>UPDATING</code>, you can't issue another <code>UpdateTable</code> request. When the table returns to the <code>ACTIVE</code> state, the <code>UpdateTable</code> operation is complete.</p>
33#[derive(::std::clone::Clone, ::std::fmt::Debug)]
34pub struct UpdateTableFluentBuilder {
35                handle: ::std::sync::Arc<crate::client::Handle>,
36                inner: crate::operation::update_table::builders::UpdateTableInputBuilder,
37config_override: ::std::option::Option<crate::config::Builder>,
38            }
39impl
40                crate::client::customize::internal::CustomizableSend<
41                    crate::operation::update_table::UpdateTableOutput,
42                    crate::operation::update_table::UpdateTableError,
43                > for UpdateTableFluentBuilder
44            {
45                fn send(
46                    self,
47                    config_override: crate::config::Builder,
48                ) -> crate::client::customize::internal::BoxFuture<
49                    crate::client::customize::internal::SendResult<
50                        crate::operation::update_table::UpdateTableOutput,
51                        crate::operation::update_table::UpdateTableError,
52                    >,
53                > {
54                    ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
55                }
56            }
57impl UpdateTableFluentBuilder {
58    /// Creates a new `UpdateTableFluentBuilder`.
59                    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
60                        Self {
61                            handle,
62                            inner: ::std::default::Default::default(),
63    config_override: ::std::option::Option::None,
64                        }
65                    }
66    /// Access the UpdateTable as a reference.
67                    pub fn as_input(&self) -> &crate::operation::update_table::builders::UpdateTableInputBuilder {
68                        &self.inner
69                    }
70    /// Sends the request and returns the response.
71                    ///
72                    /// If an error occurs, an `SdkError` will be returned with additional details that
73                    /// can be matched against.
74                    ///
75                    /// By default, any retryable failures will be retried twice. Retry behavior
76                    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
77                    /// set when configuring the client.
78                    pub async fn send(self) -> ::std::result::Result<crate::operation::update_table::UpdateTableOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_table::UpdateTableError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
79                        let input = self.inner.build().map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
80                        let runtime_plugins = crate::operation::update_table::UpdateTable::operation_runtime_plugins(
81                            self.handle.runtime_plugins.clone(),
82                            &self.handle.conf,
83                            self.config_override,
84                        );
85                        crate::operation::update_table::UpdateTable::orchestrate(&runtime_plugins, input).await
86                    }
87    
88                    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
89                    pub fn customize(
90                        self,
91                    ) -> crate::client::customize::CustomizableOperation<crate::operation::update_table::UpdateTableOutput, crate::operation::update_table::UpdateTableError, Self> {
92                        crate::client::customize::CustomizableOperation::new(self)
93                    }
94    pub(crate) fn config_override(
95                            mut self,
96                            config_override: impl ::std::convert::Into<crate::config::Builder>,
97                        ) -> Self {
98                            self.set_config_override(::std::option::Option::Some(config_override.into()));
99                            self
100                        }
101    
102                        pub(crate) fn set_config_override(
103                            &mut self,
104                            config_override: ::std::option::Option<crate::config::Builder>,
105                        ) -> &mut Self {
106                            self.config_override = config_override;
107                            self
108                        }
109    /// 
110    /// Appends an item to `AttributeDefinitions`.
111    /// 
112    /// To override the contents of this collection use [`set_attribute_definitions`](Self::set_attribute_definitions).
113    /// 
114    /// <p>An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, <code>AttributeDefinitions</code> must include the key element(s) of the new index.</p>
115    pub fn attribute_definitions(mut self, input: crate::types::AttributeDefinition) -> Self {
116                        self.inner = self.inner.attribute_definitions(input);
117                        self
118                    }
119    /// <p>An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, <code>AttributeDefinitions</code> must include the key element(s) of the new index.</p>
120    pub fn set_attribute_definitions(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::AttributeDefinition>>) -> Self {
121                    self.inner = self.inner.set_attribute_definitions(input);
122                    self
123                }
124    /// <p>An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, <code>AttributeDefinitions</code> must include the key element(s) of the new index.</p>
125    pub fn get_attribute_definitions(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::AttributeDefinition>> {
126                    self.inner.get_attribute_definitions()
127                }
128    /// <p>The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
129    pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130                    self.inner = self.inner.table_name(input.into());
131                    self
132                }
133    /// <p>The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
134    pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135                    self.inner = self.inner.set_table_name(input);
136                    self
137                }
138    /// <p>The name of the table to be updated. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.</p>
139    pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
140                    self.inner.get_table_name()
141                }
142    /// <p>Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.</p>
143    /// <ul>
144    /// <li>
145    /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for most DynamoDB workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html">On-demand capacity mode</a>.</p></li>
146    /// <li>
147    /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for steady workloads with predictable growth where capacity requirements can be reliably forecasted. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html">Provisioned capacity mode</a>.</p></li>
148    /// </ul>
149    pub fn billing_mode(mut self, input: crate::types::BillingMode) -> Self {
150                    self.inner = self.inner.billing_mode(input);
151                    self
152                }
153    /// <p>Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.</p>
154    /// <ul>
155    /// <li>
156    /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for most DynamoDB workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html">On-demand capacity mode</a>.</p></li>
157    /// <li>
158    /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for steady workloads with predictable growth where capacity requirements can be reliably forecasted. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html">Provisioned capacity mode</a>.</p></li>
159    /// </ul>
160    pub fn set_billing_mode(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
161                    self.inner = self.inner.set_billing_mode(input);
162                    self
163                }
164    /// <p>Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.</p>
165    /// <ul>
166    /// <li>
167    /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for most DynamoDB workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html">On-demand capacity mode</a>.</p></li>
168    /// <li>
169    /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for steady workloads with predictable growth where capacity requirements can be reliably forecasted. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html">Provisioned capacity mode</a>.</p></li>
170    /// </ul>
171    pub fn get_billing_mode(&self) -> &::std::option::Option<crate::types::BillingMode> {
172                    self.inner.get_billing_mode()
173                }
174    /// <p>The new provisioned throughput settings for the specified table or index.</p>
175    pub fn provisioned_throughput(mut self, input: crate::types::ProvisionedThroughput) -> Self {
176                    self.inner = self.inner.provisioned_throughput(input);
177                    self
178                }
179    /// <p>The new provisioned throughput settings for the specified table or index.</p>
180    pub fn set_provisioned_throughput(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
181                    self.inner = self.inner.set_provisioned_throughput(input);
182                    self
183                }
184    /// <p>The new provisioned throughput settings for the specified table or index.</p>
185    pub fn get_provisioned_throughput(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
186                    self.inner.get_provisioned_throughput()
187                }
188    /// 
189    /// Appends an item to `GlobalSecondaryIndexUpdates`.
190    /// 
191    /// To override the contents of this collection use [`set_global_secondary_index_updates`](Self::set_global_secondary_index_updates).
192    /// 
193    /// <p>An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:</p>
194    /// <ul>
195    /// <li>
196    /// <p><code>Create</code> - add a new global secondary index to the table.</p></li>
197    /// <li>
198    /// <p><code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p></li>
199    /// <li>
200    /// <p><code>Delete</code> - remove a global secondary index from the table.</p></li>
201    /// </ul>
202    /// <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p>
203    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html">Managing Global Secondary Indexes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
204    pub fn global_secondary_index_updates(mut self, input: crate::types::GlobalSecondaryIndexUpdate) -> Self {
205                        self.inner = self.inner.global_secondary_index_updates(input);
206                        self
207                    }
208    /// <p>An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:</p>
209    /// <ul>
210    /// <li>
211    /// <p><code>Create</code> - add a new global secondary index to the table.</p></li>
212    /// <li>
213    /// <p><code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p></li>
214    /// <li>
215    /// <p><code>Delete</code> - remove a global secondary index from the table.</p></li>
216    /// </ul>
217    /// <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p>
218    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html">Managing Global Secondary Indexes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
219    pub fn set_global_secondary_index_updates(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::GlobalSecondaryIndexUpdate>>) -> Self {
220                    self.inner = self.inner.set_global_secondary_index_updates(input);
221                    self
222                }
223    /// <p>An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:</p>
224    /// <ul>
225    /// <li>
226    /// <p><code>Create</code> - add a new global secondary index to the table.</p></li>
227    /// <li>
228    /// <p><code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p></li>
229    /// <li>
230    /// <p><code>Delete</code> - remove a global secondary index from the table.</p></li>
231    /// </ul>
232    /// <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p>
233    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html">Managing Global Secondary Indexes</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
234    pub fn get_global_secondary_index_updates(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::GlobalSecondaryIndexUpdate>> {
235                    self.inner.get_global_secondary_index_updates()
236                }
237    /// <p>Represents the DynamoDB Streams configuration for the table.</p><note>
238    /// <p>You receive a <code>ValidationException</code> if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.</p>
239    /// </note>
240    pub fn stream_specification(mut self, input: crate::types::StreamSpecification) -> Self {
241                    self.inner = self.inner.stream_specification(input);
242                    self
243                }
244    /// <p>Represents the DynamoDB Streams configuration for the table.</p><note>
245    /// <p>You receive a <code>ValidationException</code> if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.</p>
246    /// </note>
247    pub fn set_stream_specification(mut self, input: ::std::option::Option<crate::types::StreamSpecification>) -> Self {
248                    self.inner = self.inner.set_stream_specification(input);
249                    self
250                }
251    /// <p>Represents the DynamoDB Streams configuration for the table.</p><note>
252    /// <p>You receive a <code>ValidationException</code> if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.</p>
253    /// </note>
254    pub fn get_stream_specification(&self) -> &::std::option::Option<crate::types::StreamSpecification> {
255                    self.inner.get_stream_specification()
256                }
257    /// <p>The new server-side encryption settings for the specified table.</p>
258    pub fn sse_specification(mut self, input: crate::types::SseSpecification) -> Self {
259                    self.inner = self.inner.sse_specification(input);
260                    self
261                }
262    /// <p>The new server-side encryption settings for the specified table.</p>
263    pub fn set_sse_specification(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
264                    self.inner = self.inner.set_sse_specification(input);
265                    self
266                }
267    /// <p>The new server-side encryption settings for the specified table.</p>
268    pub fn get_sse_specification(&self) -> &::std::option::Option<crate::types::SseSpecification> {
269                    self.inner.get_sse_specification()
270                }
271    /// 
272    /// Appends an item to `ReplicaUpdates`.
273    /// 
274    /// To override the contents of this collection use [`set_replica_updates`](Self::set_replica_updates).
275    /// 
276    /// <p>A list of replica update actions (create, delete, or update) for the table.</p>
277    pub fn replica_updates(mut self, input: crate::types::ReplicationGroupUpdate) -> Self {
278                        self.inner = self.inner.replica_updates(input);
279                        self
280                    }
281    /// <p>A list of replica update actions (create, delete, or update) for the table.</p>
282    pub fn set_replica_updates(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::ReplicationGroupUpdate>>) -> Self {
283                    self.inner = self.inner.set_replica_updates(input);
284                    self
285                }
286    /// <p>A list of replica update actions (create, delete, or update) for the table.</p>
287    pub fn get_replica_updates(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::ReplicationGroupUpdate>> {
288                    self.inner.get_replica_updates()
289                }
290    /// <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
291    pub fn table_class(mut self, input: crate::types::TableClass) -> Self {
292                    self.inner = self.inner.table_class(input);
293                    self
294                }
295    /// <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
296    pub fn set_table_class(mut self, input: ::std::option::Option<crate::types::TableClass>) -> Self {
297                    self.inner = self.inner.set_table_class(input);
298                    self
299                }
300    /// <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
301    pub fn get_table_class(&self) -> &::std::option::Option<crate::types::TableClass> {
302                    self.inner.get_table_class()
303                }
304    /// <p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>
305    pub fn deletion_protection_enabled(mut self, input: bool) -> Self {
306                    self.inner = self.inner.deletion_protection_enabled(input);
307                    self
308                }
309    /// <p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>
310    pub fn set_deletion_protection_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
311                    self.inner = self.inner.set_deletion_protection_enabled(input);
312                    self
313                }
314    /// <p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>
315    pub fn get_deletion_protection_enabled(&self) -> &::std::option::Option<bool> {
316                    self.inner.get_deletion_protection_enabled()
317                }
318    /// <p>Specifies the consistency mode for a new global table. This parameter is only valid when you create a global table by specifying one or more <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create">Create</a> actions in the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates">ReplicaUpdates</a> action list.</p>
319    /// <p>You can specify one of the following consistency modes:</p>
320    /// <ul>
321    /// <li>
322    /// <p><code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency (MREC). This is the default consistency mode for global tables.</p></li>
323    /// <li>
324    /// <p><code>STRONG</code>: Configures a new global table for multi-Region strong consistency (MRSC).</p></li>
325    /// </ul>
326    /// <p>If you don't specify this field, the global table consistency mode defaults to <code>EVENTUAL</code>. For more information about global tables consistency modes, see <a href="https://docs.aws.amazon.com/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes"> Consistency modes</a> in DynamoDB developer guide.</p>
327    pub fn multi_region_consistency(mut self, input: crate::types::MultiRegionConsistency) -> Self {
328                    self.inner = self.inner.multi_region_consistency(input);
329                    self
330                }
331    /// <p>Specifies the consistency mode for a new global table. This parameter is only valid when you create a global table by specifying one or more <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create">Create</a> actions in the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates">ReplicaUpdates</a> action list.</p>
332    /// <p>You can specify one of the following consistency modes:</p>
333    /// <ul>
334    /// <li>
335    /// <p><code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency (MREC). This is the default consistency mode for global tables.</p></li>
336    /// <li>
337    /// <p><code>STRONG</code>: Configures a new global table for multi-Region strong consistency (MRSC).</p></li>
338    /// </ul>
339    /// <p>If you don't specify this field, the global table consistency mode defaults to <code>EVENTUAL</code>. For more information about global tables consistency modes, see <a href="https://docs.aws.amazon.com/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes"> Consistency modes</a> in DynamoDB developer guide.</p>
340    pub fn set_multi_region_consistency(mut self, input: ::std::option::Option<crate::types::MultiRegionConsistency>) -> Self {
341                    self.inner = self.inner.set_multi_region_consistency(input);
342                    self
343                }
344    /// <p>Specifies the consistency mode for a new global table. This parameter is only valid when you create a global table by specifying one or more <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create">Create</a> actions in the <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates">ReplicaUpdates</a> action list.</p>
345    /// <p>You can specify one of the following consistency modes:</p>
346    /// <ul>
347    /// <li>
348    /// <p><code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency (MREC). This is the default consistency mode for global tables.</p></li>
349    /// <li>
350    /// <p><code>STRONG</code>: Configures a new global table for multi-Region strong consistency (MRSC).</p></li>
351    /// </ul>
352    /// <p>If you don't specify this field, the global table consistency mode defaults to <code>EVENTUAL</code>. For more information about global tables consistency modes, see <a href="https://docs.aws.amazon.com/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes"> Consistency modes</a> in DynamoDB developer guide.</p>
353    pub fn get_multi_region_consistency(&self) -> &::std::option::Option<crate::types::MultiRegionConsistency> {
354                    self.inner.get_multi_region_consistency()
355                }
356    /// 
357    /// Appends an item to `GlobalTableWitnessUpdates`.
358    /// 
359    /// To override the contents of this collection use [`set_global_table_witness_updates`](Self::set_global_table_witness_updates).
360    /// 
361    /// <p>A list of witness updates for a MRSC global table. A witness provides a cost-effective alternative to a full replica in a MRSC global table by maintaining replicated change data written to global table replicas. You cannot perform read or write operations on a witness. For each witness, you can request one action:</p>
362    /// <ul>
363    /// <li>
364    /// <p><code>Create</code> - add a new witness to the global table.</p></li>
365    /// <li>
366    /// <p><code>Delete</code> - remove a witness from the global table.</p></li>
367    /// </ul>
368    /// <p>You can create or delete only one witness per <code>UpdateTable</code> operation.</p>
369    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes">Multi-Region strong consistency (MRSC)</a> in the Amazon DynamoDB Developer Guide</p>
370    pub fn global_table_witness_updates(mut self, input: crate::types::GlobalTableWitnessGroupUpdate) -> Self {
371                        self.inner = self.inner.global_table_witness_updates(input);
372                        self
373                    }
374    /// <p>A list of witness updates for a MRSC global table. A witness provides a cost-effective alternative to a full replica in a MRSC global table by maintaining replicated change data written to global table replicas. You cannot perform read or write operations on a witness. For each witness, you can request one action:</p>
375    /// <ul>
376    /// <li>
377    /// <p><code>Create</code> - add a new witness to the global table.</p></li>
378    /// <li>
379    /// <p><code>Delete</code> - remove a witness from the global table.</p></li>
380    /// </ul>
381    /// <p>You can create or delete only one witness per <code>UpdateTable</code> operation.</p>
382    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes">Multi-Region strong consistency (MRSC)</a> in the Amazon DynamoDB Developer Guide</p>
383    pub fn set_global_table_witness_updates(mut self, input: ::std::option::Option<::std::vec::Vec::<crate::types::GlobalTableWitnessGroupUpdate>>) -> Self {
384                    self.inner = self.inner.set_global_table_witness_updates(input);
385                    self
386                }
387    /// <p>A list of witness updates for a MRSC global table. A witness provides a cost-effective alternative to a full replica in a MRSC global table by maintaining replicated change data written to global table replicas. You cannot perform read or write operations on a witness. For each witness, you can request one action:</p>
388    /// <ul>
389    /// <li>
390    /// <p><code>Create</code> - add a new witness to the global table.</p></li>
391    /// <li>
392    /// <p><code>Delete</code> - remove a witness from the global table.</p></li>
393    /// </ul>
394    /// <p>You can create or delete only one witness per <code>UpdateTable</code> operation.</p>
395    /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_HowItWorks.html#V2globaltables_HowItWorks.consistency-modes">Multi-Region strong consistency (MRSC)</a> in the Amazon DynamoDB Developer Guide</p>
396    pub fn get_global_table_witness_updates(&self) -> &::std::option::Option<::std::vec::Vec::<crate::types::GlobalTableWitnessGroupUpdate>> {
397                    self.inner.get_global_table_witness_updates()
398                }
399    /// <p>Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify <code>MaxReadRequestUnits</code>, <code>MaxWriteRequestUnits</code>, or both.</p>
400    pub fn on_demand_throughput(mut self, input: crate::types::OnDemandThroughput) -> Self {
401                    self.inner = self.inner.on_demand_throughput(input);
402                    self
403                }
404    /// <p>Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify <code>MaxReadRequestUnits</code>, <code>MaxWriteRequestUnits</code>, or both.</p>
405    pub fn set_on_demand_throughput(mut self, input: ::std::option::Option<crate::types::OnDemandThroughput>) -> Self {
406                    self.inner = self.inner.set_on_demand_throughput(input);
407                    self
408                }
409    /// <p>Updates the maximum number of read and write units for the specified table in on-demand capacity mode. If you use this parameter, you must specify <code>MaxReadRequestUnits</code>, <code>MaxWriteRequestUnits</code>, or both.</p>
410    pub fn get_on_demand_throughput(&self) -> &::std::option::Option<crate::types::OnDemandThroughput> {
411                    self.inner.get_on_demand_throughput()
412                }
413    /// <p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>
414    pub fn warm_throughput(mut self, input: crate::types::WarmThroughput) -> Self {
415                    self.inner = self.inner.warm_throughput(input);
416                    self
417                }
418    /// <p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>
419    pub fn set_warm_throughput(mut self, input: ::std::option::Option<crate::types::WarmThroughput>) -> Self {
420                    self.inner = self.inner.set_warm_throughput(input);
421                    self
422                }
423    /// <p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>
424    pub fn get_warm_throughput(&self) -> &::std::option::Option<crate::types::WarmThroughput> {
425                    self.inner.get_warm_throughput()
426                }
427}
428