Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates one or more partitions in a batch operation.
Synopsis
- batchCreatePartition :: Text -> Text -> BatchCreatePartition
- data BatchCreatePartition
- bcpCatalogId :: Lens' BatchCreatePartition (Maybe Text)
- bcpDatabaseName :: Lens' BatchCreatePartition Text
- bcpTableName :: Lens' BatchCreatePartition Text
- bcpPartitionInputList :: Lens' BatchCreatePartition [PartitionInput]
- batchCreatePartitionResponse :: Int -> BatchCreatePartitionResponse
- data BatchCreatePartitionResponse
- bcprsErrors :: Lens' BatchCreatePartitionResponse [PartitionError]
- bcprsResponseStatus :: Lens' BatchCreatePartitionResponse Int
Creating a Request
Creates a value of BatchCreatePartition
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bcpCatalogId
- The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.bcpDatabaseName
- The name of the metadata database in which the partition is to be created.bcpTableName
- The name of the metadata table in which the partition is to be created.bcpPartitionInputList
- A list ofPartitionInput
structures that define the partitions to be created.
data BatchCreatePartition Source #
See: batchCreatePartition
smart constructor.
Instances
Request Lenses
bcpCatalogId :: Lens' BatchCreatePartition (Maybe Text) Source #
The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.
bcpDatabaseName :: Lens' BatchCreatePartition Text Source #
The name of the metadata database in which the partition is to be created.
bcpTableName :: Lens' BatchCreatePartition Text Source #
The name of the metadata table in which the partition is to be created.
bcpPartitionInputList :: Lens' BatchCreatePartition [PartitionInput] Source #
A list of PartitionInput
structures that define the partitions to be created.
Destructuring the Response
batchCreatePartitionResponse Source #
Creates a value of BatchCreatePartitionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bcprsErrors
- Errors encountered when trying to create the requested partitions.bcprsResponseStatus
- -- | The response status code.
data BatchCreatePartitionResponse Source #
See: batchCreatePartitionResponse
smart constructor.
Instances
Response Lenses
bcprsErrors :: Lens' BatchCreatePartitionResponse [PartitionError] Source #
Errors encountered when trying to create the requested partitions.
bcprsResponseStatus :: Lens' BatchCreatePartitionResponse Int Source #
- - | The response status code.