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

Description

Updates an existing database definition in a Data Catalog.

Synopsis

Creating a Request

data UpdateDatabase Source #

See: newUpdateDatabase smart constructor.

Constructors

UpdateDatabase' 

Fields

  • catalogId :: Maybe Text

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

  • name :: Text

    The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.

  • databaseInput :: DatabaseInput

    A DatabaseInput object specifying the new definition of the metadata database in the catalog.

Instances

Instances details
Eq UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Read UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Show UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Generic UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Associated Types

type Rep UpdateDatabase :: Type -> Type #

NFData UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Methods

rnf :: UpdateDatabase -> () #

Hashable UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

ToJSON UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

AWSRequest UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Associated Types

type AWSResponse UpdateDatabase #

ToHeaders UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

ToPath UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

ToQuery UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

type Rep UpdateDatabase Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

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

Defined in Amazonka.Glue.UpdateDatabase

newUpdateDatabase Source #

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

$sel:name:UpdateDatabase', updateDatabase_name - The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.

$sel:databaseInput:UpdateDatabase', updateDatabase_databaseInput - A DatabaseInput object specifying the new definition of the metadata database in the catalog.

Request Lenses

updateDatabase_catalogId :: Lens' UpdateDatabase (Maybe Text) Source #

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

updateDatabase_name :: Lens' UpdateDatabase Text Source #

The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.

updateDatabase_databaseInput :: Lens' UpdateDatabase DatabaseInput Source #

A DatabaseInput object specifying the new definition of the metadata database in the catalog.

Destructuring the Response

data UpdateDatabaseResponse Source #

See: newUpdateDatabaseResponse smart constructor.

Constructors

UpdateDatabaseResponse' 

Fields

Instances

Instances details
Eq UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Read UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Show UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Generic UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Associated Types

type Rep UpdateDatabaseResponse :: Type -> Type #

NFData UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

Methods

rnf :: UpdateDatabaseResponse -> () #

type Rep UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.Glue.UpdateDatabase

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

newUpdateDatabaseResponse Source #

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

Response Lenses