NamespaceArgs

data class NamespaceArgs(val createdAt: Output<String>? = null, val critical: Output<Boolean>? = null, val dataCenter: Output<String>? = null, val enabled: Output<Boolean>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val namespaceName: Output<String>? = null, val namespaceType: Output<NamespaceType>? = null, val provisioningState: Output<String>? = null, val region: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scaleUnit: Output<String>? = null, val serviceBusEndpoint: Output<String>? = null, val sku: Output<SkuArgs>? = null, val status: Output<String>? = null, val subscriptionId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val updatedAt: Output<String>? = null) : ConvertibleToJava<NamespaceArgs>

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

Constructors

Link copied to clipboard
constructor(createdAt: Output<String>? = null, critical: Output<Boolean>? = null, dataCenter: Output<String>? = null, enabled: Output<Boolean>? = null, location: Output<String>? = null, name: Output<String>? = null, namespaceName: Output<String>? = null, namespaceType: Output<NamespaceType>? = null, provisioningState: Output<String>? = null, region: Output<String>? = null, resourceGroupName: Output<String>? = null, scaleUnit: Output<String>? = null, serviceBusEndpoint: Output<String>? = null, sku: Output<SkuArgs>? = null, status: Output<String>? = null, subscriptionId: Output<String>? = null, tags: Output<Map<String, String>>? = null, updatedAt: Output<String>? = null)

Properties

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

The time the namespace was created.

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

Whether or not the namespace is set as Critical.

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

Data center for the namespace

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

Whether or not the namespace is currently enabled.

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

Resource location

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

The name of the namespace.

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

The namespace name.

Link copied to clipboard
val namespaceType: Output<NamespaceType>? = null

The namespace type.

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

Provisioning state of the Namespace.

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

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 resourceGroupName: Output<String>? = null

The name of the resource group.

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

ScaleUnit where the namespace gets created

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

Endpoint you can use to perform NotificationHub operations.

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

The sku of the created namespace

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

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>? = null

The Id of the Azure subscription associated with the namespace.

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

Resource tags

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

The time the namespace was updated.

Functions

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