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.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
ToJSON DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.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

AWSRequest DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Associated Types

type AWSResponse DeleteDatabase #

Generic DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Associated Types

type Rep DeleteDatabase :: Type -> Type #

Read DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Show DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

NFData DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Methods

rnf :: DeleteDatabase -> () #

Eq DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Hashable DeleteDatabase Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

type AWSResponse 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" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" '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)))

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:

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.

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
Generic DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Associated Types

type Rep DeleteDatabaseResponse :: Type -> Type #

Read DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Show DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

NFData DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

Methods

rnf :: DeleteDatabaseResponse -> () #

Eq DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

type Rep DeleteDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.DeleteDatabase

type Rep DeleteDatabaseResponse = D1 ('MetaData "DeleteDatabaseResponse" "Amazonka.Glue.DeleteDatabase" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" '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