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.NotificationHubs.Namespace("namespace", new()
{
Location = "South Central US",
NamespaceName = "nh-sdk-ns",
ResourceGroupName = "5ktrial",
Sku = new AzureNative.NotificationHubs.Inputs.SkuArgs
{
Name = "Standard",
Tier = "Standard",
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
notificationhubs "github.com/pulumi/pulumi-azure-native-sdk/notificationhubs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notificationhubs.NewNamespace(ctx, "namespace", &notificationhubs.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("nh-sdk-ns"),
ResourceGroupName: pulumi.String("5ktrial"),
Sku: &notificationhubs.SkuArgs{
Name: pulumi.String("Standard"),
Tier: pulumi.String("Standard"),
},
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.notificationhubs.Namespace;
import com.pulumi.azurenative.notificationhubs.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("nh-sdk-ns")
.resourceGroupName("5ktrial")
.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:notificationhubs:Namespace sdk-Namespace-2924 /subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-2924

Properties

Link copied to clipboard
val createdAt: Output<String>?

The time the namespace was created.

Link copied to clipboard
val critical: Output<Boolean>?

Whether or not the namespace is set as Critical.

Link copied to clipboard
val dataCenter: Output<String>?

Data center for the namespace

Link copied to clipboard
val enabled: Output<Boolean>?

Whether or not the namespace is currently enabled.

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

Resource location

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
val namespaceType: Output<String>?

The namespace type.

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
val region: Output<String>?

Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe

Link copied to clipboard
val scaleUnit: Output<String>?

ScaleUnit where the namespace gets created

Link copied to clipboard

Endpoint you can use to perform NotificationHub operations.

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

The sku of the created namespace

Link copied to clipboard
val status: Output<String>?

Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting

Link copied to clipboard
val subscriptionId: Output<String>?

The Id of the Azure subscription associated with the namespace.

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>