1. Packages
  2. Azure Native v1
  3. API Docs
  4. notificationhubs
  5. Namespace
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.notificationhubs.Namespace

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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 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.SkuArgs(
            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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  provisioning_state: Optional[str] = None,
                  name: Optional[str] = None,
                  region: Optional[str] = None,
                  location: Optional[str] = None,
                  critical: Optional[bool] = None,
                  namespace_name: Optional[str] = None,
                  namespace_type: Optional[NamespaceType] = None,
                  scale_unit: Optional[str] = None,
                  enabled: Optional[bool] = None,
                  data_center: Optional[str] = None,
                  created_at: 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)
    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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var azure_nativeNamespaceResource = new AzureNative.Notificationhubs.Namespace("azure-nativeNamespaceResource", new()
    {
        ResourceGroupName = "string",
        ProvisioningState = "string",
        Name = "string",
        Region = "string",
        Location = "string",
        Critical = false,
        NamespaceName = "string",
        NamespaceType = "Messaging",
        ScaleUnit = "string",
        Enabled = false,
        DataCenter = "string",
        CreatedAt = "string",
        ServiceBusEndpoint = "string",
        Sku = 
        {
            { "name", "string" },
            { "capacity", 0 },
            { "family", "string" },
            { "size", "string" },
            { "tier", "string" },
        },
        Status = "string",
        SubscriptionId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        UpdatedAt = "string",
    });
    
    example, err := notificationhubs.NewNamespace(ctx, "azure-nativeNamespaceResource", &notificationhubs.NamespaceArgs{
    	ResourceGroupName:  "string",
    	ProvisioningState:  "string",
    	Name:               "string",
    	Region:             "string",
    	Location:           "string",
    	Critical:           false,
    	NamespaceName:      "string",
    	NamespaceType:      "Messaging",
    	ScaleUnit:          "string",
    	Enabled:            false,
    	DataCenter:         "string",
    	CreatedAt:          "string",
    	ServiceBusEndpoint: "string",
    	Sku: map[string]interface{}{
    		"name":     "string",
    		"capacity": 0,
    		"family":   "string",
    		"size":     "string",
    		"tier":     "string",
    	},
    	Status:         "string",
    	SubscriptionId: "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    	UpdatedAt: "string",
    })
    
    var azure_nativeNamespaceResource = new Namespace("azure-nativeNamespaceResource", NamespaceArgs.builder()
        .resourceGroupName("string")
        .provisioningState("string")
        .name("string")
        .region("string")
        .location("string")
        .critical(false)
        .namespaceName("string")
        .namespaceType("Messaging")
        .scaleUnit("string")
        .enabled(false)
        .dataCenter("string")
        .createdAt("string")
        .serviceBusEndpoint("string")
        .sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .status("string")
        .subscriptionId("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .updatedAt("string")
        .build());
    
    azure_native_namespace_resource = azure_native.notificationhubs.Namespace("azure-nativeNamespaceResource",
        resource_group_name=string,
        provisioning_state=string,
        name=string,
        region=string,
        location=string,
        critical=False,
        namespace_name=string,
        namespace_type=Messaging,
        scale_unit=string,
        enabled=False,
        data_center=string,
        created_at=string,
        service_bus_endpoint=string,
        sku={
            name: string,
            capacity: 0,
            family: string,
            size: string,
            tier: string,
        },
        status=string,
        subscription_id=string,
        tags={
            string: string,
        },
        updated_at=string)
    
    const azure_nativeNamespaceResource = new azure_native.notificationhubs.Namespace("azure-nativeNamespaceResource", {
        resourceGroupName: "string",
        provisioningState: "string",
        name: "string",
        region: "string",
        location: "string",
        critical: false,
        namespaceName: "string",
        namespaceType: "Messaging",
        scaleUnit: "string",
        enabled: false,
        dataCenter: "string",
        createdAt: "string",
        serviceBusEndpoint: "string",
        sku: {
            name: "string",
            capacity: 0,
            family: "string",
            size: "string",
            tier: "string",
        },
        status: "string",
        subscriptionId: "string",
        tags: {
            string: "string",
        },
        updatedAt: "string",
    });
    
    type: azure-native:notificationhubs:Namespace
    properties:
        createdAt: string
        critical: false
        dataCenter: string
        enabled: false
        location: string
        name: string
        namespaceName: string
        namespaceType: Messaging
        provisioningState: string
        region: string
        resourceGroupName: string
        scaleUnit: string
        serviceBusEndpoint: string
        sku:
            capacity: 0
            family: string
            name: string
            size: string
            tier: string
        status: string
        subscriptionId: string
        tags:
            string: string
        updatedAt: string
    

    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.Sku
    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 Sku
    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 Sku
    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, NamespaceTypeArgs

    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, SkuArgs

    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, SkuNameArgs

    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, SkuResponseArgs

    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 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi