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 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 :: * -> * #

Hashable DeleteTable Source # 
ToJSON DeleteTable Source # 
NFData DeleteTable Source # 

Methods

rnf :: DeleteTable -> () #

AWSRequest DeleteTable Source # 
ToPath DeleteTable Source # 
ToHeaders DeleteTable Source # 

Methods

toHeaders :: DeleteTable -> [Header] #

ToQuery DeleteTable Source # 
type Rep DeleteTable Source # 
type Rep DeleteTable = D1 (MetaData "DeleteTable" "Network.AWS.DynamoDB.DeleteTable" "amazonka-dynamodb-1.4.5-9Gf0U64x7l0KacBmJaIMNw" 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 # 
NFData DeleteTableResponse Source # 

Methods

rnf :: DeleteTableResponse -> () #

type Rep DeleteTableResponse Source # 
type Rep DeleteTableResponse = D1 (MetaData "DeleteTableResponse" "Network.AWS.DynamoDB.DeleteTable" "amazonka-dynamodb-1.4.5-9Gf0U64x7l0KacBmJaIMNw" 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 Source #

  • - | The response status code.