amazonka-networkmanager-2.0: Amazon Network Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.NetworkManager.CreateLink

Description

Creates a new link for a specified site.

Synopsis

Creating a Request

data CreateLink Source #

See: newCreateLink smart constructor.

Constructors

CreateLink' 

Fields

  • description :: Maybe Text

    A description of the link.

    Constraints: Maximum length of 256 characters.

  • provider :: Maybe Text

    The provider of the link.

    Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^

  • tags :: Maybe [Tag]

    The tags to apply to the resource during creation.

  • type' :: Maybe Text

    The type of the link.

    Constraints: Maximum length of 128 characters. Cannot include the following characters: | \ ^

  • globalNetworkId :: Text

    The ID of the global network.

  • bandwidth :: Bandwidth

    The upload speed and download speed in Mbps.

  • siteId :: Text

    The ID of the site.

Instances

newCreateLink Source #

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.

Destructuring the Response

data CreateLinkResponse Source #

See: newCreateLinkResponse smart constructor.

Constructors

CreateLinkResponse' 

Fields

Instances

Instances details
Generic CreateLinkResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateLink

Associated Types

type Rep CreateLinkResponse :: Type -> Type #

Read CreateLinkResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateLink

Show CreateLinkResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateLink

NFData CreateLinkResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateLink

Methods

rnf :: CreateLinkResponse -> () #

Eq CreateLinkResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateLink

type Rep CreateLinkResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateLink

type Rep CreateLinkResponse = D1 ('MetaData "CreateLinkResponse" "Amazonka.NetworkManager.CreateLink" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "CreateLinkResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Link)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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