| 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.CodeStarConnections.GetConnection
Description
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.
Constructors
| GetConnection' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetConnection |
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:
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.
Constructors
| GetConnectionResponse' | |
Fields
| |
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.