Namespace Args
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. Azure REST API version: 2023-06-01-preview.
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 = "Enabled",
},
});
});
Content copied to clipboard
package main
import (
"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("Enabled"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("routeTopicResourceId", "/subscriptions/8f6b6269-84f2-4d09-9e31-1127efcd1e40/resourceGroups/examplerg/providers/Microsoft.EventGrid/topics/exampleTopic1"),
Map.entry("state", "Enabled")
))
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
fun NamespaceArgs(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)