{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-certificate-manager/json-schema/google-cloud-certificate-manager-certificate-issuance-config-schema.json",
  "title": "CertificateIssuanceConfig",
  "description": "CertificateIssuanceConfig specifies how to issue and manage a certificate.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-certificate-manager-certificatemanager-projects-api-openapi.yml#/components/schemas/CertificateIssuanceConfig",
  "type": "object",
  "properties": {
    "rotationWindowPercentage": {
      "format": "int32",
      "type": "integer",
      "description": "Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive."
    },
    "updateTime": {
      "type": "string",
      "description": "Output only. The last update timestamp of a CertificateIssuanceConfig.",
      "readOnly": true,
      "format": "google-datetime"
    },
    "name": {
      "description": "Identifier. A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern `projects/*/locations/*/certificateIssuanceConfigs/*`.",
      "type": "string"
    },
    "tags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
      "type": "object"
    },
    "createTime": {
      "type": "string",
      "readOnly": true,
      "format": "google-datetime",
      "description": "Output only. The creation timestamp of a CertificateIssuanceConfig."
    },
    "lifetime": {
      "format": "google-duration",
      "description": "Required. Workload certificate lifetime requested.",
      "type": "string"
    },
    "keyAlgorithm": {
      "type": "string",
      "description": "Required. The key algorithm to use when generating the private key.",
      "enum": [
        "KEY_ALGORITHM_UNSPECIFIED",
        "RSA_2048",
        "ECDSA_P256"
      ]
    },
    "certificateAuthorityConfig": {
      "$ref": "#/$defs/CertificateAuthorityConfig",
      "description": "Required. The CA that issues the workload certificate. It includes the CA address, type, authentication to CA service, etc."
    },
    "description": {
      "type": "string",
      "description": "Optional. One or more paragraphs of text description of a CertificateIssuanceConfig."
    },
    "labels": {
      "description": "Optional. Set of labels associated with a CertificateIssuanceConfig.",
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    }
  },
  "$defs": {
    "CertificateAuthorityConfig": {
      "type": "object",
      "description": "The CA that issues the workload certificate. It includes CA address, type, authentication to CA service, etc.",
      "properties": {
        "certificateAuthorityServiceConfig": {
          "$ref": "#/$defs/CertificateAuthorityServiceConfig",
          "description": "Defines a CertificateAuthorityServiceConfig."
        }
      }
    },
    "CertificateAuthorityServiceConfig": {
      "properties": {
        "caPool": {
          "description": "Required. A CA pool resource used to issue a certificate. The CA pool string has a relative resource path following the form \"projects/{project}/locations/{location}/caPools/{ca_pool}\".",
          "type": "string"
        }
      },
      "description": "Contains information required to contact CA service.",
      "type": "object"
    }
  }
}