NotificationHubAuthorizationRule

class NotificationHubAuthorizationRule : KotlinCustomResource

Description of a Namespace AuthorizationRules. API Version: 2017-04-01.

Example Usage

NotificationHubAuthorizationRuleCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var notificationHubAuthorizationRule = new AzureNative.NotificationHubs.NotificationHubAuthorizationRule("notificationHubAuthorizationRule", new()
{
AuthorizationRuleName = "DefaultListenSharedAccessSignature",
NamespaceName = "nh-sdk-ns",
NotificationHubName = "nh-sdk-hub",
Properties = new AzureNative.NotificationHubs.Inputs.SharedAccessAuthorizationRulePropertiesArgs
{
Rights = new[]
{
AzureNative.NotificationHubs.AccessRights.Listen,
AzureNative.NotificationHubs.AccessRights.Send,
},
},
ResourceGroupName = "5ktrial",
});
});
package main
import (
notificationhubs "github.com/pulumi/pulumi-azure-native-sdk/notificationhubs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notificationhubs.NewNotificationHubAuthorizationRule(ctx, "notificationHubAuthorizationRule", &notificationhubs.NotificationHubAuthorizationRuleArgs{
AuthorizationRuleName: pulumi.String("DefaultListenSharedAccessSignature"),
NamespaceName: pulumi.String("nh-sdk-ns"),
NotificationHubName: pulumi.String("nh-sdk-hub"),
Properties: &notificationhubs.SharedAccessAuthorizationRulePropertiesArgs{
Rights: notificationhubs.AccessRightsArray{
notificationhubs.AccessRightsListen,
notificationhubs.AccessRightsSend,
},
},
ResourceGroupName: pulumi.String("5ktrial"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.notificationhubs.NotificationHubAuthorizationRule;
import com.pulumi.azurenative.notificationhubs.NotificationHubAuthorizationRuleArgs;
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 notificationHubAuthorizationRule = new NotificationHubAuthorizationRule("notificationHubAuthorizationRule", NotificationHubAuthorizationRuleArgs.builder()
.authorizationRuleName("DefaultListenSharedAccessSignature")
.namespaceName("nh-sdk-ns")
.notificationHubName("nh-sdk-hub")
.properties(Map.of("rights",
"Listen",
"Send"))
.resourceGroupName("5ktrial")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:notificationhubs:NotificationHubAuthorizationRule DefaultListenSharedAccessSignature /subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/5ktrial/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/NotificationHubs/nh-sdk-hub/AuthorizationRules/DefaultListenSharedAccessSignature

Properties

Link copied to clipboard
val claimType: Output<String>

A string that describes the claim type

Link copied to clipboard
val claimValue: Output<String>

A string that describes the claim value

Link copied to clipboard
val createdTime: Output<String>

The created time for this rule

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val keyName: Output<String>

A string that describes the authorization rule.

Link copied to clipboard
val location: Output<String>?

Resource location

Link copied to clipboard
val modifiedTime: Output<String>

The last modified time for this rule

Link copied to clipboard
val name: Output<String>

Resource name

Link copied to clipboard
val primaryKey: Output<String>

A base64-encoded 256-bit primary key for signing and validating the SAS token.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val revision: Output<Int>

The revision number for the rule

Link copied to clipboard
val rights: Output<List<String>>?

The rights associated with the rule.

Link copied to clipboard
val secondaryKey: Output<String>

A base64-encoded 256-bit primary key for signing and validating the SAS token.

Link copied to clipboard
val sku: Output<SkuResponse>?

The sku of the created namespace

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags

Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val urn: Output<String>