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 one or more partitions in a batch operation.
Synopsis
- data BatchCreatePartition = BatchCreatePartition' {}
- newBatchCreatePartition :: Text -> Text -> BatchCreatePartition
- batchCreatePartition_catalogId :: Lens' BatchCreatePartition (Maybe Text)
- batchCreatePartition_databaseName :: Lens' BatchCreatePartition Text
- batchCreatePartition_tableName :: Lens' BatchCreatePartition Text
- batchCreatePartition_partitionInputList :: Lens' BatchCreatePartition [PartitionInput]
- data BatchCreatePartitionResponse = BatchCreatePartitionResponse' {
- errors :: Maybe [PartitionError]
- httpStatus :: Int
- newBatchCreatePartitionResponse :: Int -> BatchCreatePartitionResponse
- batchCreatePartitionResponse_errors :: Lens' BatchCreatePartitionResponse (Maybe [PartitionError])
- batchCreatePartitionResponse_httpStatus :: Lens' BatchCreatePartitionResponse Int
Creating a Request
data BatchCreatePartition Source #
See: newBatchCreatePartition
smart constructor.
BatchCreatePartition' | |
|
Instances
newBatchCreatePartition Source #
:: Text | |
-> Text | |
-> BatchCreatePartition |
Create a value of BatchCreatePartition
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:BatchCreatePartition'
, batchCreatePartition_catalogId
- The ID of the catalog in which the partition is to be created.
Currently, this should be the Amazon Web Services account ID.
$sel:databaseName:BatchCreatePartition'
, batchCreatePartition_databaseName
- The name of the metadata database in which the partition is to be
created.
$sel:tableName:BatchCreatePartition'
, batchCreatePartition_tableName
- The name of the metadata table in which the partition is to be created.
$sel:partitionInputList:BatchCreatePartition'
, batchCreatePartition_partitionInputList
- A list of PartitionInput
structures that define the partitions to be
created.
Request Lenses
batchCreatePartition_catalogId :: Lens' BatchCreatePartition (Maybe Text) Source #
The ID of the catalog in which the partition is to be created. Currently, this should be the Amazon Web Services account ID.
batchCreatePartition_databaseName :: Lens' BatchCreatePartition Text Source #
The name of the metadata database in which the partition is to be created.
batchCreatePartition_tableName :: Lens' BatchCreatePartition Text Source #
The name of the metadata table in which the partition is to be created.
batchCreatePartition_partitionInputList :: Lens' BatchCreatePartition [PartitionInput] Source #
A list of PartitionInput
structures that define the partitions to be
created.
Destructuring the Response
data BatchCreatePartitionResponse Source #
See: newBatchCreatePartitionResponse
smart constructor.
BatchCreatePartitionResponse' | |
|
Instances
newBatchCreatePartitionResponse Source #
Create a value of BatchCreatePartitionResponse
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:errors:BatchCreatePartitionResponse'
, batchCreatePartitionResponse_errors
- The errors encountered when trying to create the requested partitions.
$sel:httpStatus:BatchCreatePartitionResponse'
, batchCreatePartitionResponse_httpStatus
- The response's http status code.
Response Lenses
batchCreatePartitionResponse_errors :: Lens' BatchCreatePartitionResponse (Maybe [PartitionError]) Source #
The errors encountered when trying to create the requested partitions.
batchCreatePartitionResponse_httpStatus :: Lens' BatchCreatePartitionResponse Int Source #
The response's http status code.