This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getNamespace.go
54 lines (49 loc) · 1.75 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 v20150801
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:eventhub/v20150801: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"`
}
// Single Namespace item in List or Get Operation
type LookupNamespaceResult struct {
// 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"`
// Identifier for Azure Insights metrics
MetricId string `pulumi:"metricId"`
// 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 parameters supplied to the create Namespace operation
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"`
}