| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.BatchUpdatePartition
Description
Updates one or more partitions in a batch operation.
Synopsis
- data BatchUpdatePartition = BatchUpdatePartition' {}
- newBatchUpdatePartition :: Text -> Text -> NonEmpty BatchUpdatePartitionRequestEntry -> BatchUpdatePartition
- batchUpdatePartition_catalogId :: Lens' BatchUpdatePartition (Maybe Text)
- batchUpdatePartition_databaseName :: Lens' BatchUpdatePartition Text
- batchUpdatePartition_tableName :: Lens' BatchUpdatePartition Text
- batchUpdatePartition_entries :: Lens' BatchUpdatePartition (NonEmpty BatchUpdatePartitionRequestEntry)
- data BatchUpdatePartitionResponse = BatchUpdatePartitionResponse' {}
- newBatchUpdatePartitionResponse :: Int -> BatchUpdatePartitionResponse
- batchUpdatePartitionResponse_errors :: Lens' BatchUpdatePartitionResponse (Maybe [BatchUpdatePartitionFailureEntry])
- batchUpdatePartitionResponse_httpStatus :: Lens' BatchUpdatePartitionResponse Int
Creating a Request
data BatchUpdatePartition Source #
See: newBatchUpdatePartition smart constructor.
Constructors
| BatchUpdatePartition' | |
Fields
| |
Instances
newBatchUpdatePartition Source #
Arguments
| :: Text | |
| -> Text | |
| -> NonEmpty BatchUpdatePartitionRequestEntry | |
| -> BatchUpdatePartition |
Create a value of BatchUpdatePartition 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:
BatchUpdatePartition, batchUpdatePartition_catalogId - The ID of the catalog in which the partition is to be updated.
Currently, this should be the Amazon Web Services account ID.
BatchUpdatePartition, batchUpdatePartition_databaseName - The name of the metadata database in which the partition is to be
updated.
BatchUpdatePartition, batchUpdatePartition_tableName - The name of the metadata table in which the partition is to be updated.
$sel:entries:BatchUpdatePartition', batchUpdatePartition_entries - A list of up to 100 BatchUpdatePartitionRequestEntry objects to
update.
Request Lenses
batchUpdatePartition_catalogId :: Lens' BatchUpdatePartition (Maybe Text) Source #
The ID of the catalog in which the partition is to be updated. Currently, this should be the Amazon Web Services account ID.
batchUpdatePartition_databaseName :: Lens' BatchUpdatePartition Text Source #
The name of the metadata database in which the partition is to be updated.
batchUpdatePartition_tableName :: Lens' BatchUpdatePartition Text Source #
The name of the metadata table in which the partition is to be updated.
batchUpdatePartition_entries :: Lens' BatchUpdatePartition (NonEmpty BatchUpdatePartitionRequestEntry) Source #
A list of up to 100 BatchUpdatePartitionRequestEntry objects to
update.
Destructuring the Response
data BatchUpdatePartitionResponse Source #
See: newBatchUpdatePartitionResponse smart constructor.
Constructors
| BatchUpdatePartitionResponse' | |
Fields
| |
Instances
newBatchUpdatePartitionResponse Source #
Create a value of BatchUpdatePartitionResponse 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:BatchUpdatePartitionResponse', batchUpdatePartitionResponse_errors - The errors encountered when trying to update the requested partitions. A
list of BatchUpdatePartitionFailureEntry objects.
$sel:httpStatus:BatchUpdatePartitionResponse', batchUpdatePartitionResponse_httpStatus - The response's http status code.
Response Lenses
batchUpdatePartitionResponse_errors :: Lens' BatchUpdatePartitionResponse (Maybe [BatchUpdatePartitionFailureEntry]) Source #
The errors encountered when trying to update the requested partitions. A
list of BatchUpdatePartitionFailureEntry objects.
batchUpdatePartitionResponse_httpStatus :: Lens' BatchUpdatePartitionResponse Int Source #
The response's http status code.