| 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.Glue.BatchDeleteTableVersion
Description
Deletes a specified batch of versions of a table.
Synopsis
- data BatchDeleteTableVersion = BatchDeleteTableVersion' {
- catalogId :: Maybe Text
- databaseName :: Text
- tableName :: Text
- versionIds :: [Text]
- newBatchDeleteTableVersion :: Text -> Text -> BatchDeleteTableVersion
- batchDeleteTableVersion_catalogId :: Lens' BatchDeleteTableVersion (Maybe Text)
- batchDeleteTableVersion_databaseName :: Lens' BatchDeleteTableVersion Text
- batchDeleteTableVersion_tableName :: Lens' BatchDeleteTableVersion Text
- batchDeleteTableVersion_versionIds :: Lens' BatchDeleteTableVersion [Text]
- data BatchDeleteTableVersionResponse = BatchDeleteTableVersionResponse' {
- errors :: Maybe [TableVersionError]
- httpStatus :: Int
- newBatchDeleteTableVersionResponse :: Int -> BatchDeleteTableVersionResponse
- batchDeleteTableVersionResponse_errors :: Lens' BatchDeleteTableVersionResponse (Maybe [TableVersionError])
- batchDeleteTableVersionResponse_httpStatus :: Lens' BatchDeleteTableVersionResponse Int
Creating a Request
data BatchDeleteTableVersion Source #
See: newBatchDeleteTableVersion smart constructor.
Constructors
| BatchDeleteTableVersion' | |
Fields
| |
Instances
newBatchDeleteTableVersion Source #
Create a value of BatchDeleteTableVersion 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:
BatchDeleteTableVersion, batchDeleteTableVersion_catalogId - The ID of the Data Catalog where the tables reside. If none is provided,
the Amazon Web Services account ID is used by default.
BatchDeleteTableVersion, batchDeleteTableVersion_databaseName - The database in the catalog in which the table resides. For Hive
compatibility, this name is entirely lowercase.
BatchDeleteTableVersion, batchDeleteTableVersion_tableName - The name of the table. For Hive compatibility, this name is entirely
lowercase.
$sel:versionIds:BatchDeleteTableVersion', batchDeleteTableVersion_versionIds - A list of the IDs of versions to be deleted. A VersionId is a string
representation of an integer. Each version is incremented by 1.
Request Lenses
batchDeleteTableVersion_catalogId :: Lens' BatchDeleteTableVersion (Maybe Text) Source #
The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.
batchDeleteTableVersion_databaseName :: Lens' BatchDeleteTableVersion Text Source #
The database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
batchDeleteTableVersion_tableName :: Lens' BatchDeleteTableVersion Text Source #
The name of the table. For Hive compatibility, this name is entirely lowercase.
batchDeleteTableVersion_versionIds :: Lens' BatchDeleteTableVersion [Text] Source #
A list of the IDs of versions to be deleted. A VersionId is a string
representation of an integer. Each version is incremented by 1.
Destructuring the Response
data BatchDeleteTableVersionResponse Source #
See: newBatchDeleteTableVersionResponse smart constructor.
Constructors
| BatchDeleteTableVersionResponse' | |
Fields
| |
Instances
newBatchDeleteTableVersionResponse Source #
Create a value of BatchDeleteTableVersionResponse 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:errors:BatchDeleteTableVersionResponse', batchDeleteTableVersionResponse_errors - A list of errors encountered while trying to delete the specified table
versions.
$sel:httpStatus:BatchDeleteTableVersionResponse', batchDeleteTableVersionResponse_httpStatus - The response's http status code.
Response Lenses
batchDeleteTableVersionResponse_errors :: Lens' BatchDeleteTableVersionResponse (Maybe [TableVersionError]) Source #
A list of errors encountered while trying to delete the specified table versions.
batchDeleteTableVersionResponse_httpStatus :: Lens' BatchDeleteTableVersionResponse Int Source #
The response's http status code.