Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a list of alerts for the given resource.
This operation returns paginated results.
Synopsis
- data ListAlerts = ListAlerts' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceArn :: Text
- newListAlerts :: Text -> ListAlerts
- listAlerts_nextToken :: Lens' ListAlerts (Maybe Text)
- listAlerts_maxResults :: Lens' ListAlerts (Maybe Natural)
- 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
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.
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
- 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.
listAlertsResponse_httpStatus :: Lens' ListAlertsResponse Int Source #
The response's http status code.