Class AuthorizationRule
Manages an Authorization Rule associated with a Notification Hub within a Notification Hub Namespace.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "Australia East",
});
var exampleNamespace = new Azure.NotificationHub.Namespace("exampleNamespace", new Azure.NotificationHub.NamespaceArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
NamespaceType = "NotificationHub",
SkuName = "Free",
});
var exampleHub = new Azure.NotificationHub.Hub("exampleHub", new Azure.NotificationHub.HubArgs
{
NamespaceName = exampleNamespace.Name,
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleAuthorizationRule = new Azure.NotificationHub.AuthorizationRule("exampleAuthorizationRule", new Azure.NotificationHub.AuthorizationRuleArgs
{
NotificationHubName = exampleHub.Name,
NamespaceName = exampleNamespace.Name,
ResourceGroupName = exampleResourceGroup.Name,
Manage = true,
Send = true,
Listen = true,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.NotificationHub
Assembly: Pulumi.Azure.dll
Syntax
public class AuthorizationRule : CustomResource
Constructors
View SourceAuthorizationRule(String, AuthorizationRuleArgs, CustomResourceOptions)
Create a AuthorizationRule resource with the given unique name, arguments, and options.
Declaration
public AuthorizationRule(string name, AuthorizationRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuthorizationRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceListen
Does this Authorization Rule have Listen access to the Notification Hub? Defaults to false.
Declaration
public Output<bool?> Listen { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Manage
Does this Authorization Rule have Manage access to the Notification Hub? Defaults to false.
Declaration
public Output<bool?> Manage { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The name to use for this Authorization Rule. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NamespaceName
The name of the Notification Hub Namespace in which the Notification Hub exists. Changing this forces a new resource to be created.
Declaration
public Output<string> NamespaceName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotificationHubName
The name of the Notification Hub for which the Authorization Rule should be created. Changing this forces a new resource to be created.
Declaration
public Output<string> NotificationHubName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrimaryAccessKey
The Primary Access Key associated with this Authorization Rule.
Declaration
public Output<string> PrimaryAccessKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecondaryAccessKey
The Secondary Access Key associated with this Authorization Rule.
Declaration
public Output<string> SecondaryAccessKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Send
Does this Authorization Rule have Send access to the Notification Hub? Defaults to false.
Declaration
public Output<bool?> Send { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, AuthorizationRuleState, CustomResourceOptions)
Get an existing AuthorizationRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AuthorizationRule Get(string name, Input<string> id, AuthorizationRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AuthorizationRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AuthorizationRule |