{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-eks/json-schema/amazon-eks-create-certificate-authority-response-schema.json",
  "title": "CreateCertificateAuthorityResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-eks-certificate-authorities-api-openapi.yml#/components/schemas/CreateCertificateAuthorityResponse",
  "type": "object",
  "properties": {
    "update": {
      "$ref": "#/$defs/Update"
    },
    "certificateAuthority": {
      "$ref": "#/$defs/CertificateAuthoritySummary"
    }
  },
  "$defs": {
    "Cancellation": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "InProgress",
            "Failed",
            "Successful"
          ],
          "description": "The current status of the cancellation. Valid values are InProgress, Failed, and Successful."
        },
        "reason": {
          "type": "string",
          "description": "A message providing additional details about the cancellation, such as the reason for the cancellation or failure details."
        }
      }
    },
    "CertificateAuthoritySummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the certificate authority."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix epoch timestamp in seconds for when the certificate authority was created."
        },
        "createdBy": {
          "type": "string",
          "enum": [
            "EKS",
            "CUSTOMER"
          ],
          "description": "The entity that created the certificate authority, either CUSTOMER or EKS."
        },
        "activatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix epoch timestamp in seconds for when the certificate authority was last activated. This value is absent if the certificate authority has never been activated."
        },
        "activatedBy": {
          "type": "string",
          "enum": [
            "EKS",
            "CUSTOMER"
          ],
          "description": "The entity that most recently activated the certificate authority, either CUSTOMER or EKS."
        },
        "signingStatus": {
          "type": "string",
          "enum": [
            "NOT_USED",
            "ACTIVATING",
            "IN_USE"
          ],
          "description": "The signing status of the certificate authority: IN_USE, ACTIVATING, or NOT_USED."
        },
        "distributionStatus": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "COMPLETE",
            "FAILED",
            "DELETING"
          ],
          "description": "The distribution status of the certificate authority: IN_PROGRESS, COMPLETE, FAILED, or DELETING."
        }
      }
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "errorCode": {
          "type": "string",
          "enum": [
            "SubnetNotFound",
            "SecurityGroupNotFound",
            "EniLimitReached",
            "IpNotAvailable",
            "AccessDenied",
            "OperationNotPermitted",
            "VpcIdNotFound",
            "Unknown",
            "NodeCreationFailure",
            "PodEvictionFailure",
            "InsufficientFreeAddresses",
            "ClusterUnreachable",
            "InsufficientNumberOfReplicas",
            "ConfigurationConflict",
            "AdmissionRequestDenied",
            "UnsupportedAddonModification",
            "K8sResourceNotFound"
          ],
          "description": "A brief description of the error. SubnetNotFound: We couldn't find one of the subnets associated with the cluster. SecurityGroupNotFound: We couldn't find one of the security groups associated with the cluster. EniLimitReached: You have reached the elastic network interface limit for your account. IpNotAvailable: A subnet associated with the cluster doesn't have any available IP addresses. AccessDenied: You don't have permissions to perform the specified operation. OperationNotPermitted: The service role associated with the cluster doesn't have the required access permissions for Amazon EKS. V"
        },
        "errorMessage": {
          "type": "string",
          "description": "A more complete description of the error."
        },
        "resourceIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An optional field that contains the resource IDs associated with the error."
        }
      }
    },
    "Update": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "A UUID that is used to track the update."
        },
        "status": {
          "type": "string",
          "enum": [
            "InProgress",
            "Failed",
            "Cancelled",
            "Successful"
          ],
          "description": "The current status of the update."
        },
        "type": {
          "type": "string",
          "enum": [
            "VersionUpdate",
            "EndpointAccessUpdate",
            "LoggingUpdate",
            "ConfigUpdate",
            "AssociateIdentityProviderConfig",
            "DisassociateIdentityProviderConfig",
            "AssociateEncryptionConfig",
            "AddonUpdate",
            "VpcConfigUpdate",
            "AccessConfigUpdate",
            "UpgradePolicyUpdate",
            "ZonalShiftConfigUpdate",
            "AutoModeUpdate",
            "RemoteNetworkConfigUpdate",
            "DeletionProtectionUpdate",
            "CapabilityUpdate",
            "ControlPlaneScalingConfigUpdate",
            "VendedLogsUpdate",
            "ControlPlaneEgressUpdate",
            "VersionRollback",
            "ControlPlaneComponentConfigUpdate",
            "CertificateAuthorityUpdate"
          ],
          "description": "The type of the update."
        },
        "params": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UpdateParam"
          },
          "description": "A key-value map that contains the parameters associated with the update."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The Unix epoch timestamp at object creation."
        },
        "errors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorDetail"
          },
          "description": "Any errors associated with a Failed update."
        },
        "cancellation": {
          "$ref": "#/$defs/Cancellation"
        }
      }
    },
    "UpdateParam": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Version",
            "PlatformVersion",
            "EndpointPrivateAccess",
            "EndpointPublicAccess",
            "ClusterLogging",
            "DesiredSize",
            "LabelsToAdd",
            "LabelsToRemove",
            "TaintsToAdd",
            "TaintsToRemove",
            "MaxSize",
            "MinSize",
            "ReleaseVersion",
            "PublicAccessCidrs",
            "LaunchTemplateName",
            "LaunchTemplateVersion",
            "IdentityProviderConfig",
            "EncryptionConfig",
            "AddonVersion",
            "ServiceAccountRoleArn",
            "ResolveConflicts",
            "MaxUnavailable",
            "MaxUnavailablePercentage",
            "NodeRepairEnabled",
            "UpdateStrategy",
            "ConfigurationValues",
            "SecurityGroups",
            "Subnets",
            "AuthenticationMode",
            "PodIdentityAssociations",
            "UpgradePolicy",
            "ZonalShiftConfig",
            "ComputeConfig",
            "StorageConfig",
            "KubernetesNetworkConfig",
            "RemoteNetworkConfig",
            "DeletionProtection",
            "NodeRepairConfig",
            "RoleArn",
            "RoleMappingsToAddOrUpdate",
            "RoleMappingsToRemove",
            "NetworkAccess",
            "VendedLogs",
            "UpdatedTier",
            "PreviousTier",
            "EnableCrossNamespace",
            "DisabledServices",
            "WarmPoolEnabled",
            "WarmPoolMaxGroupPreparedCapacity",
            "WarmPoolMinSize",
            "WarmPoolState",
            "WarmPoolReuseOnScaleIn",
            "ControlPlaneEgressMode",
            "KubeApiServerConfig",
            "KubeSchedulerConfig",
            "KubeControllerManagerConfig",
            "ActiveCertificateAuthority",
            "TrustedCertificateAuthorities",
            "CertificateAuthorityId",
            "SigningStatus"
          ],
          "description": "The keys associated with an update request."
        },
        "value": {
          "type": "string",
          "description": "The value of the keys submitted as part of an update request."
        }
      }
    }
  }
}