{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-deregister-namespace-input-message-schema.json",
  "title": "DeregisterNamespaceInputMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-namespace-api-openapi.yml#/components/schemas/DeregisterNamespaceInputMessage",
  "type": "object",
  "properties": {
    "NamespaceIdentifier": {
      "$ref": "#/$defs/NamespaceIdentifierUnion"
    },
    "ConsumerIdentifiers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array containing the ID of the consumer account that you want to deregister the cluster or serverless namespace from."
    }
  },
  "required": [
    "NamespaceIdentifier",
    "ConsumerIdentifiers"
  ],
  "$defs": {
    "NamespaceIdentifierUnion": {
      "type": "object",
      "properties": {
        "ServerlessIdentifier": {
          "$ref": "#/$defs/ServerlessIdentifier"
        },
        "ProvisionedIdentifier": {
          "$ref": "#/$defs/ProvisionedIdentifier"
        }
      },
      "description": "Exactly one member is set."
    },
    "ProvisionedIdentifier": {
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "type": "string",
          "description": "The unique identifier for the provisioned cluster."
        }
      },
      "required": [
        "ClusterIdentifier"
      ]
    },
    "ServerlessIdentifier": {
      "type": "object",
      "properties": {
        "NamespaceIdentifier": {
          "type": "string",
          "description": "The unique identifier for the serverless namespace."
        },
        "WorkgroupIdentifier": {
          "type": "string",
          "description": "The unique identifier for the workgroup associated with the serverless namespace."
        }
      },
      "required": [
        "NamespaceIdentifier",
        "WorkgroupIdentifier"
      ]
    }
  }
}