| 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.GetDatabases
Description
Retrieves all databases defined in a given Data Catalog.
This operation returns paginated results.
Synopsis
- data GetDatabases = GetDatabases' {}
- newGetDatabases :: GetDatabases
- getDatabases_catalogId :: Lens' GetDatabases (Maybe Text)
- getDatabases_maxResults :: Lens' GetDatabases (Maybe Natural)
- getDatabases_nextToken :: Lens' GetDatabases (Maybe Text)
- getDatabases_resourceShareType :: Lens' GetDatabases (Maybe ResourceShareType)
- 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.
Constructors
| GetDatabases' | |
Fields
| |
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:
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:maxResults:GetDatabases', getDatabases_maxResults - The maximum number of databases to return in one response.
GetDatabases, getDatabases_nextToken - A continuation token, if this is a continuation call.
$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.
Request Lenses
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_maxResults :: Lens' GetDatabases (Maybe Natural) Source #
The maximum number of databases to return in one response.
getDatabases_nextToken :: Lens' GetDatabases (Maybe Text) Source #
A continuation token, if this is a continuation call.
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.
Destructuring the Response
data GetDatabasesResponse Source #
See: newGetDatabasesResponse smart constructor.
Constructors
| GetDatabasesResponse' | |
Fields
| |
Instances
newGetDatabasesResponse Source #
Arguments
| :: Int | |
| -> GetDatabasesResponse |
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:
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.