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 |
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.
Creating a Request
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:
dtTableName
- The name of the table to delete.
data DeleteTable Source #
Represents the input of a DeleteTable
operation.
See: deleteTable
smart constructor.
Instances
Request Lenses
dtTableName :: Lens' DeleteTable Text Source #
The name of the table to delete.
Destructuring the Response
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:
dtrsTableDescription
- Represents the properties of a table.dtrsResponseStatus
- -- | The response status code.
data DeleteTableResponse Source #
Represents the output of a DeleteTable
operation.
See: deleteTableResponse
smart constructor.
Instances
Response Lenses
dtrsTableDescription :: Lens' DeleteTableResponse (Maybe TableDescription) Source #
Represents the properties of a table.
dtrsResponseStatus :: Lens' DeleteTableResponse Int Source #
- - | The response status code.