import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Notification Hub within a Notification Hub Namespace. * * ## Example Usage * * ```typescript * 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, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.NotificationHubs` - 2023-09-01 * * ## Import * * Notification Hubs can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:notificationhub/hub:Hub hub1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.NotificationHubs/namespaces/namespace1/notificationHubs/hub1 * ``` */ export declare class Hub extends pulumi.CustomResource { /** * Get an existing Hub resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HubState, opts?: pulumi.CustomResourceOptions): Hub; /** * Returns true if the given object is an instance of Hub. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Hub; /** * A `apnsCredential` block as defined below. * * > **Note:** Removing the `apnsCredential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed. */ readonly apnsCredential: pulumi.Output; /** * A `browserCredential` block as defined below. Changing this forces a new resource to be created. */ readonly browserCredential: pulumi.Output; /** * A `gcmCredential` block as defined below. * * > **Note:** Removing the `gcmCredential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed. */ readonly gcmCredential: pulumi.Output; /** * The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * The name to use for this Notification Hub. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created. */ readonly namespaceName: pulumi.Output; /** * The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Hub resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: HubArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Hub resources. */ export interface HubState { /** * A `apnsCredential` block as defined below. * * > **Note:** Removing the `apnsCredential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed. */ apnsCredential?: pulumi.Input; /** * A `browserCredential` block as defined below. Changing this forces a new resource to be created. */ browserCredential?: pulumi.Input; /** * A `gcmCredential` block as defined below. * * > **Note:** Removing the `gcmCredential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed. */ gcmCredential?: pulumi.Input; /** * The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name to use for this Notification Hub. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created. */ namespaceName?: pulumi.Input; /** * The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Hub resource. */ export interface HubArgs { /** * A `apnsCredential` block as defined below. * * > **Note:** Removing the `apnsCredential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed. */ apnsCredential?: pulumi.Input; /** * A `browserCredential` block as defined below. Changing this forces a new resource to be created. */ browserCredential?: pulumi.Input; /** * A `gcmCredential` block as defined below. * * > **Note:** Removing the `gcmCredential` block will currently force a recreation of this resource [due to this bug in the Azure SDK for Go](https://github.com/Azure/azure-sdk-for-go/issues/2246) - we'll remove this limitation when the SDK bug is fixed. */ gcmCredential?: pulumi.Input; /** * The Azure Region in which this Notification Hub Namespace exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * The name to use for this Notification Hub. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Notification Hub Namespace in which to create this Notification Hub. Changing this forces a new resource to be created. */ namespaceName: pulumi.Input; /** * The name of the Resource Group in which the Notification Hub Namespace exists. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }