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

Contents

Description

Creates one or more partitions in a batch operation.

Synopsis

Creating a Request

batchCreatePartition Source #

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

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

  • bcpCatalogId - The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.
  • bcpDatabaseName - The name of the metadata database in which the partition is to be created.
  • bcpTableName - The name of the metadata table in which the partition is to be created.
  • bcpPartitionInputList - A list of PartitionInput structures that define the partitions to be created.

data BatchCreatePartition Source #

See: batchCreatePartition smart constructor.

Instances

Eq BatchCreatePartition Source # 
Data BatchCreatePartition Source # 

Methods

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

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

toConstr :: BatchCreatePartition -> Constr #

dataTypeOf :: BatchCreatePartition -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: BatchCreatePartition -> () #

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

Request Lenses

bcpCatalogId :: Lens' BatchCreatePartition (Maybe Text) Source #

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

bcpDatabaseName :: Lens' BatchCreatePartition Text Source #

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

bcpTableName :: Lens' BatchCreatePartition Text Source #

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

bcpPartitionInputList :: Lens' BatchCreatePartition [PartitionInput] Source #

A list of PartitionInput structures that define the partitions to be created.

Destructuring the Response

batchCreatePartitionResponse Source #

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

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

data BatchCreatePartitionResponse Source #

See: batchCreatePartitionResponse smart constructor.

Instances

Eq BatchCreatePartitionResponse Source # 
Data BatchCreatePartitionResponse Source # 

Methods

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

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

toConstr :: BatchCreatePartitionResponse -> Constr #

dataTypeOf :: BatchCreatePartitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchCreatePartitionResponse Source # 
Show BatchCreatePartitionResponse Source # 
Generic BatchCreatePartitionResponse Source # 
NFData BatchCreatePartitionResponse Source # 
type Rep BatchCreatePartitionResponse Source # 
type Rep BatchCreatePartitionResponse = D1 (MetaData "BatchCreatePartitionResponse" "Network.AWS.Glue.BatchCreatePartition" "amazonka-glue-1.5.0-4Up8HzkFFhK6642ZlsxA7K" False) (C1 (MetaCons "BatchCreatePartitionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_bcprsErrors") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PartitionError]))) (S1 (MetaSel (Just Symbol "_bcprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

bcprsErrors :: Lens' BatchCreatePartitionResponse [PartitionError] Source #

Errors encountered when trying to create the requested partitions.