AWS Directory Service

2020/02/12 - AWS Directory Service - 1 updated api methods

Changes  Release to add the ExpirationDateTime as an output to ListCertificates so as to ease customers to look into their certificate lifetime and make timely decisions about renewing them.

ListCertificates (updated) Link ΒΆ
Changes (response)
{'CertificatesInfo': {'ExpiryDateTime': 'timestamp'}}

For the specified directory, lists all the certificates registered for a secured LDAP connection.

See also: AWS API Documentation

Request Syntax

type DirectoryId


param DirectoryId


The identifier of the directory.

type NextToken


param NextToken

A token for requesting another page of certificates if the NextToken response element indicates that more certificates are available. Use the value of the returned NextToken element in your request until the token comes back as null . Pass null if this is the first call.

type Limit


param Limit

The number of items that should show up on one page




Response Syntax

    'NextToken': 'string',
    'CertificatesInfo': [
            'CertificateId': 'string',
            'CommonName': 'string',
            'State': 'Registering'|'Registered'|'RegisterFailed'|'Deregistering'|'Deregistered'|'DeregisterFailed',
            'ExpiryDateTime': datetime(2015, 1, 1)

Response Structure

  • (dict) --

    • NextToken (string) --

      Indicates whether another page of certificates is available when the number of available certificates exceeds the page limit.

    • CertificatesInfo (list) --

      A list of certificates with basic details including certificate ID, certificate common name, certificate state.

      • (dict) --

        Contains general information about a certificate.

        • CertificateId (string) --

          The identifier of the certificate.

        • CommonName (string) --

          The common name for the certificate.

        • State (string) --

          The state of the certificate.

        • ExpiryDateTime (datetime) --

          The date and time when the certificate will expire.