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