amazonka-dynamodb-1.3.7: Amazon DynamoDB SDK.

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

Network.AWS.DynamoDB.DeleteTable

Contents

Description

The DeleteTable operation deletes a table and all of its items. After a DeleteTable request, the specified table is in the DELETING state until DynamoDB completes the deletion. If the table is in the ACTIVE state, you can delete it. If a table is in CREATING or UPDATING states, then DynamoDB returns a ResourceInUseException. If the specified table does not exist, DynamoDB returns a ResourceNotFoundException. If table is already in the DELETING state, no error is returned.

DynamoDB might continue to accept data read and write operations, such as GetItem and PutItem, on a table in the DELETING state until the table deletion is complete.

When you delete a table, any indexes on that table are also deleted.

If you have DynamoDB Streams enabled on the table, then the corresponding stream on that table goes into the DISABLED state, and the stream is automatically deleted after 24 hours.

Use the DescribeTable API to check the status of the table.

See: AWS API Reference for DeleteTable.

Synopsis

Creating a Request

deleteTable Source #

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

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

data DeleteTable Source #

Represents the input of a DeleteTable operation.

See: deleteTable smart constructor.

Instances

Eq DeleteTable Source # 
Data DeleteTable Source # 

Methods

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

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

toConstr :: DeleteTable -> Constr #

dataTypeOf :: DeleteTable -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteTable Source # 
Show DeleteTable Source # 
Generic DeleteTable Source # 

Associated Types

type Rep DeleteTable :: * -> * #

ToJSON DeleteTable Source # 
AWSRequest DeleteTable Source # 
ToQuery DeleteTable Source # 
ToPath DeleteTable Source # 
ToHeaders DeleteTable Source # 

Methods

toHeaders :: DeleteTable -> [Header] #

type Rep DeleteTable Source # 
type Rep DeleteTable = D1 (MetaData "DeleteTable" "Network.AWS.DynamoDB.DeleteTable" "amazonka-dynamodb-1.3.7-GMsDp6uNd7jDSrYVRamlRG" True) (C1 (MetaCons "DeleteTable'" PrefixI True) (S1 (MetaSel (Just Symbol "_dtTableName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteTable Source # 

Request Lenses

dtTableName :: Lens' DeleteTable Text Source #

The name of the table to delete.

Destructuring the Response

deleteTableResponse Source #

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

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

data DeleteTableResponse Source #

Represents the output of a DeleteTable operation.

See: deleteTableResponse smart constructor.

Instances

Eq DeleteTableResponse Source # 
Data DeleteTableResponse Source # 

Methods

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

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

toConstr :: DeleteTableResponse -> Constr #

dataTypeOf :: DeleteTableResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteTableResponse Source # 
Show DeleteTableResponse Source # 
Generic DeleteTableResponse Source # 
type Rep DeleteTableResponse Source # 
type Rep DeleteTableResponse = D1 (MetaData "DeleteTableResponse" "Network.AWS.DynamoDB.DeleteTable" "amazonka-dynamodb-1.3.7-GMsDp6uNd7jDSrYVRamlRG" False) (C1 (MetaCons "DeleteTableResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dtrsTableDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TableDescription))) (S1 (MetaSel (Just Symbol "_dtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses