-
Notifications
You must be signed in to change notification settings - Fork 51
/
getNamespace.go
52 lines (47 loc) · 1.71 KB
/
getNamespace.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
// *** 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! ***
package notificationhub
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to access information about an existing Notification Hub Namespace.
func LookupNamespace(ctx *pulumi.Context, args *GetNamespaceArgs) (*GetNamespaceResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["name"] = args.Name
inputs["resourceGroupName"] = args.ResourceGroupName
}
outputs, err := ctx.Invoke("azure:notificationhub/getNamespace:getNamespace", inputs)
if err != nil {
return nil, err
}
return &GetNamespaceResult{
Enabled: outputs["enabled"],
Location: outputs["location"],
NamespaceType: outputs["namespaceType"],
ServicebusEndpoint: outputs["servicebusEndpoint"],
Sku: outputs["sku"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getNamespace.
type GetNamespaceArgs struct {
// Specifies the Name of the Notification Hub Namespace.
Name interface{}
// Specifies the Name of the Resource Group within which the Notification Hub exists.
ResourceGroupName interface{}
}
// A collection of values returned by getNamespace.
type GetNamespaceResult struct {
// Is this Notification Hub Namespace enabled?
Enabled interface{}
// The Azure Region in which this Notification Hub Namespace exists.
Location interface{}
// The Type of Namespace, such as `Messaging` or `NotificationHub`.
NamespaceType interface{}
ServicebusEndpoint interface{}
// A `sku` block as defined below.
Sku interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}