TopicAuthorizationRuleArgs

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

Description of a namespace authorization rule. API Version: 2017-04-01.

Example Usage

TopicAuthorizationRuleCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var topicAuthorizationRule = new AzureNative.ServiceBus.TopicAuthorizationRule("topicAuthorizationRule", new()
{
AuthorizationRuleName = "sdk-AuthRules-4310",
NamespaceName = "sdk-Namespace-6261",
ResourceGroupName = "ArunMonocle",
Rights = new[]
{
AzureNative.ServiceBus.AccessRights.Listen,
AzureNative.ServiceBus.AccessRights.Send,
},
TopicName = "sdk-Topics-1984",
});
});
package main
import (
servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicebus.NewTopicAuthorizationRule(ctx, "topicAuthorizationRule", &servicebus.TopicAuthorizationRuleArgs{
AuthorizationRuleName: pulumi.String("sdk-AuthRules-4310"),
NamespaceName: pulumi.String("sdk-Namespace-6261"),
ResourceGroupName: pulumi.String("ArunMonocle"),
Rights: []servicebus.AccessRights{
servicebus.AccessRightsListen,
servicebus.AccessRightsSend,
},
TopicName: pulumi.String("sdk-Topics-1984"),
})
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.TopicAuthorizationRule;
import com.pulumi.azurenative.servicebus.TopicAuthorizationRuleArgs;
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 topicAuthorizationRule = new TopicAuthorizationRule("topicAuthorizationRule", TopicAuthorizationRuleArgs.builder()
.authorizationRuleName("sdk-AuthRules-4310")
.namespaceName("sdk-Namespace-6261")
.resourceGroupName("ArunMonocle")
.rights(
"Listen",
"Send")
.topicName("sdk-Topics-1984")
.build());
}
}

Import

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

$ pulumi import azure-native:servicebus:TopicAuthorizationRule sdk-AuthRules-4310 /subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6261/topics/sdk-Topics-1984/authorizationRules/sdk-AuthRules-4310

Constructors

Link copied to clipboard
constructor(authorizationRuleName: Output<String>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, rights: Output<List<AccessRights>>? = null, topicName: Output<String>? = 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 resourceGroupName: Output<String>? = null

Name of the Resource group within the Azure subscription.

Link copied to clipboard
val rights: Output<List<AccessRights>>? = null

The rights associated with the rule.

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

The topic name.

Functions

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