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(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_table::UpdateTableOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_table::UpdateTableError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_table();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `UpdateTable`.
24///
25/// <p>Modifies the provisioned throughput settings, global secondary indexes, or DynamoDB Streams settings for a given table.</p><important>
26/// <p>For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version).</p>
27/// </important>
28/// <p>You can only perform one of the following operations at once:</p>
29/// <ul>
30/// <li>
31/// <p>Modify the provisioned throughput settings of the table.</p></li>
32/// <li>
33/// <p>Remove a global secondary index from the table.</p></li>
34/// <li>
35/// <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>
36/// </ul>
37/// <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>
38#[derive(::std::clone::Clone, ::std::fmt::Debug)]
39pub struct UpdateTableFluentBuilder {
40 handle: ::std::sync::Arc<crate::client::Handle>,
41 inner: crate::operation::update_table::builders::UpdateTableInputBuilder,
42 config_override: ::std::option::Option<crate::config::Builder>,
43}
44impl
45 crate::client::customize::internal::CustomizableSend<
46 crate::operation::update_table::UpdateTableOutput,
47 crate::operation::update_table::UpdateTableError,
48 > for UpdateTableFluentBuilder
49{
50 fn send(
51 self,
52 config_override: crate::config::Builder,
53 ) -> crate::client::customize::internal::BoxFuture<
54 crate::client::customize::internal::SendResult<
55 crate::operation::update_table::UpdateTableOutput,
56 crate::operation::update_table::UpdateTableError,
57 >,
58 > {
59 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
60 }
61}
62impl UpdateTableFluentBuilder {
63 /// Creates a new `UpdateTableFluentBuilder`.
64 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
65 Self {
66 handle,
67 inner: ::std::default::Default::default(),
68 config_override: ::std::option::Option::None,
69 }
70 }
71 /// Access the UpdateTable as a reference.
72 pub fn as_input(&self) -> &crate::operation::update_table::builders::UpdateTableInputBuilder {
73 &self.inner
74 }
75 /// Sends the request and returns the response.
76 ///
77 /// If an error occurs, an `SdkError` will be returned with additional details that
78 /// can be matched against.
79 ///
80 /// By default, any retryable failures will be retried twice. Retry behavior
81 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
82 /// set when configuring the client.
83 pub async fn send(
84 self,
85 ) -> ::std::result::Result<
86 crate::operation::update_table::UpdateTableOutput,
87 ::aws_smithy_runtime_api::client::result::SdkError<
88 crate::operation::update_table::UpdateTableError,
89 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
90 >,
91 > {
92 let input = self
93 .inner
94 .build()
95 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
96 let runtime_plugins = crate::operation::update_table::UpdateTable::operation_runtime_plugins(
97 self.handle.runtime_plugins.clone(),
98 &self.handle.conf,
99 self.config_override,
100 );
101 crate::operation::update_table::UpdateTable::orchestrate(&runtime_plugins, input).await
102 }
103
104 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
105 pub fn customize(
106 self,
107 ) -> crate::client::customize::CustomizableOperation<
108 crate::operation::update_table::UpdateTableOutput,
109 crate::operation::update_table::UpdateTableError,
110 Self,
111 > {
112 crate::client::customize::CustomizableOperation::new(self)
113 }
114 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
115 self.set_config_override(::std::option::Option::Some(config_override.into()));
116 self
117 }
118
119 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
120 self.config_override = config_override;
121 self
122 }
123 ///
124 /// Appends an item to `AttributeDefinitions`.
125 ///
126 /// To override the contents of this collection use [`set_attribute_definitions`](Self::set_attribute_definitions).
127 ///
128 /// <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>
129 pub fn attribute_definitions(mut self, input: crate::types::AttributeDefinition) -> Self {
130 self.inner = self.inner.attribute_definitions(input);
131 self
132 }
133 /// <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>
134 pub fn set_attribute_definitions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>>) -> Self {
135 self.inner = self.inner.set_attribute_definitions(input);
136 self
137 }
138 /// <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>
139 pub fn get_attribute_definitions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>> {
140 self.inner.get_attribute_definitions()
141 }
142 /// <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>
143 pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.inner = self.inner.table_name(input.into());
145 self
146 }
147 /// <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>
148 pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.inner = self.inner.set_table_name(input);
150 self
151 }
152 /// <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>
153 pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
154 self.inner.get_table_name()
155 }
156 /// <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>
157 /// <ul>
158 /// <li>
159 /// <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>
160 /// <li>
161 /// <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>
162 /// </ul>
163 pub fn billing_mode(mut self, input: crate::types::BillingMode) -> Self {
164 self.inner = self.inner.billing_mode(input);
165 self
166 }
167 /// <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>
168 /// <ul>
169 /// <li>
170 /// <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>
171 /// <li>
172 /// <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>
173 /// </ul>
174 pub fn set_billing_mode(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
175 self.inner = self.inner.set_billing_mode(input);
176 self
177 }
178 /// <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>
179 /// <ul>
180 /// <li>
181 /// <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>
182 /// <li>
183 /// <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>
184 /// </ul>
185 pub fn get_billing_mode(&self) -> &::std::option::Option<crate::types::BillingMode> {
186 self.inner.get_billing_mode()
187 }
188 /// <p>The new provisioned throughput settings for the specified table or index.</p>
189 pub fn provisioned_throughput(mut self, input: crate::types::ProvisionedThroughput) -> Self {
190 self.inner = self.inner.provisioned_throughput(input);
191 self
192 }
193 /// <p>The new provisioned throughput settings for the specified table or index.</p>
194 pub fn set_provisioned_throughput(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
195 self.inner = self.inner.set_provisioned_throughput(input);
196 self
197 }
198 /// <p>The new provisioned throughput settings for the specified table or index.</p>
199 pub fn get_provisioned_throughput(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
200 self.inner.get_provisioned_throughput()
201 }
202 ///
203 /// Appends an item to `GlobalSecondaryIndexUpdates`.
204 ///
205 /// To override the contents of this collection use [`set_global_secondary_index_updates`](Self::set_global_secondary_index_updates).
206 ///
207 /// <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>
208 /// <ul>
209 /// <li>
210 /// <p><code>Create</code> - add a new global secondary index to the table.</p></li>
211 /// <li>
212 /// <p><code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p></li>
213 /// <li>
214 /// <p><code>Delete</code> - remove a global secondary index from the table.</p></li>
215 /// </ul>
216 /// <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p>
217 /// <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>
218 pub fn global_secondary_index_updates(mut self, input: crate::types::GlobalSecondaryIndexUpdate) -> Self {
219 self.inner = self.inner.global_secondary_index_updates(input);
220 self
221 }
222 /// <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>
223 /// <ul>
224 /// <li>
225 /// <p><code>Create</code> - add a new global secondary index to the table.</p></li>
226 /// <li>
227 /// <p><code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p></li>
228 /// <li>
229 /// <p><code>Delete</code> - remove a global secondary index from the table.</p></li>
230 /// </ul>
231 /// <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p>
232 /// <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>
233 pub fn set_global_secondary_index_updates(
234 mut self,
235 input: ::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndexUpdate>>,
236 ) -> Self {
237 self.inner = self.inner.set_global_secondary_index_updates(input);
238 self
239 }
240 /// <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>
241 /// <ul>
242 /// <li>
243 /// <p><code>Create</code> - add a new global secondary index to the table.</p></li>
244 /// <li>
245 /// <p><code>Update</code> - modify the provisioned throughput settings of an existing global secondary index.</p></li>
246 /// <li>
247 /// <p><code>Delete</code> - remove a global secondary index from the table.</p></li>
248 /// </ul>
249 /// <p>You can create or delete only one global secondary index per <code>UpdateTable</code> operation.</p>
250 /// <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>
251 pub fn get_global_secondary_index_updates(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndexUpdate>> {
252 self.inner.get_global_secondary_index_updates()
253 }
254 /// <p>Represents the DynamoDB Streams configuration for the table.</p><note>
255 /// <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>
256 /// </note>
257 pub fn stream_specification(mut self, input: crate::types::StreamSpecification) -> Self {
258 self.inner = self.inner.stream_specification(input);
259 self
260 }
261 /// <p>Represents the DynamoDB Streams configuration for the table.</p><note>
262 /// <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>
263 /// </note>
264 pub fn set_stream_specification(mut self, input: ::std::option::Option<crate::types::StreamSpecification>) -> Self {
265 self.inner = self.inner.set_stream_specification(input);
266 self
267 }
268 /// <p>Represents the DynamoDB Streams configuration for the table.</p><note>
269 /// <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>
270 /// </note>
271 pub fn get_stream_specification(&self) -> &::std::option::Option<crate::types::StreamSpecification> {
272 self.inner.get_stream_specification()
273 }
274 /// <p>The new server-side encryption settings for the specified table.</p>
275 pub fn sse_specification(mut self, input: crate::types::SseSpecification) -> Self {
276 self.inner = self.inner.sse_specification(input);
277 self
278 }
279 /// <p>The new server-side encryption settings for the specified table.</p>
280 pub fn set_sse_specification(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
281 self.inner = self.inner.set_sse_specification(input);
282 self
283 }
284 /// <p>The new server-side encryption settings for the specified table.</p>
285 pub fn get_sse_specification(&self) -> &::std::option::Option<crate::types::SseSpecification> {
286 self.inner.get_sse_specification()
287 }
288 ///
289 /// Appends an item to `ReplicaUpdates`.
290 ///
291 /// To override the contents of this collection use [`set_replica_updates`](Self::set_replica_updates).
292 ///
293 /// <p>A list of replica update actions (create, delete, or update) for the table.</p><note>
294 /// <p>For global tables, this property only applies to global tables using Version 2019.11.21 (Current version).</p>
295 /// </note>
296 pub fn replica_updates(mut self, input: crate::types::ReplicationGroupUpdate) -> Self {
297 self.inner = self.inner.replica_updates(input);
298 self
299 }
300 /// <p>A list of replica update actions (create, delete, or update) for the table.</p><note>
301 /// <p>For global tables, this property only applies to global tables using Version 2019.11.21 (Current version).</p>
302 /// </note>
303 pub fn set_replica_updates(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ReplicationGroupUpdate>>) -> Self {
304 self.inner = self.inner.set_replica_updates(input);
305 self
306 }
307 /// <p>A list of replica update actions (create, delete, or update) for the table.</p><note>
308 /// <p>For global tables, this property only applies to global tables using Version 2019.11.21 (Current version).</p>
309 /// </note>
310 pub fn get_replica_updates(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ReplicationGroupUpdate>> {
311 self.inner.get_replica_updates()
312 }
313 /// <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
314 pub fn table_class(mut self, input: crate::types::TableClass) -> Self {
315 self.inner = self.inner.table_class(input);
316 self
317 }
318 /// <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
319 pub fn set_table_class(mut self, input: ::std::option::Option<crate::types::TableClass>) -> Self {
320 self.inner = self.inner.set_table_class(input);
321 self
322 }
323 /// <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
324 pub fn get_table_class(&self) -> &::std::option::Option<crate::types::TableClass> {
325 self.inner.get_table_class()
326 }
327 /// <p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>
328 pub fn deletion_protection_enabled(mut self, input: bool) -> Self {
329 self.inner = self.inner.deletion_protection_enabled(input);
330 self
331 }
332 /// <p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>
333 pub fn set_deletion_protection_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
334 self.inner = self.inner.set_deletion_protection_enabled(input);
335 self
336 }
337 /// <p>Indicates whether deletion protection is to be enabled (true) or disabled (false) on the table.</p>
338 pub fn get_deletion_protection_enabled(&self) -> &::std::option::Option<bool> {
339 self.inner.get_deletion_protection_enabled()
340 }
341 /// <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>
342 /// <p>You can specify one of the following consistency modes:</p>
343 /// <ul>
344 /// <li>
345 /// <p><code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency. This is the default consistency mode for global tables.</p></li>
346 /// <li>
347 /// <p><code>STRONG</code>: Configures a new global table for multi-Region strong consistency (preview).</p><note>
348 /// <p>Multi-Region strong consistency (MRSC) is a new DynamoDB global tables capability currently available in preview mode. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt">Global tables multi-Region strong consistency</a>.</p>
349 /// </note></li>
350 /// </ul>
351 /// <p>If you don't specify this parameter, the global table consistency mode defaults to <code>EVENTUAL</code>.</p>
352 pub fn multi_region_consistency(mut self, input: crate::types::MultiRegionConsistency) -> Self {
353 self.inner = self.inner.multi_region_consistency(input);
354 self
355 }
356 /// <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>
357 /// <p>You can specify one of the following consistency modes:</p>
358 /// <ul>
359 /// <li>
360 /// <p><code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency. This is the default consistency mode for global tables.</p></li>
361 /// <li>
362 /// <p><code>STRONG</code>: Configures a new global table for multi-Region strong consistency (preview).</p><note>
363 /// <p>Multi-Region strong consistency (MRSC) is a new DynamoDB global tables capability currently available in preview mode. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt">Global tables multi-Region strong consistency</a>.</p>
364 /// </note></li>
365 /// </ul>
366 /// <p>If you don't specify this parameter, the global table consistency mode defaults to <code>EVENTUAL</code>.</p>
367 pub fn set_multi_region_consistency(mut self, input: ::std::option::Option<crate::types::MultiRegionConsistency>) -> Self {
368 self.inner = self.inner.set_multi_region_consistency(input);
369 self
370 }
371 /// <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>
372 /// <p>You can specify one of the following consistency modes:</p>
373 /// <ul>
374 /// <li>
375 /// <p><code>EVENTUAL</code>: Configures a new global table for multi-Region eventual consistency. This is the default consistency mode for global tables.</p></li>
376 /// <li>
377 /// <p><code>STRONG</code>: Configures a new global table for multi-Region strong consistency (preview).</p><note>
378 /// <p>Multi-Region strong consistency (MRSC) is a new DynamoDB global tables capability currently available in preview mode. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt">Global tables multi-Region strong consistency</a>.</p>
379 /// </note></li>
380 /// </ul>
381 /// <p>If you don't specify this parameter, the global table consistency mode defaults to <code>EVENTUAL</code>.</p>
382 pub fn get_multi_region_consistency(&self) -> &::std::option::Option<crate::types::MultiRegionConsistency> {
383 self.inner.get_multi_region_consistency()
384 }
385 /// <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>
386 pub fn on_demand_throughput(mut self, input: crate::types::OnDemandThroughput) -> Self {
387 self.inner = self.inner.on_demand_throughput(input);
388 self
389 }
390 /// <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>
391 pub fn set_on_demand_throughput(mut self, input: ::std::option::Option<crate::types::OnDemandThroughput>) -> Self {
392 self.inner = self.inner.set_on_demand_throughput(input);
393 self
394 }
395 /// <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>
396 pub fn get_on_demand_throughput(&self) -> &::std::option::Option<crate::types::OnDemandThroughput> {
397 self.inner.get_on_demand_throughput()
398 }
399 /// <p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>
400 pub fn warm_throughput(mut self, input: crate::types::WarmThroughput) -> Self {
401 self.inner = self.inner.warm_throughput(input);
402 self
403 }
404 /// <p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>
405 pub fn set_warm_throughput(mut self, input: ::std::option::Option<crate::types::WarmThroughput>) -> Self {
406 self.inner = self.inner.set_warm_throughput(input);
407 self
408 }
409 /// <p>Represents the warm throughput (in read units per second and write units per second) for updating a table.</p>
410 pub fn get_warm_throughput(&self) -> &::std::option::Option<crate::types::WarmThroughput> {
411 self.inner.get_warm_throughput()
412 }
413}