NamespaceAuthorizationRule

class NamespaceAuthorizationRule : KotlinCustomResource

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

Example Usage

NameSpaceAuthorizationRuleCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var namespaceAuthorizationRule = new AzureNative.NotificationHubs.NamespaceAuthorizationRule("namespaceAuthorizationRule", new()
{
AuthorizationRuleName = "sdk-AuthRules-1788",
NamespaceName = "nh-sdk-ns",
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.NewNamespaceAuthorizationRule(ctx, "namespaceAuthorizationRule", &notificationhubs.NamespaceAuthorizationRuleArgs{
AuthorizationRuleName: pulumi.String("sdk-AuthRules-1788"),
NamespaceName: pulumi.String("nh-sdk-ns"),
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.NamespaceAuthorizationRule;
import com.pulumi.azurenative.notificationhubs.NamespaceAuthorizationRuleArgs;
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 namespaceAuthorizationRule = new NamespaceAuthorizationRule("namespaceAuthorizationRule", NamespaceAuthorizationRuleArgs.builder()
.authorizationRuleName("sdk-AuthRules-1788")
.namespaceName("nh-sdk-ns")
.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:NamespaceAuthorizationRule sdk-AuthRules-1788 /subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/ArunMonocle/providers/Microsoft.NotificationHubs/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788

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>