| Copyright | (c) 2013-2017 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 |
Network.AWS.Glue.CreatePartition
Description
Creates a new partition.
- createPartition :: Text -> Text -> PartitionInput -> CreatePartition
- data CreatePartition
- cpCatalogId :: Lens' CreatePartition (Maybe Text)
- cpDatabaseName :: Lens' CreatePartition Text
- cpTableName :: Lens' CreatePartition Text
- cpPartitionInput :: Lens' CreatePartition PartitionInput
- createPartitionResponse :: Int -> CreatePartitionResponse
- data CreatePartitionResponse
- cprsResponseStatus :: Lens' CreatePartitionResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> PartitionInput | |
| -> CreatePartition |
Creates a value of CreatePartition with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpCatalogId- The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.cpDatabaseName- The name of the metadata database in which the partition is to be created.cpTableName- The name of the metadata table in which the partition is to be created.cpPartitionInput- APartitionInputstructure defining the partition to be created.
data CreatePartition Source #
See: createPartition smart constructor.
Instances
Request Lenses
cpCatalogId :: Lens' CreatePartition (Maybe Text) Source #
The ID of the catalog in which the partion is to be created. Currently, this should be the AWS account ID.
cpDatabaseName :: Lens' CreatePartition Text Source #
The name of the metadata database in which the partition is to be created.
cpTableName :: Lens' CreatePartition Text Source #
The name of the metadata table in which the partition is to be created.
cpPartitionInput :: Lens' CreatePartition PartitionInput Source #
A PartitionInput structure defining the partition to be created.
Destructuring the Response
createPartitionResponse Source #
Arguments
| :: Int | |
| -> CreatePartitionResponse |
Creates a value of CreatePartitionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprsResponseStatus- -- | The response status code.
data CreatePartitionResponse Source #
See: createPartitionResponse smart constructor.
Response Lenses
cprsResponseStatus :: Lens' CreatePartitionResponse Int Source #
- - | The response status code.