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 |
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.
CreatePartition' | |
|
Instances
:: 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:
$sel:catalogId:CreatePartition'
, createPartition_catalogId
- The Amazon Web Services account ID of the catalog in which the partition
is to be created.
$sel:databaseName:CreatePartition'
, createPartition_databaseName
- The name of the metadata database in which the partition is to be
created.
$sel:tableName:CreatePartition'
, createPartition_tableName
- The name of the metadata table in which the partition is to be created.
$sel:partitionInput: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.
CreatePartitionResponse' | |
|
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.