amazonka-dynamodb-1.6.0: Amazon DynamoDB SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.DynamoDB.UpdateGlobalTable

Contents

Description

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, must have the same name as the global table, must have the same key schema, and must have DynamoDB Streams enabled and must have same provisioned and maximum write capacity units.

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.

Synopsis

Creating a Request

updateGlobalTable Source #

Creates a value of UpdateGlobalTable with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateGlobalTable Source #

See: updateGlobalTable smart constructor.

Instances

Eq UpdateGlobalTable Source # 
Data UpdateGlobalTable Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateGlobalTable -> c UpdateGlobalTable #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateGlobalTable #

toConstr :: UpdateGlobalTable -> Constr #

dataTypeOf :: UpdateGlobalTable -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateGlobalTable) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateGlobalTable) #

gmapT :: (forall b. Data b => b -> b) -> UpdateGlobalTable -> UpdateGlobalTable #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGlobalTable -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGlobalTable -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateGlobalTable -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateGlobalTable -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateGlobalTable -> m UpdateGlobalTable #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGlobalTable -> m UpdateGlobalTable #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGlobalTable -> m UpdateGlobalTable #

Read UpdateGlobalTable Source # 
Show UpdateGlobalTable Source # 
Generic UpdateGlobalTable Source # 
Hashable UpdateGlobalTable Source # 
ToJSON UpdateGlobalTable Source # 
NFData UpdateGlobalTable Source # 

Methods

rnf :: UpdateGlobalTable -> () #

AWSRequest UpdateGlobalTable Source # 
ToHeaders UpdateGlobalTable Source # 
ToPath UpdateGlobalTable Source # 
ToQuery UpdateGlobalTable Source # 
type Rep UpdateGlobalTable Source # 
type Rep UpdateGlobalTable = D1 * (MetaData "UpdateGlobalTable" "Network.AWS.DynamoDB.UpdateGlobalTable" "amazonka-dynamodb-1.6.0-Be8FXVQVyEHEMZza56FG0o" False) (C1 * (MetaCons "UpdateGlobalTable'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugtGlobalTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ugtReplicaUpdates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [ReplicaUpdate]))))
type Rs UpdateGlobalTable Source # 

Request Lenses

ugtReplicaUpdates :: Lens' UpdateGlobalTable [ReplicaUpdate] Source #

A list of regions that should be added or removed from the global table.

Destructuring the Response

updateGlobalTableResponse Source #

Creates a value of UpdateGlobalTableResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateGlobalTableResponse Source #

See: updateGlobalTableResponse smart constructor.

Instances

Eq UpdateGlobalTableResponse Source # 
Data UpdateGlobalTableResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateGlobalTableResponse -> c UpdateGlobalTableResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateGlobalTableResponse #

toConstr :: UpdateGlobalTableResponse -> Constr #

dataTypeOf :: UpdateGlobalTableResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c UpdateGlobalTableResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateGlobalTableResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateGlobalTableResponse -> UpdateGlobalTableResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGlobalTableResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGlobalTableResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateGlobalTableResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateGlobalTableResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateGlobalTableResponse -> m UpdateGlobalTableResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGlobalTableResponse -> m UpdateGlobalTableResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGlobalTableResponse -> m UpdateGlobalTableResponse #

Read UpdateGlobalTableResponse Source # 
Show UpdateGlobalTableResponse Source # 
Generic UpdateGlobalTableResponse Source # 
NFData UpdateGlobalTableResponse Source # 
type Rep UpdateGlobalTableResponse Source # 
type Rep UpdateGlobalTableResponse = D1 * (MetaData "UpdateGlobalTableResponse" "Network.AWS.DynamoDB.UpdateGlobalTable" "amazonka-dynamodb-1.6.0-Be8FXVQVyEHEMZza56FG0o" False) (C1 * (MetaCons "UpdateGlobalTableResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugtrsGlobalTableDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe GlobalTableDescription))) (S1 * (MetaSel (Just Symbol "_ugtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses