Struct aws_sdk_dynamodb::client::fluent_builders::UpdateGlobalTable
source · pub struct UpdateGlobalTable { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateGlobalTable
.
Adds or removes replicas in the specified global table. The global table must already exist to be able to use this operation. Any replica to be added must be empty, have the same name as the global table, have the same key schema, have DynamoDB Streams enabled, and have the same provisioned and maximum write capacity units.
Although you can use UpdateGlobalTable
to add replicas and remove replicas in a single request, for simplicity we recommend that you issue separate requests for adding or removing replicas.
If global secondary indexes are specified, then the following conditions must also be met:
-
The global secondary indexes must have the same name.
-
The global secondary indexes must have the same hash key and sort key (if present).
-
The global secondary indexes must have the same provisioned and maximum write capacity units.
Implementations§
source§impl UpdateGlobalTable
impl UpdateGlobalTable
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateGlobalTable, AwsResponseRetryClassifier>, SdkError<UpdateGlobalTableError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateGlobalTable, AwsResponseRetryClassifier>, SdkError<UpdateGlobalTableError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateGlobalTableOutput, SdkError<UpdateGlobalTableError>>
pub async fn send(
self
) -> Result<UpdateGlobalTableOutput, SdkError<UpdateGlobalTableError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn global_table_name(self, input: impl Into<String>) -> Self
pub fn global_table_name(self, input: impl Into<String>) -> Self
The global table name.
sourcepub fn set_global_table_name(self, input: Option<String>) -> Self
pub fn set_global_table_name(self, input: Option<String>) -> Self
The global table name.
sourcepub fn replica_updates(self, input: ReplicaUpdate) -> Self
pub fn replica_updates(self, input: ReplicaUpdate) -> Self
Appends an item to ReplicaUpdates
.
To override the contents of this collection use set_replica_updates
.
A list of Regions that should be added or removed from the global table.
sourcepub fn set_replica_updates(self, input: Option<Vec<ReplicaUpdate>>) -> Self
pub fn set_replica_updates(self, input: Option<Vec<ReplicaUpdate>>) -> Self
A list of Regions that should be added or removed from the global table.
Trait Implementations§
source§impl Clone for UpdateGlobalTable
impl Clone for UpdateGlobalTable
source§fn clone(&self) -> UpdateGlobalTable
fn clone(&self) -> UpdateGlobalTable
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more