Azure Native

v1.87.0 published on Tuesday, Nov 22, 2022 by Pulumi

Namespace

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

Example Usage

NameSpaceCreate

using System.Collections.Generic;
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/go/azure/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.SkuResponse{
				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 pulumi
import pulumi_azure_native as azure_native

namespace = azure_native.notificationhubs.Namespace("namespace",
    location="South Central US",
    namespace_name="nh-sdk-ns",
    resource_group_name="5ktrial",
    sku=azure_native.notificationhubs.SkuResponseArgs(
        name="Standard",
        tier="Standard",
    ),
    tags={
        "tag1": "value1",
        "tag2": "value2",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const namespace = new azure_native.notificationhubs.Namespace("namespace", {
    location: "South Central US",
    namespaceName: "nh-sdk-ns",
    resourceGroupName: "5ktrial",
    sku: {
        name: "Standard",
        tier: "Standard",
    },
    tags: {
        tag1: "value1",
        tag2: "value2",
    },
});
resources:
  namespace:
    type: azure-native:notificationhubs:Namespace
    properties:
      location: South Central US
      namespaceName: nh-sdk-ns
      resourceGroupName: 5ktrial
      sku:
        name: Standard
        tier: Standard
      tags:
        tag1: value1
        tag2: value2

Create Namespace Resource

new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
@overload
def Namespace(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              created_at: Optional[str] = None,
              critical: Optional[bool] = None,
              data_center: Optional[str] = None,
              enabled: Optional[bool] = None,
              location: Optional[str] = None,
              name: Optional[str] = None,
              namespace_name: Optional[str] = None,
              namespace_type: Optional[NamespaceType] = None,
              provisioning_state: Optional[str] = None,
              region: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              scale_unit: Optional[str] = None,
              service_bus_endpoint: Optional[str] = None,
              sku: Optional[SkuArgs] = None,
              status: Optional[str] = None,
              subscription_id: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None,
              updated_at: Optional[str] = None)
@overload
def Namespace(resource_name: str,
              args: NamespaceArgs,
              opts: Optional[ResourceOptions] = None)
func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
public Namespace(String name, NamespaceArgs args)
public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
type: azure-native:notificationhubs:Namespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args NamespaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Namespace Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Namespace resource accepts the following input properties:

ResourceGroupName string

The name of the resource group.

CreatedAt string

The time the namespace was created.

Critical bool

Whether or not the namespace is set as Critical.

DataCenter string

Data center for the namespace

Enabled bool

Whether or not the namespace is currently enabled.

Location string

Resource location

Name string

The name of the namespace.

NamespaceName string

The namespace name.

NamespaceType Pulumi.AzureNative.NotificationHubs.NamespaceType

The namespace type.

ProvisioningState string

Provisioning state of the Namespace.

Region 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

ScaleUnit string

ScaleUnit where the namespace gets created

ServiceBusEndpoint string

Endpoint you can use to perform NotificationHub operations.

Sku Pulumi.AzureNative.NotificationHubs.Inputs.SkuArgs

The sku of the created namespace

Status string

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

SubscriptionId string

The Id of the Azure subscription associated with the namespace.

Tags Dictionary<string, string>

Resource tags

UpdatedAt string

The time the namespace was updated.

ResourceGroupName string

The name of the resource group.

CreatedAt string

The time the namespace was created.

Critical bool

Whether or not the namespace is set as Critical.

DataCenter string

Data center for the namespace

Enabled bool

Whether or not the namespace is currently enabled.

Location string

Resource location

Name string

The name of the namespace.

NamespaceName string

The namespace name.

NamespaceType NamespaceType

The namespace type.

ProvisioningState string

Provisioning state of the Namespace.

Region 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

ScaleUnit string

ScaleUnit where the namespace gets created

ServiceBusEndpoint string

Endpoint you can use to perform NotificationHub operations.

Sku SkuArgs

The sku of the created namespace

Status string

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

SubscriptionId string

The Id of the Azure subscription associated with the namespace.

Tags map[string]string

Resource tags

UpdatedAt string

The time the namespace was updated.

resourceGroupName String

The name of the resource group.

createdAt String

The time the namespace was created.

critical Boolean

Whether or not the namespace is set as Critical.

dataCenter String

Data center for the namespace

enabled Boolean

Whether or not the namespace is currently enabled.

location String

Resource location

name String

The name of the namespace.

namespaceName String

The namespace name.

namespaceType NamespaceType

The namespace type.

provisioningState String

Provisioning state of the Namespace.

region 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

scaleUnit String

ScaleUnit where the namespace gets created

serviceBusEndpoint String

Endpoint you can use to perform NotificationHub operations.

sku SkuArgs

The sku of the created namespace

status String

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

subscriptionId String

The Id of the Azure subscription associated with the namespace.

tags Map<String,String>

Resource tags

updatedAt String

The time the namespace was updated.

resourceGroupName string

The name of the resource group.

createdAt string

The time the namespace was created.

critical boolean

Whether or not the namespace is set as Critical.

dataCenter string

Data center for the namespace

enabled boolean

Whether or not the namespace is currently enabled.

location string

Resource location

name string

The name of the namespace.

namespaceName string

The namespace name.

namespaceType NamespaceType

The namespace type.

provisioningState string

Provisioning state of the Namespace.

region 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

scaleUnit string

ScaleUnit where the namespace gets created

serviceBusEndpoint string

Endpoint you can use to perform NotificationHub operations.

sku SkuArgs

The sku of the created namespace

status string

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

subscriptionId string

The Id of the Azure subscription associated with the namespace.

tags {[key: string]: string}

Resource tags

updatedAt string

The time the namespace was updated.

resource_group_name str

The name of the resource group.

created_at str

The time the namespace was created.

critical bool

Whether or not the namespace is set as Critical.

data_center str

Data center for the namespace

enabled bool

Whether or not the namespace is currently enabled.

location str

Resource location

name str

The name of the namespace.

namespace_name str

The namespace name.

namespace_type NamespaceType

The namespace type.

provisioning_state str

Provisioning state of the Namespace.

region str

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

scale_unit str

ScaleUnit where the namespace gets created

service_bus_endpoint str

Endpoint you can use to perform NotificationHub operations.

sku SkuArgs

The sku of the created namespace

status str

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

subscription_id str

The Id of the Azure subscription associated with the namespace.

tags Mapping[str, str]

Resource tags

updated_at str

The time the namespace was updated.

resourceGroupName String

The name of the resource group.

createdAt String

The time the namespace was created.

critical Boolean

Whether or not the namespace is set as Critical.

dataCenter String

Data center for the namespace

enabled Boolean

Whether or not the namespace is currently enabled.

location String

Resource location

name String

The name of the namespace.

namespaceName String

The namespace name.

namespaceType "Messaging" | "NotificationHub"

The namespace type.

provisioningState String

Provisioning state of the Namespace.

region 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

scaleUnit String

ScaleUnit where the namespace gets created

serviceBusEndpoint String

Endpoint you can use to perform NotificationHub operations.

sku Property Map

The sku of the created namespace

status String

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

subscriptionId String

The Id of the Azure subscription associated with the namespace.

tags Map<String>

Resource tags

updatedAt String

The time the namespace was updated.

Outputs

All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

MetricId string

Identifier for Azure Insights metrics

Type string

Resource type

Id string

The provider-assigned unique ID for this managed resource.

MetricId string

Identifier for Azure Insights metrics

Type string

Resource type

id String

The provider-assigned unique ID for this managed resource.

metricId String

Identifier for Azure Insights metrics

type String

Resource type

id string

The provider-assigned unique ID for this managed resource.

metricId string

Identifier for Azure Insights metrics

type string

Resource type

id str

The provider-assigned unique ID for this managed resource.

metric_id str

Identifier for Azure Insights metrics

type str

Resource type

id String

The provider-assigned unique ID for this managed resource.

metricId String

Identifier for Azure Insights metrics

type String

Resource type

Supporting Types

NamespaceType

Messaging
Messaging
NotificationHub
NotificationHub
NamespaceTypeMessaging
Messaging
NamespaceTypeNotificationHub
NotificationHub
Messaging
Messaging
NotificationHub
NotificationHub
Messaging
Messaging
NotificationHub
NotificationHub
MESSAGING
Messaging
NOTIFICATION_HUB
NotificationHub
"Messaging"
Messaging
"NotificationHub"
NotificationHub

Sku

Name string | Pulumi.AzureNative.NotificationHubs.SkuName

Name of the notification hub sku

Capacity int

The capacity of the resource

Family string

The Sku Family

Size string

The Sku size

Tier string

The tier of particular sku

Name string | SkuName

Name of the notification hub sku

Capacity int

The capacity of the resource

Family string

The Sku Family

Size string

The Sku size

Tier string

The tier of particular sku

name String | SkuName

Name of the notification hub sku

capacity Integer

The capacity of the resource

family String

The Sku Family

size String

The Sku size

tier String

The tier of particular sku

name string | SkuName

Name of the notification hub sku

capacity number

The capacity of the resource

family string

The Sku Family

size string

The Sku size

tier string

The tier of particular sku

name str | SkuName

Name of the notification hub sku

capacity int

The capacity of the resource

family str

The Sku Family

size str

The Sku size

tier str

The tier of particular sku

name String | "Free" | "Basic" | "Standard"

Name of the notification hub sku

capacity Number

The capacity of the resource

family String

The Sku Family

size String

The Sku size

tier String

The tier of particular sku

SkuName

Free
Free
Basic
Basic
Standard
Standard
SkuNameFree
Free
SkuNameBasic
Basic
SkuNameStandard
Standard
Free
Free
Basic
Basic
Standard
Standard
Free
Free
Basic
Basic
Standard
Standard
FREE
Free
BASIC
Basic
STANDARD
Standard
"Free"
Free
"Basic"
Basic
"Standard"
Standard

SkuResponse

Name string

Name of the notification hub sku

Capacity int

The capacity of the resource

Family string

The Sku Family

Size string

The Sku size

Tier string

The tier of particular sku

Name string

Name of the notification hub sku

Capacity int

The capacity of the resource

Family string

The Sku Family

Size string

The Sku size

Tier string

The tier of particular sku

name String

Name of the notification hub sku

capacity Integer

The capacity of the resource

family String

The Sku Family

size String

The Sku size

tier String

The tier of particular sku

name string

Name of the notification hub sku

capacity number

The capacity of the resource

family string

The Sku Family

size string

The Sku size

tier string

The tier of particular sku

name str

Name of the notification hub sku

capacity int

The capacity of the resource

family str

The Sku Family

size str

The Sku size

tier str

The tier of particular sku

name String

Name of the notification hub sku

capacity Number

The capacity of the resource

family String

The Sku Family

size String

The Sku size

tier String

The tier of particular sku

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0