NamespaceArgs

data class NamespaceArgs(val isAutoInflateEnabled: Output<Boolean>? = null, val kafkaEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val maximumThroughputUnits: Output<Int>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NamespaceArgs>

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

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

Constructors

Link copied to clipboard
constructor(isAutoInflateEnabled: Output<Boolean>? = null, kafkaEnabled: Output<Boolean>? = null, location: Output<String>? = null, maximumThroughputUnits: Output<Int>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val isAutoInflateEnabled: Output<Boolean>? = null

Value that indicates whether AutoInflate is enabled for eventhub namespace.

Link copied to clipboard
val kafkaEnabled: Output<Boolean>? = null

Value that indicates whether Kafka is enabled for eventhub namespace.

Link copied to clipboard
val location: Output<String>? = null

Resource location.

Link copied to clipboard
val maximumThroughputUnits: Output<Int>? = null

Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true)

Link copied to clipboard
val namespaceName: Output<String>? = null

The Namespace name

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group within the azure subscription.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

Properties of sku resource

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): NamespaceArgs