This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getQueue.go
78 lines (73 loc) · 4.04 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// *** 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 latest
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:servicebus/latest:getQueue", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupQueueArgs struct {
// The namespace name
NamespaceName string `pulumi:"namespaceName"`
// The queue name.
QueueName string `pulumi:"queueName"`
// Name of the Resource group within the Azure subscription.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Description of queue Resource.
type LookupQueueResult struct {
// Last time a message was sent, or the last time there was a receive request to this queue.
AccessedAt string `pulumi:"accessedAt"`
// ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.
AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"`
// Message Count Details.
CountDetails MessageCountDetailsResponse `pulumi:"countDetails"`
// The exact time the message was created.
CreatedAt string `pulumi:"createdAt"`
// A value that indicates whether this queue has dead letter support when a message expires.
DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"`
// ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.
DefaultMessageTimeToLive *string `pulumi:"defaultMessageTimeToLive"`
// ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
DuplicateDetectionHistoryTimeWindow *string `pulumi:"duplicateDetectionHistoryTimeWindow"`
// Value that indicates whether server-side batched operations are enabled.
EnableBatchedOperations *bool `pulumi:"enableBatchedOperations"`
// A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.
EnableExpress *bool `pulumi:"enableExpress"`
// A value that indicates whether the queue is to be partitioned across multiple message brokers.
EnablePartitioning *bool `pulumi:"enablePartitioning"`
// Queue/Topic name to forward the Dead Letter message
ForwardDeadLetteredMessagesTo *string `pulumi:"forwardDeadLetteredMessagesTo"`
// Queue/Topic name to forward the messages
ForwardTo *string `pulumi:"forwardTo"`
// Resource Id
Id string `pulumi:"id"`
// ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.
LockDuration *string `pulumi:"lockDuration"`
// The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.
MaxDeliveryCount *int `pulumi:"maxDeliveryCount"`
// The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.
MaxSizeInMegabytes *int `pulumi:"maxSizeInMegabytes"`
// The number of messages in the queue.
MessageCount float64 `pulumi:"messageCount"`
// Resource name
Name string `pulumi:"name"`
// A value indicating if this queue requires duplicate detection.
RequiresDuplicateDetection *bool `pulumi:"requiresDuplicateDetection"`
// A value that indicates whether the queue supports the concept of sessions.
RequiresSession *bool `pulumi:"requiresSession"`
// The size of the queue, in bytes.
SizeInBytes float64 `pulumi:"sizeInBytes"`
// Enumerates the possible values for the status of a messaging entity.
Status *string `pulumi:"status"`
// Resource type
Type string `pulumi:"type"`
// The exact time the message was updated.
UpdatedAt string `pulumi:"updatedAt"`
}