-
Notifications
You must be signed in to change notification settings - Fork 50
/
getHub.ts
74 lines (70 loc) · 2.21 KB
/
getHub.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Use this data source to access information about an existing Notification Hub within a Notification Hub Namespace.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
*
* const test = pulumi.output(azure.notificationhub.getHub({
* name: "notification-hub",
* namespaceName: "namespace-name",
* resourceGroupName: "resource-group-name",
* }));
*
* export const id = test.id;
* ```
*/
export function getHub(args: GetHubArgs, opts?: pulumi.InvokeOptions): Promise<GetHubResult> {
return pulumi.runtime.invoke("azure:notificationhub/getHub:getHub", {
"name": args.name,
"namespaceName": args.namespaceName,
"resourceGroupName": args.resourceGroupName,
}, opts);
}
/**
* A collection of arguments for invoking getHub.
*/
export interface GetHubArgs {
/**
* Specifies the Name of the Notification Hub.
*/
readonly name: string;
/**
* Specifies the Name of the Notification Hub Namespace which contains the Notification Hub.
*/
readonly namespaceName: string;
/**
* Specifies the Name of the Resource Group within which the Notification Hub exists.
*/
readonly resourceGroupName: string;
}
/**
* A collection of values returned by getHub.
*/
export interface GetHubResult {
/**
* A `apns_credential` block as defined below.
*/
readonly apnsCredentials: { applicationMode: string, bundleId: string, keyId: string, teamId: string, token: string }[];
/**
* A `gcm_credential` block as defined below.
*/
readonly gcmCredentials: { apiKey: string }[];
/**
* The Azure Region in which this Notification Hub exists.
*/
readonly location: string;
readonly name: string;
readonly namespaceName: string;
readonly resourceGroupName: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}