SystemTopicArgs

data class SystemTopicArgs(val identity: Output<IdentityInfoArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val source: Output<String>? = null, val systemTopicName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val topicType: Output<String>? = null) : ConvertibleToJava<SystemTopicArgs>

EventGrid System Topic. Uses Azure REST API version 2022-06-15. In version 1.x of the Azure Native provider, it used API version 2021-06-01-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

SystemTopics_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var systemTopic = new AzureNative.EventGrid.SystemTopic("systemTopic", new()
{
Location = "westus2",
ResourceGroupName = "examplerg",
Source = "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e",
SystemTopicName = "exampleSystemTopic1",
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
TopicType = "microsoft.storage.storageaccounts",
});
});
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.NewSystemTopic(ctx, "systemTopic", &eventgrid.SystemTopicArgs{
Location: pulumi.String("westus2"),
ResourceGroupName: pulumi.String("examplerg"),
Source: pulumi.String("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e"),
SystemTopicName: pulumi.String("exampleSystemTopic1"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
TopicType: pulumi.String("microsoft.storage.storageaccounts"),
})
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.SystemTopic;
import com.pulumi.azurenative.eventgrid.SystemTopicArgs;
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 systemTopic = new SystemTopic("systemTopic", SystemTopicArgs.builder()
.location("westus2")
.resourceGroupName("examplerg")
.source("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourceGroups/azureeventgridrunnerrgcentraluseuap/providers/microsoft.storage/storageaccounts/pubstgrunnerb71cd29e")
.systemTopicName("exampleSystemTopic1")
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.topicType("microsoft.storage.storageaccounts")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:eventgrid:SystemTopic exampleSystemTopic2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}

Constructors

Link copied to clipboard
constructor(identity: Output<IdentityInfoArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, source: Output<String>? = null, systemTopicName: Output<String>? = null, tags: Output<Map<String, String>>? = null, topicType: Output<String>? = null)

Properties

Link copied to clipboard
val identity: Output<IdentityInfoArgs>? = null

Identity information for the resource.

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

Location of the resource.

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

Source for the system topic.

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

Name of the system topic.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags of the resource.

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

TopicType for the system topic.

Functions

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