import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about 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 = azure.eventhub.getNamespaceAuthorizationRule({ * name: "navi", * resourceGroupName: "example-resources", * namespaceName: "example-ns", * }); * export const eventhubAuthorizationRuleId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.EventHub` - 2024-01-01 */ export declare function getNamespaceAuthorizationRule(args: GetNamespaceAuthorizationRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getNamespaceAuthorizationRule. */ export interface GetNamespaceAuthorizationRuleArgs { /** * The name of the EventHub Authorization Rule resource. */ name: string; /** * Specifies the name of the EventHub Namespace. */ namespaceName: string; /** * The name of the resource group in which the EventHub Namespace exists. */ resourceGroupName: string; } /** * A collection of values returned by getNamespaceAuthorizationRule. */ export interface GetNamespaceAuthorizationRuleResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Does this Authorization Rule have permissions to Listen to the Event Hub? */ readonly listen: boolean; /** * Does this Authorization Rule have permissions to Manage to the Event Hub? */ readonly manage: boolean; readonly name: string; readonly namespaceName: string; /** * The Primary Connection String for the Event Hubs authorization Rule. */ readonly primaryConnectionString: string; /** * The alias of the Primary Connection String for the Event Hubs authorization Rule. */ readonly primaryConnectionStringAlias: string; /** * The Primary Key for the Event Hubs authorization Rule. */ readonly primaryKey: string; readonly resourceGroupName: string; /** * The Secondary Connection String for the Event Hubs authorization Rule. */ readonly secondaryConnectionString: string; /** * The alias of the Secondary Connection String for the Event Hubs authorization Rule. */ readonly secondaryConnectionStringAlias: string; /** * The Secondary Key for the Event Hubs authorization Rule. */ readonly secondaryKey: string; /** * Does this Authorization Rule have permissions to Send to the Event Hub? */ readonly send: boolean; } /** * Use this data source to access information about 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 = azure.eventhub.getNamespaceAuthorizationRule({ * name: "navi", * resourceGroupName: "example-resources", * namespaceName: "example-ns", * }); * export const eventhubAuthorizationRuleId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.EventHub` - 2024-01-01 */ export declare function getNamespaceAuthorizationRuleOutput(args: GetNamespaceAuthorizationRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getNamespaceAuthorizationRule. */ export interface GetNamespaceAuthorizationRuleOutputArgs { /** * The name of the EventHub Authorization Rule resource. */ name: pulumi.Input; /** * Specifies the name of the EventHub Namespace. */ namespaceName: pulumi.Input; /** * The name of the resource group in which the EventHub Namespace exists. */ resourceGroupName: pulumi.Input; }