Namespace

class Namespace : KotlinCustomResource

Notification Hubs Namespace Resource. Azure REST API version: 2023-01-01-preview. Prior API version in Azure Native 1.x: 2017-04-01. Other available API versions: 2014-09-01, 2016-03-01, 2017-04-01, 2023-09-01.

Example Usage

Namespaces_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var @namespace = new AzureNative.NotificationHubs.Namespace("namespace", new()
{
Location = "South Central US",
NamespaceName = "nh-sdk-ns",
Properties = new AzureNative.NotificationHubs.Inputs.NamespacePropertiesArgs
{
NetworkAcls = new AzureNative.NotificationHubs.Inputs.NetworkAclsArgs
{
IpRules = new[]
{
new AzureNative.NotificationHubs.Inputs.IpRuleArgs
{
IpMask = "185.48.100.00/24",
Rights = new[]
{
"Manage",
"Send",
"Listen",
},
},
},
PublicNetworkRule = new AzureNative.NotificationHubs.Inputs.PublicInternetAuthorizationRuleArgs
{
Rights = new[]
{
"Listen",
},
},
},
ZoneRedundancy = "Enabled",
},
ResourceGroupName = "5ktrial",
Sku = new AzureNative.NotificationHubs.Inputs.SkuArgs
{
Name = "Standard",
Tier = "Standard",
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/notificationhubs/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notificationhubs.NewNamespace(ctx, "namespace", &notificationhubs.NamespaceArgs{
Location: pulumi.String("South Central US"),
NamespaceName: pulumi.String("nh-sdk-ns"),
Properties: notificationhubs.NamespacePropertiesResponse{
NetworkAcls: interface{}{
IpRules: notificationhubs.IpRuleArray{
&notificationhubs.IpRuleArgs{
IpMask: pulumi.String("185.48.100.00/24"),
Rights: pulumi.StringArray{
pulumi.String("Manage"),
pulumi.String("Send"),
pulumi.String("Listen"),
},
},
},
PublicNetworkRule: &notificationhubs.PublicInternetAuthorizationRuleArgs{
Rights: pulumi.StringArray{
pulumi.String("Listen"),
},
},
},
ZoneRedundancy: pulumi.String("Enabled"),
},
ResourceGroupName: pulumi.String("5ktrial"),
Sku: &notificationhubs.SkuArgs{
Name: pulumi.String("Standard"),
Tier: pulumi.String("Standard"),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
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.Namespace;
import com.pulumi.azurenative.notificationhubs.NamespaceArgs;
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 namespace = new Namespace("namespace", NamespaceArgs.builder()
.location("South Central US")
.namespaceName("nh-sdk-ns")
.properties(Map.ofEntries(
Map.entry("networkAcls", Map.ofEntries(
Map.entry("ipRules", Map.ofEntries(
Map.entry("ipMask", "185.48.100.00/24"),
Map.entry("rights",
"Manage",
"Send",
"Listen")
)),
Map.entry("publicNetworkRule", Map.of("rights", "Listen"))
)),
Map.entry("zoneRedundancy", "Enabled")
))
.resourceGroupName("5ktrial")
.sku(Map.ofEntries(
Map.entry("name", "Standard"),
Map.entry("tier", "Standard")
))
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}

Import

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

$ pulumi import azure-native:notificationhubs:Namespace nh-sdk-ns /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}

Properties

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Represents namespace properties.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sku: Output<SkuResponse>

The Sku description for a namespace

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>