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 |
Updates the information for an existing connection. To remove information for any of the parameters, specify an empty string.
Synopsis
- data UpdateConnection = UpdateConnection' {}
- newUpdateConnection :: Text -> Text -> UpdateConnection
- updateConnection_connectedLinkId :: Lens' UpdateConnection (Maybe Text)
- updateConnection_linkId :: Lens' UpdateConnection (Maybe Text)
- updateConnection_description :: Lens' UpdateConnection (Maybe Text)
- updateConnection_globalNetworkId :: Lens' UpdateConnection Text
- updateConnection_connectionId :: Lens' UpdateConnection Text
- data UpdateConnectionResponse = UpdateConnectionResponse' {}
- newUpdateConnectionResponse :: Int -> UpdateConnectionResponse
- updateConnectionResponse_connection :: Lens' UpdateConnectionResponse (Maybe Connection)
- updateConnectionResponse_httpStatus :: Lens' UpdateConnectionResponse Int
Creating a Request
data UpdateConnection Source #
See: newUpdateConnection
smart constructor.
UpdateConnection' | |
|
Instances
:: Text | |
-> Text | |
-> UpdateConnection |
Create a value of UpdateConnection
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:connectedLinkId:UpdateConnection'
, updateConnection_connectedLinkId
- The ID of the link for the second device in the connection.
$sel:linkId:UpdateConnection'
, updateConnection_linkId
- The ID of the link for the first device in the connection.
$sel:description:UpdateConnection'
, updateConnection_description
- A description of the connection.
Length Constraints: Maximum length of 256 characters.
$sel:globalNetworkId:UpdateConnection'
, updateConnection_globalNetworkId
- The ID of the global network.
$sel:connectionId:UpdateConnection'
, updateConnection_connectionId
- The ID of the connection.
Request Lenses
updateConnection_connectedLinkId :: Lens' UpdateConnection (Maybe Text) Source #
The ID of the link for the second device in the connection.
updateConnection_linkId :: Lens' UpdateConnection (Maybe Text) Source #
The ID of the link for the first device in the connection.
updateConnection_description :: Lens' UpdateConnection (Maybe Text) Source #
A description of the connection.
Length Constraints: Maximum length of 256 characters.
updateConnection_globalNetworkId :: Lens' UpdateConnection Text Source #
The ID of the global network.
updateConnection_connectionId :: Lens' UpdateConnection Text Source #
The ID of the connection.
Destructuring the Response
data UpdateConnectionResponse Source #
See: newUpdateConnectionResponse
smart constructor.
UpdateConnectionResponse' | |
|
Instances
newUpdateConnectionResponse Source #
Create a value of UpdateConnectionResponse
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:UpdateConnectionResponse'
, updateConnectionResponse_connection
- Information about the connection.
$sel:httpStatus:UpdateConnectionResponse'
, updateConnectionResponse_httpStatus
- The response's http status code.
Response Lenses
updateConnectionResponse_connection :: Lens' UpdateConnectionResponse (Maybe Connection) Source #
Information about the connection.
updateConnectionResponse_httpStatus :: Lens' UpdateConnectionResponse Int Source #
The response's http status code.