Notification Hub Args
data class NotificationHubArgs(val admCredential: Output<AdmCredentialArgs>? = null, val apnsCredential: Output<ApnsCredentialArgs>? = null, val authorizationRules: Output<List<SharedAccessAuthorizationRulePropertiesArgs>>? = null, val baiduCredential: Output<BaiduCredentialArgs>? = null, val gcmCredential: Output<GcmCredentialArgs>? = null, val location: Output<String>? = null, val mpnsCredential: Output<MpnsCredentialArgs>? = null, val name: Output<String>? = null, val namespaceName: Output<String>? = null, val notificationHubName: Output<String>? = null, val registrationTtl: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val wnsCredential: Output<WnsCredentialArgs>? = null) : ConvertibleToJava<NotificationHubArgs>
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
Constructors
Link copied to clipboard
constructor(admCredential: Output<AdmCredentialArgs>? = null, apnsCredential: Output<ApnsCredentialArgs>? = null, authorizationRules: Output<List<SharedAccessAuthorizationRulePropertiesArgs>>? = null, baiduCredential: Output<BaiduCredentialArgs>? = null, gcmCredential: Output<GcmCredentialArgs>? = null, location: Output<String>? = null, mpnsCredential: Output<MpnsCredentialArgs>? = null, name: Output<String>? = null, namespaceName: Output<String>? = null, notificationHubName: Output<String>? = null, registrationTtl: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null, wnsCredential: Output<WnsCredentialArgs>? = null)
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
The namespace name.
Link copied to clipboard
The notification hub name.
Link copied to clipboard
The RegistrationTtl of the created NotificationHub
Link copied to clipboard
The name of the resource group.
Link copied to clipboard
The WnsCredential of the created NotificationHub