| 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.CreatePartition
Description
Creates a new partition.
Synopsis
- data CreatePartition = CreatePartition' {}
- newCreatePartition :: Text -> Text -> PartitionInput -> CreatePartition
- createPartition_catalogId :: Lens' CreatePartition (Maybe Text)
- createPartition_databaseName :: Lens' CreatePartition Text
- createPartition_tableName :: Lens' CreatePartition Text
- createPartition_partitionInput :: Lens' CreatePartition PartitionInput
- data CreatePartitionResponse = CreatePartitionResponse' {
- httpStatus :: Int
- newCreatePartitionResponse :: Int -> CreatePartitionResponse
- createPartitionResponse_httpStatus :: Lens' CreatePartitionResponse Int
Creating a Request
data CreatePartition Source #
See: newCreatePartition smart constructor.
Constructors
| CreatePartition' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> PartitionInput | |
| -> CreatePartition |
Create a value of CreatePartition 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:
CreatePartition, createPartition_catalogId - The Amazon Web Services account ID of the catalog in which the partition
is to be created.
CreatePartition, createPartition_databaseName - The name of the metadata database in which the partition is to be
created.
CreatePartition, createPartition_tableName - The name of the metadata table in which the partition is to be created.
CreatePartition, createPartition_partitionInput - A PartitionInput structure defining the partition to be created.
Request Lenses
createPartition_catalogId :: Lens' CreatePartition (Maybe Text) Source #
The Amazon Web Services account ID of the catalog in which the partition is to be created.
createPartition_databaseName :: Lens' CreatePartition Text Source #
The name of the metadata database in which the partition is to be created.
createPartition_tableName :: Lens' CreatePartition Text Source #
The name of the metadata table in which the partition is to be created.
createPartition_partitionInput :: Lens' CreatePartition PartitionInput Source #
A PartitionInput structure defining the partition to be created.
Destructuring the Response
data CreatePartitionResponse Source #
See: newCreatePartitionResponse smart constructor.
Constructors
| CreatePartitionResponse' | |
Fields
| |
Instances
newCreatePartitionResponse Source #
Create a value of CreatePartitionResponse 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:CreatePartitionResponse', createPartitionResponse_httpStatus - The response's http status code.
Response Lenses
createPartitionResponse_httpStatus :: Lens' CreatePartitionResponse Int Source #
The response's http status code.