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.GetLinks

Description

Gets information about one or more links in a specified global network.

If you specify the site ID, you cannot specify the type or provider in the same request. You can specify the type and provider in the same request.

This operation returns paginated results.

Synopsis

Creating a Request

data GetLinks Source #

See: newGetLinks smart constructor.

Constructors

GetLinks' 

Fields

Instances

newGetLinks Source #

Arguments

:: Text

GetLinks

-> GetLinks 

Create a value of GetLinks 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:linkIds:GetLinks', getLinks_linkIds - One or more link IDs. The maximum is 10.

$sel:maxResults:GetLinks', getLinks_maxResults - The maximum number of results to return.

GetLinks, getLinks_nextToken - The token for the next page of results.

GetLinks, getLinks_provider - The link provider.

GetLinks, getLinks_siteId - The ID of the site.

GetLinks, getLinks_type - The link type.

GetLinks, getLinks_globalNetworkId - The ID of the global network.

Request Lenses

getLinks_linkIds :: Lens' GetLinks (Maybe [Text]) Source #

One or more link IDs. The maximum is 10.

getLinks_maxResults :: Lens' GetLinks (Maybe Natural) Source #

The maximum number of results to return.

getLinks_nextToken :: Lens' GetLinks (Maybe Text) Source #

The token for the next page of results.

getLinks_siteId :: Lens' GetLinks (Maybe Text) Source #

The ID of the site.

getLinks_globalNetworkId :: Lens' GetLinks Text Source #

The ID of the global network.

Destructuring the Response

data GetLinksResponse Source #

See: newGetLinksResponse smart constructor.

Constructors

GetLinksResponse' 

Fields

Instances

Instances details
Generic GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Associated Types

type Rep GetLinksResponse :: Type -> Type #

Read GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Show GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

NFData GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Methods

rnf :: GetLinksResponse -> () #

Eq GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

type Rep GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

type Rep GetLinksResponse = D1 ('MetaData "GetLinksResponse" "Amazonka.NetworkManager.GetLinks" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "GetLinksResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "links") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Link])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetLinksResponse Source #

Create a value of GetLinksResponse 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:links:GetLinksResponse', getLinksResponse_links - The links.

GetLinks, getLinksResponse_nextToken - The token for the next page of results.

$sel:httpStatus:GetLinksResponse', getLinksResponse_httpStatus - The response's http status code.

Response Lenses

getLinksResponse_nextToken :: Lens' GetLinksResponse (Maybe Text) Source #

The token for the next page of results.

getLinksResponse_httpStatus :: Lens' GetLinksResponse Int Source #

The response's http status code.