| 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 |
Amazonka.CodeStarNotifications.ListNotificationRules
Description
Returns a list of the notification rules for an Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListNotificationRules = ListNotificationRules' {}
- newListNotificationRules :: ListNotificationRules
- listNotificationRules_filters :: Lens' ListNotificationRules (Maybe [ListNotificationRulesFilter])
- listNotificationRules_maxResults :: Lens' ListNotificationRules (Maybe Natural)
- listNotificationRules_nextToken :: Lens' ListNotificationRules (Maybe Text)
- 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.
Constructors
| ListNotificationRules' | |
Fields
| |
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: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.
ListNotificationRules, listNotificationRules_nextToken - An enumeration token that, when provided in a request, returns the next
batch of the results.
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_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.
listNotificationRules_nextToken :: Lens' ListNotificationRules (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
Destructuring the Response
data ListNotificationRulesResponse Source #
See: newListNotificationRulesResponse smart constructor.
Constructors
| ListNotificationRulesResponse' | |
Fields
| |
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:
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 Amazon Web Services 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 Amazon Web Services account, by Amazon Resource Name (ARN) and ID.
listNotificationRulesResponse_httpStatus :: Lens' ListNotificationRulesResponse Int Source #
The response's http status code.