list_api_destinations
async
¶
list_api_destinations(
*,
config_overrides: Optional[AsyncEventBridgeClientConfig] = None,
name_prefix: Optional[ApiDestinationName] = None,
connection_arn: Optional[ConnectionArn] = None,
next_token: Optional[NextToken] = None,
limit: Optional[LimitMax100] = None,
) -> ListApiDestinationsResponse
Retrieves a list of API destination in the account in the current Region.
Parameters:
-
name_prefix(Optional[ApiDestinationName], default:None) –A name prefix to filter results returned. Only API destinations with a name that starts with the prefix are returned.
-
connection_arn(Optional[ConnectionArn], default:None) –The ARN of the connection specified for the API destination.
-
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 API destinations to include in the response.
Raises:
-
InternalException–This exception occurs due to unexpected causes.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridge/_services/async_event_bridge.py
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 1903 1904 1905 1906 1907 1908 | |