aws_sdk_notifications/client/list_managed_notification_events.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 [`ListManagedNotificationEvents`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`start_time(DateTime)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::start_time) / [`set_start_time(Option<DateTime>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_start_time):<br>required: **false**<br><p>The earliest time of events to return from this call.</p><br>
8 /// - [`end_time(DateTime)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::end_time) / [`set_end_time(Option<DateTime>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_end_time):<br>required: **false**<br><p>Latest time of events to return from this call.</p><br>
9 /// - [`locale(LocaleCode)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::locale) / [`set_locale(Option<LocaleCode>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_locale):<br>required: **false**<br><p>The locale code of the language used for the retrieved NotificationEvent. The default locale is English (en_US).</p><br>
10 /// - [`source(impl Into<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::source) / [`set_source(Option<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_source):<br>required: **false**<br><p>The Amazon Web Services service the event originates from. For example aws.cloudwatch.</p><br>
11 /// - [`max_results(i32)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to be returned in this call. Defaults to 20.</p><br>
12 /// - [`next_token(impl Into<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_next_token):<br>required: **false**<br><p>The start token for paginated calls. Retrieved from the response of a previous <code>ListManagedNotificationChannelAssociations</code> call. Next token uses Base64 encoding.</p><br>
13 /// - [`organizational_unit_id(impl Into<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::organizational_unit_id) / [`set_organizational_unit_id(Option<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_organizational_unit_id):<br>required: **false**<br><p>The Organizational Unit Id that an Amazon Web Services account belongs to.</p><br>
14 /// - [`related_account(impl Into<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::related_account) / [`set_related_account(Option<String>)`](crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::set_related_account):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the Managed Notification Events.</p><br>
15 /// - On success, responds with [`ListManagedNotificationEventsOutput`](crate::operation::list_managed_notification_events::ListManagedNotificationEventsOutput) with field(s):
16 /// - [`next_token(Option<String>)`](crate::operation::list_managed_notification_events::ListManagedNotificationEventsOutput::next_token): <p>A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.</p>
17 /// - [`managed_notification_events(Vec::<ManagedNotificationEventOverview>)`](crate::operation::list_managed_notification_events::ListManagedNotificationEventsOutput::managed_notification_events): <p>A list of Managed Notification Events matching the request criteria.</p>
18 /// - On failure, responds with [`SdkError<ListManagedNotificationEventsError>`](crate::operation::list_managed_notification_events::ListManagedNotificationEventsError)
19 pub fn list_managed_notification_events(
20 &self,
21 ) -> crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder {
22 crate::operation::list_managed_notification_events::builders::ListManagedNotificationEventsFluentBuilder::new(self.handle.clone())
23 }
24}