NamespaceArgs

data class NamespaceArgs(val location: Output<String>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NamespaceArgs>

Description of a namespace resource. API Version: 2017-04-01.

Example Usage

RelayNamespaceCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var @namespace = new AzureNative.Relay.Namespace("namespace", new()
{
Location = "West US",
NamespaceName = "example-RelayNamespace-01",
ResourceGroupName = "resourcegroup",
Sku = new AzureNative.Relay.Inputs.SkuArgs
{
Name = AzureNative.Relay.SkuName.Standard,
Tier = AzureNative.Relay.SkuTier.Standard,
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewNamespace(ctx, "namespace", &relay.NamespaceArgs{
Location: pulumi.String("West US"),
NamespaceName: pulumi.String("example-RelayNamespace-01"),
ResourceGroupName: pulumi.String("resourcegroup"),
Sku: &relay.SkuArgs{
Name: relay.SkuNameStandard,
Tier: relay.SkuTierStandard,
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
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.relay.Namespace;
import com.pulumi.azurenative.relay.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("West US")
.namespaceName("example-RelayNamespace-01")
.resourceGroupName("resourcegroup")
.sku(Map.ofEntries(
Map.entry("name", "Standard"),
Map.entry("tier", "Standard")
))
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}

Import

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

$ pulumi import azure-native:relay:Namespace example-RelayNamespace-01 /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Resource location.

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

The namespace name

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

Name of the Resource group within the Azure subscription.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

SKU of the namespace.

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

Resource tags.

Functions

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