amazonka-glue-1.6.0: 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.CreateDatabase

Contents

Description

Creates a new database in a Data Catalog.

Synopsis

Creating a Request

createDatabase Source #

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

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

  • cdCatalogId - The ID of the Data Catalog in which to create the database. If none is supplied, the AWS account ID is used by default.
  • cdDatabaseInput - A DatabaseInput object defining the metadata database to create in the catalog.

data CreateDatabase Source #

See: createDatabase smart constructor.

Instances

Eq CreateDatabase Source # 
Data CreateDatabase Source # 

Methods

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

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

toConstr :: CreateDatabase -> Constr #

dataTypeOf :: CreateDatabase -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDatabase Source # 
Show CreateDatabase Source # 
Generic CreateDatabase Source # 

Associated Types

type Rep CreateDatabase :: * -> * #

Hashable CreateDatabase Source # 
ToJSON CreateDatabase Source # 
NFData CreateDatabase Source # 

Methods

rnf :: CreateDatabase -> () #

AWSRequest CreateDatabase Source # 
ToHeaders CreateDatabase Source # 
ToPath CreateDatabase Source # 
ToQuery CreateDatabase Source # 
type Rep CreateDatabase Source # 
type Rep CreateDatabase = D1 * (MetaData "CreateDatabase" "Network.AWS.Glue.CreateDatabase" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "CreateDatabase'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cdDatabaseInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * DatabaseInput))))
type Rs CreateDatabase Source # 

Request Lenses

cdCatalogId :: Lens' CreateDatabase (Maybe Text) Source #

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

cdDatabaseInput :: Lens' CreateDatabase DatabaseInput Source #

A DatabaseInput object defining the metadata database to create in the catalog.

Destructuring the Response

createDatabaseResponse Source #

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

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

data CreateDatabaseResponse Source #

See: createDatabaseResponse smart constructor.

Instances

Eq CreateDatabaseResponse Source # 
Data CreateDatabaseResponse Source # 

Methods

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

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

toConstr :: CreateDatabaseResponse -> Constr #

dataTypeOf :: CreateDatabaseResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDatabaseResponse Source # 
Show CreateDatabaseResponse Source # 
Generic CreateDatabaseResponse Source # 
NFData CreateDatabaseResponse Source # 

Methods

rnf :: CreateDatabaseResponse -> () #

type Rep CreateDatabaseResponse Source # 
type Rep CreateDatabaseResponse = D1 * (MetaData "CreateDatabaseResponse" "Network.AWS.Glue.CreateDatabase" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" True) (C1 * (MetaCons "CreateDatabaseResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_cdrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

cdrsResponseStatus :: Lens' CreateDatabaseResponse Int Source #

  • - | The response status code.