import * as pulumi from "@pulumi/pulumi"; /** * Manages an Authorization Rule for an Event Hub Namespace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "resourcegroup", * location: "West Europe", * }); * const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("example", { * name: "acceptanceTestEventHubNamespace", * location: example.location, * resourceGroupName: example.name, * sku: "Basic", * capacity: 2, * tags: { * environment: "Production", * }, * }); * const exampleEventHubNamespaceAuthorizationRule = new azure.eventhub.EventHubNamespaceAuthorizationRule("example", { * name: "navi", * namespaceName: exampleEventHubNamespace.name, * resourceGroupName: example.name, * listen: true, * send: false, * manage: false, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.EventHub` - 2024-01-01 * * ## Import * * EventHub Namespace Authorization Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:eventhub/eventHubNamespaceAuthorizationRule:EventHubNamespaceAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/namespaces/namespace1/authorizationRules/rule1 * ``` */ export declare class EventHubNamespaceAuthorizationRule extends pulumi.CustomResource { /** * Get an existing EventHubNamespaceAuthorizationRule 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?: EventHubNamespaceAuthorizationRuleState, opts?: pulumi.CustomResourceOptions): EventHubNamespaceAuthorizationRule; /** * Returns true if the given object is an instance of EventHubNamespaceAuthorizationRule. 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 EventHubNamespaceAuthorizationRule; /** * Grants listen access to this this Authorization Rule. Defaults to `false`. */ readonly listen: pulumi.Output; /** * Grants manage access to this this Authorization Rule. 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; /** * Specifies the name of the EventHub Namespace. Changing this forces a new resource to be created. */ readonly namespaceName: pulumi.Output; /** * The Primary Connection String for the Authorization Rule. */ readonly primaryConnectionString: pulumi.Output; /** * The alias of the Primary Connection String for the Authorization Rule, which is generated when disaster recovery is enabled. */ readonly primaryConnectionStringAlias: pulumi.Output; /** * The Primary Key for the Authorization Rule. */ readonly primaryKey: pulumi.Output; /** * The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created. * * > **Note:** At least one of the 3 permissions below needs to be set. */ readonly resourceGroupName: pulumi.Output; /** * The Secondary Connection String for the Authorization Rule. */ readonly secondaryConnectionString: pulumi.Output; /** * The alias of the Secondary Connection String for the Authorization Rule, which is generated when disaster recovery is enabled. */ readonly secondaryConnectionStringAlias: pulumi.Output; /** * The Secondary Key for the Authorization Rule. */ readonly secondaryKey: pulumi.Output; /** * Grants send access to this this Authorization Rule. Defaults to `false`. */ readonly send: pulumi.Output; /** * Create a EventHubNamespaceAuthorizationRule 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: EventHubNamespaceAuthorizationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EventHubNamespaceAuthorizationRule resources. */ export interface EventHubNamespaceAuthorizationRuleState { /** * Grants listen access to this this Authorization Rule. Defaults to `false`. */ listen?: pulumi.Input; /** * Grants manage access to this this Authorization Rule. 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 name of the EventHub Namespace. Changing this forces a new resource to be created. */ namespaceName?: pulumi.Input; /** * The Primary Connection String for the Authorization Rule. */ primaryConnectionString?: pulumi.Input; /** * The alias of the Primary Connection String for the Authorization Rule, which is generated when disaster recovery is enabled. */ primaryConnectionStringAlias?: pulumi.Input; /** * The Primary Key for the Authorization Rule. */ primaryKey?: pulumi.Input; /** * The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created. * * > **Note:** At least one of the 3 permissions below needs to be set. */ resourceGroupName?: pulumi.Input; /** * The Secondary Connection String for the Authorization Rule. */ secondaryConnectionString?: pulumi.Input; /** * The alias of the Secondary Connection String for the Authorization Rule, which is generated when disaster recovery is enabled. */ secondaryConnectionStringAlias?: pulumi.Input; /** * The Secondary Key for the Authorization Rule. */ secondaryKey?: pulumi.Input; /** * Grants send access to this this Authorization Rule. Defaults to `false`. */ send?: pulumi.Input; } /** * The set of arguments for constructing a EventHubNamespaceAuthorizationRule resource. */ export interface EventHubNamespaceAuthorizationRuleArgs { /** * Grants listen access to this this Authorization Rule. Defaults to `false`. */ listen?: pulumi.Input; /** * Grants manage access to this this Authorization Rule. 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 name of the EventHub Namespace. Changing this forces a new resource to be created. */ namespaceName: pulumi.Input; /** * The name of the resource group in which the EventHub Namespace exists. Changing this forces a new resource to be created. * * > **Note:** At least one of the 3 permissions below needs to be set. */ resourceGroupName: pulumi.Input; /** * Grants send access to this this Authorization Rule. Defaults to `false`. */ send?: pulumi.Input; }