This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getNotificationHub.go
58 lines (53 loc) · 2.21 KB
/
getNotificationHub.go
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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20170401
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupNotificationHub(ctx *pulumi.Context, args *LookupNotificationHubArgs, opts ...pulumi.InvokeOption) (*LookupNotificationHubResult, error) {
var rv LookupNotificationHubResult
err := ctx.Invoke("azure-nextgen:notificationhubs/v20170401:getNotificationHub", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupNotificationHubArgs struct {
// The namespace name.
NamespaceName string `pulumi:"namespaceName"`
// The notification hub name.
NotificationHubName string `pulumi:"notificationHubName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Description of a NotificationHub Resource.
type LookupNotificationHubResult struct {
// The AdmCredential of the created NotificationHub
AdmCredential *AdmCredentialResponse `pulumi:"admCredential"`
// The ApnsCredential of the created NotificationHub
ApnsCredential *ApnsCredentialResponse `pulumi:"apnsCredential"`
// The AuthorizationRules of the created NotificationHub
AuthorizationRules []SharedAccessAuthorizationRulePropertiesResponse `pulumi:"authorizationRules"`
// The BaiduCredential of the created NotificationHub
BaiduCredential *BaiduCredentialResponse `pulumi:"baiduCredential"`
// The GcmCredential of the created NotificationHub
GcmCredential *GcmCredentialResponse `pulumi:"gcmCredential"`
// Resource Id
Id string `pulumi:"id"`
// Resource location
Location *string `pulumi:"location"`
// The MpnsCredential of the created NotificationHub
MpnsCredential *MpnsCredentialResponse `pulumi:"mpnsCredential"`
// Resource name
Name string `pulumi:"name"`
// The RegistrationTtl of the created NotificationHub
RegistrationTtl *string `pulumi:"registrationTtl"`
// The sku of the created namespace
Sku *SkuResponse `pulumi:"sku"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// Resource type
Type string `pulumi:"type"`
// The WnsCredential of the created NotificationHub
WnsCredential *WnsCredentialResponse `pulumi:"wnsCredential"`
}