amazonka-dynamodb-1.4.5: Amazon DynamoDB SDK.

Copyright(c) 2013-2016 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.

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.

Synopsis

Creating a Request

deleteTable #

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 #

Represents the input of a DeleteTable operation.

See: deleteTable smart constructor.

Instances

Eq DeleteTable # 
Data DeleteTable # 

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 # 
Show DeleteTable # 
Generic DeleteTable # 

Associated Types

type Rep DeleteTable :: * -> * #

Hashable DeleteTable # 
ToJSON DeleteTable # 
NFData DeleteTable # 

Methods

rnf :: DeleteTable -> () #

AWSRequest DeleteTable # 
ToQuery DeleteTable # 
ToPath DeleteTable # 
ToHeaders DeleteTable # 

Methods

toHeaders :: DeleteTable -> [Header] #

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

Request Lenses

dtTableName :: Lens' DeleteTable Text #

The name of the table to delete.

Destructuring the Response

deleteTableResponse #

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 #

Represents the output of a DeleteTable operation.

See: deleteTableResponse smart constructor.

Instances

Eq DeleteTableResponse # 
Data DeleteTableResponse # 

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 # 
Show DeleteTableResponse # 
Generic DeleteTableResponse # 
NFData DeleteTableResponse # 

Methods

rnf :: DeleteTableResponse -> () #

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

Response Lenses

dtrsResponseStatus :: Lens' DeleteTableResponse Int #

  • - | The response status code.