list_archives
async
¶
list_archives(
*,
config_overrides: Optional[AsyncEventBridgeClientConfig] = 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/async_event_bridge.py
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 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 | |