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 a list of strings that identify available versions of a specified table.
This operation returns paginated results.
Synopsis
- getTableVersions :: Text -> Text -> GetTableVersions
- data GetTableVersions
- gtvsCatalogId :: Lens' GetTableVersions (Maybe Text)
- gtvsNextToken :: Lens' GetTableVersions (Maybe Text)
- gtvsMaxResults :: Lens' GetTableVersions (Maybe Natural)
- gtvsDatabaseName :: Lens' GetTableVersions Text
- gtvsTableName :: Lens' GetTableVersions Text
- getTableVersionsResponse :: Int -> GetTableVersionsResponse
- data GetTableVersionsResponse
- gtvsrsTableVersions :: Lens' GetTableVersionsResponse [TableVersion]
- gtvsrsNextToken :: Lens' GetTableVersionsResponse (Maybe Text)
- gtvsrsResponseStatus :: Lens' GetTableVersionsResponse Int
Creating a Request
Creates a value of GetTableVersions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtvsCatalogId
- The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.gtvsNextToken
- A continuation token, if this is not the first call.gtvsMaxResults
- The maximum number of table versions to return in one response.gtvsDatabaseName
- The database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.gtvsTableName
- The name of the table. For Hive compatibility, this name is entirely lowercase.
data GetTableVersions Source #
See: getTableVersions
smart constructor.
Instances
Request Lenses
gtvsCatalogId :: Lens' GetTableVersions (Maybe Text) Source #
The ID of the Data Catalog where the tables reside. If none is supplied, the AWS account ID is used by default.
gtvsNextToken :: Lens' GetTableVersions (Maybe Text) Source #
A continuation token, if this is not the first call.
gtvsMaxResults :: Lens' GetTableVersions (Maybe Natural) Source #
The maximum number of table versions to return in one response.
gtvsDatabaseName :: Lens' GetTableVersions Text Source #
The database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
gtvsTableName :: Lens' GetTableVersions Text Source #
The name of the table. For Hive compatibility, this name is entirely lowercase.
Destructuring the Response
getTableVersionsResponse Source #
Creates a value of GetTableVersionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtvsrsTableVersions
- A list of strings identifying available versions of the specified table.gtvsrsNextToken
- A continuation token, if the list of available versions does not include the last one.gtvsrsResponseStatus
- -- | The response status code.
data GetTableVersionsResponse Source #
See: getTableVersionsResponse
smart constructor.
Instances
Response Lenses
gtvsrsTableVersions :: Lens' GetTableVersionsResponse [TableVersion] Source #
A list of strings identifying available versions of the specified table.
gtvsrsNextToken :: Lens' GetTableVersionsResponse (Maybe Text) Source #
A continuation token, if the list of available versions does not include the last one.
gtvsrsResponseStatus :: Lens' GetTableVersionsResponse Int Source #
- - | The response status code.