Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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:
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.
DeletePartition
, deletePartition_databaseName
- The name of the catalog database in which the table in question resides.
DeletePartition
, deletePartition_tableName
- The name of the table that contains the partition to be deleted.
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
Generic DeletePartitionResponse Source # | |
Defined in Amazonka.Glue.DeletePartition type Rep DeletePartitionResponse :: Type -> Type # | |
Read DeletePartitionResponse Source # | |
Show DeletePartitionResponse Source # | |
Defined in Amazonka.Glue.DeletePartition showsPrec :: Int -> DeletePartitionResponse -> ShowS # show :: DeletePartitionResponse -> String # showList :: [DeletePartitionResponse] -> ShowS # | |
NFData DeletePartitionResponse Source # | |
Defined in Amazonka.Glue.DeletePartition rnf :: DeletePartitionResponse -> () # | |
Eq DeletePartitionResponse Source # | |
Defined in Amazonka.Glue.DeletePartition | |
type Rep DeletePartitionResponse Source # | |
Defined in Amazonka.Glue.DeletePartition type Rep DeletePartitionResponse = D1 ('MetaData "DeletePartitionResponse" "Amazonka.Glue.DeletePartition" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "DeletePartitionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.