This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getNamespace.go
54 lines (49 loc) · 1.74 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
53
54
// *** 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 v20140901
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupNamespace(ctx *pulumi.Context, args *LookupNamespaceArgs, opts ...pulumi.InvokeOption) (*LookupNamespaceResult, error) {
var rv LookupNamespaceResult
err := ctx.Invoke("azure-nextgen:servicebus/v20140901:getNamespace", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupNamespaceArgs struct {
// The namespace name
NamespaceName string `pulumi:"namespaceName"`
// Name of the Resource group within the Azure subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Description of a namespace resource.
type LookupNamespaceResult struct {
// Indicates whether to create an ACS namespace.
CreateACSNamespace *bool `pulumi:"createACSNamespace"`
// The time the namespace was created.
CreatedAt string `pulumi:"createdAt"`
// Specifies whether this instance is enabled.
Enabled *bool `pulumi:"enabled"`
// Resource Id
Id string `pulumi:"id"`
// Resource location.
Location string `pulumi:"location"`
// Resource name
Name string `pulumi:"name"`
// Provisioning state of the namespace.
ProvisioningState string `pulumi:"provisioningState"`
// Endpoint you can use to perform Service Bus operations.
ServiceBusEndpoint string `pulumi:"serviceBusEndpoint"`
// SKU of the namespace.
Sku *SkuResponse `pulumi:"sku"`
// State of the namespace.
Status *string `pulumi:"status"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// Resource type
Type string `pulumi:"type"`
// The time the namespace was updated.
UpdatedAt string `pulumi:"updatedAt"`
}