| 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.UpdatePartition
Description
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.
Constructors
| UpdatePartition' | |
Fields
| |
Instances
Arguments
| :: 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:
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.
UpdatePartition, updatePartition_databaseName - The name of the catalog database in which the table in question resides.
UpdatePartition, updatePartition_tableName - The name of the table in which the partition to be updated is located.
UpdatePartition, updatePartition_partitionValueList - List of partition key values that define the partition to update.
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.
Constructors
| UpdatePartitionResponse' | |
Fields
| |
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.