This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getQueue.go
39 lines (34 loc) · 1.99 KB
/
getQueue.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
// *** 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 v20190601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupQueue(ctx *pulumi.Context, args *LookupQueueArgs, opts ...pulumi.InvokeOption) (*LookupQueueResult, error) {
var rv LookupQueueResult
err := ctx.Invoke("azure-nextgen:storage/v20190601:getQueue", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupQueueArgs struct {
// The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
AccountName string `pulumi:"accountName"`
// A queue name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
QueueName string `pulumi:"queueName"`
// The name of the resource group within the user's subscription. The name is case insensitive.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
type LookupQueueResult struct {
// Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue, but could be higher.
ApproximateMessageCount int `pulumi:"approximateMessageCount"`
// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id string `pulumi:"id"`
// A name-value pair that represents queue metadata.
Metadata map[string]string `pulumi:"metadata"`
// The name of the resource
Name string `pulumi:"name"`
// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type string `pulumi:"type"`
}