{
  "name": "ListCertificates",
  "plane": "control",
  "terraformEligible": true,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudCerts.ListCertificates",
    "service": "certs"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "maxResults": {
        "default": null,
        "format": "uint32",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "nextToken": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      }
    },
    "title": "ListCertificatesRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "CertificateDescription": {
        "properties": {
          "certificateId": {
            "type": "string"
          },
          "domainName": {
            "type": "string"
          },
          "issuer": {
            "type": "string"
          },
          "notAfter": {
            "type": [
              "string",
              "null"
            ]
          },
          "notBefore": {
            "type": [
              "string",
              "null"
            ]
          },
          "orderId": {
            "type": [
              "string",
              "null"
            ]
          },
          "renewBy": {
            "type": [
              "string",
              "null"
            ]
          },
          "secretId": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/definitions/CertificateStatus"
          },
          "subjectAlternativeNames": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "validationRecordName": {
            "type": [
              "string",
              "null"
            ]
          },
          "validationRecordType": {
            "type": [
              "string",
              "null"
            ]
          },
          "validationRecordValue": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "certificateId",
          "domainName",
          "issuer",
          "status"
        ],
        "type": "object"
      },
      "CertificateStatus": {
        "enum": [
          "PENDING",
          "CHALLENGE_PLANNED",
          "CHALLENGE_PUBLISHED",
          "VALIDATING",
          "ISSUED",
          "FAILED",
          "RENEWING",
          "REVOKED",
          "EXPIRED",
          "DELETED"
        ],
        "type": "string"
      }
    },
    "properties": {
      "certificates": {
        "items": {
          "$ref": "#/definitions/CertificateDescription"
        },
        "type": "array"
      },
      "nextToken": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "certificates"
    ],
    "title": "ListCertificatesResponse",
    "type": "object"
  }
}
