We recommend using Azure Native.
azure.notificationhub.Hub
Explore with Pulumi AI
Manages a Notification Hub within a Notification Hub Namespace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "notificationhub-resources",
location: "West Europe",
});
const exampleNamespace = new azure.notificationhub.Namespace("example", {
name: "myappnamespace",
resourceGroupName: example.name,
location: example.location,
namespaceType: "NotificationHub",
skuName: "Free",
});
const exampleHub = new azure.notificationhub.Hub("example", {
name: "mynotificationhub",
namespaceName: exampleNamespace.name,
resourceGroupName: example.name,
location: example.location,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="notificationhub-resources",
location="West Europe")
example_namespace = azure.notificationhub.Namespace("example",
name="myappnamespace",
resource_group_name=example.name,
location=example.location,
namespace_type="NotificationHub",
sku_name="Free")
example_hub = azure.notificationhub.Hub("example",
name="mynotificationhub",
namespace_name=example_namespace.name,
resource_group_name=example.name,
location=example.location)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/notificationhub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("notificationhub-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleNamespace, err := notificationhub.NewNamespace(ctx, "example", ¬ificationhub.NamespaceArgs{
Name: pulumi.String("myappnamespace"),
ResourceGroupName: example.Name,
Location: example.Location,
NamespaceType: pulumi.String("NotificationHub"),
SkuName: pulumi.String("Free"),
})
if err != nil {
return err
}
_, err = notificationhub.NewHub(ctx, "example", ¬ificationhub.HubArgs{
Name: pulumi.String("mynotificationhub"),
NamespaceName: exampleNamespace.Name,
ResourceGroupName: example.Name,
Location: example.Location,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "notificationhub-resources",
Location = "West Europe",
});
var exampleNamespace = new Azure.NotificationHub.Namespace("example", new()
{
Name = "myappnamespace",
ResourceGroupName = example.Name,
Location = example.Location,
NamespaceType = "NotificationHub",
SkuName = "Free",
});
var exampleHub = new Azure.NotificationHub.Hub("example", new()
{
Name = "mynotificationhub",
NamespaceName = exampleNamespace.Name,
ResourceGroupName = example.Name,
Location = example.Location,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.notificationhub.Namespace;
import com.pulumi.azure.notificationhub.NamespaceArgs;
import com.pulumi.azure.notificationhub.Hub;
import com.pulumi.azure.notificationhub.HubArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("notificationhub-resources")
.location("West Europe")
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.name("myappnamespace")
.resourceGroupName(example.name())
.location(example.location())
.namespaceType("NotificationHub")
.skuName("Free")
.build());
var exampleHub = new Hub("exampleHub", HubArgs.builder()
.name("mynotificationhub")
.namespaceName(exampleNamespace.name())
.resourceGroupName(example.name())
.location(example.location())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: notificationhub-resources
location: West Europe
exampleNamespace:
type: azure:notificationhub:Namespace
name: example
properties:
name: myappnamespace
resourceGroupName: ${example.name}
location: ${example.location}
namespaceType: NotificationHub
skuName: Free
exampleHub:
type: azure:notificationhub:Hub
name: example
properties:
name: mynotificationhub
namespaceName: ${exampleNamespace.name}
resourceGroupName: ${example.name}
location: ${example.location}
Create Hub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Hub(name: string, args: HubArgs, opts?: CustomResourceOptions);
@overload
def Hub(resource_name: str,
args: HubArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Hub(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
apns_credential: Optional[HubApnsCredentialArgs] = None,
browser_credential: Optional[HubBrowserCredentialArgs] = None,
gcm_credential: Optional[HubGcmCredentialArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewHub(ctx *Context, name string, args HubArgs, opts ...ResourceOption) (*Hub, error)
public Hub(string name, HubArgs args, CustomResourceOptions? opts = null)
type: azure:notificationhub:Hub
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. HubArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureHubResource = new Azure.NotificationHub.Hub("azureHubResource", new()
{
NamespaceName = "string",
ResourceGroupName = "string",
ApnsCredential = new Azure.NotificationHub.Inputs.HubApnsCredentialArgs
{
ApplicationMode = "string",
BundleId = "string",
KeyId = "string",
TeamId = "string",
Token = "string",
},
BrowserCredential = new Azure.NotificationHub.Inputs.HubBrowserCredentialArgs
{
Subject = "string",
VapidPrivateKey = "string",
VapidPublicKey = "string",
},
GcmCredential = new Azure.NotificationHub.Inputs.HubGcmCredentialArgs
{
ApiKey = "string",
},
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := notificationhub.NewHub(ctx, "azureHubResource", ¬ificationhub.HubArgs{
NamespaceName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ApnsCredential: ¬ificationhub.HubApnsCredentialArgs{
ApplicationMode: pulumi.String("string"),
BundleId: pulumi.String("string"),
KeyId: pulumi.String("string"),
TeamId: pulumi.String("string"),
Token: pulumi.String("string"),
},
BrowserCredential: ¬ificationhub.HubBrowserCredentialArgs{
Subject: pulumi.String("string"),
VapidPrivateKey: pulumi.String("string"),
VapidPublicKey: pulumi.String("string"),
},
GcmCredential: ¬ificationhub.HubGcmCredentialArgs{
ApiKey: pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azureHubResource = new Hub("azureHubResource", HubArgs.builder()
.namespaceName("string")
.resourceGroupName("string")
.apnsCredential(HubApnsCredentialArgs.builder()
.applicationMode("string")
.bundleId("string")
.keyId("string")
.teamId("string")
.token("string")
.build())
.browserCredential(HubBrowserCredentialArgs.builder()
.subject("string")
.vapidPrivateKey("string")
.vapidPublicKey("string")
.build())
.gcmCredential(HubGcmCredentialArgs.builder()
.apiKey("string")
.build())
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
azure_hub_resource = azure.notificationhub.Hub("azureHubResource",
namespace_name="string",
resource_group_name="string",
apns_credential={
"application_mode": "string",
"bundle_id": "string",
"key_id": "string",
"team_id": "string",
"token": "string",
},
browser_credential={
"subject": "string",
"vapid_private_key": "string",
"vapid_public_key": "string",
},
gcm_credential={
"api_key": "string",
},
location="string",
name="string",
tags={
"string": "string",
})
const azureHubResource = new azure.notificationhub.Hub("azureHubResource", {
namespaceName: "string",
resourceGroupName: "string",
apnsCredential: {
applicationMode: "string",
bundleId: "string",
keyId: "string",
teamId: "string",
token: "string",
},
browserCredential: {
subject: "string",
vapidPrivateKey: "string",
vapidPublicKey: "string",
},
gcmCredential: {
apiKey: "string",
},
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:notificationhub:Hub
properties:
apnsCredential:
applicationMode: string
bundleId: string
keyId: string
teamId: string
token: string
browserCredential:
subject: string
vapidPrivateKey: string
vapidPublicKey: string
gcmCredential:
apiKey: string
location: string
name: string
namespaceName: string
resourceGroupName: string
tags:
string: string
Hub Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Hub resource accepts the following input properties:
- Namespace
Name This property is required. Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Apns
Credential HubApns Credential A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Browser
Credential Changes to this property will trigger replacement.
Browser Credential - A
browser_credential
block as defined below. - Gcm
Credential HubGcm Credential A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Namespace
Name This property is required. Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Apns
Credential HubApns Credential Args A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Browser
Credential Changes to this property will trigger replacement.
Browser Credential Args - A
browser_credential
block as defined below. - Gcm
Credential HubGcm Credential Args A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- namespace
Name This property is required. Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- apns
Credential HubApns Credential A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser
Credential Changes to this property will trigger replacement.
Browser Credential - A
browser_credential
block as defined below. - gcm
Credential HubGcm Credential A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- namespace
Name This property is required. Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- apns
Credential HubApns Credential A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser
Credential Changes to this property will trigger replacement.
Browser Credential - A
browser_credential
block as defined below. - gcm
Credential HubGcm Credential A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- namespace_
name This property is required. Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- apns_
credential HubApns Credential Args A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser_
credential Changes to this property will trigger replacement.
Browser Credential Args - A
browser_credential
block as defined below. - gcm_
credential HubGcm Credential Args A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- namespace
Name This property is required. Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- apns
Credential Property Map A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser
Credential Changes to this property will trigger replacement.
- A
browser_credential
block as defined below. - gcm
Credential Property Map A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Hub resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Hub Resource
Get an existing Hub resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HubState, opts?: CustomResourceOptions): Hub
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apns_credential: Optional[HubApnsCredentialArgs] = None,
browser_credential: Optional[HubBrowserCredentialArgs] = None,
gcm_credential: Optional[HubGcmCredentialArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
namespace_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Hub
func GetHub(ctx *Context, name string, id IDInput, state *HubState, opts ...ResourceOption) (*Hub, error)
public static Hub Get(string name, Input<string> id, HubState? state, CustomResourceOptions? opts = null)
public static Hub get(String name, Output<String> id, HubState state, CustomResourceOptions options)
resources: _: type: azure:notificationhub:Hub get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Apns
Credential HubApns Credential A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Browser
Credential Changes to this property will trigger replacement.
Browser Credential - A
browser_credential
block as defined below. - Gcm
Credential HubGcm Credential A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- Namespace
Name Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- Resource
Group Name Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Apns
Credential HubApns Credential Args A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Browser
Credential Changes to this property will trigger replacement.
Browser Credential Args - A
browser_credential
block as defined below. - Gcm
Credential HubGcm Credential Args A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- Location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- Namespace
Name Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- Resource
Group Name Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- apns
Credential HubApns Credential A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser
Credential Changes to this property will trigger replacement.
Browser Credential - A
browser_credential
block as defined below. - gcm
Credential HubGcm Credential A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- namespace
Name Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource
Group Name Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- apns
Credential HubApns Credential A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser
Credential Changes to this property will trigger replacement.
Browser Credential - A
browser_credential
block as defined below. - gcm
Credential HubGcm Credential A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- namespace
Name Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource
Group Name Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- apns_
credential HubApns Credential Args A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser_
credential Changes to this property will trigger replacement.
Browser Credential Args - A
browser_credential
block as defined below. - gcm_
credential HubGcm Credential Args A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- namespace_
name Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource_
group_ name Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- apns
Credential Property Map A
apns_credential
block as defined below.NOTE: Removing the
apns_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- browser
Credential Changes to this property will trigger replacement.
- A
browser_credential
block as defined below. - gcm
Credential Property Map A
gcm_credential
block as defined below.NOTE: Removing the
gcm_credential
block will currently force a recreation of this resource due to this bug in the Azure SDK for Go - we'll remove this limitation when the SDK bug is fixed.- location
Changes to this property will trigger replacement.
- The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name to use for this Notification Hub. Changing this forces a new resource to be created.
- namespace
Name Changes to this property will trigger replacement.
- The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created.
- resource
Group Name Changes to this property will trigger replacement.
- The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
HubApnsCredential, HubApnsCredentialArgs
- Application
Mode This property is required. string - The Application Mode which defines which server the APNS Messages should be sent to. Possible values are
Production
andSandbox
. - Bundle
Id This property is required. string - The Bundle ID of the iOS/macOS application to send push notifications for, such as
com.org.example
. - Key
Id This property is required. string - The Apple Push Notifications Service (APNS) Key.
- Team
Id This property is required. string - The ID of the team the Token.
- Token
This property is required. string - The Push Token associated with the Apple Developer Account. This is the contents of the
key
downloaded from the Apple Developer Portal between the-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
blocks.
- Application
Mode This property is required. string - The Application Mode which defines which server the APNS Messages should be sent to. Possible values are
Production
andSandbox
. - Bundle
Id This property is required. string - The Bundle ID of the iOS/macOS application to send push notifications for, such as
com.org.example
. - Key
Id This property is required. string - The Apple Push Notifications Service (APNS) Key.
- Team
Id This property is required. string - The ID of the team the Token.
- Token
This property is required. string - The Push Token associated with the Apple Developer Account. This is the contents of the
key
downloaded from the Apple Developer Portal between the-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
blocks.
- application
Mode This property is required. String - The Application Mode which defines which server the APNS Messages should be sent to. Possible values are
Production
andSandbox
. - bundle
Id This property is required. String - The Bundle ID of the iOS/macOS application to send push notifications for, such as
com.org.example
. - key
Id This property is required. String - The Apple Push Notifications Service (APNS) Key.
- team
Id This property is required. String - The ID of the team the Token.
- token
This property is required. String - The Push Token associated with the Apple Developer Account. This is the contents of the
key
downloaded from the Apple Developer Portal between the-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
blocks.
- application
Mode This property is required. string - The Application Mode which defines which server the APNS Messages should be sent to. Possible values are
Production
andSandbox
. - bundle
Id This property is required. string - The Bundle ID of the iOS/macOS application to send push notifications for, such as
com.org.example
. - key
Id This property is required. string - The Apple Push Notifications Service (APNS) Key.
- team
Id This property is required. string - The ID of the team the Token.
- token
This property is required. string - The Push Token associated with the Apple Developer Account. This is the contents of the
key
downloaded from the Apple Developer Portal between the-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
blocks.
- application_
mode This property is required. str - The Application Mode which defines which server the APNS Messages should be sent to. Possible values are
Production
andSandbox
. - bundle_
id This property is required. str - The Bundle ID of the iOS/macOS application to send push notifications for, such as
com.org.example
. - key_
id This property is required. str - The Apple Push Notifications Service (APNS) Key.
- team_
id This property is required. str - The ID of the team the Token.
- token
This property is required. str - The Push Token associated with the Apple Developer Account. This is the contents of the
key
downloaded from the Apple Developer Portal between the-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
blocks.
- application
Mode This property is required. String - The Application Mode which defines which server the APNS Messages should be sent to. Possible values are
Production
andSandbox
. - bundle
Id This property is required. String - The Bundle ID of the iOS/macOS application to send push notifications for, such as
com.org.example
. - key
Id This property is required. String - The Apple Push Notifications Service (APNS) Key.
- team
Id This property is required. String - The ID of the team the Token.
- token
This property is required. String - The Push Token associated with the Apple Developer Account. This is the contents of the
key
downloaded from the Apple Developer Portal between the-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
blocks.
HubBrowserCredential, HubBrowserCredentialArgs
- Subject
This property is required. string - The subject name of web push.
- Vapid
Private Key This property is required. string - The Voluntary Application Server Identification (VAPID) private key.
- Vapid
Public Key This property is required. string - The Voluntary Application Server Identification (VAPID) public key.
- Subject
This property is required. string - The subject name of web push.
- Vapid
Private Key This property is required. string - The Voluntary Application Server Identification (VAPID) private key.
- Vapid
Public Key This property is required. string - The Voluntary Application Server Identification (VAPID) public key.
- subject
This property is required. String - The subject name of web push.
- vapid
Private Key This property is required. String - The Voluntary Application Server Identification (VAPID) private key.
- vapid
Public Key This property is required. String - The Voluntary Application Server Identification (VAPID) public key.
- subject
This property is required. string - The subject name of web push.
- vapid
Private Key This property is required. string - The Voluntary Application Server Identification (VAPID) private key.
- vapid
Public Key This property is required. string - The Voluntary Application Server Identification (VAPID) public key.
- subject
This property is required. str - The subject name of web push.
- vapid_
private_ key This property is required. str - The Voluntary Application Server Identification (VAPID) private key.
- vapid_
public_ key This property is required. str - The Voluntary Application Server Identification (VAPID) public key.
- subject
This property is required. String - The subject name of web push.
- vapid
Private Key This property is required. String - The Voluntary Application Server Identification (VAPID) private key.
- vapid
Public Key This property is required. String - The Voluntary Application Server Identification (VAPID) public key.
HubGcmCredential, HubGcmCredentialArgs
- Api
Key This property is required. string - The API Key associated with the Google Cloud Messaging service.
- Api
Key This property is required. string - The API Key associated with the Google Cloud Messaging service.
- api
Key This property is required. String - The API Key associated with the Google Cloud Messaging service.
- api
Key This property is required. string - The API Key associated with the Google Cloud Messaging service.
- api_
key This property is required. str - The API Key associated with the Google Cloud Messaging service.
- api
Key This property is required. String - The API Key associated with the Google Cloud Messaging service.
Import
Notification Hubs can be imported using the resource id
, e.g.
$ pulumi import azure:notificationhub/hub:Hub hub1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.NotificationHubs/namespaces/namespace1/notificationHubs/hub1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.