{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-integration-services/json-schema/microsoft-azure-integration-services-event-subscription-update-parameters-schema.json",
  "title": "EventSubscriptionUpdateParameters",
  "description": "Properties of the Event Subscription update.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-integration-services-event-subscriptions-api-openapi.yml#/components/schemas/EventSubscriptionUpdateParameters",
  "type": "object",
  "properties": {
    "destination": {
      "$ref": "#/$defs/EventSubscriptionDestination",
      "description": "Information about the destination where events have to be delivered for the event subscription.\nUses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering."
    },
    "deliveryWithResourceIdentity": {
      "$ref": "#/$defs/DeliveryWithResourceIdentity",
      "description": "Information about the destination where events have to be delivered for the event subscription.\nUses the managed identity setup on the parent resource (topic / domain) to acquire the authentication tokens being used during delivery / dead-lettering."
    },
    "filter": {
      "$ref": "#/$defs/EventSubscriptionFilter",
      "description": "Information about the filter for the event subscription."
    },
    "labels": {
      "description": "List of user defined labels.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expirationTimeUtc": {
      "format": "date-time",
      "description": "Information about the expiration time for the event subscription.",
      "type": "string"
    },
    "eventDeliverySchema": {
      "description": "The event delivery schema for the event subscription.",
      "enum": [
        "EventGridSchema",
        "CustomInputSchema",
        "CloudEventSchemaV1_0"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "EventDeliverySchema",
        "modelAsString": true
      }
    },
    "retryPolicy": {
      "$ref": "#/$defs/RetryPolicy",
      "description": "The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events."
    },
    "deadLetterDestination": {
      "$ref": "#/$defs/DeadLetterDestination",
      "description": "The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.\nUses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering."
    },
    "deadLetterWithResourceIdentity": {
      "$ref": "#/$defs/DeadLetterWithResourceIdentity",
      "description": "The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.\nUses the managed identity setup on the parent resource (topic / domain) to acquire the authentication tokens being used during delivery / dead-lettering."
    }
  },
  "$defs": {
    "AdvancedFilter": {
      "description": "This is the base type that represents an advanced filter. To configure an advanced filter, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class such as BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter etc. depending on the type of the key based on which you want to filter.",
      "required": [
        "operatorType"
      ],
      "type": "object",
      "properties": {
        "operatorType": {
          "description": "The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
          "enum": [
            "NumberIn",
            "NumberNotIn",
            "NumberLessThan",
            "NumberGreaterThan",
            "NumberLessThanOrEquals",
            "NumberGreaterThanOrEquals",
            "BoolEquals",
            "StringIn",
            "StringNotIn",
            "StringBeginsWith",
            "StringEndsWith",
            "StringContains",
            "NumberInRange",
            "NumberNotInRange",
            "StringNotBeginsWith",
            "StringNotEndsWith",
            "StringNotContains",
            "IsNullOrUndefined",
            "IsNotNull"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "AdvancedFilterOperatorType",
            "modelAsString": true
          }
        },
        "key": {
          "description": "The field/property in the event based on which you want to filter.",
          "type": "string"
        }
      }
    },
    "DeadLetterDestination": {
      "description": "Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class.",
      "type": "object",
      "required": [
        "endpointType"
      ],
      "properties": {
        "endpointType": {
          "description": "Type of the endpoint for the dead letter destination",
          "enum": [
            "StorageBlob"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "DeadLetterEndPointType",
            "modelAsString": true
          }
        }
      }
    },
    "DeadLetterWithResourceIdentity": {
      "description": "Information about the deadletter destination with resource identity.",
      "type": "object",
      "properties": {
        "identity": {
          "$ref": "#/$defs/EventSubscriptionIdentity",
          "description": "The identity to use when dead-lettering events."
        },
        "deadLetterDestination": {
          "$ref": "#/$defs/DeadLetterDestination",
          "description": "Information about the destination where events have to be delivered for the event subscription.\nUses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during dead-lettering."
        }
      }
    },
    "DeliveryWithResourceIdentity": {
      "description": "Information about the delivery for an event subscription with resource identity.",
      "type": "object",
      "properties": {
        "identity": {
          "$ref": "#/$defs/EventSubscriptionIdentity",
          "description": "The identity to use when delivering events."
        },
        "destination": {
          "$ref": "#/$defs/EventSubscriptionDestination",
          "description": "Information about the destination where events have to be delivered for the event subscription.\nUses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery."
        }
      }
    },
    "EventSubscriptionDestination": {
      "description": "Information about the destination for an event subscription.",
      "required": [
        "endpointType"
      ],
      "type": "object",
      "properties": {
        "endpointType": {
          "description": "Type of the endpoint for the event subscription destination.",
          "enum": [
            "WebHook",
            "EventHub",
            "StorageQueue",
            "HybridConnection",
            "ServiceBusQueue",
            "ServiceBusTopic",
            "AzureFunction",
            "MonitorAlert",
            "NamespaceTopic"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "EndpointType",
            "modelAsString": true
          }
        }
      }
    },
    "EventSubscriptionFilter": {
      "description": "Filter for the Event Subscription.",
      "type": "object",
      "properties": {
        "subjectBeginsWith": {
          "description": "An optional string to filter events for an event subscription based on a resource path prefix.\nThe format of this depends on the publisher of the events.\nWildcard characters are not supported in this path.",
          "type": "string"
        },
        "subjectEndsWith": {
          "description": "An optional string to filter events for an event subscription based on a resource path suffix.\nWildcard characters are not supported in this path.",
          "type": "string"
        },
        "includedEventTypes": {
          "description": "A list of applicable event types that need to be part of the event subscription. If it is desired to subscribe to all default event types, set the IncludedEventTypes to null.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "isSubjectCaseSensitive": {
          "description": "Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter\nshould be compared in a case sensitive manner.",
          "default": false,
          "type": "boolean"
        },
        "enableAdvancedFilteringOnArrays": {
          "description": "Allows advanced filters to be evaluated against an array of values instead of expecting a singular value.",
          "type": "boolean"
        },
        "advancedFilters": {
          "description": "An array of advanced filters that are used for filtering event subscriptions.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdvancedFilter"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "EventSubscriptionIdentity": {
      "description": "The identity information with the event subscription.",
      "type": "object",
      "properties": {
        "type": {
          "description": "The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.",
          "enum": [
            "SystemAssigned",
            "UserAssigned"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "EventSubscriptionIdentityType",
            "modelAsString": true
          }
        },
        "userAssignedIdentity": {
          "description": "The user identity associated with the resource.",
          "type": "string"
        }
      }
    },
    "RetryPolicy": {
      "description": "Information about the retry policy for an event subscription.",
      "type": "object",
      "properties": {
        "maxDeliveryAttempts": {
          "format": "int32",
          "description": "Maximum number of delivery retry attempts for events.",
          "default": 30,
          "type": "integer"
        },
        "eventTimeToLiveInMinutes": {
          "format": "int32",
          "description": "Time To Live (in minutes) for events.",
          "default": 1440,
          "type": "integer"
        }
      }
    }
  }
}