Struct aws_sdk_dynamodb::client::fluent_builders::UpdateGlobalTable
source · [−]pub struct UpdateGlobalTable<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* 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
impl<C, M, R> UpdateGlobalTable<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateGlobalTable<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateGlobalTableOutput, SdkError<UpdateGlobalTableError>> where
R::Policy: SmithyRetryPolicy<UpdateGlobalTableInputOperationOutputAlias, UpdateGlobalTableOutput, UpdateGlobalTableError, UpdateGlobalTableInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateGlobalTableOutput, SdkError<UpdateGlobalTableError>> where
R::Policy: SmithyRetryPolicy<UpdateGlobalTableInputOperationOutputAlias, UpdateGlobalTableOutput, UpdateGlobalTableError, UpdateGlobalTableInputOperationRetryAlias>,
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.
The global table name.
The global table name.
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.
A list of Regions that should be added or removed from the global table.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateGlobalTable<C, M, R>
impl<C, M, R> Send for UpdateGlobalTable<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateGlobalTable<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateGlobalTable<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateGlobalTable<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more