list_archives
async
¶
list_archives(
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
name_prefix: Optional[ArchiveName] = None,
event_source_arn: Optional[Arn] = 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[Arn], 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 to retrieve the next set of results.
-
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_cloudwatch_events/_services/async_cloud_watch_events.py
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 | |