libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 #

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:nextToken:GetLinks', getLinks_nextToken - The token for the next page of results.

$sel:type':GetLinks', getLinks_type - The link type.

$sel:siteId:GetLinks', getLinks_siteId - The ID of the site.

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

$sel:provider:GetLinks', getLinks_provider - The link provider.

$sel:globalNetworkId: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_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_maxResults :: Lens' GetLinks (Maybe Natural) Source #

The maximum number of results to return.

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
Eq GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Read GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Show GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Generic GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Associated Types

type Rep GetLinksResponse :: Type -> Type #

NFData GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

Methods

rnf :: GetLinksResponse -> () #

type Rep GetLinksResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.GetLinks

type Rep GetLinksResponse = D1 ('MetaData "GetLinksResponse" "Amazonka.NetworkManager.GetLinks" "libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager" 'False) (C1 ('MetaCons "GetLinksResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "links") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Link])) :*: 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:nextToken:GetLinks', getLinksResponse_nextToken - The token for the next page of results.

$sel:links:GetLinksResponse', getLinksResponse_links - The links.

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