amazonka-glue-1.6.1: Amazon Glue SDK.

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

Network.AWS.Glue.UpdateDatabase

Contents

Description

Updates an existing database definition in a Data Catalog.

Synopsis

Creating a Request

updateDatabase Source #

Creates a value of UpdateDatabase with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • udCatalogId - The ID of the Data Catalog in which the metadata database resides. If none is supplied, the AWS account ID is used by default.
  • udName - The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.
  • udDatabaseInput - A DatabaseInput object specifying the new definition of the metadata database in the catalog.

data UpdateDatabase Source #

See: updateDatabase smart constructor.

Instances
Eq UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Data UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateDatabase -> c UpdateDatabase #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateDatabase #

toConstr :: UpdateDatabase -> Constr #

dataTypeOf :: UpdateDatabase -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UpdateDatabase) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateDatabase) #

gmapT :: (forall b. Data b => b -> b) -> UpdateDatabase -> UpdateDatabase #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDatabase -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDatabase -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateDatabase -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateDatabase -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateDatabase -> m UpdateDatabase #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDatabase -> m UpdateDatabase #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDatabase -> m UpdateDatabase #

Read UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Show UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Generic UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Associated Types

type Rep UpdateDatabase :: Type -> Type #

Hashable UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

ToJSON UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

AWSRequest UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Associated Types

type Rs UpdateDatabase :: Type #

ToHeaders UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

ToPath UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

ToQuery UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

NFData UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Methods

rnf :: UpdateDatabase -> () #

type Rep UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

type Rep UpdateDatabase = D1 (MetaData "UpdateDatabase" "Network.AWS.Glue.UpdateDatabase" "amazonka-glue-1.6.1-4wrowkj7LqMExQlCyUUmWF" False) (C1 (MetaCons "UpdateDatabase'" PrefixI True) (S1 (MetaSel (Just "_udCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_udName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udDatabaseInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DatabaseInput))))
type Rs UpdateDatabase Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Request Lenses

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

The ID of the Data Catalog in which the metadata database resides. If none is supplied, the AWS account ID is used by default.

udName :: Lens' UpdateDatabase Text Source #

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

udDatabaseInput :: Lens' UpdateDatabase DatabaseInput Source #

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

Destructuring the Response

updateDatabaseResponse Source #

Creates a value of UpdateDatabaseResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateDatabaseResponse Source #

See: updateDatabaseResponse smart constructor.

Instances
Eq UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Data UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateDatabaseResponse -> c UpdateDatabaseResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateDatabaseResponse #

toConstr :: UpdateDatabaseResponse -> Constr #

dataTypeOf :: UpdateDatabaseResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UpdateDatabaseResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateDatabaseResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateDatabaseResponse -> UpdateDatabaseResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDatabaseResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateDatabaseResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateDatabaseResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateDatabaseResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateDatabaseResponse -> m UpdateDatabaseResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDatabaseResponse -> m UpdateDatabaseResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateDatabaseResponse -> m UpdateDatabaseResponse #

Read UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Show UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Generic UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Associated Types

type Rep UpdateDatabaseResponse :: Type -> Type #

NFData UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

Methods

rnf :: UpdateDatabaseResponse -> () #

type Rep UpdateDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.UpdateDatabase

type Rep UpdateDatabaseResponse = D1 (MetaData "UpdateDatabaseResponse" "Network.AWS.Glue.UpdateDatabase" "amazonka-glue-1.6.1-4wrowkj7LqMExQlCyUUmWF" True) (C1 (MetaCons "UpdateDatabaseResponse'" PrefixI True) (S1 (MetaSel (Just "_udrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

udrsResponseStatus :: Lens' UpdateDatabaseResponse Int Source #

  • - | The response status code.