amazonka-dynamodb-1.6.1: 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.CreateGlobalTable

Contents

Description

Creates a global table from an existing table. A global table creates a replication relationship between two or more DynamoDB tables with the same table name in the provided regions.

Tables can only be added as the replicas of a global table group under the following conditions:

  • The tables must have the same name.
  • The tables must contain no items.
  • The tables must have the same hash key and sort key (if present).
  • The tables must have DynamoDB Streams enabled (NEW_AND_OLD_IMAGES).
  • The tables 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

createGlobalTable Source #

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

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

data CreateGlobalTable Source #

See: createGlobalTable smart constructor.

Instances
Eq CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Data CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Methods

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

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

toConstr :: CreateGlobalTable -> Constr #

dataTypeOf :: CreateGlobalTable -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Show CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Generic CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Associated Types

type Rep CreateGlobalTable :: Type -> Type #

Hashable CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

ToJSON CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

AWSRequest CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Associated Types

type Rs CreateGlobalTable :: Type #

ToHeaders CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

ToPath CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

ToQuery CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

NFData CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Methods

rnf :: CreateGlobalTable -> () #

type Rep CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

type Rep CreateGlobalTable = D1 (MetaData "CreateGlobalTable" "Network.AWS.DynamoDB.CreateGlobalTable" "amazonka-dynamodb-1.6.1-FTtIhwsA5vX17zvPeEA8Mr" False) (C1 (MetaCons "CreateGlobalTable'" PrefixI True) (S1 (MetaSel (Just "_cgtGlobalTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cgtReplicationGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Replica])))
type Rs CreateGlobalTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Request Lenses

cgtReplicationGroup :: Lens' CreateGlobalTable [Replica] Source #

The regions where the global table needs to be created.

Destructuring the Response

createGlobalTableResponse Source #

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

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

data CreateGlobalTableResponse Source #

See: createGlobalTableResponse smart constructor.

Instances
Eq CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Data CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Methods

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

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

toConstr :: CreateGlobalTableResponse -> Constr #

dataTypeOf :: CreateGlobalTableResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Show CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Generic CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

Associated Types

type Rep CreateGlobalTableResponse :: Type -> Type #

NFData CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

type Rep CreateGlobalTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateGlobalTable

type Rep CreateGlobalTableResponse = D1 (MetaData "CreateGlobalTableResponse" "Network.AWS.DynamoDB.CreateGlobalTable" "amazonka-dynamodb-1.6.1-FTtIhwsA5vX17zvPeEA8Mr" False) (C1 (MetaCons "CreateGlobalTableResponse'" PrefixI True) (S1 (MetaSel (Just "_cgtrsGlobalTableDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GlobalTableDescription)) :*: S1 (MetaSel (Just "_cgtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses