| 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.NetworkManager.UpdateConnection
Description
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_description :: Lens' UpdateConnection (Maybe Text)
- updateConnection_linkId :: 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.
Constructors
| UpdateConnection' | |
Fields
| |
Instances
Arguments
| :: 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:
UpdateConnection, updateConnection_connectedLinkId - The ID of the link for the second device in the connection.
UpdateConnection, updateConnection_description - A description of the connection.
Length Constraints: Maximum length of 256 characters.
UpdateConnection, updateConnection_linkId - The ID of the link for the first device in the connection.
UpdateConnection, updateConnection_globalNetworkId - The ID of the global network.
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_description :: Lens' UpdateConnection (Maybe Text) Source #
A description of the connection.
Length Constraints: Maximum length of 256 characters.
updateConnection_linkId :: Lens' UpdateConnection (Maybe Text) Source #
The ID of the link for the first device in the connection.
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.
Constructors
| UpdateConnectionResponse' | |
Fields
| |
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.