libZSservicesZSamazonka-glueZSamazonka-glue
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Glue.BatchDeletePartition

Description

Deletes one or more partitions in a batch operation.

Synopsis

Creating a Request

data BatchDeletePartition Source #

See: newBatchDeletePartition smart constructor.

Constructors

BatchDeletePartition' 

Fields

  • catalogId :: Maybe Text

    The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default.

  • databaseName :: Text

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

  • tableName :: Text

    The name of the table that contains the partitions to be deleted.

  • partitionsToDelete :: [PartitionValueList]

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

Instances

Instances details
Eq BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Read BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Show BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Generic BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Associated Types

type Rep BatchDeletePartition :: Type -> Type #

NFData BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Methods

rnf :: BatchDeletePartition -> () #

Hashable BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

ToJSON BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

AWSRequest BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Associated Types

type AWSResponse BatchDeletePartition #

ToHeaders BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

ToPath BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

ToQuery BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

type Rep BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

type Rep BatchDeletePartition = D1 ('MetaData "BatchDeletePartition" "Amazonka.Glue.BatchDeletePartition" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "BatchDeletePartition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "partitionsToDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PartitionValueList]))))
type AWSResponse BatchDeletePartition Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

newBatchDeletePartition Source #

Create a value of BatchDeletePartition with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:catalogId:BatchDeletePartition', batchDeletePartition_catalogId - The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default.

$sel:databaseName:BatchDeletePartition', batchDeletePartition_databaseName - The name of the catalog database in which the table in question resides.

$sel:tableName:BatchDeletePartition', batchDeletePartition_tableName - The name of the table that contains the partitions to be deleted.

$sel:partitionsToDelete:BatchDeletePartition', batchDeletePartition_partitionsToDelete - A list of PartitionInput structures that define the partitions to be deleted.

Request Lenses

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

The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default.

batchDeletePartition_databaseName :: Lens' BatchDeletePartition Text Source #

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

batchDeletePartition_tableName :: Lens' BatchDeletePartition Text Source #

The name of the table that contains the partitions to be deleted.

batchDeletePartition_partitionsToDelete :: Lens' BatchDeletePartition [PartitionValueList] Source #

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

Destructuring the Response

data BatchDeletePartitionResponse Source #

See: newBatchDeletePartitionResponse smart constructor.

Constructors

BatchDeletePartitionResponse' 

Fields

Instances

Instances details
Eq BatchDeletePartitionResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Read BatchDeletePartitionResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Show BatchDeletePartitionResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Generic BatchDeletePartitionResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

Associated Types

type Rep BatchDeletePartitionResponse :: Type -> Type #

NFData BatchDeletePartitionResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

type Rep BatchDeletePartitionResponse Source # 
Instance details

Defined in Amazonka.Glue.BatchDeletePartition

type Rep BatchDeletePartitionResponse = D1 ('MetaData "BatchDeletePartitionResponse" "Amazonka.Glue.BatchDeletePartition" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "BatchDeletePartitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PartitionError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBatchDeletePartitionResponse Source #

Create a value of BatchDeletePartitionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:errors:BatchDeletePartitionResponse', batchDeletePartitionResponse_errors - The errors encountered when trying to delete the requested partitions.

$sel:httpStatus:BatchDeletePartitionResponse', batchDeletePartitionResponse_httpStatus - The response's http status code.

Response Lenses

batchDeletePartitionResponse_errors :: Lens' BatchDeletePartitionResponse (Maybe [PartitionError]) Source #

The errors encountered when trying to delete the requested partitions.