amazonka-mediatailor-2.0: Amazon MediaTailor 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.MediaTailor.ListSourceLocations

Description

Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.

This operation returns paginated results.

Synopsis

Creating a Request

data ListSourceLocations Source #

See: newListSourceLocations smart constructor.

Constructors

ListSourceLocations' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of source locations that you want MediaTailor to return in response to the current request. If there are more than MaxResults source locations, use the value of NextToken in the response to get the next page of results.

  • nextToken :: Maybe Text

    Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Instances

Instances details
ToHeaders ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

ToPath ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

ToQuery ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

AWSPager ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

AWSRequest ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Associated Types

type AWSResponse ListSourceLocations #

Generic ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Associated Types

type Rep ListSourceLocations :: Type -> Type #

Read ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Show ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

NFData ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Methods

rnf :: ListSourceLocations -> () #

Eq ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Hashable ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

type AWSResponse ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

type Rep ListSourceLocations Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

type Rep ListSourceLocations = D1 ('MetaData "ListSourceLocations" "Amazonka.MediaTailor.ListSourceLocations" "amazonka-mediatailor-2.0-6mxt6n51Pv3JbuBr2GKiO4" 'False) (C1 ('MetaCons "ListSourceLocations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListSourceLocations :: ListSourceLocations Source #

Create a value of ListSourceLocations 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:maxResults:ListSourceLocations', listSourceLocations_maxResults - The maximum number of source locations that you want MediaTailor to return in response to the current request. If there are more than MaxResults source locations, use the value of NextToken in the response to get the next page of results.

ListSourceLocations, listSourceLocations_nextToken - Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Request Lenses

listSourceLocations_maxResults :: Lens' ListSourceLocations (Maybe Natural) Source #

The maximum number of source locations that you want MediaTailor to return in response to the current request. If there are more than MaxResults source locations, use the value of NextToken in the response to get the next page of results.

listSourceLocations_nextToken :: Lens' ListSourceLocations (Maybe Text) Source #

Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Destructuring the Response

data ListSourceLocationsResponse Source #

See: newListSourceLocationsResponse smart constructor.

Constructors

ListSourceLocationsResponse' 

Fields

Instances

Instances details
Generic ListSourceLocationsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Associated Types

type Rep ListSourceLocationsResponse :: Type -> Type #

Read ListSourceLocationsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Show ListSourceLocationsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

NFData ListSourceLocationsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

Eq ListSourceLocationsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

type Rep ListSourceLocationsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListSourceLocations

type Rep ListSourceLocationsResponse = D1 ('MetaData "ListSourceLocationsResponse" "Amazonka.MediaTailor.ListSourceLocations" "amazonka-mediatailor-2.0-6mxt6n51Pv3JbuBr2GKiO4" 'False) (C1 ('MetaCons "ListSourceLocationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SourceLocation])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListSourceLocationsResponse Source #

Create a value of ListSourceLocationsResponse 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:items:ListSourceLocationsResponse', listSourceLocationsResponse_items - A list of source locations.

ListSourceLocations, listSourceLocationsResponse_nextToken - Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

$sel:httpStatus:ListSourceLocationsResponse', listSourceLocationsResponse_httpStatus - The response's http status code.

Response Lenses

listSourceLocationsResponse_nextToken :: Lens' ListSourceLocationsResponse (Maybe Text) Source #

Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.