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

Contents

Description

Retrieves information about a specified partition.

Synopsis

Creating a Request

getPartition Source #

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

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

  • gpCatalogId - The ID of the Data Catalog where the partition in question resides. If none is supplied, the AWS account ID is used by default.
  • gpDatabaseName - The name of the catalog database where the partition resides.
  • gpTableName - The name of the partition's table.
  • gpPartitionValues - The values that define the partition.

data GetPartition Source #

See: getPartition smart constructor.

Instances

Eq GetPartition Source # 
Data GetPartition Source # 

Methods

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

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

toConstr :: GetPartition -> Constr #

dataTypeOf :: GetPartition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPartition Source # 
Show GetPartition Source # 
Generic GetPartition Source # 

Associated Types

type Rep GetPartition :: * -> * #

Hashable GetPartition Source # 
ToJSON GetPartition Source # 
NFData GetPartition Source # 

Methods

rnf :: GetPartition -> () #

AWSRequest GetPartition Source # 
ToQuery GetPartition Source # 
ToPath GetPartition Source # 
ToHeaders GetPartition Source # 
type Rep GetPartition Source # 
type Rep GetPartition = D1 (MetaData "GetPartition" "Network.AWS.Glue.GetPartition" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" False) (C1 (MetaCons "GetPartition'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gpCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gpDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gpTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gpPartitionValues") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))))
type Rs GetPartition Source # 

Request Lenses

gpCatalogId :: Lens' GetPartition (Maybe Text) Source #

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

gpDatabaseName :: Lens' GetPartition Text Source #

The name of the catalog database where the partition resides.

gpTableName :: Lens' GetPartition Text Source #

The name of the partition's table.

gpPartitionValues :: Lens' GetPartition [Text] Source #

The values that define the partition.

Destructuring the Response

getPartitionResponse Source #

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

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

data GetPartitionResponse Source #

See: getPartitionResponse smart constructor.

Instances

Eq GetPartitionResponse Source # 
Data GetPartitionResponse Source # 

Methods

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

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

toConstr :: GetPartitionResponse -> Constr #

dataTypeOf :: GetPartitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPartitionResponse Source # 
Show GetPartitionResponse Source # 
Generic GetPartitionResponse Source # 
NFData GetPartitionResponse Source # 

Methods

rnf :: GetPartitionResponse -> () #

type Rep GetPartitionResponse Source # 
type Rep GetPartitionResponse = D1 (MetaData "GetPartitionResponse" "Network.AWS.Glue.GetPartition" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" False) (C1 (MetaCons "GetPartitionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gprsPartition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Partition))) (S1 (MetaSel (Just Symbol "_gprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gprsPartition :: Lens' GetPartitionResponse (Maybe Partition) Source #

The requested information, in the form of a Partition object.

gprsResponseStatus :: Lens' GetPartitionResponse Int Source #

  • - | The response status code.