{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-integration-schema.json",
  "title": "Integration",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rds-integration-api-openapi.yml#/components/schemas/Integration",
  "type": "object",
  "properties": {
    "SourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the database used as the source for replication."
    },
    "TargetArn": {
      "type": "string",
      "description": "The ARN of the Redshift data warehouse used as the target for replication."
    },
    "IntegrationName": {
      "type": "string",
      "description": "The name of the integration."
    },
    "IntegrationArn": {
      "type": "string",
      "description": "The ARN of the integration."
    },
    "KMSKeyId": {
      "type": "string",
      "description": "The Amazon Web Services Key Management System (Amazon Web Services KMS) key identifier for the key used to 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."
    },
    "Status": {
      "type": "string",
      "enum": [
        "creating",
        "active",
        "modifying",
        "failed",
        "deleting",
        "syncing",
        "needs_attention"
      ],
      "description": "The current status of the integration."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "DataFilter": {
      "type": "string",
      "description": "Data filters for the integration. These filters determine which tables from the source database are sent to the target Amazon Redshift data warehouse."
    },
    "Description": {
      "type": "string",
      "description": "A description of the integration."
    },
    "CreateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the integration was created, in Universal Coordinated Time (UTC)."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IntegrationError"
      },
      "description": "Any errors associated with the integration."
    }
  },
  "$defs": {
    "IntegrationError": {
      "type": "object",
      "properties": {
        "ErrorCode": {
          "type": "string",
          "description": "The error code associated with the integration."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "A message explaining the error."
        }
      },
      "required": [
        "ErrorCode"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\")."
        },
        "Value": {
          "type": "string",
          "description": "A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can't be prefixed with aws: or rds:. The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', ':', '/', '=', '+', '-', '@' (Java regex: \"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:/=+\\\\-@]*)$\")."
        }
      }
    }
  }
}