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 the notification rules for an AWS account.
This operation returns paginated results.
Synopsis
- data ListNotificationRules = ListNotificationRules' {}
- newListNotificationRules :: ListNotificationRules
- listNotificationRules_filters :: Lens' ListNotificationRules (Maybe [ListNotificationRulesFilter])
- listNotificationRules_nextToken :: Lens' ListNotificationRules (Maybe Text)
- listNotificationRules_maxResults :: Lens' ListNotificationRules (Maybe Natural)
- data ListNotificationRulesResponse = ListNotificationRulesResponse' {}
- newListNotificationRulesResponse :: Int -> ListNotificationRulesResponse
- listNotificationRulesResponse_nextToken :: Lens' ListNotificationRulesResponse (Maybe Text)
- listNotificationRulesResponse_notificationRules :: Lens' ListNotificationRulesResponse (Maybe [NotificationRuleSummary])
- listNotificationRulesResponse_httpStatus :: Lens' ListNotificationRulesResponse Int
Creating a Request
data ListNotificationRules Source #
See: newListNotificationRules
smart constructor.
ListNotificationRules' | |
|
Instances
newListNotificationRules :: ListNotificationRules Source #
Create a value of ListNotificationRules
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:filters:ListNotificationRules'
, listNotificationRules_filters
- The filters to use to return information by service or resource type.
For valid values, see ListNotificationRulesFilter.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
$sel:nextToken:ListNotificationRules'
, listNotificationRules_nextToken
- An enumeration token that, when provided in a request, returns the next
batch of the results.
$sel:maxResults:ListNotificationRules'
, listNotificationRules_maxResults
- A non-negative integer used to limit the number of returned results. The
maximum number of results that can be returned is 100.
Request Lenses
listNotificationRules_filters :: Lens' ListNotificationRules (Maybe [ListNotificationRulesFilter]) Source #
The filters to use to return information by service or resource type. For valid values, see ListNotificationRulesFilter.
A filter with the same name can appear more than once when used with OR statements. Filters with different names should be applied with AND statements.
listNotificationRules_nextToken :: Lens' ListNotificationRules (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
listNotificationRules_maxResults :: Lens' ListNotificationRules (Maybe Natural) Source #
A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.
Destructuring the Response
data ListNotificationRulesResponse Source #
See: newListNotificationRulesResponse
smart constructor.
ListNotificationRulesResponse' | |
|
Instances
newListNotificationRulesResponse Source #
Create a value of ListNotificationRulesResponse
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:ListNotificationRules'
, listNotificationRulesResponse_nextToken
- An enumeration token that can be used in a request to return the next
batch of the results.
$sel:notificationRules:ListNotificationRulesResponse'
, listNotificationRulesResponse_notificationRules
- The list of notification rules for the AWS account, by Amazon Resource
Name (ARN) and ID.
$sel:httpStatus:ListNotificationRulesResponse'
, listNotificationRulesResponse_httpStatus
- The response's http status code.
Response Lenses
listNotificationRulesResponse_nextToken :: Lens' ListNotificationRulesResponse (Maybe Text) Source #
An enumeration token that can be used in a request to return the next batch of the results.
listNotificationRulesResponse_notificationRules :: Lens' ListNotificationRulesResponse (Maybe [NotificationRuleSummary]) Source #
The list of notification rules for the AWS account, by Amazon Resource Name (ARN) and ID.
listNotificationRulesResponse_httpStatus :: Lens' ListNotificationRulesResponse Int Source #
The response's http status code.