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 |
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.
BatchDeleteTableVersion' | |
|
Instances
newBatchDeleteTableVersion Source #
:: Text | |
-> Text | |
-> BatchDeleteTableVersion |
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:
$sel:catalogId: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.
$sel:databaseName:BatchDeleteTableVersion'
, batchDeleteTableVersion_databaseName
- The database in the catalog in which the table resides. For Hive
compatibility, this name is entirely lowercase.
$sel:tableName: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.
BatchDeleteTableVersionResponse' | |
|
Instances
Eq BatchDeleteTableVersionResponse Source # | |
Read BatchDeleteTableVersionResponse Source # | |
Show BatchDeleteTableVersionResponse Source # | |
Defined in Amazonka.Glue.BatchDeleteTableVersion | |
Generic BatchDeleteTableVersionResponse Source # | |
NFData BatchDeleteTableVersionResponse Source # | |
Defined in Amazonka.Glue.BatchDeleteTableVersion rnf :: BatchDeleteTableVersionResponse -> () # | |
type Rep BatchDeleteTableVersionResponse Source # | |
Defined in Amazonka.Glue.BatchDeleteTableVersion type Rep BatchDeleteTableVersionResponse = D1 ('MetaData "BatchDeleteTableVersionResponse" "Amazonka.Glue.BatchDeleteTableVersion" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "BatchDeleteTableVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TableVersionError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.