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
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:
- Resource
Group stringName - 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 string
- 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 string - The Namespace name
- Sku
Pulumi.
Azure Native. Event Hub. Inputs. Sku - Properties of sku resource
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - 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 string
- 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 string - The Namespace name
- Sku
Sku
Args - Properties of sku resource
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the resource group within the azure subscription.
- is
Auto BooleanInflate Enabled - Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafka
Enabled Boolean - Value that indicates whether Kafka is enabled for eventhub namespace.
- location String
- Resource location.
- maximum
Throughput IntegerUnits - Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespace
Name String - The Namespace name
- sku Sku
- Properties of sku resource
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the resource group within the azure subscription.
- is
Auto booleanInflate Enabled - Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafka
Enabled boolean - Value that indicates whether Kafka is enabled for eventhub namespace.
- location string
- Resource location.
- maximum
Throughput numberUnits - Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespace
Name 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
Sku
Args - Properties of sku resource
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the resource group within the azure subscription.
- is
Auto BooleanInflate Enabled - Value that indicates whether AutoInflate is enabled for eventhub namespace.
- kafka
Enabled Boolean - Value that indicates whether Kafka is enabled for eventhub namespace.
- location String
- Resource location.
- maximum
Throughput NumberUnits - Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)
- namespace
Name 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:
- 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
- The name of the resource
- Provisioning
State string - Provisioning state of the Namespace.
- Service
Bus 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"
- 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
- The name of the resource
- Provisioning
State string - Provisioning state of the Namespace.
- Service
Bus 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"
- 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
- The name of the resource
- provisioning
State String - Provisioning state of the Namespace.
- service
Bus 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"
- 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
- The name of the resource
- provisioning
State string - Provisioning state of the Namespace.
- service
Bus 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"
- 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
- 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.
- 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
- The name of the resource
- provisioning
State String - Provisioning state of the Namespace.
- service
Bus 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"
- updated
At 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
- Sku
Name Basic - Basic
- Sku
Name 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
- Sku
Tier Basic - Basic
- Sku
Tier 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