libZSservicesZSamazonka-mediatailorZSamazonka-mediatailor
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.MediaTailor.ListAlerts

Description

Returns a list of alerts for the given resource.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAlerts Source #

See: newListAlerts smart constructor.

Constructors

ListAlerts' 

Fields

  • nextToken :: Maybe Text

    Pagination token from the GET list request. Use the token to fetch the next page of results.

  • maxResults :: Maybe Natural

    Upper bound on number of records to return. The maximum number of results is 100.

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource.

Instances

Instances details
Eq ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Read ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Show ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Generic ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Associated Types

type Rep ListAlerts :: Type -> Type #

NFData ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Methods

rnf :: ListAlerts -> () #

Hashable 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 #

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

type Rep ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

type Rep ListAlerts = D1 ('MetaData "ListAlerts" "Amazonka.MediaTailor.ListAlerts" "libZSservicesZSamazonka-mediatailorZSamazonka-mediatailor" 'False) (C1 ('MetaCons "ListAlerts'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListAlerts Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

newListAlerts Source #

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:nextToken:ListAlerts', listAlerts_nextToken - Pagination token from the GET list request. Use the token to fetch the next page of results.

$sel:maxResults:ListAlerts', listAlerts_maxResults - Upper bound on number of records to return. The maximum number of results is 100.

$sel:resourceArn:ListAlerts', listAlerts_resourceArn - The Amazon Resource Name (ARN) of the resource.

Request Lenses

listAlerts_nextToken :: Lens' ListAlerts (Maybe Text) Source #

Pagination token from the GET list request. Use the token to fetch the next page of results.

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

Upper bound on number of records to return. The maximum number of results is 100.

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]

    An array of alerts that are associated with this resource.

  • nextToken :: Maybe Text

    Pagination token from the list request. Use the token to fetch the next page of results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Read ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Show ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Generic ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Associated Types

type Rep ListAlertsResponse :: Type -> Type #

NFData ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

Methods

rnf :: ListAlertsResponse -> () #

type Rep ListAlertsResponse Source # 
Instance details

Defined in Amazonka.MediaTailor.ListAlerts

type Rep ListAlertsResponse = D1 ('MetaData "ListAlertsResponse" "Amazonka.MediaTailor.ListAlerts" "libZSservicesZSamazonka-mediatailorZSamazonka-mediatailor" '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 - An array of alerts that are associated with this resource.

$sel:nextToken:ListAlerts', listAlertsResponse_nextToken - Pagination token from the list request. 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 #

An array of alerts that are associated with this resource.

listAlertsResponse_nextToken :: Lens' ListAlertsResponse (Maybe Text) Source #

Pagination token from the list request. Use the token to fetch the next page of results.