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.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 action 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 # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Data DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.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 Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Show DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Generic DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Associated Types

type Rep DeleteTable :: Type -> Type #

Hashable DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

ToJSON DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

AWSRequest DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Associated Types

type Rs DeleteTable :: Type #

ToHeaders DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Methods

toHeaders :: DeleteTable -> [Header] #

ToPath DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

ToQuery DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

NFData DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Methods

rnf :: DeleteTable -> () #

type Rep DeleteTable Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

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

Defined in Network.AWS.DynamoDB.DeleteTable

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 # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Data DeleteTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

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 # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Show DeleteTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Generic DeleteTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Associated Types

type Rep DeleteTableResponse :: Type -> Type #

NFData DeleteTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

Methods

rnf :: DeleteTableResponse -> () #

type Rep DeleteTableResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.DeleteTable

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

Response Lenses

dtrsTableDescription :: Lens' DeleteTableResponse (Maybe TableDescription) Source #

Represents the properties of a table.

dtrsResponseStatus :: Lens' DeleteTableResponse Int Source #

  • - | The response status code.