{
  "description": "Generator information:\n- Generated from: /eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json\n- ARM URI: /{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "azureName": {
          "description": "AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it\ndoesn't have to be.",
          "type": "string"
        },
        "deadLetterDestination": {
          "description": "DeadLetterDestination: The DeadLetter destination of the event subscription.",
          "properties": {
            "storageBlob": {
              "description": "StorageBlob: Mutually exclusive with all other properties",
              "properties": {
                "blobContainerName": {
                  "description": "BlobContainerName: The name of the Storage blob container that is the destination of the deadletter events",
                  "type": "string"
                },
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the dead letter destination",
                  "enum": [
                    "StorageBlob"
                  ],
                  "type": "string"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource ID of the storage account that is the destination of the deadletter events",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "destination": {
          "description": "Destination: Information about the destination where events have to be delivered for the event subscription.",
          "properties": {
            "azureFunction": {
              "description": "AzureFunction: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "AzureFunction"
                  ],
                  "type": "string"
                },
                "maxEventsPerBatch": {
                  "description": "MaxEventsPerBatch: Maximum number of events per batch.",
                  "type": "integer"
                },
                "preferredBatchSizeInKilobytes": {
                  "description": "PreferredBatchSizeInKilobytes: Preferred batch size in Kilobytes.",
                  "type": "integer"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource Id that represents the endpoint of the Azure Function destination of an event\nsubscription.",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "eventHub": {
              "description": "EventHub: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "EventHub"
                  ],
                  "type": "string"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event\nsubscription.",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "hybridConnection": {
              "description": "HybridConnection: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "HybridConnection"
                  ],
                  "type": "string"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource ID of an hybrid connection that is the destination of an event subscription.",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "serviceBusQueue": {
              "description": "ServiceBusQueue: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "ServiceBusQueue"
                  ],
                  "type": "string"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource Id that represents the endpoint of the Service Bus destination of an event\nsubscription.",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "serviceBusTopic": {
              "description": "ServiceBusTopic: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "ServiceBusTopic"
                  ],
                  "type": "string"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event\nsubscription.",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "storageQueue": {
              "description": "StorageQueue: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "StorageQueue"
                  ],
                  "type": "string"
                },
                "queueName": {
                  "description": "QueueName: The name of the Storage queue under a storage account that is the destination of an event subscription.",
                  "type": "string"
                },
                "resourceReference": {
                  "description": "ResourceReference: The Azure Resource ID of the storage account that contains the queue that is the destination of an\nevent subscription.",
                  "properties": {
                    "armId": {
                      "description": "ARMID is a string of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.\nThe /resourcegroups/{resourceGroupName} bit is optional as some resources are scoped at the subscription level\nARMID is mutually exclusive with Group, Kind, Namespace and Name.",
                      "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
                      "type": "string"
                    },
                    "group": {
                      "description": "Group is the Kubernetes group of the resource.",
                      "type": "string"
                    },
                    "kind": {
                      "description": "Kind is the Kubernetes kind of the resource.",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the Kubernetes name of the resource.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "webHook": {
              "description": "WebHook: Mutually exclusive with all other properties",
              "properties": {
                "azureActiveDirectoryApplicationIdOrUri": {
                  "description": "AzureActiveDirectoryApplicationIdOrUri: The Azure Active Directory Application ID or URI to get the access token that\nwill be included as the bearer token in delivery requests.",
                  "type": "string"
                },
                "azureActiveDirectoryTenantId": {
                  "description": "AzureActiveDirectoryTenantId: The Azure Active Directory Tenant ID to get the access token that will be included as the\nbearer token in delivery requests.",
                  "type": "string"
                },
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "enum": [
                    "WebHook"
                  ],
                  "type": "string"
                },
                "endpointUrl": {
                  "description": "EndpointUrl: The URL that represents the endpoint of the destination of an event subscription.",
                  "properties": {
                    "key": {
                      "description": "Key is the key in the Kubernetes secret being referenced",
                      "type": "string"
                    },
                    "name": {
                      "description": "Name is the name of the Kubernetes secret being referenced.\nThe secret must be in the same namespace as the resource",
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "name"
                  ],
                  "type": "object",
                  "additionalProperties": false
                },
                "maxEventsPerBatch": {
                  "description": "MaxEventsPerBatch: Maximum number of events per batch.",
                  "type": "integer"
                },
                "preferredBatchSizeInKilobytes": {
                  "description": "PreferredBatchSizeInKilobytes: Preferred batch size in Kilobytes.",
                  "type": "integer"
                }
              },
              "required": [
                "endpointType"
              ],
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "eventDeliverySchema": {
          "description": "EventDeliverySchema: The event delivery schema for the event subscription.",
          "enum": [
            "CloudEventSchemaV1_0",
            "CustomInputSchema",
            "EventGridSchema"
          ],
          "type": "string"
        },
        "expirationTimeUtc": {
          "description": "ExpirationTimeUtc: Expiration time of the event subscription.",
          "type": "string"
        },
        "filter": {
          "description": "Filter: Information about the filter for the event subscription.",
          "properties": {
            "advancedFilters": {
              "description": "AdvancedFilters: An array of advanced filters that are used for filtering event subscriptions.",
              "items": {
                "properties": {
                  "boolEquals": {
                    "description": "BoolEquals: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "BoolEquals"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The boolean filter value.",
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberGreaterThan": {
                    "description": "NumberGreaterThan: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "NumberGreaterThan"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberGreaterThanOrEquals": {
                    "description": "NumberGreaterThanOrEquals: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "NumberGreaterThanOrEquals"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberIn": {
                    "description": "NumberIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "NumberIn"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "number"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberLessThan": {
                    "description": "NumberLessThan: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "NumberLessThan"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberLessThanOrEquals": {
                    "description": "NumberLessThanOrEquals: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "NumberLessThanOrEquals"
                        ],
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberNotIn": {
                    "description": "NumberNotIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "NumberNotIn"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "number"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringBeginsWith": {
                    "description": "StringBeginsWith: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "StringBeginsWith"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringContains": {
                    "description": "StringContains: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "StringContains"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringEndsWith": {
                    "description": "StringEndsWith: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "StringEndsWith"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringIn": {
                    "description": "StringIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "StringIn"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringNotIn": {
                    "description": "StringNotIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "enum": [
                          "StringNotIn"
                        ],
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "operatorType"
                    ],
                    "type": "object",
                    "additionalProperties": false
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "includedEventTypes": {
              "description": "IncludedEventTypes: A list of applicable event types that need to be part of the event subscription. If it is desired to\nsubscribe to all default event types, set the IncludedEventTypes to null.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "isSubjectCaseSensitive": {
              "description": "IsSubjectCaseSensitive: Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter\nshould be compared in a case sensitive manner.",
              "type": "boolean"
            },
            "subjectBeginsWith": {
              "description": "SubjectBeginsWith: 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": "SubjectEndsWith: 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"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "labels": {
          "description": "Labels: List of user defined labels.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "operatorSpec": {
          "description": "OperatorSpec: The specification for configuring operator behavior. This field is interpreted by the operator and not\npassed directly to Azure",
          "properties": {
            "configMapExpressions": {
              "description": "ConfigMapExpressions: configures where to place operator written dynamic ConfigMaps (created with CEL expressions).",
              "items": {
                "description": "DestinationExpression is a CEL expression and a destination to store the result in. The destination may\nbe a secret or a configmap. The value of the expression is stored at the specified location in\nthe destination.",
                "properties": {
                  "key": {
                    "description": "Key is the key in the ConfigMap or Secret being written to. If the CEL expression in Value returns a string\nthis is required to identify what key to write to. If the CEL expression in Value returns a map[string]string\nKey must not be set, instead the keys written will be determined dynamically based on the keys of the resulting\nmap[string]string.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name is the name of the Kubernetes configmap or secret to write to.\nThe configmap or secret will be created in the same namespace as the resource.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value is a CEL expression. The CEL expression may return a string or a map[string]string. For more information\non CEL in ASO see https://azure.github.io/azure-service-operator/guide/expressions/",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "secretExpressions": {
              "description": "SecretExpressions: configures where to place operator written dynamic secrets (created with CEL expressions).",
              "items": {
                "description": "DestinationExpression is a CEL expression and a destination to store the result in. The destination may\nbe a secret or a configmap. The value of the expression is stored at the specified location in\nthe destination.",
                "properties": {
                  "key": {
                    "description": "Key is the key in the ConfigMap or Secret being written to. If the CEL expression in Value returns a string\nthis is required to identify what key to write to. If the CEL expression in Value returns a map[string]string\nKey must not be set, instead the keys written will be determined dynamically based on the keys of the resulting\nmap[string]string.",
                    "type": "string"
                  },
                  "name": {
                    "description": "Name is the name of the Kubernetes configmap or secret to write to.\nThe configmap or secret will be created in the same namespace as the resource.",
                    "type": "string"
                  },
                  "value": {
                    "description": "Value is a CEL expression. The CEL expression may return a string or a map[string]string. For more information\non CEL in ASO see https://azure.github.io/azure-service-operator/guide/expressions/",
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "owner": {
          "description": "Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also\ncontrols the resources lifecycle. When the owner is deleted the resource will also be deleted. This resource is an\nextension resource, which means that any other Azure resource can be its owner.",
          "properties": {
            "armId": {
              "description": "Ownership across namespaces is not supported.",
              "pattern": "(?i)(^(/subscriptions/([^/]+)(/resourcegroups/([^/]+))?)?/providers/([^/]+)/([^/]+/[^/]+)(/([^/]+/[^/]+))*$|^/subscriptions/([^/]+)(/resourcegroups/([^/]+))?$)",
              "type": "string"
            },
            "group": {
              "description": "Group is the Kubernetes group of the resource.",
              "type": "string"
            },
            "kind": {
              "description": "Kind is the Kubernetes kind of the resource.",
              "type": "string"
            },
            "name": {
              "description": "This is the name of the Kubernetes resource to reference.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "retryPolicy": {
          "description": "RetryPolicy: The retry policy for events. This can be used to configure maximum number of delivery attempts and time to\nlive for events.",
          "properties": {
            "eventTimeToLiveInMinutes": {
              "description": "EventTimeToLiveInMinutes: Time To Live (in minutes) for events.",
              "type": "integer"
            },
            "maxDeliveryAttempts": {
              "description": "MaxDeliveryAttempts: Maximum number of delivery retry attempts for events.",
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "owner"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "Event Subscription",
      "properties": {
        "conditions": {
          "description": "Conditions: The observed state of the resource",
          "items": {
            "description": "Condition defines an extension to status (an observation) of a resource",
            "properties": {
              "lastTransitionTime": {
                "description": "LastTransitionTime is the last time the condition transitioned from one status to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "Message is a human readable message indicating details about the transition. This field may be empty.",
                "type": "string"
              },
              "observedGeneration": {
                "description": "ObservedGeneration is the .metadata.generation that the condition was set based upon. For instance, if\n.metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "type": "integer"
              },
              "reason": {
                "description": "Reason for the condition's last transition.\nReasons are upper CamelCase (PascalCase) with no spaces. A reason is always provided, this field will not be empty.",
                "type": "string"
              },
              "severity": {
                "description": "Severity with which to treat failures of this type of condition.\nFor conditions which have positive polarity (Status == True is their normal/healthy state), this will be omitted when Status == True\nFor conditions which have negative polarity (Status == False is their normal/healthy state), this will be omitted when Status == False.\nThis is omitted in all cases when Status == Unknown",
                "type": "string"
              },
              "status": {
                "description": "Status of the condition, one of True, False, or Unknown.",
                "type": "string"
              },
              "type": {
                "description": "Type of condition.",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "reason",
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "deadLetterDestination": {
          "description": "DeadLetterDestination: The DeadLetter destination of the event subscription.",
          "properties": {
            "storageBlob": {
              "description": "StorageBlob: Mutually exclusive with all other properties",
              "properties": {
                "blobContainerName": {
                  "description": "BlobContainerName: The name of the Storage blob container that is the destination of the deadletter events",
                  "type": "string"
                },
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the dead letter destination",
                  "type": "string"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource ID of the storage account that is the destination of the deadletter events",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "destination": {
          "description": "Destination: Information about the destination where events have to be delivered for the event subscription.",
          "properties": {
            "azureFunction": {
              "description": "AzureFunction: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "maxEventsPerBatch": {
                  "description": "MaxEventsPerBatch: Maximum number of events per batch.",
                  "type": "integer"
                },
                "preferredBatchSizeInKilobytes": {
                  "description": "PreferredBatchSizeInKilobytes: Preferred batch size in Kilobytes.",
                  "type": "integer"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource Id that represents the endpoint of the Azure Function destination of an event\nsubscription.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "eventHub": {
              "description": "EventHub: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "hybridConnection": {
              "description": "HybridConnection: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource ID of an hybrid connection that is the destination of an event subscription.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "serviceBusQueue": {
              "description": "ServiceBusQueue: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "serviceBusTopic": {
              "description": "ServiceBusTopic: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event\nsubscription.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "storageQueue": {
              "description": "StorageQueue: Mutually exclusive with all other properties",
              "properties": {
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "queueName": {
                  "description": "QueueName: The name of the Storage queue under a storage account that is the destination of an event subscription.",
                  "type": "string"
                },
                "resourceId": {
                  "description": "ResourceId: The Azure Resource ID of the storage account that contains the queue that is the destination of an event\nsubscription.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "webHook": {
              "description": "WebHook: Mutually exclusive with all other properties",
              "properties": {
                "azureActiveDirectoryApplicationIdOrUri": {
                  "description": "AzureActiveDirectoryApplicationIdOrUri: The Azure Active Directory Application ID or URI to get the access token that\nwill be included as the bearer token in delivery requests.",
                  "type": "string"
                },
                "azureActiveDirectoryTenantId": {
                  "description": "AzureActiveDirectoryTenantId: The Azure Active Directory Tenant ID to get the access token that will be included as the\nbearer token in delivery requests.",
                  "type": "string"
                },
                "endpointBaseUrl": {
                  "description": "EndpointBaseUrl: The base URL that represents the endpoint of the destination of an event subscription.",
                  "type": "string"
                },
                "endpointType": {
                  "description": "EndpointType: Type of the endpoint for the event subscription destination.",
                  "type": "string"
                },
                "maxEventsPerBatch": {
                  "description": "MaxEventsPerBatch: Maximum number of events per batch.",
                  "type": "integer"
                },
                "preferredBatchSizeInKilobytes": {
                  "description": "PreferredBatchSizeInKilobytes: Preferred batch size in Kilobytes.",
                  "type": "integer"
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "eventDeliverySchema": {
          "description": "EventDeliverySchema: The event delivery schema for the event subscription.",
          "type": "string"
        },
        "expirationTimeUtc": {
          "description": "ExpirationTimeUtc: Expiration time of the event subscription.",
          "type": "string"
        },
        "filter": {
          "description": "Filter: Information about the filter for the event subscription.",
          "properties": {
            "advancedFilters": {
              "description": "AdvancedFilters: An array of advanced filters that are used for filtering event subscriptions.",
              "items": {
                "properties": {
                  "boolEquals": {
                    "description": "BoolEquals: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The boolean filter value.",
                        "type": "boolean"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberGreaterThan": {
                    "description": "NumberGreaterThan: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberGreaterThanOrEquals": {
                    "description": "NumberGreaterThanOrEquals: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberIn": {
                    "description": "NumberIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "number"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberLessThan": {
                    "description": "NumberLessThan: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberLessThanOrEquals": {
                    "description": "NumberLessThanOrEquals: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "value": {
                        "description": "Value: The filter value.",
                        "type": "number"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "numberNotIn": {
                    "description": "NumberNotIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "number"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringBeginsWith": {
                    "description": "StringBeginsWith: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringContains": {
                    "description": "StringContains: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringEndsWith": {
                    "description": "StringEndsWith: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringIn": {
                    "description": "StringIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "stringNotIn": {
                    "description": "StringNotIn: Mutually exclusive with all other properties",
                    "properties": {
                      "key": {
                        "description": "Key: The field/property in the event based on which you want to filter.",
                        "type": "string"
                      },
                      "operatorType": {
                        "description": "OperatorType: The operator type used for filtering, e.g., NumberIn, StringContains, BoolEquals and others.",
                        "type": "string"
                      },
                      "values": {
                        "description": "Values: The set of filter values.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "includedEventTypes": {
              "description": "IncludedEventTypes: A list of applicable event types that need to be part of the event subscription. If it is desired to\nsubscribe to all default event types, set the IncludedEventTypes to null.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "isSubjectCaseSensitive": {
              "description": "IsSubjectCaseSensitive: Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter\nshould be compared in a case sensitive manner.",
              "type": "boolean"
            },
            "subjectBeginsWith": {
              "description": "SubjectBeginsWith: 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": "SubjectEndsWith: 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"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "id": {
          "description": "Id: Fully qualified identifier of the resource.",
          "type": "string"
        },
        "labels": {
          "description": "Labels: List of user defined labels.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "description": "Name: Name of the resource.",
          "type": "string"
        },
        "provisioningState": {
          "description": "ProvisioningState: Provisioning state of the event subscription.",
          "type": "string"
        },
        "retryPolicy": {
          "description": "RetryPolicy: The retry policy for events. This can be used to configure maximum number of delivery attempts and time to\nlive for events.",
          "properties": {
            "eventTimeToLiveInMinutes": {
              "description": "EventTimeToLiveInMinutes: Time To Live (in minutes) for events.",
              "type": "integer"
            },
            "maxDeliveryAttempts": {
              "description": "MaxDeliveryAttempts: Maximum number of delivery retry attempts for events.",
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "systemData": {
          "description": "SystemData: The system metadata relating to Event Subscription resource.",
          "properties": {
            "createdAt": {
              "description": "CreatedAt: The timestamp of resource creation (UTC).",
              "type": "string"
            },
            "createdBy": {
              "description": "CreatedBy: The identity that created the resource.",
              "type": "string"
            },
            "createdByType": {
              "description": "CreatedByType: The type of identity that created the resource.",
              "type": "string"
            },
            "lastModifiedAt": {
              "description": "LastModifiedAt: The timestamp of resource last modification (UTC)",
              "type": "string"
            },
            "lastModifiedBy": {
              "description": "LastModifiedBy: The identity that last modified the resource.",
              "type": "string"
            },
            "lastModifiedByType": {
              "description": "LastModifiedByType: The type of identity that last modified the resource.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "topic": {
          "description": "Topic: Name of the topic of the event subscription.",
          "type": "string"
        },
        "type": {
          "description": "Type: Type of the resource.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
