NamespaceArgs

data class NamespaceArgs(val identity: Output<IdentityInfoArgs>? = null, val inboundIpRules: Output<List<InboundIpRuleArgs>>? = null, val isZoneRedundant: Output<Boolean>? = null, val location: Output<String>? = null, val minimumTlsVersionAllowed: Output<Either<String, TlsVersion>>? = null, val namespaceName: Output<String>? = null, val privateEndpointConnections: Output<List<PrivateEndpointConnectionArgs>>? = null, val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<NamespaceSkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val topicSpacesConfiguration: Output<TopicSpacesConfigurationArgs>? = null) : ConvertibleToJava<NamespaceArgs>

Namespace 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

Namespaces_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var @namespace = new AzureNative.EventGrid.Namespace("namespace", new()
{
Location = "westus",
NamespaceName = "exampleNamespaceName1",
ResourceGroupName = "examplerg",
Tags =
{
{ "tag1", "value11" },
{ "tag2", "value22" },
},
TopicSpacesConfiguration = new AzureNative.EventGrid.Inputs.TopicSpacesConfigurationArgs
{
RouteTopicResourceId = "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1",
State = AzureNative.EventGrid.TopicSpacesConfigurationState.Enabled,
},
});
});
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.NewNamespace(ctx, "namespace", &eventgrid.NamespaceArgs{
Location: pulumi.String("westus"),
NamespaceName: pulumi.String("exampleNamespaceName1"),
ResourceGroupName: pulumi.String("examplerg"),
Tags: pulumi.StringMap{
"tag1": pulumi.String("value11"),
"tag2": pulumi.String("value22"),
},
TopicSpacesConfiguration: &eventgrid.TopicSpacesConfigurationArgs{
RouteTopicResourceId: pulumi.String("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
State: pulumi.String(eventgrid.TopicSpacesConfigurationStateEnabled),
},
})
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.Namespace;
import com.pulumi.azurenative.eventgrid.NamespaceArgs;
import com.pulumi.azurenative.eventgrid.inputs.TopicSpacesConfigurationArgs;
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 namespace = new Namespace("namespace", NamespaceArgs.builder()
.location("westus")
.namespaceName("exampleNamespaceName1")
.resourceGroupName("examplerg")
.tags(Map.ofEntries(
Map.entry("tag1", "value11"),
Map.entry("tag2", "value22")
))
.topicSpacesConfiguration(TopicSpacesConfigurationArgs.builder()
.routeTopicResourceId("/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1")
.state("Enabled")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:eventgrid:Namespace exampleNamespaceName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/namespaces/{namespaceName}

Constructors

Link copied to clipboard
constructor(identity: Output<IdentityInfoArgs>? = null, inboundIpRules: Output<List<InboundIpRuleArgs>>? = null, isZoneRedundant: Output<Boolean>? = null, location: Output<String>? = null, minimumTlsVersionAllowed: Output<Either<String, TlsVersion>>? = null, namespaceName: Output<String>? = null, privateEndpointConnections: Output<List<PrivateEndpointConnectionArgs>>? = null, publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, resourceGroupName: Output<String>? = null, sku: Output<NamespaceSkuArgs>? = null, tags: Output<Map<String, String>>? = null, topicSpacesConfiguration: Output<TopicSpacesConfigurationArgs>? = null)

Properties

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

Identity information for the Namespace resource.

Link copied to clipboard
val inboundIpRules: Output<List<InboundIpRuleArgs>>? = null

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

Link copied to clipboard
val isZoneRedundant: Output<Boolean>? = null

Allows the user to specify if the service is zone-redundant. This is a required property and user needs to specify this value explicitly. Once specified, this property cannot be updated.

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

Location of the resource.

Link copied to clipboard
val minimumTlsVersionAllowed: Output<Either<String, TlsVersion>>? = null

Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.

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

Name of the namespace.

Link copied to clipboard
val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null

This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring

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 sku: Output<NamespaceSkuArgs>? = null

Represents available Sku pricing tiers.

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

Tags of the resource.

Link copied to clipboard

Topic spaces configuration information for the namespace resource

Functions

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