| 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 |
Amazonka.Glue.GetPartition
Description
Retrieves information about a specified partition.
Synopsis
- data GetPartition = GetPartition' {
- catalogId :: Maybe Text
- databaseName :: Text
- tableName :: Text
- partitionValues :: [Text]
- newGetPartition :: Text -> Text -> GetPartition
- getPartition_catalogId :: Lens' GetPartition (Maybe Text)
- getPartition_databaseName :: Lens' GetPartition Text
- getPartition_tableName :: Lens' GetPartition Text
- getPartition_partitionValues :: Lens' GetPartition [Text]
- data GetPartitionResponse = GetPartitionResponse' {
- partition :: Maybe Partition
- httpStatus :: Int
- newGetPartitionResponse :: Int -> GetPartitionResponse
- getPartitionResponse_partition :: Lens' GetPartitionResponse (Maybe Partition)
- getPartitionResponse_httpStatus :: Lens' GetPartitionResponse Int
Creating a Request
data GetPartition Source #
See: newGetPartition smart constructor.
Constructors
| GetPartition' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetPartition |
Create a value of GetPartition 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:
GetPartition, getPartition_catalogId - The ID of the Data Catalog where the partition in question resides. If
none is provided, the Amazon Web Services account ID is used by default.
GetPartition, getPartition_databaseName - The name of the catalog database where the partition resides.
GetPartition, getPartition_tableName - The name of the partition's table.
GetPartition, getPartition_partitionValues - The values that define the partition.
Request Lenses
getPartition_catalogId :: Lens' GetPartition (Maybe Text) Source #
The ID of the Data Catalog where the partition in question resides. If none is provided, the Amazon Web Services account ID is used by default.
getPartition_databaseName :: Lens' GetPartition Text Source #
The name of the catalog database where the partition resides.
getPartition_tableName :: Lens' GetPartition Text Source #
The name of the partition's table.
getPartition_partitionValues :: Lens' GetPartition [Text] Source #
The values that define the partition.
Destructuring the Response
data GetPartitionResponse Source #
See: newGetPartitionResponse smart constructor.
Constructors
| GetPartitionResponse' | |
Fields
| |
Instances
newGetPartitionResponse Source #
Arguments
| :: Int | |
| -> GetPartitionResponse |
Create a value of GetPartitionResponse 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:
GetPartitionResponse, getPartitionResponse_partition - The requested information, in the form of a Partition object.
$sel:httpStatus:GetPartitionResponse', getPartitionResponse_httpStatus - The response's http status code.
Response Lenses
getPartitionResponse_partition :: Lens' GetPartitionResponse (Maybe Partition) Source #
The requested information, in the form of a Partition object.
getPartitionResponse_httpStatus :: Lens' GetPartitionResponse Int Source #
The response's http status code.