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 connection definition from the Data Catalog.
Synopsis
- data GetConnection = GetConnection' {}
- newGetConnection :: Text -> GetConnection
- getConnection_catalogId :: Lens' GetConnection (Maybe Text)
- getConnection_hidePassword :: Lens' GetConnection (Maybe Bool)
- getConnection_name :: Lens' GetConnection Text
- data GetConnectionResponse = GetConnectionResponse' {}
- newGetConnectionResponse :: Int -> GetConnectionResponse
- getConnectionResponse_connection :: Lens' GetConnectionResponse (Maybe Connection)
- getConnectionResponse_httpStatus :: Lens' GetConnectionResponse Int
Creating a Request
data GetConnection Source #
See: newGetConnection
smart constructor.
GetConnection' | |
|
Instances
Create a value of GetConnection
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:GetConnection'
, getConnection_catalogId
- The ID of the Data Catalog in which the connection resides. If none is
provided, the Amazon Web Services account ID is used by default.
$sel:hidePassword:GetConnection'
, getConnection_hidePassword
- Allows you to retrieve the connection metadata without returning the
password. For instance, the AWS Glue console uses this flag to retrieve
the connection, and does not display the password. Set this parameter
when the caller might not have permission to use the KMS key to decrypt
the password, but it does have permission to access the rest of the
connection properties.
$sel:name:GetConnection'
, getConnection_name
- The name of the connection definition to retrieve.
Request Lenses
getConnection_catalogId :: Lens' GetConnection (Maybe Text) Source #
The ID of the Data Catalog in which the connection resides. If none is provided, the Amazon Web Services account ID is used by default.
getConnection_hidePassword :: Lens' GetConnection (Maybe Bool) Source #
Allows you to retrieve the connection metadata without returning the password. For instance, the AWS Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.
getConnection_name :: Lens' GetConnection Text Source #
The name of the connection definition to retrieve.
Destructuring the Response
data GetConnectionResponse Source #
See: newGetConnectionResponse
smart constructor.
GetConnectionResponse' | |
|
Instances
newGetConnectionResponse Source #
Create a value of GetConnectionResponse
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:connection:GetConnectionResponse'
, getConnectionResponse_connection
- The requested connection definition.
$sel:httpStatus:GetConnectionResponse'
, getConnectionResponse_httpStatus
- The response's http status code.
Response Lenses
getConnectionResponse_connection :: Lens' GetConnectionResponse (Maybe Connection) Source #
The requested connection definition.
getConnectionResponse_httpStatus :: Lens' GetConnectionResponse Int Source #
The response's http status code.