import * as pulumi from "@pulumi/pulumi"; /** * Manages an Authorization Rule for a ServiceBus Queue. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "my-servicebus", * location: "West US", * }); * const exampleNamespace = new azure.servicebus.Namespace("example", { * name: "tfex-servicebus-namespace", * location: example.location, * resourceGroupName: example.name, * sku: "Standard", * tags: { * source: "example", * }, * }); * const exampleQueue = new azure.servicebus.Queue("example", { * name: "tfex_servicebus_queue", * namespaceId: exampleNamespace.id, * enablePartitioning: true, * }); * const exampleQueueAuthorizationRule = new azure.servicebus.QueueAuthorizationRule("example", { * name: "examplerule", * queueId: exampleQueue.id, * listen: true, * send: true, * manage: false, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ServiceBus` - 2024-01-01 * * ## Import * * ServiceBus Queue Authorization Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:servicebus/queueAuthorizationRule:QueueAuthorizationRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ServiceBus/namespaces/namespace1/queues/queue1/authorizationRules/rule1 * ``` */ export declare class QueueAuthorizationRule extends pulumi.CustomResource { /** * Get an existing QueueAuthorizationRule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: QueueAuthorizationRuleState, opts?: pulumi.CustomResourceOptions): QueueAuthorizationRule; /** * Returns true if the given object is an instance of QueueAuthorizationRule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is QueueAuthorizationRule; /** * Does this Authorization Rule have Listen permissions to the ServiceBus Queue? Defaults to `false`. */ readonly listen: pulumi.Output; /** * Does this Authorization Rule have Manage permissions to the ServiceBus Queue? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`. */ readonly manage: pulumi.Output; /** * Specifies the name of the Authorization Rule. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The Primary Connection String for the Authorization Rule. */ readonly primaryConnectionString: pulumi.Output; /** * The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired. */ readonly primaryConnectionStringAlias: pulumi.Output; /** * The Primary Key for the Authorization Rule. */ readonly primaryKey: pulumi.Output; /** * Specifies the ID of the ServiceBus Queue. Changing this forces a new resource to be created. * * > **Note:** At least one of the 3 permissions below needs to be set. */ readonly queueId: pulumi.Output; /** * The Secondary Connection String for the Authorization Rule. */ readonly secondaryConnectionString: pulumi.Output; /** * The alias Secondary Connection String for the ServiceBus Namespace */ readonly secondaryConnectionStringAlias: pulumi.Output; /** * The Secondary Key for the Authorization Rule. */ readonly secondaryKey: pulumi.Output; /** * Does this Authorization Rule have Send permissions to the ServiceBus Queue? Defaults to `false`. */ readonly send: pulumi.Output; /** * Create a QueueAuthorizationRule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: QueueAuthorizationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering QueueAuthorizationRule resources. */ export interface QueueAuthorizationRuleState { /** * Does this Authorization Rule have Listen permissions to the ServiceBus Queue? Defaults to `false`. */ listen?: pulumi.Input; /** * Does this Authorization Rule have Manage permissions to the ServiceBus Queue? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`. */ manage?: pulumi.Input; /** * Specifies the name of the Authorization Rule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The Primary Connection String for the Authorization Rule. */ primaryConnectionString?: pulumi.Input; /** * The alias Primary Connection String for the ServiceBus Namespace, if the namespace is Geo DR paired. */ primaryConnectionStringAlias?: pulumi.Input; /** * The Primary Key for the Authorization Rule. */ primaryKey?: pulumi.Input; /** * Specifies the ID of the ServiceBus Queue. Changing this forces a new resource to be created. * * > **Note:** At least one of the 3 permissions below needs to be set. */ queueId?: pulumi.Input; /** * The Secondary Connection String for the Authorization Rule. */ secondaryConnectionString?: pulumi.Input; /** * The alias Secondary Connection String for the ServiceBus Namespace */ secondaryConnectionStringAlias?: pulumi.Input; /** * The Secondary Key for the Authorization Rule. */ secondaryKey?: pulumi.Input; /** * Does this Authorization Rule have Send permissions to the ServiceBus Queue? Defaults to `false`. */ send?: pulumi.Input; } /** * The set of arguments for constructing a QueueAuthorizationRule resource. */ export interface QueueAuthorizationRuleArgs { /** * Does this Authorization Rule have Listen permissions to the ServiceBus Queue? Defaults to `false`. */ listen?: pulumi.Input; /** * Does this Authorization Rule have Manage permissions to the ServiceBus Queue? When this property is `true` - both `listen` and `send` must be too. Defaults to `false`. */ manage?: pulumi.Input; /** * Specifies the name of the Authorization Rule. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the ID of the ServiceBus Queue. Changing this forces a new resource to be created. * * > **Note:** At least one of the 3 permissions below needs to be set. */ queueId: pulumi.Input; /** * Does this Authorization Rule have Send permissions to the ServiceBus Queue? Defaults to `false`. */ send?: pulumi.Input; }