import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Relay Namespace Authorization Rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleNamespace = new azure.relay.Namespace("example", { * name: "example-relay", * location: example.location, * resourceGroupName: example.name, * skuName: "Standard", * tags: { * source: "terraform", * }, * }); * const exampleNamespaceAuthorizationRule = new azure.relay.NamespaceAuthorizationRule("example", { * name: "example", * resourceGroupName: example.name, * namespaceName: exampleNamespace.name, * listen: true, * send: true, * manage: false, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Relay` - 2021-11-01 * * ## Import * * Azure Relay Namespace Authorization Rules can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/authorizationRules/rule1 * ``` */ export declare class NamespaceAuthorizationRule extends pulumi.CustomResource { /** * Get an existing NamespaceAuthorizationRule 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?: NamespaceAuthorizationRuleState, opts?: pulumi.CustomResourceOptions): NamespaceAuthorizationRule; /** * Returns true if the given object is an instance of NamespaceAuthorizationRule. 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 NamespaceAuthorizationRule; /** * Grants listen access to this Authorization Rule. Defaults to `false`. */ readonly listen: pulumi.Output; /** * Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. */ readonly manage: pulumi.Output; /** * The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ readonly name: pulumi.Output; /** * Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ readonly namespaceName: pulumi.Output; /** * The Primary Connection String for the Azure Relay Namespace Authorization Rule. */ readonly primaryConnectionString: pulumi.Output; /** * The Primary Key for the Azure Relay Namespace Authorization Rule. */ readonly primaryKey: pulumi.Output; /** * The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ readonly resourceGroupName: pulumi.Output; /** * The Secondary Connection String for the Azure Relay Namespace Authorization Rule. */ readonly secondaryConnectionString: pulumi.Output; /** * The Secondary Key for the Azure Relay Namespace Authorization Rule. */ readonly secondaryKey: pulumi.Output; /** * Grants send access to this Authorization Rule. Defaults to `false`. */ readonly send: pulumi.Output; /** * Create a NamespaceAuthorizationRule 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: NamespaceAuthorizationRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NamespaceAuthorizationRule resources. */ export interface NamespaceAuthorizationRuleState { /** * Grants listen access to this Authorization Rule. Defaults to `false`. */ listen?: pulumi.Input; /** * Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. */ manage?: pulumi.Input; /** * The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ name?: pulumi.Input; /** * Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ namespaceName?: pulumi.Input; /** * The Primary Connection String for the Azure Relay Namespace Authorization Rule. */ primaryConnectionString?: pulumi.Input; /** * The Primary Key for the Azure Relay Namespace Authorization Rule. */ primaryKey?: pulumi.Input; /** * The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ resourceGroupName?: pulumi.Input; /** * The Secondary Connection String for the Azure Relay Namespace Authorization Rule. */ secondaryConnectionString?: pulumi.Input; /** * The Secondary Key for the Azure Relay Namespace Authorization Rule. */ secondaryKey?: pulumi.Input; /** * Grants send access to this Authorization Rule. Defaults to `false`. */ send?: pulumi.Input; } /** * The set of arguments for constructing a NamespaceAuthorizationRule resource. */ export interface NamespaceAuthorizationRuleArgs { /** * Grants listen access to this Authorization Rule. Defaults to `false`. */ listen?: pulumi.Input; /** * Grants manage access to this Authorization Rule. When this property is `true` - both `listen` and `send` must be set to `true` too. Defaults to `false`. */ manage?: pulumi.Input; /** * The name which should be used for this Azure Relay Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ name?: pulumi.Input; /** * Name of the Azure Relay Namespace for which this Azure Relay Namespace Authorization Rule will be created. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ namespaceName: pulumi.Input; /** * The name of the Resource Group where the Azure Relay Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created. */ resourceGroupName: pulumi.Input; /** * Grants send access to this Authorization Rule. Defaults to `false`. */ send?: pulumi.Input; }