azure-native.eventhub.Namespace
Explore with Pulumi AI
Single Namespace item in List or Get Operation 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.EventHub.Namespace("namespace", new()
    {
        Location = "South Central US",
        NamespaceName = "sdk-Namespace-5849",
        ResourceGroupName = "ArunMonocle",
        Sku = new AzureNative.EventHub.Inputs.SkuArgs
        {
            Name = "Standard",
            Tier = "Standard",
        },
        Tags = 
        {
            { "tag1", "value1" },
            { "tag2", "value2" },
        },
    });
});
package main
import (
	eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := eventhub.NewNamespace(ctx, "namespace", &eventhub.NamespaceArgs{
			Location:          pulumi.String("South Central US"),
			NamespaceName:     pulumi.String("sdk-Namespace-5849"),
			ResourceGroupName: pulumi.String("ArunMonocle"),
			Sku: &eventhub.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.eventhub.Namespace;
import com.pulumi.azurenative.eventhub.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-Namespace-5849")
            .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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const namespace = new azure_native.eventhub.Namespace("namespace", {
    location: "South Central US",
    namespaceName: "sdk-Namespace-5849",
    resourceGroupName: "ArunMonocle",
    sku: {
        name: "Standard",
        tier: "Standard",
    },
    tags: {
        tag1: "value1",
        tag2: "value2",
    },
});
import pulumi
import pulumi_azure_native as azure_native
namespace = azure_native.eventhub.Namespace("namespace",
    location="South Central US",
    namespace_name="sdk-Namespace-5849",
    resource_group_name="ArunMonocle",
    sku=azure_native.eventhub.SkuArgs(
        name="Standard",
        tier="Standard",
    ),
    tags={
        "tag1": "value1",
        "tag2": "value2",
    })
resources:
  namespace:
    type: azure-native:eventhub:Namespace
    properties:
      location: South Central US
      namespaceName: sdk-Namespace-5849
      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,
              is_auto_inflate_enabled: Optional[bool] = None,
              kafka_enabled: Optional[bool] = None,
              location: Optional[str] = None,
              maximum_throughput_units: Optional[int] = None,
              namespace_name: Optional[str] = None,
              sku: Optional[SkuArgs] = 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:eventhub: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 namespaceResource = new AzureNative.Eventhub.Namespace("namespaceResource", new()
{
    ResourceGroupName = "string",
    IsAutoInflateEnabled = false,
    KafkaEnabled = false,
    Location = "string",
    MaximumThroughputUnits = 0,
    NamespaceName = "string",
    Sku = 
    {
        { "name", "string" },
        { "capacity", 0 },
        { "tier", "string" },
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := eventhub.NewNamespace(ctx, "namespaceResource", &eventhub.NamespaceArgs{
	ResourceGroupName:      "string",
	IsAutoInflateEnabled:   false,
	KafkaEnabled:           false,
	Location:               "string",
	MaximumThroughputUnits: 0,
	NamespaceName:          "string",
	Sku: map[string]interface{}{
		"name":     "string",
		"capacity": 0,
		"tier":     "string",
	},
	Tags: map[string]interface{}{
		"string": "string",
	},
})
var namespaceResource = new Namespace("namespaceResource", NamespaceArgs.builder()
    .resourceGroupName("string")
    .isAutoInflateEnabled(false)
    .kafkaEnabled(false)
    .location("string")
    .maximumThroughputUnits(0)
    .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());
namespace_resource = azure_native.eventhub.Namespace("namespaceResource",
    resource_group_name=string,
    is_auto_inflate_enabled=False,
    kafka_enabled=False,
    location=string,
    maximum_throughput_units=0,
    namespace_name=string,
    sku={
        name: string,
        capacity: 0,
        tier: string,
    },
    tags={
        string: string,
    })
const namespaceResource = new azure_native.eventhub.Namespace("namespaceResource", {
    resourceGroupName: "string",
    isAutoInflateEnabled: false,
    kafkaEnabled: false,
    location: "string",
    maximumThroughputUnits: 0,
    namespaceName: "string",
    sku: {
        name: "string",
        capacity: 0,
        tier: "string",
    },
    tags: {
        string: "string",
    },
});
type: azure-native:eventhub:Namespace
properties:
    isAutoInflateEnabled: false
    kafkaEnabled: false
    location: string
    maximumThroughputUnits: 0
    namespaceName: string
    resourceGroupName: string
    sku:
        capacity: 0
        name: string
        tier: string
    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:
- ResourceGroup stringName 
- Name of the resource group within the azure subscription.
- IsAuto boolInflate Enabled 
- Value that indicates whether AutoInflate is enabled for eventhub namespace.
- KafkaEnabled bool
- Value that indicates whether Kafka is enabled for eventhub namespace.
- Location string
- Resource location.
- MaximumThroughput intUnits 
- Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- NamespaceName string
- The Namespace name
- Sku
Pulumi.Azure Native. Event Hub. Inputs. Sku 
- Properties of sku resource
- Dictionary<string, string>
- Resource tags.
- ResourceGroup stringName 
- Name of the resource group within the azure subscription.
- IsAuto boolInflate Enabled 
- Value that indicates whether AutoInflate is enabled for eventhub namespace.
- KafkaEnabled bool
- Value that indicates whether Kafka is enabled for eventhub namespace.
- Location string
- Resource location.
- MaximumThroughput intUnits 
- Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- NamespaceName string
- The Namespace name
- Sku
SkuArgs 
- Properties of sku resource
- map[string]string
- Resource tags.
- resourceGroup StringName 
- Name of the resource group within the azure subscription.
- isAuto BooleanInflate Enabled 
- Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafkaEnabled Boolean
- Value that indicates whether Kafka is enabled for eventhub namespace.
- location String
- Resource location.
- maximumThroughput IntegerUnits 
- Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespaceName String
- The Namespace name
- sku Sku
- Properties of sku resource
- Map<String,String>
- Resource tags.
- resourceGroup stringName 
- Name of the resource group within the azure subscription.
- isAuto booleanInflate Enabled 
- Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafkaEnabled boolean
- Value that indicates whether Kafka is enabled for eventhub namespace.
- location string
- Resource location.
- maximumThroughput numberUnits 
- Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespaceName string
- The Namespace name
- sku Sku
- Properties of sku resource
- {[key: string]: string}
- Resource tags.
- resource_group_ strname 
- Name of the resource group within the azure subscription.
- is_auto_ boolinflate_ enabled 
- Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafka_enabled bool
- Value that indicates whether Kafka is enabled for eventhub namespace.
- location str
- Resource location.
- maximum_throughput_ intunits 
- Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespace_name str
- The Namespace name
- sku
SkuArgs 
- Properties of sku resource
- Mapping[str, str]
- Resource tags.
- resourceGroup StringName 
- Name of the resource group within the azure subscription.
- isAuto BooleanInflate Enabled 
- Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafkaEnabled Boolean
- Value that indicates whether Kafka is enabled for eventhub namespace.
- location String
- Resource location.
- maximumThroughput NumberUnits 
- Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespaceName String
- The Namespace name
- sku Property Map
- Properties of sku resource
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- CreatedAt string
- The time the Namespace was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- MetricId string
- Identifier for Azure Insights metrics.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning state of the Namespace.
- ServiceBus stringEndpoint 
- Endpoint you can use to perform Service Bus operations.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- UpdatedAt string
- The time the Namespace was updated.
- CreatedAt string
- The time the Namespace was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- MetricId string
- Identifier for Azure Insights metrics.
- Name string
- The name of the resource
- ProvisioningState string
- Provisioning state of the Namespace.
- ServiceBus stringEndpoint 
- Endpoint you can use to perform Service Bus operations.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- UpdatedAt string
- The time the Namespace was updated.
- createdAt String
- The time the Namespace was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metricId String
- Identifier for Azure Insights metrics.
- name String
- The name of the resource
- provisioningState String
- Provisioning state of the Namespace.
- serviceBus StringEndpoint 
- Endpoint you can use to perform Service Bus operations.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updatedAt String
- The time the Namespace was updated.
- createdAt string
- The time the Namespace was created.
- id string
- The provider-assigned unique ID for this managed resource.
- metricId string
- Identifier for Azure Insights metrics.
- name string
- The name of the resource
- provisioningState string
- Provisioning state of the Namespace.
- serviceBus stringEndpoint 
- Endpoint you can use to perform Service Bus operations.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updatedAt 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
- The name of the resource
- provisioning_state str
- Provisioning state of the Namespace.
- service_bus_ strendpoint 
- Endpoint you can use to perform Service Bus operations.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated_at str
- The time the Namespace was updated.
- createdAt String
- The time the Namespace was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metricId String
- Identifier for Azure Insights metrics.
- name String
- The name of the resource
- provisioningState String
- Provisioning state of the Namespace.
- serviceBus StringEndpoint 
- Endpoint you can use to perform Service Bus operations.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updatedAt String
- The time the Namespace was updated.
Supporting Types
Sku, SkuArgs  
- Name
string | Pulumi.Azure Native. Event Hub. Sku Name 
- Name of this SKU.
- Capacity int
- The Event Hubs throughput units, value should be 0 to 20 throughput units.
- Tier
string | Pulumi.Azure Native. Event Hub. Sku Tier 
- The billing tier of this particular SKU.
- name String | "Basic" | "Standard"
- Name of this SKU.
- capacity Number
- The Event Hubs throughput units, value should be 0 to 20 throughput units.
- tier String | "Basic" | "Standard"
- The billing tier of this particular SKU.
SkuName, SkuNameArgs    
- Basic
- Basic
- Standard
- Standard
- SkuName Basic 
- Basic
- SkuName Standard 
- Standard
- Basic
- Basic
- Standard
- Standard
- Basic
- Basic
- Standard
- Standard
- BASIC
- Basic
- STANDARD
- Standard
- "Basic"
- Basic
- "Standard"
- Standard
SkuResponse, SkuResponseArgs    
SkuTier, SkuTierArgs    
- Basic
- Basic
- Standard
- Standard
- SkuTier Basic 
- Basic
- SkuTier Standard 
- Standard
- Basic
- Basic
- Standard
- Standard
- Basic
- Basic
- Standard
- Standard
- BASIC
- Basic
- STANDARD
- Standard
- "Basic"
- Basic
- "Standard"
- Standard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventhub:Namespace sdk-Namespace-5849 /subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5849 
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