ACM / Paginator / ListCertificates

ListCertificates#

class ACM.Paginator.ListCertificates#
paginator = client.get_paginator('list_certificates')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from ACM.Client.list_certificates().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    CertificateStatuses=[
        'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED',
    ],
    Includes={
        'extendedKeyUsage': [
            'TLS_WEB_SERVER_AUTHENTICATION'|'TLS_WEB_CLIENT_AUTHENTICATION'|'CODE_SIGNING'|'EMAIL_PROTECTION'|'TIME_STAMPING'|'OCSP_SIGNING'|'IPSEC_END_SYSTEM'|'IPSEC_TUNNEL'|'IPSEC_USER'|'ANY'|'NONE'|'CUSTOM',
        ],
        'keyUsage': [
            'DIGITAL_SIGNATURE'|'NON_REPUDIATION'|'KEY_ENCIPHERMENT'|'DATA_ENCIPHERMENT'|'KEY_AGREEMENT'|'CERTIFICATE_SIGNING'|'CRL_SIGNING'|'ENCIPHER_ONLY'|'DECIPHER_ONLY'|'ANY'|'CUSTOM',
        ],
        'keyTypes': [
            'RSA_1024'|'RSA_2048'|'RSA_3072'|'RSA_4096'|'EC_prime256v1'|'EC_secp384r1'|'EC_secp521r1',
        ]
    },
    SortBy='CREATED_AT',
    SortOrder='ASCENDING'|'DESCENDING',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • CertificateStatuses (list) –

    Filter the certificate list by status value.

    • (string) –

  • Includes (dict) –

    Filter the certificate list. For more information, see the Filters structure.

    • extendedKeyUsage (list) –

      Specify one or more ExtendedKeyUsage extension values.

      • (string) –

    • keyUsage (list) –

      Specify one or more KeyUsage extension values.

      • (string) –

    • keyTypes (list) –

      Specify one or more algorithms that can be used to generate key pairs.

      Default filtering returns only RSA_1024 and RSA_2048 certificates that have at least one domain. To return other certificate types, provide the desired type signatures in a comma-separated list. For example, "keyTypes": ["RSA_2048","RSA_4096"] returns both RSA_2048 and RSA_4096 certificates.

      • (string) –

  • SortBy (string) – Specifies the field to sort results by. If you specify SortBy, you must also specify SortOrder.

  • SortOrder (string) – Specifies the order of sorted results. If you specify SortOrder, you must also specify SortBy.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'CertificateSummaryList': [
        {
            'CertificateArn': 'string',
            'DomainName': 'string',
            'SubjectAlternativeNameSummaries': [
                'string',
            ],
            'HasAdditionalSubjectAlternativeNames': True|False,
            'Status': 'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED',
            'Type': 'IMPORTED'|'AMAZON_ISSUED'|'PRIVATE',
            'KeyAlgorithm': 'RSA_1024'|'RSA_2048'|'RSA_3072'|'RSA_4096'|'EC_prime256v1'|'EC_secp384r1'|'EC_secp521r1',
            'KeyUsages': [
                'DIGITAL_SIGNATURE'|'NON_REPUDIATION'|'KEY_ENCIPHERMENT'|'DATA_ENCIPHERMENT'|'KEY_AGREEMENT'|'CERTIFICATE_SIGNING'|'CRL_SIGNING'|'ENCIPHER_ONLY'|'DECIPHER_ONLY'|'ANY'|'CUSTOM',
            ],
            'ExtendedKeyUsages': [
                'TLS_WEB_SERVER_AUTHENTICATION'|'TLS_WEB_CLIENT_AUTHENTICATION'|'CODE_SIGNING'|'EMAIL_PROTECTION'|'TIME_STAMPING'|'OCSP_SIGNING'|'IPSEC_END_SYSTEM'|'IPSEC_TUNNEL'|'IPSEC_USER'|'ANY'|'NONE'|'CUSTOM',
            ],
            'InUse': True|False,
            'Exported': True|False,
            'RenewalEligibility': 'ELIGIBLE'|'INELIGIBLE',
            'NotBefore': datetime(2015, 1, 1),
            'NotAfter': datetime(2015, 1, 1),
            'CreatedAt': datetime(2015, 1, 1),
            'IssuedAt': datetime(2015, 1, 1),
            'ImportedAt': datetime(2015, 1, 1),
            'RevokedAt': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) –

    • CertificateSummaryList (list) –

      A list of ACM certificates.

      • (dict) –

        This structure is returned in the response object of ListCertificates action.

        • CertificateArn (string) –

          Amazon Resource Name (ARN) of the certificate. This is of the form:

          arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012

          For more information about ARNs, see Amazon Resource Names (ARNs).

        • DomainName (string) –

          Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate.

        • SubjectAlternativeNameSummaries (list) –

          One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.

          When called by ListCertificates, this parameter will only return the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate.

          • (string) –

        • HasAdditionalSubjectAlternativeNames (boolean) –

          When called by ListCertificates, indicates whether the full list of subject alternative names has been included in the response. If false, the response includes all of the subject alternative names included in the certificate. If true, the response only includes the first 100 subject alternative names included in the certificate. To display the full list of subject alternative names, use DescribeCertificate.

        • Status (string) –

          The status of the certificate.

          A certificate enters status PENDING_VALIDATION upon being requested, unless it fails for any of the reasons given in the troubleshooting topic Certificate request fails. ACM makes repeated attempts to validate a certificate for 72 hours and then times out. If a certificate shows status FAILED or VALIDATION_TIMED_OUT, delete the request, correct the issue with DNS validation or Email validation, and try again. If validation succeeds, the certificate enters status ISSUED.

        • Type (string) –

          The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED. For certificates that you imported with ImportCertificate, this value is IMPORTED. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Certificate Manager User Guide.

        • KeyAlgorithm (string) –

          The algorithm that was used to generate the public-private key pair.

        • KeyUsages (list) –

          A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.

          • (string) –

        • ExtendedKeyUsages (list) –

          Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).

          • (string) –

        • InUse (boolean) –

          Indicates whether the certificate is currently in use by any Amazon Web Services resources.

        • Exported (boolean) –

          Indicates whether the certificate has been exported. This value exists only when the certificate type is PRIVATE.

        • RenewalEligibility (string) –

          Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate command.

        • NotBefore (datetime) –

          The time before which the certificate is not valid.

        • NotAfter (datetime) –

          The time after which the certificate is not valid.

        • CreatedAt (datetime) –

          The time at which the certificate was requested.

        • IssuedAt (datetime) –

          The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED.

        • ImportedAt (datetime) –

          The date and time when the certificate was imported. This value exists only when the certificate type is IMPORTED.

        • RevokedAt (datetime) –

          The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED.