Namespace Args
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" },
},
});
});
Content copied to clipboard
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", ¬ificationhubs.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("nh-sdk-ns"),
ResourceGroupName: pulumi.String("5ktrial"),
Sku: ¬ificationhubs.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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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
Data center for the namespace
Link copied to clipboard
The namespace name.
Link copied to clipboard
The namespace type.
Link copied to clipboard
Provisioning state of the Namespace.
Link copied to clipboard
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
The name of the resource group.
Link copied to clipboard
Endpoint you can use to perform NotificationHub operations.
Link copied to clipboard
The Id of the Azure subscription associated with the namespace.