azure-native.servicebus.Namespace
Explore with Pulumi AI
Description of a namespace resource. API Version: 2017-04-01.
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
This property is required. string - The unique name of the resource.
- args
This property is required. NamespaceArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. NamespaceArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NamespaceArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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
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 Name This property is required. Changes to this property will trigger replacement.
- Name of the Resource group within the Azure subscription.
- Location
Changes to this property will trigger replacement.
- The Geo-location where the resource lives
- Namespace
Name Changes to this property will trigger replacement.
- The namespace name.
- Sku
Pulumi.
Azure Native. Service Bus. Inputs. SBSku - Properties of Sku
- Dictionary<string, string>
- Resource tags
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the Resource group within the Azure subscription.
- Location
Changes to this property will trigger replacement.
- The Geo-location where the resource lives
- Namespace
Name Changes to this property will trigger replacement.
- The namespace name.
- Sku
SBSku
Args - Properties of Sku
- map[string]string
- Resource tags
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the Resource group within the Azure subscription.
- location
Changes to this property will trigger replacement.
- The Geo-location where the resource lives
- namespace
Name Changes to this property will trigger replacement.
- The namespace name.
- sku SBSku
- Properties of Sku
- Map<String,String>
- Resource tags
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the Resource group within the Azure subscription.
- location
Changes to this property will trigger replacement.
- The Geo-location where the resource lives
- namespace
Name Changes to this property will trigger replacement.
- The namespace name.
- sku SBSku
- Properties of Sku
- {[key: string]: string}
- Resource tags
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of the Resource group within the Azure subscription.
- location
Changes to this property will trigger replacement.
- The Geo-location where the resource lives
- namespace_
name Changes to this property will trigger replacement.
- The namespace name.
- sku
SBSku
Args - Properties of Sku
- Mapping[str, str]
- Resource tags
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of the Resource group within the Azure subscription.
- location
Changes to this property will trigger replacement.
- The Geo-location where the resource lives
- namespace
Name Changes to this property will trigger replacement.
- 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
This property is required. 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
This property is required. "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