TopicSpaceArgs

data class TopicSpaceArgs(val description: Output<String>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val topicSpaceName: Output<String>? = null, val topicTemplates: Output<List<String>>? = null) : ConvertibleToJava<TopicSpaceArgs>

The Topic space resource. 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

TopicSpaces_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var topicSpace = new AzureNative.EventGrid.TopicSpace("topicSpace", new()
{
NamespaceName = "exampleNamespaceName1",
ResourceGroupName = "examplerg",
TopicSpaceName = "exampleTopicSpaceName1",
TopicTemplates = new[]
{
"filter1",
"filter2",
},
});
});
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.NewTopicSpace(ctx, "topicSpace", &eventgrid.TopicSpaceArgs{
NamespaceName: pulumi.String("exampleNamespaceName1"),
ResourceGroupName: pulumi.String("examplerg"),
TopicSpaceName: pulumi.String("exampleTopicSpaceName1"),
TopicTemplates: pulumi.StringArray{
pulumi.String("filter1"),
pulumi.String("filter2"),
},
})
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.TopicSpace;
import com.pulumi.azurenative.eventgrid.TopicSpaceArgs;
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 topicSpace = new TopicSpace("topicSpace", TopicSpaceArgs.builder()
.namespaceName("exampleNamespaceName1")
.resourceGroupName("examplerg")
.topicSpaceName("exampleTopicSpaceName1")
.topicTemplates(
"filter1",
"filter2")
.build());
}
}

Import

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

$ pulumi import azure-native:eventgrid:TopicSpace exampleTopicSpaceName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}/topicSpaces/{topicSpaceName}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, topicSpaceName: Output<String>? = null, topicTemplates: Output<List<String>>? = null)

Properties

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

Description for the Topic Space resource.

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

Name of the namespace.

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

The topic space name.

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

The topic filters in the topic space. Example: "topicTemplates": "devices/foo/bar", "devices/topic1/+", "devices/${principal.name}/${principal.attributes.keyName}" .

Functions

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