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 a list of strings that identify available versions of a specified table.
This operation returns paginated results.
Synopsis
- data GetTableVersions = GetTableVersions' {}
- newGetTableVersions :: Text -> Text -> GetTableVersions
- getTableVersions_catalogId :: Lens' GetTableVersions (Maybe Text)
- getTableVersions_nextToken :: Lens' GetTableVersions (Maybe Text)
- getTableVersions_maxResults :: Lens' GetTableVersions (Maybe Natural)
- getTableVersions_databaseName :: Lens' GetTableVersions Text
- getTableVersions_tableName :: Lens' GetTableVersions Text
- data GetTableVersionsResponse = GetTableVersionsResponse' {
- tableVersions :: Maybe [TableVersion]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetTableVersionsResponse :: Int -> GetTableVersionsResponse
- getTableVersionsResponse_tableVersions :: Lens' GetTableVersionsResponse (Maybe [TableVersion])
- getTableVersionsResponse_nextToken :: Lens' GetTableVersionsResponse (Maybe Text)
- getTableVersionsResponse_httpStatus :: Lens' GetTableVersionsResponse Int
Creating a Request
data GetTableVersions Source #
See: newGetTableVersions
smart constructor.
GetTableVersions' | |
|
Instances
:: Text | |
-> Text | |
-> GetTableVersions |
Create a value of GetTableVersions
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:GetTableVersions'
, getTableVersions_catalogId
- The ID of the Data Catalog where the tables reside. If none is provided,
the Amazon Web Services account ID is used by default.
$sel:nextToken:GetTableVersions'
, getTableVersions_nextToken
- A continuation token, if this is not the first call.
$sel:maxResults:GetTableVersions'
, getTableVersions_maxResults
- The maximum number of table versions to return in one response.
$sel:databaseName:GetTableVersions'
, getTableVersions_databaseName
- The database in the catalog in which the table resides. For Hive
compatibility, this name is entirely lowercase.
$sel:tableName:GetTableVersions'
, getTableVersions_tableName
- The name of the table. For Hive compatibility, this name is entirely
lowercase.
Request Lenses
getTableVersions_catalogId :: Lens' GetTableVersions (Maybe Text) Source #
The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.
getTableVersions_nextToken :: Lens' GetTableVersions (Maybe Text) Source #
A continuation token, if this is not the first call.
getTableVersions_maxResults :: Lens' GetTableVersions (Maybe Natural) Source #
The maximum number of table versions to return in one response.
getTableVersions_databaseName :: Lens' GetTableVersions Text Source #
The database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.
getTableVersions_tableName :: Lens' GetTableVersions Text Source #
The name of the table. For Hive compatibility, this name is entirely lowercase.
Destructuring the Response
data GetTableVersionsResponse Source #
See: newGetTableVersionsResponse
smart constructor.
GetTableVersionsResponse' | |
|
Instances
newGetTableVersionsResponse Source #
Create a value of GetTableVersionsResponse
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:tableVersions:GetTableVersionsResponse'
, getTableVersionsResponse_tableVersions
- A list of strings identifying available versions of the specified table.
$sel:nextToken:GetTableVersions'
, getTableVersionsResponse_nextToken
- A continuation token, if the list of available versions does not include
the last one.
$sel:httpStatus:GetTableVersionsResponse'
, getTableVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
getTableVersionsResponse_tableVersions :: Lens' GetTableVersionsResponse (Maybe [TableVersion]) Source #
A list of strings identifying available versions of the specified table.
getTableVersionsResponse_nextToken :: Lens' GetTableVersionsResponse (Maybe Text) Source #
A continuation token, if the list of available versions does not include the last one.
getTableVersionsResponse_httpStatus :: Lens' GetTableVersionsResponse Int Source #
The response's http status code.