QueueAuthorizationRuleArgs

data class QueueAuthorizationRuleArgs(val authorizationRuleName: Output<String>? = null, val namespaceName: Output<String>? = null, val queueName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val rights: Output<List<AccessRights>>? = null) : ConvertibleToJava<QueueAuthorizationRuleArgs>

Description of a namespace authorization rule. 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

QueueAuthorizationRuleCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var queueAuthorizationRule = new AzureNative.ServiceBus.QueueAuthorizationRule("queueAuthorizationRule", new()
{
AuthorizationRuleName = "sdk-AuthRules-5800",
NamespaceName = "sdk-Namespace-7982",
QueueName = "sdk-Queues-2317",
ResourceGroupName = "ArunMonocle",
Rights = new[]
{
AzureNative.ServiceBus.AccessRights.Listen,
AzureNative.ServiceBus.AccessRights.Send,
},
});
});
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.NewQueueAuthorizationRule(ctx, "queueAuthorizationRule", &servicebus.QueueAuthorizationRuleArgs{
AuthorizationRuleName: pulumi.String("sdk-AuthRules-5800"),
NamespaceName: pulumi.String("sdk-Namespace-7982"),
QueueName: pulumi.String("sdk-Queues-2317"),
ResourceGroupName: pulumi.String("ArunMonocle"),
Rights: servicebus.AccessRightsArray{
servicebus.AccessRightsListen,
servicebus.AccessRightsSend,
},
})
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.QueueAuthorizationRule;
import com.pulumi.azurenative.servicebus.QueueAuthorizationRuleArgs;
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 queueAuthorizationRule = new QueueAuthorizationRule("queueAuthorizationRule", QueueAuthorizationRuleArgs.builder()
.authorizationRuleName("sdk-AuthRules-5800")
.namespaceName("sdk-Namespace-7982")
.queueName("sdk-Queues-2317")
.resourceGroupName("ArunMonocle")
.rights(
"Listen",
"Send")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:servicebus:QueueAuthorizationRule sdk-AuthRules-5800 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}

Constructors

Link copied to clipboard
constructor(authorizationRuleName: Output<String>? = null, namespaceName: Output<String>? = null, queueName: Output<String>? = null, resourceGroupName: Output<String>? = null, rights: Output<List<AccessRights>>? = null)

Properties

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

The authorization rule name.

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

The namespace name

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

The queue name.

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 rights: Output<List<AccessRights>>? = null

The rights associated with the rule.

Functions

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