Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AuthorizationRule
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.NotificationHub
Assembly: Pulumi.Azure.dll
Syntax
public class AuthorizationRule : CustomResource

Constructors

View Source

AuthorizationRule(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 Source

Listen

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>>
View Source

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>>
View Source

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>
View Source

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>
View Source

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>
View Source

PrimaryAccessKey

The Primary Access Key associated with this Authorization Rule.

Declaration
public Output<string> PrimaryAccessKey { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

SecondaryAccessKey

The Secondary Access Key associated with this Authorization Rule.

Declaration
public Output<string> SecondaryAccessKey { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.