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.DeleteTable

Description

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

Creating a Request

data DeleteTable Source #

See: newDeleteTable smart constructor.

Constructors

DeleteTable' 

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 table resides. For Hive compatibility, this name is entirely lowercase.

  • name :: Text

    The name of the table to be deleted. For Hive compatibility, this name is entirely lowercase.

Instances

Instances details
Eq DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Read DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Show DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Generic DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Associated Types

type Rep DeleteTable :: Type -> Type #

NFData DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Methods

rnf :: DeleteTable -> () #

Hashable DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

ToJSON DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

AWSRequest DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Associated Types

type AWSResponse DeleteTable #

ToHeaders DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Methods

toHeaders :: DeleteTable -> [Header] #

ToPath DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

ToQuery DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

type Rep DeleteTable Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

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

Defined in Amazonka.Glue.DeleteTable

newDeleteTable Source #

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.

Constructors

DeleteTableResponse' 

Fields

Instances

Instances details
Eq DeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Read DeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Show DeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Generic DeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Associated Types

type Rep DeleteTableResponse :: Type -> Type #

NFData DeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

Methods

rnf :: DeleteTableResponse -> () #

type Rep DeleteTableResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteTable

type Rep DeleteTableResponse = D1 ('MetaData "DeleteTableResponse" "Amazonka.Glue.DeleteTable" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "DeleteTableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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