NamespaceAuthorizationRule

class NamespaceAuthorizationRule : KotlinCustomResource

Deprecated

azure.eventhub.NamespaceAuthorizationRule has been deprecated in favor of azure.servicebus.NamespaceAuthorizationRule

Manages a ServiceBus Namespace authorization Rule within a ServiceBus.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.servicebus.Namespace;
import com.pulumi.azure.servicebus.NamespaceArgs;
import com.pulumi.azure.servicebus.NamespaceAuthorizationRule;
import com.pulumi.azure.servicebus.NamespaceAuthorizationRuleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West US")
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Standard")
.tags(Map.of("source", "example"))
.build());
var exampleNamespaceAuthorizationRule = new NamespaceAuthorizationRule("exampleNamespaceAuthorizationRule", NamespaceAuthorizationRuleArgs.builder()
.namespaceId(exampleNamespace.id())
.listen(true)
.send(true)
.manage(false)
.build());
}
}

Import

ServiceBus Namespace authorization rules can be imported using the resource id, e.g.

$ pulumi import azure:eventhub/namespaceAuthorizationRule:NamespaceAuthorizationRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ServiceBus/namespaces/namespace1/authorizationRules/rule1

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val listen: Output<Boolean>?

Grants listen access to this this Authorization Rule. Defaults to false.

Link copied to clipboard
val manage: Output<Boolean>?

Grants manage access to this this Authorization Rule. When this property is true - both listen and send must be too. Defaults to false.

Link copied to clipboard
val name: Output<String>

Specifies the name of the ServiceBus Namespace Authorization Rule resource. Changing this forces a new resource to be created.

Link copied to clipboard
val namespaceId: Output<String>

Specifies the ID of the ServiceBus Namespace. Changing this forces a new resource to be created.

Link copied to clipboard

The Primary Connection String for the ServiceBus Namespace authorization Rule.

Link copied to clipboard

The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired.

Link copied to clipboard
val primaryKey: Output<String>

The Primary Key for the ServiceBus Namespace authorization Rule.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The Secondary Connection String for the ServiceBus Namespace authorization Rule.

Link copied to clipboard

The alias Secondary Connection String for the ServiceBus Namespace

Link copied to clipboard
val secondaryKey: Output<String>

The Secondary Key for the ServiceBus Namespace authorization Rule.

Link copied to clipboard
val send: Output<Boolean>?

Grants send access to this this Authorization Rule. Defaults to false.

Link copied to clipboard
val urn: Output<String>