aws_sdk_codestarnotifications/client/list_notification_rules.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ListNotificationRules`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`filters(ListNotificationRulesFilter)`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::filters) / [`set_filters(Option<Vec::<ListNotificationRulesFilter>>)`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::set_filters):<br>required: **false**<br><p>The filters to use to return information by service or resource type. For valid values, see <code>ListNotificationRulesFilter</code>.</p><note> <p>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.</p> </note><br>
8 /// - [`next_token(impl Into<String>)`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::set_next_token):<br>required: **false**<br><p>An enumeration token that, when provided in a request, returns the next batch of the results.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::set_max_results):<br>required: **false**<br><p>A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.</p><br>
10 /// - On success, responds with [`ListNotificationRulesOutput`](crate::operation::list_notification_rules::ListNotificationRulesOutput) with field(s):
11 /// - [`next_token(Option<String>)`](crate::operation::list_notification_rules::ListNotificationRulesOutput::next_token): <p>An enumeration token that can be used in a request to return the next batch of the results.</p>
12 /// - [`notification_rules(Option<Vec::<NotificationRuleSummary>>)`](crate::operation::list_notification_rules::ListNotificationRulesOutput::notification_rules): <p>The list of notification rules for the Amazon Web Services account, by Amazon Resource Name (ARN) and ID.</p>
13 /// - On failure, responds with [`SdkError<ListNotificationRulesError>`](crate::operation::list_notification_rules::ListNotificationRulesError)
14 pub fn list_notification_rules(&self) -> crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder {
15 crate::operation::list_notification_rules::builders::ListNotificationRulesFluentBuilder::new(self.handle.clone())
16 }
17}