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 |
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
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.
UpdatePartitionResponse' | |
|
Instances
Generic UpdatePartitionResponse Source # | |
Defined in Amazonka.Glue.UpdatePartition type Rep UpdatePartitionResponse :: Type -> Type # | |
Read UpdatePartitionResponse Source # | |
Show UpdatePartitionResponse Source # | |
Defined in Amazonka.Glue.UpdatePartition showsPrec :: Int -> UpdatePartitionResponse -> ShowS # show :: UpdatePartitionResponse -> String # showList :: [UpdatePartitionResponse] -> ShowS # | |
NFData UpdatePartitionResponse Source # | |
Defined in Amazonka.Glue.UpdatePartition rnf :: UpdatePartitionResponse -> () # | |
Eq UpdatePartitionResponse Source # | |
Defined in Amazonka.Glue.UpdatePartition | |
type Rep UpdatePartitionResponse Source # | |
Defined in Amazonka.Glue.UpdatePartition type Rep UpdatePartitionResponse = D1 ('MetaData "UpdatePartitionResponse" "Amazonka.Glue.UpdatePartition" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "UpdatePartitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.