I create Event Grid Topic Subscriptions to Service Bus Queues:
var args = new EventSubscriptionArgs
{
EventSubscriptionName = topic.SubscriptionName,
Scope = topic.Id,
Destination = new Pulumi.AzureNative.EventGrid.Inputs.ServiceBusQueueEventSubscriptionDestinationArgs
{
EndpointType = "ServiceBusQueue",
ResourceId = queue.Id
},
};
var sub=new EventSubscription(
topic.SubscriptionName,
args
);
This works fine. Now I want to add a filter to only allow specific Event Types. According to the documentation I can add Filters like those:
args.Filter=new Pulumi.AzureNative.EventGrid.Inputs.EventSubscriptionFilterArgs
{
SubjectBeginsWith="the_topic",
SubjectEndsWith="the_topic"
}
But this is just one Topic, obviously. I need to be able to add an array of filters.
I expect that this can be done by EnableAdvancedFilteringOnArrays and AdvancedFilters somehow. But those properties aren't described anywhere (or I just wasn't able to find that information)
according to the documentation, AdvancedFilters is of type List<object> and I did not find any information what kind of object is expected there to be able to add multiple filters.