1. Packages
  2. Azure Classic
  3. API Docs
  4. notificationhub
  5. AuthorizationRule

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

azure.notificationhub.AuthorizationRule

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

    Manages an Authorization Rule associated with a Notification Hub within a Notification Hub Namespace.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "notificationhub-resources",
        location: "West Europe",
    });
    const exampleNamespace = new azure.notificationhub.Namespace("example", {
        name: "myappnamespace",
        resourceGroupName: example.name,
        location: example.location,
        namespaceType: "NotificationHub",
        skuName: "Free",
    });
    const exampleHub = new azure.notificationhub.Hub("example", {
        name: "mynotificationhub",
        namespaceName: exampleNamespace.name,
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleAuthorizationRule = new azure.notificationhub.AuthorizationRule("example", {
        name: "management-auth-rule",
        notificationHubName: exampleHub.name,
        namespaceName: exampleNamespace.name,
        resourceGroupName: example.name,
        manage: true,
        send: true,
        listen: true,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="notificationhub-resources",
        location="West Europe")
    example_namespace = azure.notificationhub.Namespace("example",
        name="myappnamespace",
        resource_group_name=example.name,
        location=example.location,
        namespace_type="NotificationHub",
        sku_name="Free")
    example_hub = azure.notificationhub.Hub("example",
        name="mynotificationhub",
        namespace_name=example_namespace.name,
        resource_group_name=example.name,
        location=example.location)
    example_authorization_rule = azure.notificationhub.AuthorizationRule("example",
        name="management-auth-rule",
        notification_hub_name=example_hub.name,
        namespace_name=example_namespace.name,
        resource_group_name=example.name,
        manage=True,
        send=True,
        listen=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/notificationhub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("notificationhub-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleNamespace, err := notificationhub.NewNamespace(ctx, "example", &notificationhub.NamespaceArgs{
    			Name:              pulumi.String("myappnamespace"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			NamespaceType:     pulumi.String("NotificationHub"),
    			SkuName:           pulumi.String("Free"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleHub, err := notificationhub.NewHub(ctx, "example", &notificationhub.HubArgs{
    			Name:              pulumi.String("mynotificationhub"),
    			NamespaceName:     exampleNamespace.Name,
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = notificationhub.NewAuthorizationRule(ctx, "example", &notificationhub.AuthorizationRuleArgs{
    			Name:                pulumi.String("management-auth-rule"),
    			NotificationHubName: exampleHub.Name,
    			NamespaceName:       exampleNamespace.Name,
    			ResourceGroupName:   example.Name,
    			Manage:              pulumi.Bool(true),
    			Send:                pulumi.Bool(true),
    			Listen:              pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "notificationhub-resources",
            Location = "West Europe",
        });
    
        var exampleNamespace = new Azure.NotificationHub.Namespace("example", new()
        {
            Name = "myappnamespace",
            ResourceGroupName = example.Name,
            Location = example.Location,
            NamespaceType = "NotificationHub",
            SkuName = "Free",
        });
    
        var exampleHub = new Azure.NotificationHub.Hub("example", new()
        {
            Name = "mynotificationhub",
            NamespaceName = exampleNamespace.Name,
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleAuthorizationRule = new Azure.NotificationHub.AuthorizationRule("example", new()
        {
            Name = "management-auth-rule",
            NotificationHubName = exampleHub.Name,
            NamespaceName = exampleNamespace.Name,
            ResourceGroupName = example.Name,
            Manage = true,
            Send = true,
            Listen = true,
        });
    
    });
    
    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.notificationhub.Namespace;
    import com.pulumi.azure.notificationhub.NamespaceArgs;
    import com.pulumi.azure.notificationhub.Hub;
    import com.pulumi.azure.notificationhub.HubArgs;
    import com.pulumi.azure.notificationhub.AuthorizationRule;
    import com.pulumi.azure.notificationhub.AuthorizationRuleArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("notificationhub-resources")
                .location("West Europe")
                .build());
    
            var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
                .name("myappnamespace")
                .resourceGroupName(example.name())
                .location(example.location())
                .namespaceType("NotificationHub")
                .skuName("Free")
                .build());
    
            var exampleHub = new Hub("exampleHub", HubArgs.builder()
                .name("mynotificationhub")
                .namespaceName(exampleNamespace.name())
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleAuthorizationRule = new AuthorizationRule("exampleAuthorizationRule", AuthorizationRuleArgs.builder()
                .name("management-auth-rule")
                .notificationHubName(exampleHub.name())
                .namespaceName(exampleNamespace.name())
                .resourceGroupName(example.name())
                .manage(true)
                .send(true)
                .listen(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: notificationhub-resources
          location: West Europe
      exampleNamespace:
        type: azure:notificationhub:Namespace
        name: example
        properties:
          name: myappnamespace
          resourceGroupName: ${example.name}
          location: ${example.location}
          namespaceType: NotificationHub
          skuName: Free
      exampleHub:
        type: azure:notificationhub:Hub
        name: example
        properties:
          name: mynotificationhub
          namespaceName: ${exampleNamespace.name}
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleAuthorizationRule:
        type: azure:notificationhub:AuthorizationRule
        name: example
        properties:
          name: management-auth-rule
          notificationHubName: ${exampleHub.name}
          namespaceName: ${exampleNamespace.name}
          resourceGroupName: ${example.name}
          manage: true
          send: true
          listen: true
    

    Create AuthorizationRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AuthorizationRule(name: string, args: AuthorizationRuleArgs, opts?: CustomResourceOptions);
    @overload
    def AuthorizationRule(resource_name: str,
                          args: AuthorizationRuleArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthorizationRule(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          namespace_name: Optional[str] = None,
                          notification_hub_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          listen: Optional[bool] = None,
                          manage: Optional[bool] = None,
                          name: Optional[str] = None,
                          send: Optional[bool] = None)
    func NewAuthorizationRule(ctx *Context, name string, args AuthorizationRuleArgs, opts ...ResourceOption) (*AuthorizationRule, error)
    public AuthorizationRule(string name, AuthorizationRuleArgs args, CustomResourceOptions? opts = null)
    public AuthorizationRule(String name, AuthorizationRuleArgs args)
    public AuthorizationRule(String name, AuthorizationRuleArgs args, CustomResourceOptions options)
    
    type: azure:notificationhub:AuthorizationRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AuthorizationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AuthorizationRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AuthorizationRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthorizationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthorizationRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var azureAuthorizationRuleResource = new Azure.NotificationHub.AuthorizationRule("azureAuthorizationRuleResource", new()
    {
        NamespaceName = "string",
        NotificationHubName = "string",
        ResourceGroupName = "string",
        Listen = false,
        Manage = false,
        Name = "string",
        Send = false,
    });
    
    example, err := notificationhub.NewAuthorizationRule(ctx, "azureAuthorizationRuleResource", &notificationhub.AuthorizationRuleArgs{
    	NamespaceName:       pulumi.String("string"),
    	NotificationHubName: pulumi.String("string"),
    	ResourceGroupName:   pulumi.String("string"),
    	Listen:              pulumi.Bool(false),
    	Manage:              pulumi.Bool(false),
    	Name:                pulumi.String("string"),
    	Send:                pulumi.Bool(false),
    })
    
    var azureAuthorizationRuleResource = new AuthorizationRule("azureAuthorizationRuleResource", AuthorizationRuleArgs.builder()
        .namespaceName("string")
        .notificationHubName("string")
        .resourceGroupName("string")
        .listen(false)
        .manage(false)
        .name("string")
        .send(false)
        .build());
    
    azure_authorization_rule_resource = azure.notificationhub.AuthorizationRule("azureAuthorizationRuleResource",
        namespace_name="string",
        notification_hub_name="string",
        resource_group_name="string",
        listen=False,
        manage=False,
        name="string",
        send=False)
    
    const azureAuthorizationRuleResource = new azure.notificationhub.AuthorizationRule("azureAuthorizationRuleResource", {
        namespaceName: "string",
        notificationHubName: "string",
        resourceGroupName: "string",
        listen: false,
        manage: false,
        name: "string",
        send: false,
    });
    
    type: azure:notificationhub:AuthorizationRule
    properties:
        listen: false
        manage: false
        name: string
        namespaceName: string
        notificationHubName: string
        resourceGroupName: string
        send: false
    

    AuthorizationRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AuthorizationRule resource accepts the following input properties:

    NamespaceName string
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    NotificationHubName string
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    Listen bool
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    Manage bool

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    Name string
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    Send bool
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    NamespaceName string
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    NotificationHubName string
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    Listen bool
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    Manage bool

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    Name string
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    Send bool
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    namespaceName String
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notificationHubName String
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    listen Boolean
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage Boolean

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name String
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    send Boolean
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    namespaceName string
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notificationHubName string
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    listen boolean
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage boolean

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name string
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    send boolean
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    namespace_name str
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notification_hub_name str
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    resource_group_name str
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    listen bool
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage bool

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name str
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    send bool
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    namespaceName String
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notificationHubName String
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    listen Boolean
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage Boolean

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name String
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    send Boolean
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AuthorizationRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    PrimaryAccessKey string
    The Primary Access Key associated with this Authorization Rule.
    PrimaryConnectionString string
    The Primary Connetion String associated with this Authorization Rule.
    SecondaryAccessKey string
    The Secondary Access Key associated with this Authorization Rule.
    SecondaryConnectionString string
    The Secondary Connetion String associated with this Authorization Rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    PrimaryAccessKey string
    The Primary Access Key associated with this Authorization Rule.
    PrimaryConnectionString string
    The Primary Connetion String associated with this Authorization Rule.
    SecondaryAccessKey string
    The Secondary Access Key associated with this Authorization Rule.
    SecondaryConnectionString string
    The Secondary Connetion String associated with this Authorization Rule.
    id String
    The provider-assigned unique ID for this managed resource.
    primaryAccessKey String
    The Primary Access Key associated with this Authorization Rule.
    primaryConnectionString String
    The Primary Connetion String associated with this Authorization Rule.
    secondaryAccessKey String
    The Secondary Access Key associated with this Authorization Rule.
    secondaryConnectionString String
    The Secondary Connetion String associated with this Authorization Rule.
    id string
    The provider-assigned unique ID for this managed resource.
    primaryAccessKey string
    The Primary Access Key associated with this Authorization Rule.
    primaryConnectionString string
    The Primary Connetion String associated with this Authorization Rule.
    secondaryAccessKey string
    The Secondary Access Key associated with this Authorization Rule.
    secondaryConnectionString string
    The Secondary Connetion String associated with this Authorization Rule.
    id str
    The provider-assigned unique ID for this managed resource.
    primary_access_key str
    The Primary Access Key associated with this Authorization Rule.
    primary_connection_string str
    The Primary Connetion String associated with this Authorization Rule.
    secondary_access_key str
    The Secondary Access Key associated with this Authorization Rule.
    secondary_connection_string str
    The Secondary Connetion String associated with this Authorization Rule.
    id String
    The provider-assigned unique ID for this managed resource.
    primaryAccessKey String
    The Primary Access Key associated with this Authorization Rule.
    primaryConnectionString String
    The Primary Connetion String associated with this Authorization Rule.
    secondaryAccessKey String
    The Secondary Access Key associated with this Authorization Rule.
    secondaryConnectionString String
    The Secondary Connetion String associated with this Authorization Rule.

    Look up Existing AuthorizationRule Resource

    Get an existing AuthorizationRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AuthorizationRuleState, opts?: CustomResourceOptions): AuthorizationRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            listen: Optional[bool] = None,
            manage: Optional[bool] = None,
            name: Optional[str] = None,
            namespace_name: Optional[str] = None,
            notification_hub_name: Optional[str] = None,
            primary_access_key: Optional[str] = None,
            primary_connection_string: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            secondary_access_key: Optional[str] = None,
            secondary_connection_string: Optional[str] = None,
            send: Optional[bool] = None) -> AuthorizationRule
    func GetAuthorizationRule(ctx *Context, name string, id IDInput, state *AuthorizationRuleState, opts ...ResourceOption) (*AuthorizationRule, error)
    public static AuthorizationRule Get(string name, Input<string> id, AuthorizationRuleState? state, CustomResourceOptions? opts = null)
    public static AuthorizationRule get(String name, Output<String> id, AuthorizationRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Listen bool
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    Manage bool

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    Name string
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    NamespaceName string
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    NotificationHubName string
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    PrimaryAccessKey string
    The Primary Access Key associated with this Authorization Rule.
    PrimaryConnectionString string
    The Primary Connetion String associated with this Authorization Rule.
    ResourceGroupName string
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    SecondaryAccessKey string
    The Secondary Access Key associated with this Authorization Rule.
    SecondaryConnectionString string
    The Secondary Connetion String associated with this Authorization Rule.
    Send bool
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    Listen bool
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    Manage bool

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    Name string
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    NamespaceName string
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    NotificationHubName string
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    PrimaryAccessKey string
    The Primary Access Key associated with this Authorization Rule.
    PrimaryConnectionString string
    The Primary Connetion String associated with this Authorization Rule.
    ResourceGroupName string
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    SecondaryAccessKey string
    The Secondary Access Key associated with this Authorization Rule.
    SecondaryConnectionString string
    The Secondary Connetion String associated with this Authorization Rule.
    Send bool
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    listen Boolean
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage Boolean

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name String
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    namespaceName String
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notificationHubName String
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    primaryAccessKey String
    The Primary Access Key associated with this Authorization Rule.
    primaryConnectionString String
    The Primary Connetion String associated with this Authorization Rule.
    resourceGroupName String
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    secondaryAccessKey String
    The Secondary Access Key associated with this Authorization Rule.
    secondaryConnectionString String
    The Secondary Connetion String associated with this Authorization Rule.
    send Boolean
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    listen boolean
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage boolean

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name string
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    namespaceName string
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notificationHubName string
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    primaryAccessKey string
    The Primary Access Key associated with this Authorization Rule.
    primaryConnectionString string
    The Primary Connetion String associated with this Authorization Rule.
    resourceGroupName string
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    secondaryAccessKey string
    The Secondary Access Key associated with this Authorization Rule.
    secondaryConnectionString string
    The Secondary Connetion String associated with this Authorization Rule.
    send boolean
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    listen bool
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage bool

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name str
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    namespace_name str
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notification_hub_name str
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    primary_access_key str
    The Primary Access Key associated with this Authorization Rule.
    primary_connection_string str
    The Primary Connetion String associated with this Authorization Rule.
    resource_group_name str
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    secondary_access_key str
    The Secondary Access Key associated with this Authorization Rule.
    secondary_connection_string str
    The Secondary Connetion String associated with this Authorization Rule.
    send bool
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
    listen Boolean
    Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
    manage Boolean

    Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.

    NOTE: If manage is set to true then both send and listen must also be set to true.

    name String
    The name to use for this Authorization Rule. Changing this forces a new resource to be created.
    namespaceName String
    The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
    notificationHubName String
    The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
    primaryAccessKey String
    The Primary Access Key associated with this Authorization Rule.
    primaryConnectionString String
    The Primary Connetion String associated with this Authorization Rule.
    resourceGroupName String
    The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
    secondaryAccessKey String
    The Secondary Access Key associated with this Authorization Rule.
    secondaryConnectionString String
    The Secondary Connetion String associated with this Authorization Rule.
    send Boolean
    Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.

    Import

    Notification Hub Authorization Rule can be imported using the resource id, e.g.

    $ pulumi import azure:notificationhub/authorizationRule:AuthorizationRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.NotificationHubs/namespaces/namespace1/notificationHubs/hub1/authorizationRules/rule1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi