amazonka-glue-2.0: Amazon Glue SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Glue.BatchDeleteTable

Description

Deletes multiple tables at once.

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 BatchDeleteTable, use DeleteTableVersion or BatchDeleteTableVersion, and DeletePartition or BatchDeletePartition, to delete any resources that belong to the table.

Synopsis

Creating a Request

data BatchDeleteTable Source #

See: newBatchDeleteTable smart constructor.

Constructors

BatchDeleteTable' 

Fields

  • catalogId :: Maybe Text

    The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.

  • transactionId :: Maybe Text

    The transaction ID at which to delete the table contents.

  • databaseName :: Text

    The name of the catalog database in which the tables to delete reside. For Hive compatibility, this name is entirely lowercase.

  • tablesToDelete :: [Text]

    A list of the table to delete.

Instances

Instances details
ToJSON BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

ToHeaders BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

ToPath BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

ToQuery BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

AWSRequest BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Associated Types

type AWSResponse BatchDeleteTable #

Generic BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Associated Types

type Rep BatchDeleteTable :: Type -> Type #

Read BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Show BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

NFData BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Methods

rnf :: BatchDeleteTable -> () #

Eq BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Hashable BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

type AWSResponse BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

type Rep BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

type Rep BatchDeleteTable = D1 ('MetaData "BatchDeleteTable" "Amazonka.Glue.BatchDeleteTable" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "BatchDeleteTable'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "transactionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tablesToDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))

newBatchDeleteTable Source #

Create a value of BatchDeleteTable 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:

BatchDeleteTable, batchDeleteTable_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:transactionId:BatchDeleteTable', batchDeleteTable_transactionId - The transaction ID at which to delete the table contents.

BatchDeleteTable, batchDeleteTable_databaseName - The name of the catalog database in which the tables to delete reside. For Hive compatibility, this name is entirely lowercase.

$sel:tablesToDelete:BatchDeleteTable', batchDeleteTable_tablesToDelete - A list of the table to delete.

Request Lenses

batchDeleteTable_catalogId :: Lens' BatchDeleteTable (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.

batchDeleteTable_transactionId :: Lens' BatchDeleteTable (Maybe Text) Source #

The transaction ID at which to delete the table contents.

batchDeleteTable_databaseName :: Lens' BatchDeleteTable Text Source #

The name of the catalog database in which the tables to delete reside. For Hive compatibility, this name is entirely lowercase.

Destructuring the Response

data BatchDeleteTableResponse Source #

See: newBatchDeleteTableResponse smart constructor.

Constructors

BatchDeleteTableResponse' 

Fields

Instances

Instances details
Generic BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Associated Types

type Rep BatchDeleteTableResponse :: Type -> Type #

Read BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Show BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

NFData BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Eq BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

type Rep BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

type Rep BatchDeleteTableResponse = D1 ('MetaData "BatchDeleteTableResponse" "Amazonka.Glue.BatchDeleteTable" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "BatchDeleteTableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TableError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBatchDeleteTableResponse Source #

Create a value of BatchDeleteTableResponse 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:BatchDeleteTableResponse', batchDeleteTableResponse_errors - A list of errors encountered in attempting to delete the specified tables.

$sel:httpStatus:BatchDeleteTableResponse', batchDeleteTableResponse_httpStatus - The response's http status code.

Response Lenses

batchDeleteTableResponse_errors :: Lens' BatchDeleteTableResponse (Maybe [TableError]) Source #

A list of errors encountered in attempting to delete the specified tables.