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 a partition.
Synopsis
- data UpdatePartition = UpdatePartition' {}
- newUpdatePartition :: Text -> Text -> PartitionInput -> UpdatePartition
- updatePartition_catalogId :: Lens' UpdatePartition (Maybe Text)
- updatePartition_databaseName :: Lens' UpdatePartition Text
- updatePartition_tableName :: Lens' UpdatePartition Text
- updatePartition_partitionValueList :: Lens' UpdatePartition [Text]
- updatePartition_partitionInput :: Lens' UpdatePartition PartitionInput
- data UpdatePartitionResponse = UpdatePartitionResponse' {
- httpStatus :: Int
- newUpdatePartitionResponse :: Int -> UpdatePartitionResponse
- updatePartitionResponse_httpStatus :: Lens' UpdatePartitionResponse Int
Creating a Request
data UpdatePartition Source #
See: newUpdatePartition
smart constructor.
UpdatePartition' | |
|
Instances
:: Text | |
-> Text | |
-> PartitionInput | |
-> UpdatePartition |
Create a value of UpdatePartition
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:UpdatePartition'
, updatePartition_catalogId
- The ID of the Data Catalog where the partition to be updated resides. If
none is provided, the Amazon Web Services account ID is used by default.
$sel:databaseName:UpdatePartition'
, updatePartition_databaseName
- The name of the catalog database in which the table in question resides.
$sel:tableName:UpdatePartition'
, updatePartition_tableName
- The name of the table in which the partition to be updated is located.
$sel:partitionValueList:UpdatePartition'
, updatePartition_partitionValueList
- List of partition key values that define the partition to update.
$sel:partitionInput:UpdatePartition'
, updatePartition_partitionInput
- The new partition object to update the partition to.
The Values
property can't be changed. If you want to change the
partition key values for a partition, delete and recreate the partition.
Request Lenses
updatePartition_catalogId :: Lens' UpdatePartition (Maybe Text) Source #
The ID of the Data Catalog where the partition to be updated resides. If none is provided, the Amazon Web Services account ID is used by default.
updatePartition_databaseName :: Lens' UpdatePartition Text Source #
The name of the catalog database in which the table in question resides.
updatePartition_tableName :: Lens' UpdatePartition Text Source #
The name of the table in which the partition to be updated is located.
updatePartition_partitionValueList :: Lens' UpdatePartition [Text] Source #
List of partition key values that define the partition to update.
updatePartition_partitionInput :: Lens' UpdatePartition PartitionInput Source #
The new partition object to update the partition to.
The Values
property can't be changed. If you want to change the
partition key values for a partition, delete and recreate the partition.
Destructuring the Response
data UpdatePartitionResponse Source #
See: newUpdatePartitionResponse
smart constructor.
UpdatePartitionResponse' | |
|
Instances
newUpdatePartitionResponse Source #
Create a value of UpdatePartitionResponse
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:httpStatus:UpdatePartitionResponse'
, updatePartitionResponse_httpStatus
- The response's http status code.
Response Lenses
updatePartitionResponse_httpStatus :: Lens' UpdatePartitionResponse Int Source #
The response's http status code.