amazonka-glue-1.5.0: Amazon Glue SDK.

Copyright(c) 2013-2017 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.

data GetDatabase Source #

See: getDatabase smart constructor.

Instances

Eq GetDatabase Source # 
Data GetDatabase Source # 

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 # 
Show GetDatabase Source # 
Generic GetDatabase Source # 

Associated Types

type Rep GetDatabase :: * -> * #

Hashable GetDatabase Source # 
ToJSON GetDatabase Source # 
NFData GetDatabase Source # 

Methods

rnf :: GetDatabase -> () #

AWSRequest GetDatabase Source # 
ToQuery GetDatabase Source # 
ToPath GetDatabase Source # 
ToHeaders GetDatabase Source # 

Methods

toHeaders :: GetDatabase -> [Header] #

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

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.

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 # 
Data GetDatabaseResponse Source # 

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 # 
Show GetDatabaseResponse Source # 
Generic GetDatabaseResponse Source # 
NFData GetDatabaseResponse Source # 

Methods

rnf :: GetDatabaseResponse -> () #

type Rep GetDatabaseResponse Source # 
type Rep GetDatabaseResponse = D1 (MetaData "GetDatabaseResponse" "Network.AWS.Glue.GetDatabase" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" False) (C1 (MetaCons "GetDatabaseResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gdrsDatabase") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Database))) (S1 (MetaSel (Just Symbol "_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.