Copyright | (c) 2013-2018 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 |
Retrieves information about the partitions in a table.
This operation returns paginated results.
Synopsis
- getPartitions :: Text -> Text -> GetPartitions
- data GetPartitions
- gpsCatalogId :: Lens' GetPartitions (Maybe Text)
- gpsNextToken :: Lens' GetPartitions (Maybe Text)
- gpsExpression :: Lens' GetPartitions (Maybe Text)
- gpsSegment :: Lens' GetPartitions (Maybe Segment)
- gpsMaxResults :: Lens' GetPartitions (Maybe Natural)
- gpsDatabaseName :: Lens' GetPartitions Text
- gpsTableName :: Lens' GetPartitions Text
- getPartitionsResponse :: Int -> GetPartitionsResponse
- data GetPartitionsResponse
- gpsrsPartitions :: Lens' GetPartitionsResponse [Partition]
- gpsrsNextToken :: Lens' GetPartitionsResponse (Maybe Text)
- gpsrsResponseStatus :: Lens' GetPartitionsResponse Int
Creating a Request
Creates a value of GetPartitions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpsCatalogId
- The ID of the Data Catalog where the partitions in question reside. If none is supplied, the AWS account ID is used by default.gpsNextToken
- A continuation token, if this is not the first call to retrieve these partitions.gpsExpression
- An expression filtering the partitions to be returned.gpsSegment
- The segment of the table's partitions to scan in this request.gpsMaxResults
- The maximum number of partitions to return in a single response.gpsDatabaseName
- The name of the catalog database where the partitions reside.gpsTableName
- The name of the partitions' table.
data GetPartitions Source #
See: getPartitions
smart constructor.
Instances
Request Lenses
gpsCatalogId :: Lens' GetPartitions (Maybe Text) Source #
The ID of the Data Catalog where the partitions in question reside. If none is supplied, the AWS account ID is used by default.
gpsNextToken :: Lens' GetPartitions (Maybe Text) Source #
A continuation token, if this is not the first call to retrieve these partitions.
gpsExpression :: Lens' GetPartitions (Maybe Text) Source #
An expression filtering the partitions to be returned.
gpsSegment :: Lens' GetPartitions (Maybe Segment) Source #
The segment of the table's partitions to scan in this request.
gpsMaxResults :: Lens' GetPartitions (Maybe Natural) Source #
The maximum number of partitions to return in a single response.
gpsDatabaseName :: Lens' GetPartitions Text Source #
The name of the catalog database where the partitions reside.
gpsTableName :: Lens' GetPartitions Text Source #
The name of the partitions' table.
Destructuring the Response
getPartitionsResponse Source #
Creates a value of GetPartitionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpsrsPartitions
- A list of requested partitions.gpsrsNextToken
- A continuation token, if the returned list of partitions does not does not include the last one.gpsrsResponseStatus
- -- | The response status code.
data GetPartitionsResponse Source #
See: getPartitionsResponse
smart constructor.
Instances
Response Lenses
gpsrsPartitions :: Lens' GetPartitionsResponse [Partition] Source #
A list of requested partitions.
gpsrsNextToken :: Lens' GetPartitionsResponse (Maybe Text) Source #
A continuation token, if the returned list of partitions does not does not include the last one.
gpsrsResponseStatus :: Lens' GetPartitionsResponse Int Source #
- - | The response status code.