DomainEventSubscription

class DomainEventSubscription : KotlinCustomResource

Event Subscription Uses Azure REST API version 2022-06-15. In version 1.x of the Azure Native provider, it used API version 2021-10-15-preview. Other available API versions: 2023-06-01-preview, 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-02-15.

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/v2"
"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}

Properties

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard
val destination: Output<Any>?

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.

Link copied to clipboard

The event delivery schema for the event subscription.

Link copied to clipboard

Expiration time of the event subscription.

Link copied to clipboard

Information about the filter for the event subscription.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<List<String>>?

List of user defined labels.

Link copied to clipboard
val name: Output<String>

Name of the resource.

Link copied to clipboard

Provisioning state of the event subscription.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.

Link copied to clipboard

The system metadata relating to Event Subscription resource.

Link copied to clipboard
val topic: Output<String>

Name of the topic of the event subscription.

Link copied to clipboard
val type: Output<String>

Type of the resource.

Link copied to clipboard
val urn: Output<String>