azure-native.servicebus.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.ServiceBus.Namespace("namespace", new()
{
Location = "South Central US",
NamespaceName = "sdk-Namespace2924",
ResourceGroupName = "ArunMonocle",
Sku = new AzureNative.ServiceBus.Inputs.SBSkuArgs
{
Name = AzureNative.ServiceBus.SkuName.Standard,
Tier = AzureNative.ServiceBus.SkuTier.Standard,
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicebus.NewNamespace(ctx, "namespace", &servicebus.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("sdk-Namespace2924"),
ResourceGroupName: pulumi.String("ArunMonocle"),
Sku: &servicebus.SBSkuArgs{
Name: servicebus.SkuNameStandard,
Tier: servicebus.SkuTierStandard,
},
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.servicebus.Namespace;
import com.pulumi.azurenative.servicebus.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("sdk-Namespace2924")
.resourceGroupName("ArunMonocle")
.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.servicebus.Namespace("namespace",
location="South Central US",
namespace_name="sdk-Namespace2924",
resource_group_name="ArunMonocle",
sku=azure_native.servicebus.SBSkuArgs(
name=azure_native.servicebus.SkuName.STANDARD,
tier=azure_native.servicebus.SkuTier.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.servicebus.Namespace("namespace", {
location: "South Central US",
namespaceName: "sdk-Namespace2924",
resourceGroupName: "ArunMonocle",
sku: {
name: azure_native.servicebus.SkuName.Standard,
tier: azure_native.servicebus.SkuTier.Standard,
},
tags: {
tag1: "value1",
tag2: "value2",
},
});
resources:
namespace:
type: azure-native:servicebus:Namespace
properties:
location: South Central US
namespaceName: sdk-Namespace2924
resourceGroupName: ArunMonocle
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,
location: Optional[str] = None,
namespace_name: Optional[str] = None,
sku: Optional[SBSkuArgs] = None,
tags: Optional[Mapping[str, 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:servicebus: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 examplenamespaceResourceResourceFromServicebus = new AzureNative.Servicebus.Namespace("examplenamespaceResourceResourceFromServicebus", new()
{
ResourceGroupName = "string",
Location = "string",
NamespaceName = "string",
Sku =
{
{ "name", "Basic" },
{ "capacity", 0 },
{ "tier", "Basic" },
},
Tags =
{
{ "string", "string" },
},
});
example, err := servicebus.NewNamespace(ctx, "examplenamespaceResourceResourceFromServicebus", &servicebus.NamespaceArgs{
ResourceGroupName: "string",
Location: "string",
NamespaceName: "string",
Sku: map[string]interface{}{
"name": "Basic",
"capacity": 0,
"tier": "Basic",
},
Tags: map[string]interface{}{
"string": "string",
},
})
var examplenamespaceResourceResourceFromServicebus = new Namespace("examplenamespaceResourceResourceFromServicebus", NamespaceArgs.builder()
.resourceGroupName("string")
.location("string")
.namespaceName("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
examplenamespace_resource_resource_from_servicebus = azure_native.servicebus.Namespace("examplenamespaceResourceResourceFromServicebus",
resource_group_name=string,
location=string,
namespace_name=string,
sku={
name: Basic,
capacity: 0,
tier: Basic,
},
tags={
string: string,
})
const examplenamespaceResourceResourceFromServicebus = new azure_native.servicebus.Namespace("examplenamespaceResourceResourceFromServicebus", {
resourceGroupName: "string",
location: "string",
namespaceName: "string",
sku: {
name: "Basic",
capacity: 0,
tier: "Basic",
},
tags: {
string: "string",
},
});
type: azure-native:servicebus:Namespace
properties:
location: string
namespaceName: string
resourceGroupName: string
sku:
capacity: 0
name: Basic
tier: Basic
tags:
string: 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:
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Location string
- The Geo-location where the resource lives
- Namespace
Name string - The namespace name.
- Sku
Pulumi.
Azure Native. Service Bus. Inputs. SBSku - Properties of Sku
- Dictionary<string, string>
- Resource tags
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Location string
- The Geo-location where the resource lives
- Namespace
Name string - The namespace name.
- Sku
SBSku
Args - Properties of Sku
- map[string]string
- Resource tags
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- location String
- The Geo-location where the resource lives
- namespace
Name String - The namespace name.
- sku SBSku
- Properties of Sku
- Map<String,String>
- Resource tags
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- location string
- The Geo-location where the resource lives
- namespace
Name string - The namespace name.
- sku SBSku
- Properties of Sku
- {[key: string]: string}
- Resource tags
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- location str
- The Geo-location where the resource lives
- namespace_
name str - The namespace name.
- sku
SBSku
Args - Properties of Sku
- Mapping[str, str]
- Resource tags
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- location String
- The Geo-location where the resource lives
- namespace
Name String - The namespace name.
- sku Property Map
- Properties of Sku
- Map<String>
- Resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- Created
At string - The time the namespace was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string - Identifier for Azure Insights metrics
- Name string
- Resource name
- Provisioning
State string - Provisioning state of the namespace.
- Service
Bus stringEndpoint - Endpoint you can use to perform Service Bus operations.
- Type string
- Resource type
- Updated
At string - The time the namespace was updated.
- Created
At string - The time the namespace was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string - Identifier for Azure Insights metrics
- Name string
- Resource name
- Provisioning
State string - Provisioning state of the namespace.
- Service
Bus stringEndpoint - Endpoint you can use to perform Service Bus operations.
- Type string
- Resource type
- Updated
At string - The time the namespace was updated.
- created
At String - The time the namespace was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metric
Id String - Identifier for Azure Insights metrics
- name String
- Resource name
- provisioning
State String - Provisioning state of the namespace.
- service
Bus StringEndpoint - Endpoint you can use to perform Service Bus operations.
- type String
- Resource type
- updated
At String - The time the namespace was updated.
- created
At string - The time the namespace was created.
- id string
- The provider-assigned unique ID for this managed resource.
- metric
Id string - Identifier for Azure Insights metrics
- name string
- Resource name
- provisioning
State string - Provisioning state of the namespace.
- service
Bus stringEndpoint - Endpoint you can use to perform Service Bus operations.
- type string
- Resource type
- updated
At string - The time the namespace was updated.
- created_
at str - The time the namespace was created.
- id str
- The provider-assigned unique ID for this managed resource.
- metric_
id str - Identifier for Azure Insights metrics
- name str
- Resource name
- provisioning_
state str - Provisioning state of the namespace.
- service_
bus_ strendpoint - Endpoint you can use to perform Service Bus operations.
- type str
- Resource type
- updated_
at str - The time the namespace was updated.
- created
At String - The time the namespace was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metric
Id String - Identifier for Azure Insights metrics
- name String
- Resource name
- provisioning
State String - Provisioning state of the namespace.
- service
Bus StringEndpoint - Endpoint you can use to perform Service Bus operations.
- type String
- Resource type
- updated
At String - The time the namespace was updated.
Supporting Types
SBSku, SBSkuArgs
- Name
Pulumi.
Azure Native. Service Bus. Sku Name - Name of this SKU.
- Capacity int
- The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
- Tier
Pulumi.
Azure Native. Service Bus. Sku Tier - The billing tier of this particular SKU.
- name "Basic" | "Standard" | "Premium"
- Name of this SKU.
- capacity Number
- The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
- tier "Basic" | "Standard" | "Premium"
- The billing tier of this particular SKU.
SBSkuResponse, SBSkuResponseArgs
SkuName, SkuNameArgs
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Sku
Name Basic - Basic
- Sku
Name Standard - Standard
- Sku
Name Premium - Premium
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- BASIC
- Basic
- STANDARD
- Standard
- PREMIUM
- Premium
- "Basic"
- Basic
- "Standard"
- Standard
- "Premium"
- Premium
SkuTier, SkuTierArgs
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Sku
Tier Basic - Basic
- Sku
Tier Standard - Standard
- Sku
Tier Premium - Premium
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- BASIC
- Basic
- STANDARD
- Standard
- PREMIUM
- Premium
- "Basic"
- Basic
- "Standard"
- Standard
- "Premium"
- Premium
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicebus:Namespace sdk-Namespace-2924 /subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/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