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 all databases defined in a given Data Catalog.
This operation returns paginated results.
Synopsis
- data GetDatabases = GetDatabases' {}
- newGetDatabases :: GetDatabases
- getDatabases_resourceShareType :: Lens' GetDatabases (Maybe ResourceShareType)
- getDatabases_catalogId :: Lens' GetDatabases (Maybe Text)
- getDatabases_nextToken :: Lens' GetDatabases (Maybe Text)
- getDatabases_maxResults :: Lens' GetDatabases (Maybe Natural)
- data GetDatabasesResponse = GetDatabasesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- databaseList :: [Database]
- newGetDatabasesResponse :: Int -> GetDatabasesResponse
- getDatabasesResponse_nextToken :: Lens' GetDatabasesResponse (Maybe Text)
- getDatabasesResponse_httpStatus :: Lens' GetDatabasesResponse Int
- getDatabasesResponse_databaseList :: Lens' GetDatabasesResponse [Database]
Creating a Request
data GetDatabases Source #
See: newGetDatabases
smart constructor.
GetDatabases' | |
|
Instances
newGetDatabases :: GetDatabases Source #
Create a value of GetDatabases
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:resourceShareType:GetDatabases'
, getDatabases_resourceShareType
- Allows you to specify that you want to list the databases shared with
your account. The allowable values are FOREIGN
or ALL
.
- If set to
FOREIGN
, will list the databases shared with your account. - If set to
ALL
, will list the databases shared with your account, as well as the databases in yor local account.
$sel:catalogId:GetDatabases'
, getDatabases_catalogId
- The ID of the Data Catalog from which to retrieve Databases
. If none
is provided, the Amazon Web Services account ID is used by default.
$sel:nextToken:GetDatabases'
, getDatabases_nextToken
- A continuation token, if this is a continuation call.
$sel:maxResults:GetDatabases'
, getDatabases_maxResults
- The maximum number of databases to return in one response.
Request Lenses
getDatabases_resourceShareType :: Lens' GetDatabases (Maybe ResourceShareType) Source #
Allows you to specify that you want to list the databases shared with
your account. The allowable values are FOREIGN
or ALL
.
- If set to
FOREIGN
, will list the databases shared with your account. - If set to
ALL
, will list the databases shared with your account, as well as the databases in yor local account.
getDatabases_catalogId :: Lens' GetDatabases (Maybe Text) Source #
The ID of the Data Catalog from which to retrieve Databases
. If none
is provided, the Amazon Web Services account ID is used by default.
getDatabases_nextToken :: Lens' GetDatabases (Maybe Text) Source #
A continuation token, if this is a continuation call.
getDatabases_maxResults :: Lens' GetDatabases (Maybe Natural) Source #
The maximum number of databases to return in one response.
Destructuring the Response
data GetDatabasesResponse Source #
See: newGetDatabasesResponse
smart constructor.
GetDatabasesResponse' | |
|
Instances
newGetDatabasesResponse Source #
Create a value of GetDatabasesResponse
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:nextToken:GetDatabases'
, getDatabasesResponse_nextToken
- A continuation token for paginating the returned list of tokens,
returned if the current segment of the list is not the last.
$sel:httpStatus:GetDatabasesResponse'
, getDatabasesResponse_httpStatus
- The response's http status code.
$sel:databaseList:GetDatabasesResponse'
, getDatabasesResponse_databaseList
- A list of Database
objects from the specified catalog.
Response Lenses
getDatabasesResponse_nextToken :: Lens' GetDatabasesResponse (Maybe Text) Source #
A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
getDatabasesResponse_httpStatus :: Lens' GetDatabasesResponse Int Source #
The response's http status code.
getDatabasesResponse_databaseList :: Lens' GetDatabasesResponse [Database] Source #
A list of Database
objects from the specified catalog.