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

Contents

Description

Retrieves the definitions of some or all of the tables in a given Database .

This operation returns paginated results.

Synopsis

Creating a Request

getTables Source #

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

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

  • gtCatalogId - The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.
  • gtNextToken - A continuation token, included if this is a continuation call.
  • gtExpression - A regular expression pattern. If present, only those tables whose names match the pattern are returned.
  • gtMaxResults - The maximum number of tables to return in a single response.
  • gtDatabaseName - The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.

data GetTables Source #

See: getTables smart constructor.

Instances

Eq GetTables Source # 
Data GetTables Source # 

Methods

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

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

toConstr :: GetTables -> Constr #

dataTypeOf :: GetTables -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTables Source # 
Show GetTables Source # 
Generic GetTables Source # 

Associated Types

type Rep GetTables :: * -> * #

Hashable GetTables Source # 
ToJSON GetTables Source # 
NFData GetTables Source # 

Methods

rnf :: GetTables -> () #

AWSPager GetTables Source # 
AWSRequest GetTables Source # 
ToHeaders GetTables Source # 

Methods

toHeaders :: GetTables -> [Header] #

ToPath GetTables Source # 
ToQuery GetTables Source # 
type Rep GetTables Source # 
type Rep GetTables = D1 * (MetaData "GetTables" "Network.AWS.Glue.GetTables" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "GetTables'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gtCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gtNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gtExpression") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gtMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_gtDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs GetTables Source # 

Request Lenses

gtCatalogId :: Lens' GetTables (Maybe Text) Source #

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

gtNextToken :: Lens' GetTables (Maybe Text) Source #

A continuation token, included if this is a continuation call.

gtExpression :: Lens' GetTables (Maybe Text) Source #

A regular expression pattern. If present, only those tables whose names match the pattern are returned.

gtMaxResults :: Lens' GetTables (Maybe Natural) Source #

The maximum number of tables to return in a single response.

gtDatabaseName :: Lens' GetTables Text Source #

The database in the catalog whose tables to list. For Hive compatibility, this name is entirely lowercase.

Destructuring the Response

getTablesResponse Source #

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

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

data GetTablesResponse Source #

See: getTablesResponse smart constructor.

Instances

Eq GetTablesResponse Source # 
Data GetTablesResponse Source # 

Methods

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

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

toConstr :: GetTablesResponse -> Constr #

dataTypeOf :: GetTablesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTablesResponse Source # 
Show GetTablesResponse Source # 
Generic GetTablesResponse Source # 
NFData GetTablesResponse Source # 

Methods

rnf :: GetTablesResponse -> () #

type Rep GetTablesResponse Source # 
type Rep GetTablesResponse = D1 * (MetaData "GetTablesResponse" "Network.AWS.Glue.GetTables" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "GetTablesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gtsrsTableList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Table]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gtsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gtsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

gtsrsTableList :: Lens' GetTablesResponse [Table] Source #

A list of the requested Table objects.

gtsrsNextToken :: Lens' GetTablesResponse (Maybe Text) Source #

A continuation token, present if the current list segment is not the last.

gtsrsResponseStatus :: Lens' GetTablesResponse Int Source #

  • - | The response status code.