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 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",
    })
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",
    },
});
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

new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
@overload
def Namespace(resource_name: str,
              opts: Optional[ResourceOptions] = 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,
              resource_group_name: Optional[str] = None,
              sku: Optional[SkuArgs] = None,
              tags: Optional[Mapping[str, str]] = None)
@overload
def Namespace(resource_name: str,
              args: NamespaceArgs,
              opts: Optional[ResourceOptions] = 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.

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.

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:

ResourceGroupName string

Name of the resource group within the azure subscription.

IsAutoInflateEnabled bool

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.

MaximumThroughputUnits int

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.AzureNative.EventHub.Inputs.SkuArgs

Properties of sku resource

Tags Dictionary<string, string>

Resource tags.

ResourceGroupName string

Name of the resource group within the azure subscription.

IsAutoInflateEnabled bool

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.

MaximumThroughputUnits int

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

Tags map[string]string

Resource tags.

resourceGroupName String

Name of the resource group within the azure subscription.

isAutoInflateEnabled Boolean

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.

maximumThroughputUnits Integer

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

tags Map<String,String>

Resource tags.

resourceGroupName string

Name of the resource group within the azure subscription.

isAutoInflateEnabled boolean

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.

maximumThroughputUnits number

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

tags {[key: string]: string}

Resource tags.

resource_group_name str

Name of the resource group within the azure subscription.

is_auto_inflate_enabled bool

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_units int

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

tags Mapping[str, str]

Resource tags.

resourceGroupName String

Name of the resource group within the azure subscription.

isAutoInflateEnabled Boolean

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.

maximumThroughputUnits Number

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

tags 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.

ServiceBusEndpoint string

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.

ServiceBusEndpoint string

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.

serviceBusEndpoint String

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.

serviceBusEndpoint string

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_endpoint str

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.

serviceBusEndpoint String

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

Name string | Pulumi.AzureNative.EventHub.SkuName

Name of this SKU.

Capacity int

The Event Hubs throughput units, value should be 0 to 20 throughput units.

Tier string | Pulumi.AzureNative.EventHub.SkuTier

The billing tier of this particular SKU.

Name string | SkuName

Name of this SKU.

Capacity int

The Event Hubs throughput units, value should be 0 to 20 throughput units.

Tier string | SkuTier

The billing tier of this particular SKU.

name String | SkuName

Name of this SKU.

capacity Integer

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier String | SkuTier

The billing tier of this particular SKU.

name string | SkuName

Name of this SKU.

capacity number

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier string | SkuTier

The billing tier of this particular SKU.

name str | SkuName

Name of this SKU.

capacity int

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier str | SkuTier

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

Basic
Basic
Standard
Standard
SkuNameBasic
Basic
SkuNameStandard
Standard
Basic
Basic
Standard
Standard
Basic
Basic
Standard
Standard
BASIC
Basic
STANDARD
Standard
"Basic"
Basic
"Standard"
Standard

SkuResponse

Name string

Name of this SKU.

Capacity int

The Event Hubs throughput units, value should be 0 to 20 throughput units.

Tier string

The billing tier of this particular SKU.

Name string

Name of this SKU.

Capacity int

The Event Hubs throughput units, value should be 0 to 20 throughput units.

Tier string

The billing tier of this particular SKU.

name String

Name of this SKU.

capacity Integer

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier String

The billing tier of this particular SKU.

name string

Name of this SKU.

capacity number

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier string

The billing tier of this particular SKU.

name str

Name of this SKU.

capacity int

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier str

The billing tier of this particular SKU.

name String

Name of this SKU.

capacity Number

The Event Hubs throughput units, value should be 0 to 20 throughput units.

tier String

The billing tier of this particular SKU.

SkuTier

Basic
Basic
Standard
Standard
SkuTierBasic
Basic
SkuTierStandard
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 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0