list_certificates
async
¶
list_certificates(
*,
config_overrides: Optional[AsyncACMClientConfig] = None,
certificate_statuses: Optional[CertificateStatuses] = None,
certificate_key_pair_origins: Optional[CertificateKeyPairOrigins] = None,
includes: Optional[Filters] = None,
next_token: Optional[NextToken] = None,
max_items: Optional[MaxItems] = None,
sort_by: Optional[SortBy] = None,
sort_order: Optional[SortOrder] = None,
) -> ListCertificatesResponse
Retrieves a list of certificate ARNs and domain names. You can request that only certificates that match a specific status be listed. You can also filter by specific attributes of the certificate. Default filtering returns only RSA_2048 certificates. For more information, see Filters.
By default, this action does not return certificates with a CertificateKeyPairOrigin of ACME. To include ACME certificates, specify ACME in the CertificateKeyPairOrigins filter.
Parameters:
-
certificate_statuses(Optional[CertificateStatuses], default:None) –Filter the certificate list by status value.
-
certificate_key_pair_origins(Optional[CertificateKeyPairOrigins], default:None) –Filter the certificate list by certificate key pair origin. Specify one or more
CertificateKeyPairOriginvalues. Default filtering returns only certificates with key pair origin ofAWS_MANAGEDandCUSTOMER_PROVIDED. -
includes(Optional[Filters], default:None) –Filter the certificate list. For more information, see the Filters structure.
-
next_token(Optional[NextToken], default:None) –Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of
NextTokenfrom the response you just received. -
max_items(Optional[MaxItems], default:None) –Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the
NextTokenelement is sent in the response. Use thisNextTokenvalue in a subsequent request to retrieve additional items. -
sort_by(Optional[SortBy], default:None) –Specifies the field to sort results by. If you specify
SortBy, you must also specifySortOrder. -
sort_order(Optional[SortOrder], default:None) –Specifies the order of sorted results. If you specify
SortOrder, you must also specifySortBy.
Raises:
-
InvalidArgsException–One or more of request parameters specified is not valid.
-
ValidationException–The supplied input failed to satisfy constraints of an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_acm/_services/async_acm.py
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 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 | |