libZSservicesZSamazonka-glueZSamazonka-glue
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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.

  • 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
Eq BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Read BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Show BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Generic BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Associated Types

type Rep BatchDeleteTable :: Type -> Type #

NFData BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Methods

rnf :: BatchDeleteTable -> () #

Hashable BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

ToJSON BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

AWSRequest BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Associated Types

type AWSResponse 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

type Rep BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

type Rep BatchDeleteTable = D1 ('MetaData "BatchDeleteTable" "Amazonka.Glue.BatchDeleteTable" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "BatchDeleteTable'" 'PrefixI 'True) (S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tablesToDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse BatchDeleteTable Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

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:

$sel:catalogId: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:databaseName: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_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
Eq BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Read BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Show BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Generic BatchDeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeleteTable

Associated Types

type Rep BatchDeleteTableResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-glueZSamazonka-glue" '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.