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

Contents

Description

Creates a new partition.

Synopsis

Creating a Request

createPartition Source #

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

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

  • cpCatalogId - The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.
  • cpDatabaseName - The name of the metadata database in which the partition is to be created.
  • cpTableName - The name of the metadata table in which the partition is to be created.
  • cpPartitionInput - A PartitionInput structure defining the partition to be created.

data CreatePartition Source #

See: createPartition smart constructor.

Instances

Eq CreatePartition Source # 
Data CreatePartition Source # 

Methods

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

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

toConstr :: CreatePartition -> Constr #

dataTypeOf :: CreatePartition -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreatePartition Source # 
Show CreatePartition Source # 
Generic CreatePartition Source # 
Hashable CreatePartition Source # 
ToJSON CreatePartition Source # 
NFData CreatePartition Source # 

Methods

rnf :: CreatePartition -> () #

AWSRequest CreatePartition Source # 
ToQuery CreatePartition Source # 
ToPath CreatePartition Source # 
ToHeaders CreatePartition Source # 
type Rep CreatePartition Source # 
type Rep CreatePartition = D1 (MetaData "CreatePartition" "Network.AWS.Glue.CreatePartition" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" False) (C1 (MetaCons "CreatePartition'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cpCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cpDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cpTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cpPartitionInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PartitionInput)))))
type Rs CreatePartition Source # 

Request Lenses

cpCatalogId :: Lens' CreatePartition (Maybe Text) Source #

The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.

cpDatabaseName :: Lens' CreatePartition Text Source #

The name of the metadata database in which the partition is to be created.

cpTableName :: Lens' CreatePartition Text Source #

The name of the metadata table in which the partition is to be created.

cpPartitionInput :: Lens' CreatePartition PartitionInput Source #

A PartitionInput structure defining the partition to be created.

Destructuring the Response

createPartitionResponse Source #

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

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

data CreatePartitionResponse Source #

See: createPartitionResponse smart constructor.

Instances

Eq CreatePartitionResponse Source # 
Data CreatePartitionResponse Source # 

Methods

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

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

toConstr :: CreatePartitionResponse -> Constr #

dataTypeOf :: CreatePartitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreatePartitionResponse Source # 
Show CreatePartitionResponse Source # 
Generic CreatePartitionResponse Source # 
NFData CreatePartitionResponse Source # 

Methods

rnf :: CreatePartitionResponse -> () #

type Rep CreatePartitionResponse Source # 
type Rep CreatePartitionResponse = D1 (MetaData "CreatePartitionResponse" "Network.AWS.Glue.CreatePartition" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" True) (C1 (MetaCons "CreatePartitionResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_cprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses