Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Lists the alerts that are associated with a MediaTailor channel assembly resource.
This operation returns paginated results.
Synopsis
- data ListAlerts = ListAlerts' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- resourceArn :: Text
- newListAlerts :: Text -> ListAlerts
- listAlerts_maxResults :: Lens' ListAlerts (Maybe Natural)
- listAlerts_nextToken :: Lens' ListAlerts (Maybe Text)
- listAlerts_resourceArn :: Lens' ListAlerts Text
- data ListAlertsResponse = ListAlertsResponse' {}
- newListAlertsResponse :: Int -> ListAlertsResponse
- listAlertsResponse_items :: Lens' ListAlertsResponse (Maybe [Alert])
- listAlertsResponse_nextToken :: Lens' ListAlertsResponse (Maybe Text)
- listAlertsResponse_httpStatus :: Lens' ListAlertsResponse Int
Creating a Request
data ListAlerts Source #
See: newListAlerts
smart constructor.
ListAlerts' | |
|
Instances
:: Text | |
-> 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.
Instances
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.
listAlertsResponse_httpStatus :: Lens' ListAlertsResponse Int Source #
The response's http status code.