{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-integrations-message-schema.json",
  "title": "IntegrationsMessage",
  "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/IntegrationsMessage",
  "type": "object",
  "properties": {
    "Marker": {
      "type": "string",
      "description": "A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request."
    },
    "Integrations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Integration"
      },
      "description": "List of integrations that are described."
    }
  },
  "$defs": {
    "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."
        }
      }
    },
    "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."
        }
      }
    }
  }
}