{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-event-trigger-response-schema.json",
  "title": "CreateEventTriggerResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-event-triggers-api-openapi.yml#/components/schemas/CreateEventTriggerResponse",
  "type": "object",
  "properties": {
    "EventTriggerName": {
      "type": "string",
      "description": "The unique name of the event trigger."
    },
    "ObjectTypeName": {
      "type": "string",
      "description": "The unique name of the object type."
    },
    "Description": {
      "type": "string",
      "description": "The description of the event trigger."
    },
    "EventTriggerConditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EventTriggerCondition"
      },
      "description": "A list of conditions that determine when an event should trigger the destination."
    },
    "SegmentFilter": {
      "type": "string",
      "description": "The destination is triggered only for profiles that meet the criteria of a segment definition."
    },
    "EventTriggerLimits": {
      "$ref": "#/$defs/EventTriggerLimits"
    },
    "CreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the event trigger was created."
    },
    "LastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the event trigger was most recently updated."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "An array of key-value pairs to apply to this resource."
    }
  },
  "$defs": {
    "EventTriggerCondition": {
      "type": "object",
      "properties": {
        "EventTriggerDimensions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EventTriggerDimension"
          },
          "description": "A list of dimensions to be evaluated for the event."
        },
        "LogicalOperator": {
          "type": "string",
          "enum": [
            "ANY",
            "ALL",
            "NONE"
          ],
          "description": "The operator used to combine multiple dimensions."
        }
      },
      "required": [
        "EventTriggerDimensions",
        "LogicalOperator"
      ]
    },
    "EventTriggerDimension": {
      "type": "object",
      "properties": {
        "ObjectAttributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ObjectAttribute"
          },
          "description": "A list of object attributes to be evaluated."
        }
      },
      "required": [
        "ObjectAttributes"
      ]
    },
    "EventTriggerLimits": {
      "type": "object",
      "properties": {
        "EventExpiration": {
          "type": "integer",
          "description": "In milliseconds. Specifies that an event will only trigger the destination if it is processed within a certain latency period."
        },
        "Periods": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Period"
          },
          "description": "A list of time periods during which the limits apply."
        }
      }
    },
    "ObjectAttribute": {
      "type": "object",
      "properties": {
        "Source": {
          "type": "string",
          "description": "An attribute contained within a source object."
        },
        "FieldName": {
          "type": "string",
          "description": "A field defined within an object type."
        },
        "ComparisonOperator": {
          "type": "string",
          "enum": [
            "INCLUSIVE",
            "EXCLUSIVE",
            "CONTAINS",
            "BEGINS_WITH",
            "ENDS_WITH",
            "GREATER_THAN",
            "LESS_THAN",
            "GREATER_THAN_OR_EQUAL",
            "LESS_THAN_OR_EQUAL",
            "EQUAL",
            "BEFORE",
            "AFTER",
            "ON",
            "BETWEEN",
            "NOT_BETWEEN"
          ],
          "description": "The operator used to compare an attribute against a list of values."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of attribute values used for comparison."
        }
      },
      "required": [
        "ComparisonOperator",
        "Values"
      ]
    },
    "Period": {
      "type": "object",
      "properties": {
        "Unit": {
          "type": "string",
          "enum": [
            "MINUTES",
            "HOURS",
            "DAYS",
            "WEEKS",
            "MONTHS"
          ],
          "description": "The unit of time."
        },
        "Value": {
          "type": "integer",
          "description": "The amount of time of the specified unit."
        },
        "MaxInvocationsPerProfile": {
          "type": "integer",
          "description": "The maximum allowed number of destination invocations per profile."
        },
        "Unlimited": {
          "type": "boolean",
          "description": "If set to true, there is no limit on the number of destination invocations per profile. The default is false."
        }
      },
      "required": [
        "Unit",
        "Value"
      ]
    }
  }
}