Namespace
Manages a Notification Hub Namespace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "Australia East",
});
var exampleNamespace = new Azure.NotificationHub.Namespace("exampleNamespace", new Azure.NotificationHub.NamespaceArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
NamespaceType = "NotificationHub",
SkuName = "Free",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("Australia East"),
})
if err != nil {
return err
}
_, err = notificationhub.NewNamespace(ctx, "exampleNamespace", ¬ificationhub.NamespaceArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
NamespaceType: pulumi.String("NotificationHub"),
SkuName: pulumi.String("Free"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="Australia East")
example_namespace = azure.notificationhub.Namespace("exampleNamespace",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
namespace_type="NotificationHub",
sku_name="Free")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "Australia East"});
const exampleNamespace = new azure.notificationhub.Namespace("exampleNamespace", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
namespaceType: "NotificationHub",
skuName: "Free",
});Create a Namespace Resource
new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);def Namespace(resource_name, opts=None, enabled=None, location=None, name=None, namespace_type=None, resource_group_name=None, sku_name=None, tags=None, __props__=None);func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
Namespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Namespace resource accepts the following input properties:
- Namespace
Type string The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- Resource
Group stringName The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- Sku
Name string The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- Enabled bool
Is this Notification Hub Namespace enabled? Defaults to
true.- Location string
The Azure Region in which this Notification Hub Namespace should be created.
- Name string
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Namespace
Type string The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- Resource
Group stringName The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- Sku
Name string The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- Enabled bool
Is this Notification Hub Namespace enabled? Defaults to
true.- Location string
The Azure Region in which this Notification Hub Namespace should be created.
- Name string
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- namespace
Type string The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- resource
Group stringName The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- sku
Name string The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- enabled boolean
Is this Notification Hub Namespace enabled? Defaults to
true.- location string
The Azure Region in which this Notification Hub Namespace should be created.
- name string
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- namespace_
type str The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- resource_
group_ strname The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- sku_
name str The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- enabled bool
Is this Notification Hub Namespace enabled? Defaults to
true.- location str
The Azure Region in which this Notification Hub Namespace should be created.
- name str
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
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.
- Servicebus
Endpoint string The ServiceBus Endpoint for this Notification Hub Namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Servicebus
Endpoint string The ServiceBus Endpoint for this Notification Hub Namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- servicebus
Endpoint string The ServiceBus Endpoint for this Notification Hub Namespace.
- id str
- The provider-assigned unique ID for this managed resource.
- servicebus_
endpoint str The ServiceBus Endpoint for this Notification Hub Namespace.
Look up an Existing Namespace Resource
Get an existing Namespace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceState, opts?: CustomResourceOptions): Namespacestatic get(resource_name, id, opts=None, enabled=None, location=None, name=None, namespace_type=None, resource_group_name=None, servicebus_endpoint=None, sku_name=None, tags=None, __props__=None);func GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Enabled bool
Is this Notification Hub Namespace enabled? Defaults to
true.- Location string
The Azure Region in which this Notification Hub Namespace should be created.
- Name string
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- Namespace
Type string The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- Resource
Group stringName The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- Servicebus
Endpoint string The ServiceBus Endpoint for this Notification Hub Namespace.
- Sku
Name string The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Enabled bool
Is this Notification Hub Namespace enabled? Defaults to
true.- Location string
The Azure Region in which this Notification Hub Namespace should be created.
- Name string
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- Namespace
Type string The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- Resource
Group stringName The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- Servicebus
Endpoint string The ServiceBus Endpoint for this Notification Hub Namespace.
- Sku
Name string The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- enabled boolean
Is this Notification Hub Namespace enabled? Defaults to
true.- location string
The Azure Region in which this Notification Hub Namespace should be created.
- name string
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- namespace
Type string The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- resource
Group stringName The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- servicebus
Endpoint string The ServiceBus Endpoint for this Notification Hub Namespace.
- sku
Name string The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- enabled bool
Is this Notification Hub Namespace enabled? Defaults to
true.- location str
The Azure Region in which this Notification Hub Namespace should be created.
- name str
The name to use for this Notification Hub Namespace. Changing this forces a new resource to be created.
- namespace_
type str The Type of Namespace - possible values are
MessagingorNotificationHub. Changing this forces a new resource to be created.- resource_
group_ strname The name of the Resource Group in which the Notification Hub Namespace should exist. Changing this forces a new resource to be created.
- servicebus_
endpoint str The ServiceBus Endpoint for this Notification Hub Namespace.
- sku_
name str The name of the SKU to use for this Notification Hub Namespace. Possible values are
Free,BasicorStandard. Changing this forces a new resource to be created.- Dict[str, str]
A mapping of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.