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 details for an existing link. To remove information for any of the parameters, specify an empty string.
Synopsis
- data UpdateLink = UpdateLink' {}
- newUpdateLink :: Text -> Text -> UpdateLink
- updateLink_bandwidth :: Lens' UpdateLink (Maybe Bandwidth)
- updateLink_type :: Lens' UpdateLink (Maybe Text)
- updateLink_description :: Lens' UpdateLink (Maybe Text)
- updateLink_provider :: Lens' UpdateLink (Maybe Text)
- updateLink_globalNetworkId :: Lens' UpdateLink Text
- updateLink_linkId :: Lens' UpdateLink Text
- data UpdateLinkResponse = UpdateLinkResponse' {
- link :: Maybe Link
- httpStatus :: Int
- newUpdateLinkResponse :: Int -> UpdateLinkResponse
- updateLinkResponse_link :: Lens' UpdateLinkResponse (Maybe Link)
- updateLinkResponse_httpStatus :: Lens' UpdateLinkResponse Int
Creating a Request
data UpdateLink Source #
See: newUpdateLink
smart constructor.
UpdateLink' | |
|
Instances
Create a value of UpdateLink
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:bandwidth:UpdateLink'
, updateLink_bandwidth
- The upload and download speed in Mbps.
$sel:type':UpdateLink'
, updateLink_type
- The type of the link.
Length Constraints: Maximum length of 128 characters.
$sel:description:UpdateLink'
, updateLink_description
- A description of the link.
Length Constraints: Maximum length of 256 characters.
$sel:provider:UpdateLink'
, updateLink_provider
- The provider of the link.
Length Constraints: Maximum length of 128 characters.
$sel:globalNetworkId:UpdateLink'
, updateLink_globalNetworkId
- The ID of the global network.
$sel:linkId:UpdateLink'
, updateLink_linkId
- The ID of the link.
Request Lenses
updateLink_bandwidth :: Lens' UpdateLink (Maybe Bandwidth) Source #
The upload and download speed in Mbps.
updateLink_type :: Lens' UpdateLink (Maybe Text) Source #
The type of the link.
Length Constraints: Maximum length of 128 characters.
updateLink_description :: Lens' UpdateLink (Maybe Text) Source #
A description of the link.
Length Constraints: Maximum length of 256 characters.
updateLink_provider :: Lens' UpdateLink (Maybe Text) Source #
The provider of the link.
Length Constraints: Maximum length of 128 characters.
updateLink_globalNetworkId :: Lens' UpdateLink Text Source #
The ID of the global network.
updateLink_linkId :: Lens' UpdateLink Text Source #
The ID of the link.
Destructuring the Response
data UpdateLinkResponse Source #
See: newUpdateLinkResponse
smart constructor.
UpdateLinkResponse' | |
|
Instances
newUpdateLinkResponse Source #
Create a value of UpdateLinkResponse
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:link:UpdateLinkResponse'
, updateLinkResponse_link
- Information about the link.
$sel:httpStatus:UpdateLinkResponse'
, updateLinkResponse_httpStatus
- The response's http status code.
Response Lenses
updateLinkResponse_link :: Lens' UpdateLinkResponse (Maybe Link) Source #
Information about the link.
updateLinkResponse_httpStatus :: Lens' UpdateLinkResponse Int Source #
The response's http status code.