list_certificates
¶
list_certificates(
*,
config_overrides: Optional[ACMClientConfig] = 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/acm.py
1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 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 | |