amazonka-glue-1.6.0: 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.BatchDeletePartition

Contents

Description

Deletes one or more partitions in a batch operation.

Synopsis

Creating a Request

batchDeletePartition Source #

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

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

  • bdpCatalogId - The ID of the Data Catalog where the partition to be deleted resides. If none is supplied, the AWS account ID is used by default.
  • bdpDatabaseName - The name of the catalog database in which the table in question resides.
  • bdpTableName - The name of the table where the partitions to be deleted is located.
  • bdpPartitionsToDelete - A list of PartitionInput structures that define the partitions to be deleted.

data BatchDeletePartition Source #

See: batchDeletePartition smart constructor.

Instances

Eq BatchDeletePartition Source # 
Data BatchDeletePartition Source # 

Methods

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

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

toConstr :: BatchDeletePartition -> Constr #

dataTypeOf :: BatchDeletePartition -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: BatchDeletePartition -> () #

AWSRequest BatchDeletePartition Source # 
ToHeaders BatchDeletePartition Source # 
ToPath BatchDeletePartition Source # 
ToQuery BatchDeletePartition Source # 
type Rep BatchDeletePartition Source # 
type Rep BatchDeletePartition = D1 * (MetaData "BatchDeletePartition" "Network.AWS.Glue.BatchDeletePartition" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "BatchDeletePartition'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_bdpCatalogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_bdpDatabaseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdpTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_bdpPartitionsToDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [PartitionValueList])))))
type Rs BatchDeletePartition Source # 

Request Lenses

bdpCatalogId :: Lens' BatchDeletePartition (Maybe Text) Source #

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

bdpDatabaseName :: Lens' BatchDeletePartition Text Source #

The name of the catalog database in which the table in question resides.

bdpTableName :: Lens' BatchDeletePartition Text Source #

The name of the table where the partitions to be deleted is located.

bdpPartitionsToDelete :: Lens' BatchDeletePartition [PartitionValueList] Source #

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

Destructuring the Response

batchDeletePartitionResponse Source #

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

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

data BatchDeletePartitionResponse Source #

See: batchDeletePartitionResponse smart constructor.

Instances

Eq BatchDeletePartitionResponse Source # 
Data BatchDeletePartitionResponse Source # 

Methods

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

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

toConstr :: BatchDeletePartitionResponse -> Constr #

dataTypeOf :: BatchDeletePartitionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDeletePartitionResponse Source # 
Show BatchDeletePartitionResponse Source # 
Generic BatchDeletePartitionResponse Source # 
NFData BatchDeletePartitionResponse Source # 
type Rep BatchDeletePartitionResponse Source # 
type Rep BatchDeletePartitionResponse = D1 * (MetaData "BatchDeletePartitionResponse" "Network.AWS.Glue.BatchDeletePartition" "amazonka-glue-1.6.0-6lygtbc1qn5L8T6WOf5nFo" False) (C1 * (MetaCons "BatchDeletePartitionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdprsErrors") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [PartitionError]))) (S1 * (MetaSel (Just Symbol "_bdprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

bdprsErrors :: Lens' BatchDeletePartitionResponse [PartitionError] Source #

Errors encountered when trying to delete the requested partitions.