list_connections
async
¶
list_connections(
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = 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 to retrieve the next set of results.
-
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_cloudwatch_events/_services/async_cloud_watch_events.py
1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 | |