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 |
Deletes a specified partition.
Synopsis
- data DeletePartition = DeletePartition' {
- catalogId :: Maybe Text
- databaseName :: Text
- tableName :: Text
- partitionValues :: [Text]
- newDeletePartition :: Text -> Text -> DeletePartition
- deletePartition_catalogId :: Lens' DeletePartition (Maybe Text)
- deletePartition_databaseName :: Lens' DeletePartition Text
- deletePartition_tableName :: Lens' DeletePartition Text
- deletePartition_partitionValues :: Lens' DeletePartition [Text]
- data DeletePartitionResponse = DeletePartitionResponse' {
- httpStatus :: Int
- newDeletePartitionResponse :: Int -> DeletePartitionResponse
- deletePartitionResponse_httpStatus :: Lens' DeletePartitionResponse Int
Creating a Request
data DeletePartition Source #
See: newDeletePartition
smart constructor.
DeletePartition' | |
|
Instances
Create a value of DeletePartition
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:DeletePartition'
, deletePartition_catalogId
- The ID of the Data Catalog where the partition to be deleted resides. If
none is provided, the Amazon Web Services account ID is used by default.
$sel:databaseName:DeletePartition'
, deletePartition_databaseName
- The name of the catalog database in which the table in question resides.
$sel:tableName:DeletePartition'
, deletePartition_tableName
- The name of the table that contains the partition to be deleted.
$sel:partitionValues:DeletePartition'
, deletePartition_partitionValues
- The values that define the partition.
Request Lenses
deletePartition_catalogId :: Lens' DeletePartition (Maybe Text) Source #
The ID of the Data Catalog where the partition to be deleted resides. If none is provided, the Amazon Web Services account ID is used by default.
deletePartition_databaseName :: Lens' DeletePartition Text Source #
The name of the catalog database in which the table in question resides.
deletePartition_tableName :: Lens' DeletePartition Text Source #
The name of the table that contains the partition to be deleted.
deletePartition_partitionValues :: Lens' DeletePartition [Text] Source #
The values that define the partition.
Destructuring the Response
data DeletePartitionResponse Source #
See: newDeletePartitionResponse
smart constructor.
DeletePartitionResponse' | |
|
Instances
newDeletePartitionResponse Source #
Create a value of DeletePartitionResponse
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:DeletePartitionResponse'
, deletePartitionResponse_httpStatus
- The response's http status code.
Response Lenses
deletePartitionResponse_httpStatus :: Lens' DeletePartitionResponse Int Source #
The response's http status code.