Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
BatchUpdatePartition' | |
|
Instances
newBatchUpdatePartition Source #
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:
$sel:catalogId: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.
$sel:databaseName:BatchUpdatePartition'
, batchUpdatePartition_databaseName
- The name of the metadata database in which the partition is to be
updated.
$sel:tableName: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.
BatchUpdatePartitionResponse' | |
|
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.