Namespace Topic Event Subscription Args
data class NamespaceTopicEventSubscriptionArgs(val deliveryConfiguration: Output<DeliveryConfigurationArgs>? = null, val eventDeliverySchema: Output<Either<String, DeliverySchema>>? = null, val eventSubscriptionName: Output<String>? = null, val filtersConfiguration: Output<FiltersConfigurationArgs>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val topicName: Output<String>? = null) : ConvertibleToJava<NamespaceTopicEventSubscriptionArgs>
Event Subscription. Uses Azure REST API version 2023-06-01-preview. Other available API versions: 2023-12-15-preview, 2024-06-01-preview, 2024-12-15-preview, 2025-02-15.
Example Usage
NamespaceTopicEventSubscriptions_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var namespaceTopicEventSubscription = new AzureNative.EventGrid.NamespaceTopicEventSubscription("namespaceTopicEventSubscription", new()
{
DeliveryConfiguration = new AzureNative.EventGrid.Inputs.DeliveryConfigurationArgs
{
DeliveryMode = AzureNative.EventGrid.DeliveryMode.Queue,
Queue = new AzureNative.EventGrid.Inputs.QueueInfoArgs
{
EventTimeToLive = "P1D",
MaxDeliveryCount = 4,
ReceiveLockDurationInSeconds = 60,
},
},
EventDeliverySchema = AzureNative.EventGrid.DeliverySchema.CloudEventSchemaV1_0,
EventSubscriptionName = "examplenamespacetopicEventSub2",
NamespaceName = "examplenamespace2",
ResourceGroupName = "examplerg",
TopicName = "examplenamespacetopic2",
});
});
Content copied to clipboard
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.NewNamespaceTopicEventSubscription(ctx, "namespaceTopicEventSubscription", &eventgrid.NamespaceTopicEventSubscriptionArgs{
DeliveryConfiguration: &eventgrid.DeliveryConfigurationArgs{
DeliveryMode: pulumi.String(eventgrid.DeliveryModeQueue),
Queue: &eventgrid.QueueInfoArgs{
EventTimeToLive: pulumi.String("P1D"),
MaxDeliveryCount: pulumi.Int(4),
ReceiveLockDurationInSeconds: pulumi.Int(60),
},
},
EventDeliverySchema: pulumi.String(eventgrid.DeliverySchema_CloudEventSchemaV1_0),
EventSubscriptionName: pulumi.String("examplenamespacetopicEventSub2"),
NamespaceName: pulumi.String("examplenamespace2"),
ResourceGroupName: pulumi.String("examplerg"),
TopicName: pulumi.String("examplenamespacetopic2"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.eventgrid.NamespaceTopicEventSubscription;
import com.pulumi.azurenative.eventgrid.NamespaceTopicEventSubscriptionArgs;
import com.pulumi.azurenative.eventgrid.inputs.DeliveryConfigurationArgs;
import com.pulumi.azurenative.eventgrid.inputs.QueueInfoArgs;
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 namespaceTopicEventSubscription = new NamespaceTopicEventSubscription("namespaceTopicEventSubscription", NamespaceTopicEventSubscriptionArgs.builder()
.deliveryConfiguration(DeliveryConfigurationArgs.builder()
.deliveryMode("Queue")
.queue(QueueInfoArgs.builder()
.eventTimeToLive("P1D")
.maxDeliveryCount(4)
.receiveLockDurationInSeconds(60)
.build())
.build())
.eventDeliverySchema("CloudEventSchemaV1_0")
.eventSubscriptionName("examplenamespacetopicEventSub2")
.namespaceName("examplenamespace2")
.resourceGroupName("examplerg")
.topicName("examplenamespacetopic2")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventgrid:NamespaceTopicEventSubscription examplenamespacetopicEventSub2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topics/{topicName}/eventSubscriptions/{eventSubscriptionName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(deliveryConfiguration: Output<DeliveryConfigurationArgs>? = null, eventDeliverySchema: Output<Either<String, DeliverySchema>>? = null, eventSubscriptionName: Output<String>? = null, filtersConfiguration: Output<FiltersConfigurationArgs>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, topicName: Output<String>? = null)
Properties
Link copied to clipboard
Information about the delivery configuration of the event subscription.
Link copied to clipboard
The event delivery schema for the event subscription.
Link copied to clipboard
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
Information about the filter for the event subscription.
Link copied to clipboard
Name of the namespace.
Link copied to clipboard
The name of the resource group within the user's subscription.