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

Contents

Description

Retrieves information about the partitions in a table.

This operation returns paginated results.

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 # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Data GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

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 # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Show GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Generic GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Associated Types

type Rep GetPartitions :: Type -> Type #

Hashable GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

ToJSON GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

AWSPager GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

AWSRequest GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Associated Types

type Rs GetPartitions :: Type #

ToHeaders GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

ToPath GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

ToQuery GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

NFData GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Methods

rnf :: GetPartitions -> () #

type Rep GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

type Rep GetPartitions = D1 (MetaData "GetPartitions" "Network.AWS.Glue.GetPartitions" "amazonka-glue-1.6.1-4wrowkj7LqMExQlCyUUmWF" False) (C1 (MetaCons "GetPartitions'" PrefixI True) ((S1 (MetaSel (Just "_gpsCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gpsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gpsExpression") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_gpsSegment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Segment)) :*: S1 (MetaSel (Just "_gpsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_gpsDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gpsTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetPartitions Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

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 # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Data GetPartitionsResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

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 # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Show GetPartitionsResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Generic GetPartitionsResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Associated Types

type Rep GetPartitionsResponse :: Type -> Type #

NFData GetPartitionsResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

Methods

rnf :: GetPartitionsResponse -> () #

type Rep GetPartitionsResponse Source # 
Instance details

Defined in Network.AWS.Glue.GetPartitions

type Rep GetPartitionsResponse = D1 (MetaData "GetPartitionsResponse" "Network.AWS.Glue.GetPartitions" "amazonka-glue-1.6.1-4wrowkj7LqMExQlCyUUmWF" False) (C1 (MetaCons "GetPartitionsResponse'" PrefixI True) (S1 (MetaSel (Just "_gpsrsPartitions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Partition])) :*: (S1 (MetaSel (Just "_gpsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.