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

Description

Retrieves information about the channels that are associated with the current AWS account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListChannels Source #

See: newListChannels smart constructor.

Constructors

ListChannels' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of channels that you want MediaTailor to return in response to the current request. If there are more than MaxResults channels, 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 ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

ToPath ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

ToQuery ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

AWSPager ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

AWSRequest ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Associated Types

type AWSResponse ListChannels #

Generic ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Associated Types

type Rep ListChannels :: Type -> Type #

Read ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Show ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

NFData ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Methods

rnf :: ListChannels -> () #

Eq ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Hashable ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

type AWSResponse ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

type Rep ListChannels Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

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

newListChannels :: ListChannels Source #

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

ListChannels, listChannels_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

listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #

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

listChannels_nextToken :: Lens' ListChannels (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 ListChannelsResponse Source #

See: newListChannelsResponse smart constructor.

Constructors

ListChannelsResponse' 

Fields

  • items :: Maybe [Channel]

    A list of channels that are associated with this account.

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListChannelsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Associated Types

type Rep ListChannelsResponse :: Type -> Type #

Read ListChannelsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Show ListChannelsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

NFData ListChannelsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

Methods

rnf :: ListChannelsResponse -> () #

Eq ListChannelsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

type Rep ListChannelsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListChannels

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

newListChannelsResponse Source #

Create a value of ListChannelsResponse 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:ListChannelsResponse', listChannelsResponse_items - A list of channels that are associated with this account.

ListChannels, listChannelsResponse_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:ListChannelsResponse', listChannelsResponse_httpStatus - The response's http status code.

Response Lenses

listChannelsResponse_items :: Lens' ListChannelsResponse (Maybe [Channel]) Source #

A list of channels that are associated with this account.

listChannelsResponse_nextToken :: Lens' ListChannelsResponse (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.