{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-integration-schema.json",
  "title": "Integration",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-integration-api-openapi.yml#/components/schemas/Integration",
  "type": "object",
  "properties": {
    "IntegrationArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the integration."
    },
    "IntegrationName": {
      "type": "string",
      "description": "The name of the integration."
    },
    "SourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the database used as the source for replication."
    },
    "TargetArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Redshift data warehouse to use as the target for replication."
    },
    "Status": {
      "type": "string",
      "enum": [
        "creating",
        "active",
        "modifying",
        "failed",
        "deleting",
        "syncing",
        "needs_attention"
      ],
      "description": "The current status of the integration."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IntegrationError"
      },
      "description": "Any errors associated with the integration."
    },
    "CreateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time (UTC) when the integration was created."
    },
    "Description": {
      "type": "string",
      "description": "The description of the integration."
    },
    "KMSKeyId": {
      "type": "string",
      "description": "The Key Management Service (KMS) key identifier for the key used to encrypt the integration."
    },
    "AdditionalEncryptionContext": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The encryption context for the integration. For more information, see Encryption context in the Amazon Web Services Key Management Service Developer Guide."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The list of tags associated with the integration."
    }
  },
  "$defs": {
    "IntegrationError": {
      "type": "object",
      "properties": {
        "ErrorCode": {
          "type": "string",
          "description": "The error code of an inbound integration error."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "The error message of an inbound integration error."
        }
      },
      "required": [
        "ErrorCode"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key, or name, for the resource tag."
        },
        "Value": {
          "type": "string",
          "description": "The value for the resource tag."
        }
      }
    }
  }
}