Struct aws_sdk_dynamodb::operation::update_global_table::builders::UpdateGlobalTableFluentBuilder
source · pub struct UpdateGlobalTableFluentBuilder { /* 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.
This documentation is for version 2017.11.29 (Legacy) of global tables, which should be avoided for new global tables. Customers should use Global Tables version 2019.11.21 (Current) when possible, because it provides greater flexibility, higher efficiency, and consumes less write capacity than 2017.11.29 (Legacy).
To determine which version you're using, see Determining the global table version you are using. To update existing global tables from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see Upgrading global tables.
For global tables, this operation only applies to global tables using Version 2019.11.21 (Current version). If you are using global tables Version 2019.11.21 you can use UpdateTable instead.
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 UpdateGlobalTableFluentBuilder
impl UpdateGlobalTableFluentBuilder
sourcepub fn as_input(&self) -> &UpdateGlobalTableInputBuilder
pub fn as_input(&self) -> &UpdateGlobalTableInputBuilder
Access the UpdateGlobalTable as a reference.
sourcepub async fn send(
self,
) -> Result<UpdateGlobalTableOutput, SdkError<UpdateGlobalTableError, HttpResponse>>
pub async fn send( self, ) -> Result<UpdateGlobalTableOutput, SdkError<UpdateGlobalTableError, HttpResponse>>
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 customize(
self,
) -> CustomizableOperation<UpdateGlobalTableOutput, UpdateGlobalTableError, Self>
pub fn customize( self, ) -> CustomizableOperation<UpdateGlobalTableOutput, UpdateGlobalTableError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_global_table_name(&self) -> &Option<String>
pub fn get_global_table_name(&self) -> &Option<String>
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.
sourcepub fn get_replica_updates(&self) -> &Option<Vec<ReplicaUpdate>>
pub fn get_replica_updates(&self) -> &Option<Vec<ReplicaUpdate>>
A list of Regions that should be added or removed from the global table.
Trait Implementations§
source§impl Clone for UpdateGlobalTableFluentBuilder
impl Clone for UpdateGlobalTableFluentBuilder
source§fn clone(&self) -> UpdateGlobalTableFluentBuilder
fn clone(&self) -> UpdateGlobalTableFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateGlobalTableFluentBuilder
impl !RefUnwindSafe for UpdateGlobalTableFluentBuilder
impl Send for UpdateGlobalTableFluentBuilder
impl Sync for UpdateGlobalTableFluentBuilder
impl Unpin for UpdateGlobalTableFluentBuilder
impl !UnwindSafe for UpdateGlobalTableFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more