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

Contents

Description

Retrieves the Table definition in a Data Catalog for a specified table.

Synopsis

Creating a Request

getTable Source #

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

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

  • gttCatalogId - The ID of the Data Catalog where the table resides. If none is supplied, the AWS account ID is used by default.
  • gttDatabaseName - The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
  • gttName - The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.

data GetTable Source #

See: getTable smart constructor.

Instances

Eq GetTable Source # 
Data GetTable Source # 

Methods

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

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

toConstr :: GetTable -> Constr #

dataTypeOf :: GetTable -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTable Source # 
Show GetTable Source # 
Generic GetTable Source # 

Associated Types

type Rep GetTable :: * -> * #

Methods

from :: GetTable -> Rep GetTable x #

to :: Rep GetTable x -> GetTable #

Hashable GetTable Source # 

Methods

hashWithSalt :: Int -> GetTable -> Int #

hash :: GetTable -> Int #

ToJSON GetTable Source # 
NFData GetTable Source # 

Methods

rnf :: GetTable -> () #

AWSRequest GetTable Source # 
ToHeaders GetTable Source # 

Methods

toHeaders :: GetTable -> [Header] #

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

Request Lenses

gttCatalogId :: Lens' GetTable (Maybe Text) Source #

The ID of the Data Catalog where the table resides. If none is supplied, the AWS account ID is used by default.

gttDatabaseName :: Lens' GetTable Text Source #

The name of the database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.

gttName :: Lens' GetTable Text Source #

The name of the table for which to retrieve the definition. For Hive compatibility, this name is entirely lowercase.

Destructuring the Response

getTableResponse Source #

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

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

data GetTableResponse Source #

See: getTableResponse smart constructor.

Instances

Eq GetTableResponse Source # 
Data GetTableResponse Source # 

Methods

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

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

toConstr :: GetTableResponse -> Constr #

dataTypeOf :: GetTableResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTableResponse Source # 
Show GetTableResponse Source # 
Generic GetTableResponse Source # 
NFData GetTableResponse Source # 

Methods

rnf :: GetTableResponse -> () #

type Rep GetTableResponse Source # 
type Rep GetTableResponse = D1 * (MetaData "GetTableResponse" "Network.AWS.Glue.GetTable" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "GetTableResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ggrsTable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Table))) (S1 * (MetaSel (Just Symbol "_ggrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

ggrsTable :: Lens' GetTableResponse (Maybe Table) Source #

The Table object that defines the specified table.

ggrsResponseStatus :: Lens' GetTableResponse Int Source #

  • - | The response status code.