list_archives
¶
list_archives(
*,
config_overrides: Optional[EventBridgeClientConfig] = None,
name_prefix: Optional[ArchiveName] = None,
event_source_arn: Optional[EventBusArn] = None,
state: Optional[ArchiveState] = None,
next_token: Optional[NextToken] = None,
limit: Optional[LimitMax100] = None,
) -> ListArchivesResponse
Lists your archives. You can either list all the archives or you can provide a prefix to match to the archive names. Filter parameters are exclusive.
Parameters:
-
name_prefix(Optional[ArchiveName], default:None) –A name prefix to filter the archives returned. Only archives with name that match the prefix are returned.
-
event_source_arn(Optional[EventBusArn], default:None) –The ARN of the event source associated with the archive.
-
state(Optional[ArchiveState], default:None) –The state of the archive.
-
next_token(Optional[NextToken], default:None) –The token returned by a previous call, which you can use to retrieve the next set of results.
The value of
nextTokenis a unique pagination token for each page. To retrieve the next page of results, make the call again using the returned token. Keep all other arguments unchanged.Using an expired pagination token results in an
HTTP 400 InvalidTokenerror. -
limit(Optional[LimitMax100], default:None) –The maximum number of results to return.
Raises:
-
InternalException–This exception occurs due to unexpected causes.
-
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridge/_services/event_bridge.py
1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 | |