Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.KeySpaces.DeleteTable
Description
The DeleteTable
operation deletes a table and all of its data. After a
DeleteTable
request is received, the specified table is in the
DELETING
state until Amazon Keyspaces completes the deletion. If the
table is in the ACTIVE
state, you can delete it. If a table is either
in the CREATING
or UPDATING
states, then Amazon Keyspaces returns a
ResourceInUseException
. If the specified table does not exist, Amazon
Keyspaces returns a ResourceNotFoundException
. If the table is already
in the DELETING
state, no error is returned.
Synopsis
- data DeleteTable = DeleteTable' {
- keyspaceName :: Text
- tableName :: Text
- newDeleteTable :: Text -> Text -> DeleteTable
- deleteTable_keyspaceName :: Lens' DeleteTable Text
- deleteTable_tableName :: Lens' DeleteTable Text
- data DeleteTableResponse = DeleteTableResponse' {
- httpStatus :: Int
- newDeleteTableResponse :: Int -> DeleteTableResponse
- deleteTableResponse_httpStatus :: Lens' DeleteTableResponse Int
Creating a Request
data DeleteTable Source #
See: newDeleteTable
smart constructor.
Constructors
DeleteTable' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> DeleteTable |
Create a value of DeleteTable
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteTable
, deleteTable_keyspaceName
- The name of the keyspace of the to be deleted table.
DeleteTable
, deleteTable_tableName
- The name of the table to be deleted.
Request Lenses
deleteTable_keyspaceName :: Lens' DeleteTable Text Source #
The name of the keyspace of the to be deleted table.
deleteTable_tableName :: Lens' DeleteTable Text Source #
The name of the table to be deleted.
Destructuring the Response
data DeleteTableResponse Source #
See: newDeleteTableResponse
smart constructor.
Constructors
DeleteTableResponse' | |
Fields
|
Instances
newDeleteTableResponse Source #
Arguments
:: Int | |
-> DeleteTableResponse |
Create a value of DeleteTableResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteTableResponse'
, deleteTableResponse_httpStatus
- The response's http status code.
Response Lenses
deleteTableResponse_httpStatus :: Lens' DeleteTableResponse Int Source #
The response's http status code.