list_connections
async
¶
list_connections(
*,
config_overrides: Optional[AsyncEventBridgeClientConfig] = None,
name_prefix: Optional[ConnectionName] = None,
connection_state: Optional[ConnectionState] = None,
next_token: Optional[NextToken] = None,
limit: Optional[LimitMax100] = None,
) -> ListConnectionsResponse
Retrieves a list of connections from the account.
Parameters:
-
name_prefix(Optional[ConnectionName], default:None) –A name prefix to filter results returned. Only connections with a name that starts with the prefix are returned.
-
connection_state(Optional[ConnectionState], default:None) –The state of the connection.
-
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 connections to return.
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
1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 | |