DomainEventSubscriptionArgs

data class DomainEventSubscriptionArgs(val deadLetterDestination: Output<StorageBlobDeadLetterDestinationArgs>? = null, val deadLetterWithResourceIdentity: Output<DeadLetterWithResourceIdentityArgs>? = null, val deliveryWithResourceIdentity: Output<DeliveryWithResourceIdentityArgs>? = null, val destination: Output<Any>? = null, val domainName: Output<String>? = null, val eventDeliverySchema: Output<Either<String, EventDeliverySchema>>? = null, val eventSubscriptionName: Output<String>? = null, val expirationTimeUtc: Output<String>? = null, val filter: Output<EventSubscriptionFilterArgs>? = null, val labels: Output<List<String>>? = null, val resourceGroupName: Output<String>? = null, val retryPolicy: Output<RetryPolicyArgs>? = null) : ConvertibleToJava<DomainEventSubscriptionArgs>

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}

Constructors

Link copied to clipboard
constructor(deadLetterDestination: Output<StorageBlobDeadLetterDestinationArgs>? = null, deadLetterWithResourceIdentity: Output<DeadLetterWithResourceIdentityArgs>? = null, deliveryWithResourceIdentity: Output<DeliveryWithResourceIdentityArgs>? = null, destination: Output<Any>? = null, domainName: Output<String>? = null, eventDeliverySchema: Output<Either<String, EventDeliverySchema>>? = null, eventSubscriptionName: Output<String>? = null, expirationTimeUtc: Output<String>? = null, filter: Output<EventSubscriptionFilterArgs>? = null, labels: Output<List<String>>? = null, resourceGroupName: Output<String>? = null, retryPolicy: Output<RetryPolicyArgs>? = null)

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>? = null

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
val domainName: Output<String>? = null

Name of the domain topic.

Link copied to clipboard
val eventDeliverySchema: Output<Either<String, EventDeliverySchema>>? = null

The event delivery schema for the event subscription.

Link copied to clipboard
val eventSubscriptionName: Output<String>? = null

Name of the event subscription to be created. Event subscription names must be between 3 and 100 characters in length and use alphanumeric letters only.

Link copied to clipboard
val expirationTimeUtc: Output<String>? = null

Expiration time of the event subscription.

Link copied to clipboard
val filter: Output<EventSubscriptionFilterArgs>? = null

Information about the filter for the event subscription.

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

List of user defined labels.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the user's subscription.

Link copied to clipboard
val retryPolicy: Output<RetryPolicyArgs>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): DomainEventSubscriptionArgs