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 |
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.
GetPartition' | |
|
Instances
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:
$sel:catalogId: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.
$sel:databaseName:GetPartition'
, getPartition_databaseName
- The name of the catalog database where the partition resides.
$sel:tableName:GetPartition'
, getPartition_tableName
- The name of the partition's table.
$sel:partitionValues: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.
GetPartitionResponse' | |
|
Instances
newGetPartitionResponse Source #
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:
$sel:partition: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.