| 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.GetDatabase
Description
Retrieves the definition of a specified database.
Synopsis
- data GetDatabase = GetDatabase' {}
- newGetDatabase :: Text -> GetDatabase
- getDatabase_catalogId :: Lens' GetDatabase (Maybe Text)
- getDatabase_name :: Lens' GetDatabase Text
- data GetDatabaseResponse = GetDatabaseResponse' {
- database :: Maybe Database
- httpStatus :: Int
- newGetDatabaseResponse :: Int -> GetDatabaseResponse
- getDatabaseResponse_database :: Lens' GetDatabaseResponse (Maybe Database)
- getDatabaseResponse_httpStatus :: Lens' GetDatabaseResponse Int
Creating a Request
data GetDatabase Source #
See: newGetDatabase smart constructor.
Constructors
| GetDatabase' | |
Instances
Arguments
| :: Text | |
| -> GetDatabase |
Create a value of GetDatabase 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:
GetDatabase, getDatabase_catalogId - The ID of the Data Catalog in which the database resides. If none is
provided, the Amazon Web Services account ID is used by default.
GetDatabase, getDatabase_name - The name of the database to retrieve. For Hive compatibility, this
should be all lowercase.
Request Lenses
getDatabase_catalogId :: Lens' GetDatabase (Maybe Text) Source #
The ID of the Data Catalog in which the database resides. If none is provided, the Amazon Web Services account ID is used by default.
getDatabase_name :: Lens' GetDatabase Text Source #
The name of the database to retrieve. For Hive compatibility, this should be all lowercase.
Destructuring the Response
data GetDatabaseResponse Source #
See: newGetDatabaseResponse smart constructor.
Constructors
| GetDatabaseResponse' | |
Fields
| |
Instances
newGetDatabaseResponse Source #
Arguments
| :: Int | |
| -> GetDatabaseResponse |
Create a value of GetDatabaseResponse 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:
GetDatabaseResponse, getDatabaseResponse_database - The definition of the specified database in the Data Catalog.
$sel:httpStatus:GetDatabaseResponse', getDatabaseResponse_httpStatus - The response's http status code.
Response Lenses
getDatabaseResponse_database :: Lens' GetDatabaseResponse (Maybe Database) Source #
The definition of the specified database in the Data Catalog.
getDatabaseResponse_httpStatus :: Lens' GetDatabaseResponse Int Source #
The response's http status code.