NotificationHubArgs

data class NotificationHubArgs(val admCredential: Output<AdmCredentialArgs>? = null, val apnsCredential: Output<ApnsCredentialArgs>? = null, val baiduCredential: Output<BaiduCredentialArgs>? = null, val browserCredential: Output<BrowserCredentialArgs>? = null, val fcmV1Credential: Output<FcmV1CredentialArgs>? = 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, val xiaomiCredential: Output<XiaomiCredentialArgs>? = null) : ConvertibleToJava<NotificationHubArgs>

Notification Hub Resource. Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-01-01-preview. Other available API versions: 2023-01-01-preview, 2023-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native notificationhubs [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

NotificationHubs_CreateOrUpdate

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",
});
});
package main
import (
notificationhubs "github.com/pulumi/pulumi-azure-native-sdk/notificationhubs/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notificationhubs.NewNotificationHub(ctx, "notificationHub", &notificationhubs.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
})
}
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());
}
}

Import

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

$ pulumi import azure-native:notificationhubs:NotificationHub test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}

Constructors

Link copied to clipboard
constructor(admCredential: Output<AdmCredentialArgs>? = null, apnsCredential: Output<ApnsCredentialArgs>? = null, baiduCredential: Output<BaiduCredentialArgs>? = null, browserCredential: Output<BrowserCredentialArgs>? = null, fcmV1Credential: Output<FcmV1CredentialArgs>? = 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, xiaomiCredential: Output<XiaomiCredentialArgs>? = null)

Properties

Link copied to clipboard
val admCredential: Output<AdmCredentialArgs>? = null

Description of a NotificationHub AdmCredential.

Link copied to clipboard
val apnsCredential: Output<ApnsCredentialArgs>? = null

Description of a NotificationHub ApnsCredential.

Link copied to clipboard

Description of a NotificationHub BaiduCredential.

Link copied to clipboard

Description of a NotificationHub BrowserCredential.

Link copied to clipboard

Description of a NotificationHub FcmV1Credential.

Link copied to clipboard
val gcmCredential: Output<GcmCredentialArgs>? = null

Description of a NotificationHub GcmCredential.

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

The geo-location where the resource lives

Link copied to clipboard
val mpnsCredential: Output<MpnsCredentialArgs>? = null

Description of a NotificationHub MpnsCredential.

Link copied to clipboard
val name: Output<String>? = null

Gets or sets the NotificationHub name.

Link copied to clipboard
val namespaceName: Output<String>? = null

Namespace name

Link copied to clipboard
val notificationHubName: Output<String>? = null

Notification Hub name

Link copied to clipboard
val registrationTtl: Output<String>? = null

Gets or sets the RegistrationTtl of the created NotificationHub

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

The Sku description for a namespace

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

Resource tags.

Link copied to clipboard
val wnsCredential: Output<WnsCredentialArgs>? = null

Description of a NotificationHub WnsCredential.

Link copied to clipboard

Description of a NotificationHub XiaomiCredential.

Functions

Link copied to clipboard
open override fun toJava(): NotificationHubArgs