Copyright | (c) 2013-2021 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 |
Removes a table definition from the Data Catalog.
After completing this operation, you no longer have access to the table versions and partitions that belong to the deleted table. Glue deletes these "orphaned" resources asynchronously in a timely manner, at the discretion of the service.
To ensure the immediate deletion of all related resources, before
calling DeleteTable
, use DeleteTableVersion
or
BatchDeleteTableVersion
, and DeletePartition
or
BatchDeletePartition
, to delete any resources that belong to the
table.
Synopsis
- data DeleteTable = DeleteTable' {}
- newDeleteTable :: Text -> Text -> DeleteTable
- deleteTable_catalogId :: Lens' DeleteTable (Maybe Text)
- deleteTable_databaseName :: Lens' DeleteTable Text
- deleteTable_name :: 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.
DeleteTable' | |
|
Instances
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:
$sel:catalogId:DeleteTable'
, deleteTable_catalogId
- The ID of the Data Catalog where the table resides. If none is provided,
the Amazon Web Services account ID is used by default.
$sel:databaseName:DeleteTable'
, deleteTable_databaseName
- The name of the catalog database in which the table resides. For Hive
compatibility, this name is entirely lowercase.
$sel:name:DeleteTable'
, deleteTable_name
- The name of the table to be deleted. For Hive compatibility, this name
is entirely lowercase.
Request Lenses
deleteTable_catalogId :: Lens' DeleteTable (Maybe Text) Source #
The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
deleteTable_databaseName :: Lens' DeleteTable Text Source #
The name of the catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.
deleteTable_name :: Lens' DeleteTable Text Source #
The name of the table to be deleted. For Hive compatibility, this name is entirely lowercase.
Destructuring the Response
data DeleteTableResponse Source #
See: newDeleteTableResponse
smart constructor.
DeleteTableResponse' | |
|
Instances
newDeleteTableResponse Source #
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.