Notification Hub
Description of a NotificationHub Resource. API Version: 2017-04-01.
Example Usage
NotificationHubCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var notificationHub = new AzureNative.NotificationHubs.NotificationHub("notificationHub", new()
{
Location = "eastus",
NamespaceName = "nh-sdk-ns",
NotificationHubName = "nh-sdk-hub",
ResourceGroupName = "5ktrial",
});
});
Content copied to clipboard
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.NewNotificationHub(ctx, "notificationHub", ¬ificationhubs.NotificationHubArgs{
Location: pulumi.String("eastus"),
NamespaceName: pulumi.String("nh-sdk-ns"),
NotificationHubName: pulumi.String("nh-sdk-hub"),
ResourceGroupName: pulumi.String("5ktrial"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.notificationhubs.NotificationHub;
import com.pulumi.azurenative.notificationhubs.NotificationHubArgs;
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 notificationHub = new NotificationHub("notificationHub", NotificationHubArgs.builder()
.location("eastus")
.namespaceName("nh-sdk-ns")
.notificationHubName("nh-sdk-hub")
.resourceGroupName("5ktrial")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:notificationhubs:NotificationHub nh-sdk-hub /subscriptions/29cfa613-cbbc-4512-b1d6-1b3a92c7fa40/resourceGroups/sdkresourceGroup/providers/Microsoft.NotificationHubs/namespaces/nh-sdk-ns/notificationHubs/nh-sdk-hub
Content copied to clipboard
Properties
Link copied to clipboard
The AdmCredential of the created NotificationHub
Link copied to clipboard
The ApnsCredential of the created NotificationHub
Link copied to clipboard
The AuthorizationRules of the created NotificationHub
Link copied to clipboard
The BaiduCredential of the created NotificationHub
Link copied to clipboard
The GcmCredential of the created NotificationHub
Link copied to clipboard
The MpnsCredential of the created NotificationHub
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The RegistrationTtl of the created NotificationHub
Link copied to clipboard
The sku of the created namespace
Link copied to clipboard
The WnsCredential of the created NotificationHub