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

Contents

Description

Retrieves information about the partitions in a table.

Synopsis

Creating a Request

getPartitions Source #

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

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

  • gpsCatalogId - The ID of the Data Catalog where the partitions in question reside. If none is supplied, the AWS account ID is used by default.
  • gpsNextToken - A continuation token, if this is not the first call to retrieve these partitions.
  • gpsExpression - An expression filtering the partitions to be returned.
  • gpsSegment - The segment of the table's partitions to scan in this request.
  • gpsMaxResults - The maximum number of partitions to return in a single response.
  • gpsDatabaseName - The name of the catalog database where the partitions reside.
  • gpsTableName - The name of the partitions' table.

data GetPartitions Source #

See: getPartitions smart constructor.

Instances

Eq GetPartitions Source # 
Data GetPartitions Source # 

Methods

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

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

toConstr :: GetPartitions -> Constr #

dataTypeOf :: GetPartitions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPartitions Source # 
Show GetPartitions Source # 
Generic GetPartitions Source # 

Associated Types

type Rep GetPartitions :: * -> * #

Hashable GetPartitions Source # 
ToJSON GetPartitions Source # 
NFData GetPartitions Source # 

Methods

rnf :: GetPartitions -> () #

AWSRequest GetPartitions Source # 
ToQuery GetPartitions Source # 
ToPath GetPartitions Source # 
ToHeaders GetPartitions Source # 
type Rep GetPartitions Source # 
type Rs GetPartitions Source # 

Request Lenses

gpsCatalogId :: Lens' GetPartitions (Maybe Text) Source #

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

gpsNextToken :: Lens' GetPartitions (Maybe Text) Source #

A continuation token, if this is not the first call to retrieve these partitions.

gpsExpression :: Lens' GetPartitions (Maybe Text) Source #

An expression filtering the partitions to be returned.

gpsSegment :: Lens' GetPartitions (Maybe Segment) Source #

The segment of the table's partitions to scan in this request.

gpsMaxResults :: Lens' GetPartitions (Maybe Natural) Source #

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

gpsDatabaseName :: Lens' GetPartitions Text Source #

The name of the catalog database where the partitions reside.

gpsTableName :: Lens' GetPartitions Text Source #

The name of the partitions' table.

Destructuring the Response

getPartitionsResponse Source #

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

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

data GetPartitionsResponse Source #

See: getPartitionsResponse smart constructor.

Instances

Eq GetPartitionsResponse Source # 
Data GetPartitionsResponse Source # 

Methods

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

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

toConstr :: GetPartitionsResponse -> Constr #

dataTypeOf :: GetPartitionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPartitionsResponse Source # 
Show GetPartitionsResponse Source # 
Generic GetPartitionsResponse Source # 
NFData GetPartitionsResponse Source # 

Methods

rnf :: GetPartitionsResponse -> () #

type Rep GetPartitionsResponse Source # 
type Rep GetPartitionsResponse = D1 (MetaData "GetPartitionsResponse" "Network.AWS.Glue.GetPartitions" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" False) (C1 (MetaCons "GetPartitionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gpsrsPartitions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Partition]))) ((:*:) (S1 (MetaSel (Just Symbol "_gpsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gpsrsPartitions :: Lens' GetPartitionsResponse [Partition] Source #

A list of requested partitions.

gpsrsNextToken :: Lens' GetPartitionsResponse (Maybe Text) Source #

A continuation token, if the returned list of partitions does not does not include the last one.

gpsrsResponseStatus :: Lens' GetPartitionsResponse Int Source #

  • - | The response status code.