| 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.GetTableVersions
Description
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_maxResults :: Lens' GetTableVersions (Maybe Natural)
- getTableVersions_nextToken :: Lens' GetTableVersions (Maybe Text)
- getTableVersions_databaseName :: Lens' GetTableVersions Text
- getTableVersions_tableName :: Lens' GetTableVersions Text
- data GetTableVersionsResponse = GetTableVersionsResponse' {
- nextToken :: Maybe Text
- tableVersions :: Maybe [TableVersion]
- httpStatus :: Int
- newGetTableVersionsResponse :: Int -> GetTableVersionsResponse
- getTableVersionsResponse_nextToken :: Lens' GetTableVersionsResponse (Maybe Text)
- getTableVersionsResponse_tableVersions :: Lens' GetTableVersionsResponse (Maybe [TableVersion])
- getTableVersionsResponse_httpStatus :: Lens' GetTableVersionsResponse Int
Creating a Request
data GetTableVersions Source #
See: newGetTableVersions smart constructor.
Constructors
| GetTableVersions' | |
Fields
| |
Instances
Arguments
| :: 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:
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:maxResults:GetTableVersions', getTableVersions_maxResults - The maximum number of table versions to return in one response.
GetTableVersions, getTableVersions_nextToken - A continuation token, if this is not the first call.
GetTableVersions, getTableVersions_databaseName - The database in the catalog in which the table resides. For Hive
compatibility, this name is entirely lowercase.
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_maxResults :: Lens' GetTableVersions (Maybe Natural) Source #
The maximum number of table versions to return in one response.
getTableVersions_nextToken :: Lens' GetTableVersions (Maybe Text) Source #
A continuation token, if this is not the first call.
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.
Constructors
| GetTableVersionsResponse' | |
Fields
| |
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:
GetTableVersions, getTableVersionsResponse_nextToken - A continuation token, if the list of available versions does not include
the last one.
$sel:tableVersions:GetTableVersionsResponse', getTableVersionsResponse_tableVersions - A list of strings identifying available versions of the specified table.
$sel:httpStatus:GetTableVersionsResponse', getTableVersionsResponse_httpStatus - The response's http status code.
Response Lenses
getTableVersionsResponse_nextToken :: Lens' GetTableVersionsResponse (Maybe Text) Source #
A continuation token, if the list of available versions does not include the last one.
getTableVersionsResponse_tableVersions :: Lens' GetTableVersionsResponse (Maybe [TableVersion]) Source #
A list of strings identifying available versions of the specified table.
getTableVersionsResponse_httpStatus :: Lens' GetTableVersionsResponse Int Source #
The response's http status code.