NamespaceArgs

data class NamespaceArgs(val alternateName: Output<String>? = null, val disableLocalAuth: Output<Boolean>? = null, val encryption: Output<EncryptionArgs>? = null, val identity: Output<IdentityArgs>? = null, val location: Output<String>? = null, val minimumTlsVersion: Output<Either<String, TlsVersion>>? = null, val namespaceName: Output<String>? = null, val premiumMessagingPartitions: Output<Int>? = null, val privateEndpointConnections: Output<List<PrivateEndpointConnectionArgs>>? = null, val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SBSkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val zoneRedundant: Output<Boolean>? = null) : ConvertibleToJava<NamespaceArgs>

Description of a namespace resource. Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-01-01-preview. Other available API versions: 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native servicebus [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

NameSpaceCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var @namespace = new AzureNative.ServiceBus.Namespace("namespace", new()
{
Location = "South Central US",
NamespaceName = "sdk-Namespace2924",
PremiumMessagingPartitions = 2,
ResourceGroupName = "ArunMonocle",
Sku = new AzureNative.ServiceBus.Inputs.SBSkuArgs
{
Capacity = 4,
Name = AzureNative.ServiceBus.SkuName.Premium,
Tier = AzureNative.ServiceBus.SkuTier.Premium,
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicebus.NewNamespace(ctx, "namespace", &servicebus.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("sdk-Namespace2924"),
PremiumMessagingPartitions: pulumi.Int(2),
ResourceGroupName: pulumi.String("ArunMonocle"),
Sku: &servicebus.SBSkuArgs{
Capacity: pulumi.Int(4),
Name: servicebus.SkuNamePremium,
Tier: servicebus.SkuTierPremium,
},
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.servicebus.Namespace;
import com.pulumi.azurenative.servicebus.NamespaceArgs;
import com.pulumi.azurenative.servicebus.inputs.SBSkuArgs;
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-Namespace2924")
.premiumMessagingPartitions(2)
.resourceGroupName("ArunMonocle")
.sku(SBSkuArgs.builder()
.capacity(4)
.name("Premium")
.tier("Premium")
.build())
.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:servicebus:Namespace sdk-Namespace-2924 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}

Constructors

Link copied to clipboard
constructor(alternateName: Output<String>? = null, disableLocalAuth: Output<Boolean>? = null, encryption: Output<EncryptionArgs>? = null, identity: Output<IdentityArgs>? = null, location: Output<String>? = null, minimumTlsVersion: Output<Either<String, TlsVersion>>? = null, namespaceName: Output<String>? = null, premiumMessagingPartitions: Output<Int>? = null, privateEndpointConnections: Output<List<PrivateEndpointConnectionArgs>>? = null, publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null, resourceGroupName: Output<String>? = null, sku: Output<SBSkuArgs>? = null, tags: Output<Map<String, String>>? = null, zoneRedundant: Output<Boolean>? = null)

Properties

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

Alternate name for namespace

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

This property disables SAS authentication for the Service Bus namespace.

Link copied to clipboard
val encryption: Output<EncryptionArgs>? = null

Properties of BYOK Encryption description

Link copied to clipboard
val identity: Output<IdentityArgs>? = null

Properties of BYOK Identity description

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

The Geo-location where the resource lives

Link copied to clipboard
val minimumTlsVersion: Output<Either<String, TlsVersion>>? = null

The minimum TLS version for the cluster to support, e.g. '1.2'

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

The namespace name.

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

The number of partitions of a Service Bus namespace. This property is only applicable to Premium SKU namespaces. The default value is 1 and possible values are 1, 2 and 4

Link copied to clipboard

List of private endpoint connections. These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.

Link copied to clipboard
val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null

This determines if traffic is allowed over public network. By default it is enabled.

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

The name of the resource group. The name is case insensitive.

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

Properties of SKU

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

Resource tags

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

Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones.

Functions

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