Namespace

class Namespace : KotlinCustomResource

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

Example Usage

NameSpaceCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var @namespace = new AzureNative.ServiceBus.Namespace("namespace", new()
{
Location = "South Central US",
NamespaceName = "sdk-Namespace2924",
ResourceGroupName = "ArunMonocle",
Sku = new AzureNative.ServiceBus.Inputs.SBSkuArgs
{
Name = AzureNative.ServiceBus.SkuName.Standard,
Tier = AzureNative.ServiceBus.SkuTier.Standard,
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicebus.NewNamespace(ctx, "namespace", &servicebus.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("sdk-Namespace2924"),
ResourceGroupName: pulumi.String("ArunMonocle"),
Sku: &servicebus.SBSkuArgs{
Name: servicebus.SkuNameStandard,
Tier: servicebus.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.servicebus.Namespace;
import com.pulumi.azurenative.servicebus.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("South Central US")
.namespaceName("sdk-Namespace2924")
.resourceGroupName("ArunMonocle")
.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:servicebus:Namespace sdk-Namespace-2924 /subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924

Properties

Link copied to clipboard
val createdAt: Output<String>

The time the namespace was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The Geo-location where the resource lives

Link copied to clipboard
val metricId: Output<String>

Identifier for Azure Insights metrics

Link copied to clipboard
val name: Output<String>

Resource name

Link copied to clipboard

Provisioning state of the namespace.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Endpoint you can use to perform Service Bus operations.

Link copied to clipboard
val sku: Output<SBSkuResponse>?

Properties of Sku

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

Resource tags

Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val updatedAt: Output<String>

The time the namespace was updated.

Link copied to clipboard
val urn: Output<String>