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

Description

Removes a specified database from a Data Catalog.

After completing this operation, you no longer have access to the tables (and all table versions and partitions that might belong to the tables) and the user-defined functions in the deleted database. 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 DeleteDatabase, use DeleteTableVersion or BatchDeleteTableVersion, DeletePartition or BatchDeletePartition, DeleteUserDefinedFunction, and DeleteTable or BatchDeleteTable, to delete any resources that belong to the database.

Synopsis

Creating a Request

data DeleteDatabase Source #

See: newDeleteDatabase smart constructor.

Constructors

DeleteDatabase' 

Fields

  • catalogId :: Maybe Text

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

  • name :: Text

    The name of the database to delete. For Hive compatibility, this must be all lowercase.

Instances

Instances details
Eq DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Read DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Show DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Generic DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Associated Types

type Rep DeleteDatabase :: Type -> Type #

NFData DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Methods

rnf :: DeleteDatabase -> () #

Hashable DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

ToJSON DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

AWSRequest DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Associated Types

type AWSResponse DeleteDatabase #

ToHeaders DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

ToPath DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

ToQuery DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

type Rep DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

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

Defined in Amazonka.Glue.DeleteDatabase

newDeleteDatabase Source #

Create a value of DeleteDatabase 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:DeleteDatabase', deleteDatabase_catalogId - The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.

$sel:name:DeleteDatabase', deleteDatabase_name - The name of the database to delete. For Hive compatibility, this must be all lowercase.

Request Lenses

deleteDatabase_catalogId :: Lens' DeleteDatabase (Maybe Text) Source #

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

deleteDatabase_name :: Lens' DeleteDatabase Text Source #

The name of the database to delete. For Hive compatibility, this must be all lowercase.

Destructuring the Response

data DeleteDatabaseResponse Source #

See: newDeleteDatabaseResponse smart constructor.

Constructors

DeleteDatabaseResponse' 

Fields

Instances

Instances details
Eq DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Read DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Show DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Generic DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Associated Types

type Rep DeleteDatabaseResponse :: Type -> Type #

NFData DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Methods

rnf :: DeleteDatabaseResponse -> () #

type Rep DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

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

newDeleteDatabaseResponse Source #

Create a value of DeleteDatabaseResponse 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:DeleteDatabaseResponse', deleteDatabaseResponse_httpStatus - The response's http status code.

Response Lenses