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

Contents

Description

Retrieves the definition of a specified database.

Synopsis

Creating a Request

getDatabase Source #

Arguments

:: Text

gddName

-> GetDatabase 

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

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

  • gddCatalogId - The ID of the Data Catalog in which the database resides. If none is supplied, the AWS account ID is used by default.
  • gddName - The name of the database to retrieve. For Hive compatibility, this should be all lowercase.

data GetDatabase Source #

See: getDatabase smart constructor.

Instances
Eq GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Data GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Methods

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

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

toConstr :: GetDatabase -> Constr #

dataTypeOf :: GetDatabase -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Show GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Generic GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Associated Types

type Rep GetDatabase :: Type -> Type #

Hashable GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

ToJSON GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

AWSRequest GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Associated Types

type Rs GetDatabase :: Type #

ToHeaders GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Methods

toHeaders :: GetDatabase -> [Header] #

ToPath GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

ToQuery GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

NFData GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Methods

rnf :: GetDatabase -> () #

type Rep GetDatabase Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

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

Defined in Network.AWS.Glue.GetDatabase

Request Lenses

gddCatalogId :: Lens' GetDatabase (Maybe Text) Source #

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

gddName :: Lens' GetDatabase Text Source #

The name of the database to retrieve. For Hive compatibility, this should be all lowercase.

Destructuring the Response

getDatabaseResponse Source #

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

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

data GetDatabaseResponse Source #

See: getDatabaseResponse smart constructor.

Instances
Eq GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Data GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Methods

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

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

toConstr :: GetDatabaseResponse -> Constr #

dataTypeOf :: GetDatabaseResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Show GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Generic GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Associated Types

type Rep GetDatabaseResponse :: Type -> Type #

NFData GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

Methods

rnf :: GetDatabaseResponse -> () #

type Rep GetDatabaseResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetDatabase

type Rep GetDatabaseResponse = D1 (MetaData "GetDatabaseResponse" "Network.AWS.Glue.GetDatabase" "amazonka-glue-1.6.1-4wrowkj7LqMExQlCyUUmWF" False) (C1 (MetaCons "GetDatabaseResponse'" PrefixI True) (S1 (MetaSel (Just "_gdrsDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Database)) :*: S1 (MetaSel (Just "_gdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

gdrsDatabase :: Lens' GetDatabaseResponse (Maybe Database) Source #

The definition of the specified database in the catalog.

gdrsResponseStatus :: Lens' GetDatabaseResponse Int Source #

  • - | The response status code.