list_channels
async
¶
list_channels(
*,
config_overrides: Optional[AsyncKinesisClientConfig] = None,
stream_filter: Optional[StreamFilterList] = None,
max_results: Optional[ListChannelsInputLimit] = None,
next_token: Optional[NextToken] = None,
) -> ListChannelsOutput
Lists the channels in your account. You can filter the results by source stream. The results are paginated. Use the NextToken value returned in the response to retrieve additional results.
Use this operation to find channels before deleting a stream, or to audit the channels configured in an Amazon Web Services Region.
This operation has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. Exceeding 5 TPS results in a LimitExceededException.
Parameters:
-
stream_filter(Optional[StreamFilterList], default:None) –Filters the results to channels associated with the specified streams.
-
max_results(Optional[ListChannelsInputLimit], default:None) –The maximum number of channels to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
-
next_token(Optional[NextToken], default:None) –The pagination token returned by a previous call. Specify this token to retrieve the next page of results.
Raises:
-
AccessDeniedException–Specifies that you do not have the permissions required to perform this operation.
-
ExpiredNextTokenException–The pagination token passed to the operation is expired.
-
InvalidArgumentException–A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
-
LimitExceededException–The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
-
ValidationException–The request failed validation. For example, a parameter value is not valid, a combination of parameters is not supported, or the operation is not supported for the stream's capacity mode. The error message describes the specific reason.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis/_services/async_kinesis.py
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 1944 1945 1946 1947 1948 1949 1950 1951 1952 | |