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

Description

Lists the alerts that are associated with a MediaTailor channel assembly resource.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAlerts Source #

See: newListAlerts smart constructor.

Constructors

ListAlerts' 

Fields

  • maxResults :: Maybe Natural

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

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource.

Instances

Instances details
ToHeaders ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Methods

toHeaders :: ListAlerts -> [Header] #

ToPath ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

ToQuery ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

AWSPager ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

AWSRequest ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Associated Types

type AWSResponse ListAlerts #

Generic ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Associated Types

type Rep ListAlerts :: Type -> Type #

Read ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Show ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

NFData ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Methods

rnf :: ListAlerts -> () #

Eq ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Hashable ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

type AWSResponse ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

type Rep ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

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

newListAlerts Source #

Arguments

:: Text

ListAlerts

-> ListAlerts 

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

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

ListAlerts, listAlerts_resourceArn - The Amazon Resource Name (ARN) of the resource.

Request Lenses

listAlerts_maxResults :: Lens' ListAlerts (Maybe Natural) Source #

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

listAlerts_nextToken :: Lens' ListAlerts (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.

listAlerts_resourceArn :: Lens' ListAlerts Text Source #

The Amazon Resource Name (ARN) of the resource.

Destructuring the Response

data ListAlertsResponse Source #

See: newListAlertsResponse smart constructor.

Constructors

ListAlertsResponse' 

Fields

  • items :: Maybe [Alert]

    A list of alerts that are associated with this resource.

  • 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 ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Associated Types

type Rep ListAlertsResponse :: Type -> Type #

Read ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Show ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

NFData ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Methods

rnf :: ListAlertsResponse -> () #

Eq ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

type Rep ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

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

newListAlertsResponse Source #

Create a value of ListAlertsResponse 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:ListAlertsResponse', listAlertsResponse_items - A list of alerts that are associated with this resource.

ListAlerts, listAlertsResponse_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:ListAlertsResponse', listAlertsResponse_httpStatus - The response's http status code.

Response Lenses

listAlertsResponse_items :: Lens' ListAlertsResponse (Maybe [Alert]) Source #

A list of alerts that are associated with this resource.

listAlertsResponse_nextToken :: Lens' ListAlertsResponse (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.