Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- updateGlobalTable :: Text -> UpdateGlobalTable
- data UpdateGlobalTable
- ugtGlobalTableName :: Lens' UpdateGlobalTable Text
- ugtReplicaUpdates :: Lens' UpdateGlobalTable [ReplicaUpdate]
- updateGlobalTableResponse :: Int -> UpdateGlobalTableResponse
- data UpdateGlobalTableResponse
- ugtrsGlobalTableDescription :: Lens' UpdateGlobalTableResponse (Maybe GlobalTableDescription)
- ugtrsResponseStatus :: Lens' UpdateGlobalTableResponse Int
Creating a Request
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:
ugtGlobalTableName
- The global table name.ugtReplicaUpdates
- A list of regions that should be added or removed from the global table.
data UpdateGlobalTable Source #
See: updateGlobalTable
smart constructor.
Instances
Request Lenses
ugtGlobalTableName :: Lens' UpdateGlobalTable Text Source #
The global table name.
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:
ugtrsGlobalTableDescription
- Contains the details of the global table.ugtrsResponseStatus
- -- | The response status code.
data UpdateGlobalTableResponse Source #
See: updateGlobalTableResponse
smart constructor.
Instances
Response Lenses
ugtrsGlobalTableDescription :: Lens' UpdateGlobalTableResponse (Maybe GlobalTableDescription) Source #
Contains the details of the global table.
ugtrsResponseStatus :: Lens' UpdateGlobalTableResponse Int Source #
- - | The response status code.