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 |
Creates a new link for a specified site.
Synopsis
- data CreateLink = CreateLink' {}
- newCreateLink :: Text -> Bandwidth -> Text -> CreateLink
- createLink_type :: Lens' CreateLink (Maybe Text)
- createLink_description :: Lens' CreateLink (Maybe Text)
- createLink_provider :: Lens' CreateLink (Maybe Text)
- createLink_tags :: Lens' CreateLink (Maybe [Tag])
- createLink_globalNetworkId :: Lens' CreateLink Text
- createLink_bandwidth :: Lens' CreateLink Bandwidth
- createLink_siteId :: Lens' CreateLink Text
- data CreateLinkResponse = CreateLinkResponse' {
- link :: Maybe Link
- httpStatus :: Int
- newCreateLinkResponse :: Int -> CreateLinkResponse
- createLinkResponse_link :: Lens' CreateLinkResponse (Maybe Link)
- createLinkResponse_httpStatus :: Lens' CreateLinkResponse Int
Creating a Request
data CreateLink Source #
See: newCreateLink
smart constructor.
CreateLink' | |
|
Instances
:: Text | |
-> Bandwidth | |
-> Text | |
-> CreateLink |
Create a value of CreateLink
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:type':CreateLink'
, createLink_type
- The type of the link.
Constraints: Cannot include the following characters: | \ ^
Length Constraints: Maximum length of 128 characters.
$sel:description:CreateLink'
, createLink_description
- A description of the link.
Length Constraints: Maximum length of 256 characters.
$sel:provider:CreateLink'
, createLink_provider
- The provider of the link.
Constraints: Cannot include the following characters: | \ ^
Length Constraints: Maximum length of 128 characters.
$sel:tags:CreateLink'
, createLink_tags
- The tags to apply to the resource during creation.
$sel:globalNetworkId:CreateLink'
, createLink_globalNetworkId
- The ID of the global network.
$sel:bandwidth:CreateLink'
, createLink_bandwidth
- The upload speed and download speed in Mbps.
$sel:siteId:CreateLink'
, createLink_siteId
- The ID of the site.
Request Lenses
createLink_type :: Lens' CreateLink (Maybe Text) Source #
The type of the link.
Constraints: Cannot include the following characters: | \ ^
Length Constraints: Maximum length of 128 characters.
createLink_description :: Lens' CreateLink (Maybe Text) Source #
A description of the link.
Length Constraints: Maximum length of 256 characters.
createLink_provider :: Lens' CreateLink (Maybe Text) Source #
The provider of the link.
Constraints: Cannot include the following characters: | \ ^
Length Constraints: Maximum length of 128 characters.
createLink_tags :: Lens' CreateLink (Maybe [Tag]) Source #
The tags to apply to the resource during creation.
createLink_globalNetworkId :: Lens' CreateLink Text Source #
The ID of the global network.
createLink_bandwidth :: Lens' CreateLink Bandwidth Source #
The upload speed and download speed in Mbps.
createLink_siteId :: Lens' CreateLink Text Source #
The ID of the site.
Destructuring the Response
data CreateLinkResponse Source #
See: newCreateLinkResponse
smart constructor.
CreateLinkResponse' | |
|
Instances
newCreateLinkResponse Source #
Create a value of CreateLinkResponse
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:CreateLinkResponse'
, createLinkResponse_link
- Information about the link.
$sel:httpStatus:CreateLinkResponse'
, createLinkResponse_httpStatus
- The response's http status code.
Response Lenses
createLinkResponse_link :: Lens' CreateLinkResponse (Maybe Link) Source #
Information about the link.
createLinkResponse_httpStatus :: Lens' CreateLinkResponse Int Source #
The response's http status code.