System Topic Event Subscription Args
data class SystemTopicEventSubscriptionArgs(val advancedFilter: Output<SystemTopicEventSubscriptionAdvancedFilterArgs>? = null, val advancedFilteringOnArraysEnabled: Output<Boolean>? = null, val azureFunctionEndpoint: Output<SystemTopicEventSubscriptionAzureFunctionEndpointArgs>? = null, val deadLetterIdentity: Output<SystemTopicEventSubscriptionDeadLetterIdentityArgs>? = null, val deliveryIdentity: Output<SystemTopicEventSubscriptionDeliveryIdentityArgs>? = null, val deliveryProperties: Output<List<SystemTopicEventSubscriptionDeliveryPropertyArgs>>? = null, val eventDeliverySchema: Output<String>? = null, val eventhubEndpointId: Output<String>? = null, val expirationTimeUtc: Output<String>? = null, val hybridConnectionEndpointId: Output<String>? = null, val includedEventTypes: Output<List<String>>? = null, val labels: Output<List<String>>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val retryPolicy: Output<SystemTopicEventSubscriptionRetryPolicyArgs>? = null, val serviceBusQueueEndpointId: Output<String>? = null, val serviceBusTopicEndpointId: Output<String>? = null, val storageBlobDeadLetterDestination: Output<SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgs>? = null, val storageQueueEndpoint: Output<SystemTopicEventSubscriptionStorageQueueEndpointArgs>? = null, val subjectFilter: Output<SystemTopicEventSubscriptionSubjectFilterArgs>? = null, val systemTopic: Output<String>? = null, val webhookEndpoint: Output<SystemTopicEventSubscriptionWebhookEndpointArgs>? = null) : ConvertibleToJava<SystemTopicEventSubscriptionArgs>
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun SystemTopicEventSubscriptionArgs(advancedFilter: Output<SystemTopicEventSubscriptionAdvancedFilterArgs>? = null, advancedFilteringOnArraysEnabled: Output<Boolean>? = null, azureFunctionEndpoint: Output<SystemTopicEventSubscriptionAzureFunctionEndpointArgs>? = null, deadLetterIdentity: Output<SystemTopicEventSubscriptionDeadLetterIdentityArgs>? = null, deliveryIdentity: Output<SystemTopicEventSubscriptionDeliveryIdentityArgs>? = null, deliveryProperties: Output<List<SystemTopicEventSubscriptionDeliveryPropertyArgs>>? = null, eventDeliverySchema: Output<String>? = null, eventhubEndpointId: Output<String>? = null, expirationTimeUtc: Output<String>? = null, hybridConnectionEndpointId: Output<String>? = null, includedEventTypes: Output<List<String>>? = null, labels: Output<List<String>>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, retryPolicy: Output<SystemTopicEventSubscriptionRetryPolicyArgs>? = null, serviceBusQueueEndpointId: Output<String>? = null, serviceBusTopicEndpointId: Output<String>? = null, storageBlobDeadLetterDestination: Output<SystemTopicEventSubscriptionStorageBlobDeadLetterDestinationArgs>? = null, storageQueueEndpoint: Output<SystemTopicEventSubscriptionStorageQueueEndpointArgs>? = null, subjectFilter: Output<SystemTopicEventSubscriptionSubjectFilterArgs>? = null, systemTopic: Output<String>? = null, webhookEndpoint: Output<SystemTopicEventSubscriptionWebhookEndpointArgs>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard