list_notification_events
async
¶
list_notification_events(
*,
config_overrides: Optional[AsyncNotificationsClientConfig] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
locale: Optional[LocaleCode] = None,
source: Optional[Source] = None,
include_child_events: Optional[bool] = None,
aggregate_notification_event_arn: Optional[NotificationEventArn] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
organizational_unit_id: Optional[OrganizationalUnitId] = None,
) -> ListNotificationEventsResponse
Returns a list of NotificationEvents according to specified filters, in reverse chronological order (newest first).
User Notifications stores notifications in the individual Regions you register as notification hubs and the Region of the source event rule. ListNotificationEvents only returns notifications stored in the same Region in which the action is called. User Notifications doesn't backfill notifications to new Regions selected as notification hubs. For this reason, we recommend that you make calls in your oldest registered notification hub. For more information, see Notification hubs in the Amazon Web Services User Notifications User Guide.
Parameters:
-
start_time(Optional[datetime], default:None) –The earliest time of events to return from this call.
-
end_time(Optional[datetime], default:None) –Latest time of events to return from this call.
-
locale(Optional[LocaleCode], default:None) –The locale code of the language used for the retrieved
NotificationEvent. The default locale is English(en_US). -
source(Optional[Source], default:None) –The matched event source.
Must match one of the valid EventBridge sources. Only Amazon Web Services service sourced events are supported. For example,
aws.ec2andaws.cloudwatch. For more information, see Event delivery from Amazon Web Services services in the Amazon EventBridge User Guide. -
include_child_events(Optional[bool], default:None) –Include aggregated child events in the result.
-
aggregate_notification_event_arn(Optional[NotificationEventArn], default:None) –The Amazon Resource Name (ARN) of the
aggregatedNotificationEventArnto match. -
max_results(Optional[int], default:None) –The maximum number of results to be returned in this call. Defaults to 20.
-
next_token(Optional[NextToken], default:None) –The start token for paginated calls. Retrieved from the response of a previous
ListEventRulescall. Next token uses Base64 encoding. -
organizational_unit_id(Optional[OrganizationalUnitId], default:None) –The unique identifier of the organizational unit used to filter notification events.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
InternalServerException–Unexpected error during processing of request.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–This exception is thrown when the notification event fails validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_notifications/_services/async_notifications.py
2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 | |