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 |
Returns the connection ARN and details such as status, owner, and provider type.
Synopsis
- data GetConnection = GetConnection' {}
- newGetConnection :: Text -> GetConnection
- getConnection_connectionArn :: 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:connectionArn:GetConnection'
, getConnection_connectionArn
- The Amazon Resource Name (ARN) of a connection.
Request Lenses
getConnection_connectionArn :: Lens' GetConnection Text Source #
The Amazon Resource Name (ARN) of a connection.
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 connection details, such as status, owner, and provider type.
$sel:httpStatus:GetConnectionResponse'
, getConnectionResponse_httpStatus
- The response's http status code.
Response Lenses
getConnectionResponse_connection :: Lens' GetConnectionResponse (Maybe Connection) Source #
The connection details, such as status, owner, and provider type.
getConnectionResponse_httpStatus :: Lens' GetConnectionResponse Int Source #
The response's http status code.