azure-native.notificationhubs.Namespace
Explore with Pulumi AI
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", ¬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
})
}
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", ¬ificationhubs.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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Namespace resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Created
At string - The time the namespace was created.
- Critical bool
- Whether or not the namespace is set as Critical.
- Data
Center 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.
- Namespace
Name string - The namespace name.
- Namespace
Type Pulumi.Azure Native. Notification Hubs. Namespace Type - The namespace type.
- Provisioning
State 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
- Scale
Unit string - ScaleUnit where the namespace gets created
- Service
Bus stringEndpoint - Endpoint you can use to perform NotificationHub operations.
- Sku
Pulumi.
Azure Native. Notification Hubs. 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
- Subscription
Id string - The Id of the Azure subscription associated with the namespace.
- Dictionary<string, string>
- Resource tags
- Updated
At string - The time the namespace was updated.
- Resource
Group stringName - The name of the resource group.
- Created
At string - The time the namespace was created.
- Critical bool
- Whether or not the namespace is set as Critical.
- Data
Center 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.
- Namespace
Name string - The namespace name.
- Namespace
Type NamespaceType - The namespace type.
- Provisioning
State 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
- Scale
Unit string - ScaleUnit where the namespace gets created
- Service
Bus stringEndpoint - Endpoint you can use to perform NotificationHub operations.
- Sku
Sku
Args - 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
- Subscription
Id string - The Id of the Azure subscription associated with the namespace.
- map[string]string
- Resource tags
- Updated
At string - The time the namespace was updated.
- resource
Group StringName - The name of the resource group.
- created
At String - The time the namespace was created.
- critical Boolean
- Whether or not the namespace is set as Critical.
- data
Center 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.
- namespace
Name String - The namespace name.
- namespace
Type NamespaceType - The namespace type.
- provisioning
State 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
- scale
Unit String - ScaleUnit where the namespace gets created
- service
Bus StringEndpoint - 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
- subscription
Id String - The Id of the Azure subscription associated with the namespace.
- Map<String,String>
- Resource tags
- updated
At String - The time the namespace was updated.
- resource
Group stringName - The name of the resource group.
- created
At string - The time the namespace was created.
- critical boolean
- Whether or not the namespace is set as Critical.
- data
Center 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.
- namespace
Name string - The namespace name.
- namespace
Type NamespaceType - The namespace type.
- provisioning
State 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
- scale
Unit string - ScaleUnit where the namespace gets created
- service
Bus stringEndpoint - 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
- subscription
Id string - The Id of the Azure subscription associated with the namespace.
- {[key: string]: string}
- Resource tags
- updated
At string - The time the namespace was updated.
- resource_
group_ strname - 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_ strendpoint - Endpoint you can use to perform NotificationHub operations.
- sku
Sku
Args - 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.
- Mapping[str, str]
- Resource tags
- updated_
at str - The time the namespace was updated.
- resource
Group StringName - The name of the resource group.
- created
At String - The time the namespace was created.
- critical Boolean
- Whether or not the namespace is set as Critical.
- data
Center 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.
- namespace
Name String - The namespace name.
- namespace
Type "Messaging" | "NotificationHub" - The namespace type.
- provisioning
State 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
- scale
Unit String - ScaleUnit where the namespace gets created
- service
Bus StringEndpoint - 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
- subscription
Id String - The Id of the Azure subscription associated with the namespace.
- Map<String>
- Resource tags
- updated
At 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:
Supporting Types
NamespaceType, NamespaceTypeArgs
- Messaging
- Messaging
- Notification
Hub - NotificationHub
- Namespace
Type Messaging - Messaging
- Namespace
Type Notification Hub - NotificationHub
- Messaging
- Messaging
- Notification
Hub - NotificationHub
- Messaging
- Messaging
- Notification
Hub - NotificationHub
- MESSAGING
- Messaging
- NOTIFICATION_HUB
- NotificationHub
- "Messaging"
- Messaging
- "Notification
Hub" - NotificationHub
Sku, SkuArgs
SkuName, SkuNameArgs
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Sku
Name Free - Free
- Sku
Name Basic - Basic
- Sku
Name Standard - 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
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