{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-data-exchange/json-schema/amazon-data-exchange-send-data-set-notification-request-schema.json",
  "title": "SendDataSetNotificationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-data-exchange-operations-api-openapi.yml#/components/schemas/SendDataSetNotificationRequest",
  "type": "object",
  "properties": {
    "Scope": {
      "$ref": "#/$defs/ScopeDetails"
    },
    "ClientToken": {
      "type": "string",
      "description": "Idempotency key for the notification, this key allows us to deduplicate notifications that are sent in quick succession erroneously."
    },
    "Comment": {
      "type": "string",
      "description": "Free-form text field for providers to add information about their notifications."
    },
    "DataSetId": {
      "type": "string",
      "description": "Affected data set of the notification."
    },
    "Details": {
      "$ref": "#/$defs/NotificationDetails"
    },
    "Type": {
      "type": "string",
      "description": "The type of the notification. Describing the kind of event the notification is alerting you to."
    }
  },
  "required": [
    "DataSetId",
    "Type"
  ],
  "$defs": {
    "DataUpdateRequestDetails": {
      "type": "object",
      "properties": {
        "DataUpdatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "A datetime in the past when the data was updated. This typically means that the underlying resource supporting the data set was updated."
        }
      }
    },
    "DeprecationRequestDetails": {
      "type": "object",
      "properties": {
        "DeprecationAt": {
          "type": "string",
          "format": "date-time",
          "description": "A datetime in the future when the data set will be deprecated."
        }
      },
      "required": [
        "DeprecationAt"
      ]
    },
    "LakeFormationTagPolicyDetails": {
      "type": "object",
      "properties": {
        "Database": {
          "type": "string",
          "description": "The underlying Glue database that the notification is referring to."
        },
        "Table": {
          "type": "string",
          "description": "The underlying Glue table that the notification is referring to."
        }
      }
    },
    "NotificationDetails": {
      "type": "object",
      "properties": {
        "DataUpdate": {
          "$ref": "#/$defs/DataUpdateRequestDetails"
        },
        "Deprecation": {
          "$ref": "#/$defs/DeprecationRequestDetails"
        },
        "SchemaChange": {
          "$ref": "#/$defs/SchemaChangeRequestDetails"
        }
      }
    },
    "RedshiftDataShareDetails": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The ARN of the underlying Redshift data share that is being affected by this notification."
        },
        "Database": {
          "type": "string",
          "description": "The database name in the Redshift data share that is being affected by this notification."
        },
        "Function": {
          "type": "string",
          "description": "A function name in the Redshift database that is being affected by this notification."
        },
        "Table": {
          "type": "string",
          "description": "A table name in the Redshift database that is being affected by this notification."
        },
        "Schema": {
          "type": "string",
          "description": "A schema name in the Redshift database that is being affected by this notification."
        },
        "View": {
          "type": "string",
          "description": "A view name in the Redshift database that is being affected by this notification."
        }
      },
      "required": [
        "Arn",
        "Database"
      ]
    },
    "S3DataAccessDetails": {
      "type": "object",
      "properties": {
        "KeyPrefixes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of the key prefixes affected by this notification. This can have up to 50 entries."
        },
        "Keys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of the keys affected by this notification. This can have up to 50 entries."
        }
      }
    },
    "SchemaChangeDetails": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "Name of the changing field. This value can be up to 255 characters long."
        },
        "Type": {
          "type": "string",
          "description": "Is the field being added, removed, or modified?"
        },
        "Description": {
          "type": "string",
          "description": "Description of what's changing about this field. This value can be up to 512 characters long."
        }
      },
      "required": [
        "Name",
        "Type"
      ]
    },
    "SchemaChangeRequestDetails": {
      "type": "object",
      "properties": {
        "Changes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SchemaChangeDetails"
          },
          "description": "List of schema changes happening in the scope of this notification. This can have up to 100 entries."
        },
        "SchemaChangeAt": {
          "type": "string",
          "format": "date-time",
          "description": "A date in the future when the schema change is taking effect."
        }
      },
      "required": [
        "SchemaChangeAt"
      ]
    },
    "ScopeDetails": {
      "type": "object",
      "properties": {
        "LakeFormationTagPolicies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LakeFormationTagPolicyDetails"
          },
          "description": "Underlying LF resources that will be affected by this notification."
        },
        "RedshiftDataShares": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RedshiftDataShareDetails"
          },
          "description": "Underlying Redshift resources that will be affected by this notification."
        },
        "S3DataAccesses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/S3DataAccessDetails"
          },
          "description": "Underlying S3 resources that will be affected by this notification."
        }
      }
    }
  }
}