SystemTopicEventSubscription

class SystemTopicEventSubscription : KotlinCustomResource

Manages an EventGrid System Topic Event Subscription.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Queue;
import com.pulumi.azure.storage.QueueArgs;
import com.pulumi.azure.eventgrid.SystemTopic;
import com.pulumi.azure.eventgrid.SystemTopicArgs;
import com.pulumi.azure.eventgrid.SystemTopicEventSubscription;
import com.pulumi.azure.eventgrid.SystemTopicEventSubscriptionArgs;
import com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionStorageQueueEndpointArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.tags(Map.of("environment", "staging"))
.build());
var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()
.storageAccountName(exampleAccount.name())
.build());
var exampleSystemTopic = new SystemTopic("exampleSystemTopic", SystemTopicArgs.builder()
.location("Global")
.resourceGroupName(exampleResourceGroup.name())
.sourceArmResourceId(exampleResourceGroup.id())
.topicType("Microsoft.Resources.ResourceGroups")
.build());
var exampleSystemTopicEventSubscription = new SystemTopicEventSubscription("exampleSystemTopicEventSubscription", SystemTopicEventSubscriptionArgs.builder()
.systemTopic(exampleSystemTopic.name())
.resourceGroupName(exampleResourceGroup.name())
.storageQueueEndpoint(SystemTopicEventSubscriptionStorageQueueEndpointArgs.builder()
.storageAccountId(exampleAccount.id())
.queueName(exampleQueue.name())
.build())
.build());
}
}

Import

EventGrid System Topic Event Subscriptions can be imported using the resource id, e.g.

$ pulumi import azure:eventgrid/systemTopicEventSubscription:SystemTopicEventSubscription example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/systemTopics/topic1/eventSubscriptions/subscription1

Properties

Link copied to clipboard

A advanced_filter block as defined below.

Link copied to clipboard

Specifies whether advanced filters should be evaluated against an array of values instead of expecting a singular value. Defaults to false.

Link copied to clipboard

An azure_function_endpoint block as defined below.

Link copied to clipboard

A dead_letter_identity block as defined below.

Link copied to clipboard

A delivery_identity block as defined below.

Link copied to clipboard

One or more delivery_property blocks as defined below.

Link copied to clipboard

Specifies the event delivery schema for the event subscription. Possible values include: EventGridSchema, CloudEventSchemaV1_0, CustomInputSchema. Defaults to EventGridSchema. Changing this forces a new resource to be created.

Link copied to clipboard

Specifies the id where the Event Hub is located.

Link copied to clipboard

Specifies the expiration time of the event subscription (Datetime Format RFC 3339).

Link copied to clipboard

Specifies the id where the Hybrid Connection is located.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A list of applicable event types that need to be part of the event subscription.

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

A list of labels to assign to the event subscription.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Event Subscription. Changing this forces a new Event Subscription to be created.

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

The name of the Resource Group where the System Topic exists. Changing this forces a new Event Subscription to be created.

Link copied to clipboard

A retry_policy block as defined below.

Link copied to clipboard

Specifies the id where the Service Bus Queue is located.

Link copied to clipboard

Specifies the id where the Service Bus Topic is located.

Link copied to clipboard

A storage_blob_dead_letter_destination block as defined below.

Link copied to clipboard

A storage_queue_endpoint block as defined below.

Link copied to clipboard

A subject_filter block as defined below.

Link copied to clipboard
val systemTopic: Output<String>

The System Topic where the Event Subscription should be created in. Changing this forces a new Event Subscription to be created.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

A webhook_endpoint block as defined below.