list_managed_notification_events
async
¶
list_managed_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,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
organizational_unit_id: Optional[OrganizationalUnitId] = None,
related_account: Optional[AccountId] = None,
include_sensitive_events: Optional[bool] = None,
) -> ListManagedNotificationEventsResponse
Returns a list of Managed Notification Events according to specified filters, ordered by creation time in reverse chronological order (newest first).
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 Amazon Web Services service the event originates from. For example aws.cloudwatch.
-
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
ListManagedNotificationChannelAssociationscall. Next token uses Base64 encoding. -
organizational_unit_id(Optional[OrganizationalUnitId], default:None) –The Organizational Unit Id that an Amazon Web Services account belongs to.
-
related_account(Optional[AccountId], default:None) –The Amazon Web Services account ID associated with the Managed Notification Events.
-
include_sensitive_events(Optional[bool], default:None) –Specifies whether to include sensitive events in the result. By default, only non-sensitive events are returned. The
notifications:AccessSensitiveEventspermission controls access to sensitive 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
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 | |