| 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.CreateLink
Description
Creates a new link for a specified site.
Synopsis
- data CreateLink = CreateLink' {}
- newCreateLink :: Text -> Bandwidth -> Text -> CreateLink
- createLink_description :: Lens' CreateLink (Maybe Text)
- createLink_provider :: Lens' CreateLink (Maybe Text)
- createLink_tags :: Lens' CreateLink (Maybe [Tag])
- createLink_type :: Lens' CreateLink (Maybe Text)
- 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.
Constructors
| CreateLink' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateLink, createLink_description - A description of the link.
Constraints: Maximum length of 256 characters.
CreateLink, createLink_provider - The provider of the link.
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
CreateLink, createLink_tags - The tags to apply to the resource during creation.
CreateLink, createLink_type - The type of the link.
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
CreateLink, createLink_globalNetworkId - The ID of the global network.
CreateLink, createLink_bandwidth - The upload speed and download speed in Mbps.
CreateLink, createLink_siteId - The ID of the site.
Request Lenses
createLink_description :: Lens' CreateLink (Maybe Text) Source #
A description of the link.
Constraints: Maximum length of 256 characters.
createLink_provider :: Lens' CreateLink (Maybe Text) Source #
The provider of the link.
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
createLink_tags :: Lens' CreateLink (Maybe [Tag]) Source #
The tags to apply to the resource during creation.
createLink_type :: Lens' CreateLink (Maybe Text) Source #
The type of the link.
Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^
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.
Constructors
| CreateLinkResponse' | |
Fields
| |
Instances
newCreateLinkResponse Source #
Arguments
| :: Int | |
| -> CreateLinkResponse |
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.