Domain Event Subscription Args
Event Subscription. Uses Azure REST API version 2025-02-15. In version 2.x of the Azure Native provider, it used API version 2022-06-15. Other available API versions: 2022-06-15, 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventgrid [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
DomainEventSubscriptions_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var domainEventSubscription = new AzureNative.EventGrid.DomainEventSubscription("domainEventSubscription", new()
{
Destination = new AzureNative.EventGrid.Inputs.WebHookEventSubscriptionDestinationArgs
{
EndpointType = "WebHook",
EndpointUrl = "https://requestb.in/15ksip71",
},
DomainName = "exampleDomain1",
EventSubscriptionName = "exampleEventSubscriptionName1",
Filter = new AzureNative.EventGrid.Inputs.EventSubscriptionFilterArgs
{
IsSubjectCaseSensitive = false,
SubjectBeginsWith = "ExamplePrefix",
SubjectEndsWith = "ExampleSuffix",
},
ResourceGroupName = "examplerg",
});
});
package main
import (
eventgrid "github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventgrid.NewDomainEventSubscription(ctx, "domainEventSubscription", &eventgrid.DomainEventSubscriptionArgs{
Destination: &eventgrid.WebHookEventSubscriptionDestinationArgs{
EndpointType: pulumi.String("WebHook"),
EndpointUrl: pulumi.String("https://requestb.in/15ksip71"),
},
DomainName: pulumi.String("exampleDomain1"),
EventSubscriptionName: pulumi.String("exampleEventSubscriptionName1"),
Filter: &eventgrid.EventSubscriptionFilterArgs{
IsSubjectCaseSensitive: pulumi.Bool(false),
SubjectBeginsWith: pulumi.String("ExamplePrefix"),
SubjectEndsWith: pulumi.String("ExampleSuffix"),
},
ResourceGroupName: pulumi.String("examplerg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventgrid.DomainEventSubscription;
import com.pulumi.azurenative.eventgrid.DomainEventSubscriptionArgs;
import com.pulumi.azurenative.eventgrid.inputs.EventSubscriptionFilterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var domainEventSubscription = new DomainEventSubscription("domainEventSubscription", DomainEventSubscriptionArgs.builder()
.destination(WebHookEventSubscriptionDestinationArgs.builder()
.endpointType("WebHook")
.endpointUrl("https://requestb.in/15ksip71")
.build())
.domainName("exampleDomain1")
.eventSubscriptionName("exampleEventSubscriptionName1")
.filter(EventSubscriptionFilterArgs.builder()
.isSubjectCaseSensitive(false)
.subjectBeginsWith("ExamplePrefix")
.subjectEndsWith("ExampleSuffix")
.build())
.resourceGroupName("examplerg")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventgrid:DomainEventSubscription exampleEventSubscriptionName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/eventSubscriptions/{eventSubscriptionName}
Constructors
Properties
The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
Information about the destination where events have to be delivered for the event subscription. Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
Information about the destination where events have to be delivered for the event subscription. Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
Name of the domain topic.
The event delivery schema for the event subscription.
Name of the event subscription to be created. Event subscription names must be between 3 and 64 characters in length and use alphanumeric letters only.
Expiration time of the event subscription.
Information about the filter for the event subscription.
The name of the resource group within the user's subscription.
The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.