/
subscription.go
425 lines (379 loc) · 21.8 KB
/
subscription.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
// *** 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 servicebus
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a ServiceBus Subscription.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v4/go/azure/servicebus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleNamespace, err := servicebus.NewNamespace(ctx, "exampleNamespace", &servicebus.NamespaceArgs{
// Location: exampleResourceGroup.Location,
// ResourceGroupName: exampleResourceGroup.Name,
// Sku: pulumi.String("Standard"),
// Tags: pulumi.StringMap{
// "source": pulumi.String("example"),
// },
// })
// if err != nil {
// return err
// }
// exampleTopic, err := servicebus.NewTopic(ctx, "exampleTopic", &servicebus.TopicArgs{
// NamespaceId: exampleNamespace.ID(),
// EnablePartitioning: pulumi.Bool(true),
// })
// if err != nil {
// return err
// }
// _, err = servicebus.NewSubscription(ctx, "exampleSubscription", &servicebus.SubscriptionArgs{
// TopicId: exampleTopic.ID(),
// MaxDeliveryCount: pulumi.Int(1),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// Service Bus Subscriptions can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:servicebus/subscription:Subscription example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.servicebus/namespaces/sbns1/topics/sntopic1/subscriptions/sbsub1
// ```
type Subscription struct {
pulumi.CustomResourceState
// The idle interval after which the topic is automatically deleted as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The minimum duration is `5` minutes or `PT5M`.
AutoDeleteOnIdle pulumi.StringOutput `pulumi:"autoDeleteOnIdle"`
// Boolean flag which controls whether the Subscription has dead letter support on filter evaluation exceptions. Defaults to `true`.
DeadLetteringOnFilterEvaluationError pulumi.BoolPtrOutput `pulumi:"deadLetteringOnFilterEvaluationError"`
// Boolean flag which controls whether the Subscription has dead letter support when a message expires. Defaults to `false`.
DeadLetteringOnMessageExpiration pulumi.BoolPtrOutput `pulumi:"deadLetteringOnMessageExpiration"`
// The Default message timespan to live as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). 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.
DefaultMessageTtl pulumi.StringOutput `pulumi:"defaultMessageTtl"`
// Boolean flag which controls whether the Subscription supports batched operations. Defaults to `false`.
EnableBatchedOperations pulumi.BoolPtrOutput `pulumi:"enableBatchedOperations"`
// The name of a Queue or Topic to automatically forward Dead Letter messages to.
ForwardDeadLetteredMessagesTo pulumi.StringPtrOutput `pulumi:"forwardDeadLetteredMessagesTo"`
// The name of a Queue or Topic to automatically forward messages to.
ForwardTo pulumi.StringPtrOutput `pulumi:"forwardTo"`
// The lock duration for the subscription as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The default value is `1` minute or `P0DT0H1M0S` . The maximum value is `5` minutes or `P0DT0H5M0S` .
LockDuration pulumi.StringOutput `pulumi:"lockDuration"`
// The maximum number of deliveries.
MaxDeliveryCount pulumi.IntOutput `pulumi:"maxDeliveryCount"`
// Specifies the name of the ServiceBus Subscription resource. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// Deprecated: Deprecated in favor of "topic_id"
NamespaceName pulumi.StringOutput `pulumi:"namespaceName"`
// Boolean flag which controls whether this Subscription supports the concept of a session. Defaults to `false`. Changing this forces a new resource to be created.
RequiresSession pulumi.BoolPtrOutput `pulumi:"requiresSession"`
// Deprecated: Deprecated in favor of "topic_id"
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// The status of the Subscription. Possible values are `Active`,`ReceiveDisabled`, or `Disabled`. Defaults to `Active`.
Status pulumi.StringPtrOutput `pulumi:"status"`
// The ID of the ServiceBus Topic to create this Subscription in. Changing this forces a new resource to be created.
TopicId pulumi.StringOutput `pulumi:"topicId"`
// Deprecated: Deprecated in favor of "topic_id"
TopicName pulumi.StringOutput `pulumi:"topicName"`
}
// NewSubscription registers a new resource with the given unique name, arguments, and options.
func NewSubscription(ctx *pulumi.Context,
name string, args *SubscriptionArgs, opts ...pulumi.ResourceOption) (*Subscription, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.MaxDeliveryCount == nil {
return nil, errors.New("invalid value for required argument 'MaxDeliveryCount'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure:eventhub/subscription:Subscription"),
},
})
opts = append(opts, aliases)
var resource Subscription
err := ctx.RegisterResource("azure:servicebus/subscription:Subscription", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSubscription gets an existing Subscription resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetSubscription(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SubscriptionState, opts ...pulumi.ResourceOption) (*Subscription, error) {
var resource Subscription
err := ctx.ReadResource("azure:servicebus/subscription:Subscription", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Subscription resources.
type subscriptionState struct {
// The idle interval after which the topic is automatically deleted as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The minimum duration is `5` minutes or `PT5M`.
AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"`
// Boolean flag which controls whether the Subscription has dead letter support on filter evaluation exceptions. Defaults to `true`.
DeadLetteringOnFilterEvaluationError *bool `pulumi:"deadLetteringOnFilterEvaluationError"`
// Boolean flag which controls whether the Subscription has dead letter support when a message expires. Defaults to `false`.
DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"`
// The Default message timespan to live as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). 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.
DefaultMessageTtl *string `pulumi:"defaultMessageTtl"`
// Boolean flag which controls whether the Subscription supports batched operations. Defaults to `false`.
EnableBatchedOperations *bool `pulumi:"enableBatchedOperations"`
// The name of a Queue or Topic to automatically forward Dead Letter messages to.
ForwardDeadLetteredMessagesTo *string `pulumi:"forwardDeadLetteredMessagesTo"`
// The name of a Queue or Topic to automatically forward messages to.
ForwardTo *string `pulumi:"forwardTo"`
// The lock duration for the subscription as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The default value is `1` minute or `P0DT0H1M0S` . The maximum value is `5` minutes or `P0DT0H5M0S` .
LockDuration *string `pulumi:"lockDuration"`
// The maximum number of deliveries.
MaxDeliveryCount *int `pulumi:"maxDeliveryCount"`
// Specifies the name of the ServiceBus Subscription resource. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// Deprecated: Deprecated in favor of "topic_id"
NamespaceName *string `pulumi:"namespaceName"`
// Boolean flag which controls whether this Subscription supports the concept of a session. Defaults to `false`. Changing this forces a new resource to be created.
RequiresSession *bool `pulumi:"requiresSession"`
// Deprecated: Deprecated in favor of "topic_id"
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The status of the Subscription. Possible values are `Active`,`ReceiveDisabled`, or `Disabled`. Defaults to `Active`.
Status *string `pulumi:"status"`
// The ID of the ServiceBus Topic to create this Subscription in. Changing this forces a new resource to be created.
TopicId *string `pulumi:"topicId"`
// Deprecated: Deprecated in favor of "topic_id"
TopicName *string `pulumi:"topicName"`
}
type SubscriptionState struct {
// The idle interval after which the topic is automatically deleted as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The minimum duration is `5` minutes or `PT5M`.
AutoDeleteOnIdle pulumi.StringPtrInput
// Boolean flag which controls whether the Subscription has dead letter support on filter evaluation exceptions. Defaults to `true`.
DeadLetteringOnFilterEvaluationError pulumi.BoolPtrInput
// Boolean flag which controls whether the Subscription has dead letter support when a message expires. Defaults to `false`.
DeadLetteringOnMessageExpiration pulumi.BoolPtrInput
// The Default message timespan to live as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). 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.
DefaultMessageTtl pulumi.StringPtrInput
// Boolean flag which controls whether the Subscription supports batched operations. Defaults to `false`.
EnableBatchedOperations pulumi.BoolPtrInput
// The name of a Queue or Topic to automatically forward Dead Letter messages to.
ForwardDeadLetteredMessagesTo pulumi.StringPtrInput
// The name of a Queue or Topic to automatically forward messages to.
ForwardTo pulumi.StringPtrInput
// The lock duration for the subscription as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The default value is `1` minute or `P0DT0H1M0S` . The maximum value is `5` minutes or `P0DT0H5M0S` .
LockDuration pulumi.StringPtrInput
// The maximum number of deliveries.
MaxDeliveryCount pulumi.IntPtrInput
// Specifies the name of the ServiceBus Subscription resource. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// Deprecated: Deprecated in favor of "topic_id"
NamespaceName pulumi.StringPtrInput
// Boolean flag which controls whether this Subscription supports the concept of a session. Defaults to `false`. Changing this forces a new resource to be created.
RequiresSession pulumi.BoolPtrInput
// Deprecated: Deprecated in favor of "topic_id"
ResourceGroupName pulumi.StringPtrInput
// The status of the Subscription. Possible values are `Active`,`ReceiveDisabled`, or `Disabled`. Defaults to `Active`.
Status pulumi.StringPtrInput
// The ID of the ServiceBus Topic to create this Subscription in. Changing this forces a new resource to be created.
TopicId pulumi.StringPtrInput
// Deprecated: Deprecated in favor of "topic_id"
TopicName pulumi.StringPtrInput
}
func (SubscriptionState) ElementType() reflect.Type {
return reflect.TypeOf((*subscriptionState)(nil)).Elem()
}
type subscriptionArgs struct {
// The idle interval after which the topic is automatically deleted as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The minimum duration is `5` minutes or `PT5M`.
AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"`
// Boolean flag which controls whether the Subscription has dead letter support on filter evaluation exceptions. Defaults to `true`.
DeadLetteringOnFilterEvaluationError *bool `pulumi:"deadLetteringOnFilterEvaluationError"`
// Boolean flag which controls whether the Subscription has dead letter support when a message expires. Defaults to `false`.
DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"`
// The Default message timespan to live as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). 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.
DefaultMessageTtl *string `pulumi:"defaultMessageTtl"`
// Boolean flag which controls whether the Subscription supports batched operations. Defaults to `false`.
EnableBatchedOperations *bool `pulumi:"enableBatchedOperations"`
// The name of a Queue or Topic to automatically forward Dead Letter messages to.
ForwardDeadLetteredMessagesTo *string `pulumi:"forwardDeadLetteredMessagesTo"`
// The name of a Queue or Topic to automatically forward messages to.
ForwardTo *string `pulumi:"forwardTo"`
// The lock duration for the subscription as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The default value is `1` minute or `P0DT0H1M0S` . The maximum value is `5` minutes or `P0DT0H5M0S` .
LockDuration *string `pulumi:"lockDuration"`
// The maximum number of deliveries.
MaxDeliveryCount int `pulumi:"maxDeliveryCount"`
// Specifies the name of the ServiceBus Subscription resource. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// Deprecated: Deprecated in favor of "topic_id"
NamespaceName *string `pulumi:"namespaceName"`
// Boolean flag which controls whether this Subscription supports the concept of a session. Defaults to `false`. Changing this forces a new resource to be created.
RequiresSession *bool `pulumi:"requiresSession"`
// Deprecated: Deprecated in favor of "topic_id"
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The status of the Subscription. Possible values are `Active`,`ReceiveDisabled`, or `Disabled`. Defaults to `Active`.
Status *string `pulumi:"status"`
// The ID of the ServiceBus Topic to create this Subscription in. Changing this forces a new resource to be created.
TopicId *string `pulumi:"topicId"`
// Deprecated: Deprecated in favor of "topic_id"
TopicName *string `pulumi:"topicName"`
}
// The set of arguments for constructing a Subscription resource.
type SubscriptionArgs struct {
// The idle interval after which the topic is automatically deleted as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The minimum duration is `5` minutes or `PT5M`.
AutoDeleteOnIdle pulumi.StringPtrInput
// Boolean flag which controls whether the Subscription has dead letter support on filter evaluation exceptions. Defaults to `true`.
DeadLetteringOnFilterEvaluationError pulumi.BoolPtrInput
// Boolean flag which controls whether the Subscription has dead letter support when a message expires. Defaults to `false`.
DeadLetteringOnMessageExpiration pulumi.BoolPtrInput
// The Default message timespan to live as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). 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.
DefaultMessageTtl pulumi.StringPtrInput
// Boolean flag which controls whether the Subscription supports batched operations. Defaults to `false`.
EnableBatchedOperations pulumi.BoolPtrInput
// The name of a Queue or Topic to automatically forward Dead Letter messages to.
ForwardDeadLetteredMessagesTo pulumi.StringPtrInput
// The name of a Queue or Topic to automatically forward messages to.
ForwardTo pulumi.StringPtrInput
// The lock duration for the subscription as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations). The default value is `1` minute or `P0DT0H1M0S` . The maximum value is `5` minutes or `P0DT0H5M0S` .
LockDuration pulumi.StringPtrInput
// The maximum number of deliveries.
MaxDeliveryCount pulumi.IntInput
// Specifies the name of the ServiceBus Subscription resource. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// Deprecated: Deprecated in favor of "topic_id"
NamespaceName pulumi.StringPtrInput
// Boolean flag which controls whether this Subscription supports the concept of a session. Defaults to `false`. Changing this forces a new resource to be created.
RequiresSession pulumi.BoolPtrInput
// Deprecated: Deprecated in favor of "topic_id"
ResourceGroupName pulumi.StringPtrInput
// The status of the Subscription. Possible values are `Active`,`ReceiveDisabled`, or `Disabled`. Defaults to `Active`.
Status pulumi.StringPtrInput
// The ID of the ServiceBus Topic to create this Subscription in. Changing this forces a new resource to be created.
TopicId pulumi.StringPtrInput
// Deprecated: Deprecated in favor of "topic_id"
TopicName pulumi.StringPtrInput
}
func (SubscriptionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*subscriptionArgs)(nil)).Elem()
}
type SubscriptionInput interface {
pulumi.Input
ToSubscriptionOutput() SubscriptionOutput
ToSubscriptionOutputWithContext(ctx context.Context) SubscriptionOutput
}
func (*Subscription) ElementType() reflect.Type {
return reflect.TypeOf((**Subscription)(nil)).Elem()
}
func (i *Subscription) ToSubscriptionOutput() SubscriptionOutput {
return i.ToSubscriptionOutputWithContext(context.Background())
}
func (i *Subscription) ToSubscriptionOutputWithContext(ctx context.Context) SubscriptionOutput {
return pulumi.ToOutputWithContext(ctx, i).(SubscriptionOutput)
}
// SubscriptionArrayInput is an input type that accepts SubscriptionArray and SubscriptionArrayOutput values.
// You can construct a concrete instance of `SubscriptionArrayInput` via:
//
// SubscriptionArray{ SubscriptionArgs{...} }
type SubscriptionArrayInput interface {
pulumi.Input
ToSubscriptionArrayOutput() SubscriptionArrayOutput
ToSubscriptionArrayOutputWithContext(context.Context) SubscriptionArrayOutput
}
type SubscriptionArray []SubscriptionInput
func (SubscriptionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Subscription)(nil)).Elem()
}
func (i SubscriptionArray) ToSubscriptionArrayOutput() SubscriptionArrayOutput {
return i.ToSubscriptionArrayOutputWithContext(context.Background())
}
func (i SubscriptionArray) ToSubscriptionArrayOutputWithContext(ctx context.Context) SubscriptionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SubscriptionArrayOutput)
}
// SubscriptionMapInput is an input type that accepts SubscriptionMap and SubscriptionMapOutput values.
// You can construct a concrete instance of `SubscriptionMapInput` via:
//
// SubscriptionMap{ "key": SubscriptionArgs{...} }
type SubscriptionMapInput interface {
pulumi.Input
ToSubscriptionMapOutput() SubscriptionMapOutput
ToSubscriptionMapOutputWithContext(context.Context) SubscriptionMapOutput
}
type SubscriptionMap map[string]SubscriptionInput
func (SubscriptionMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Subscription)(nil)).Elem()
}
func (i SubscriptionMap) ToSubscriptionMapOutput() SubscriptionMapOutput {
return i.ToSubscriptionMapOutputWithContext(context.Background())
}
func (i SubscriptionMap) ToSubscriptionMapOutputWithContext(ctx context.Context) SubscriptionMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SubscriptionMapOutput)
}
type SubscriptionOutput struct{ *pulumi.OutputState }
func (SubscriptionOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Subscription)(nil)).Elem()
}
func (o SubscriptionOutput) ToSubscriptionOutput() SubscriptionOutput {
return o
}
func (o SubscriptionOutput) ToSubscriptionOutputWithContext(ctx context.Context) SubscriptionOutput {
return o
}
type SubscriptionArrayOutput struct{ *pulumi.OutputState }
func (SubscriptionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Subscription)(nil)).Elem()
}
func (o SubscriptionArrayOutput) ToSubscriptionArrayOutput() SubscriptionArrayOutput {
return o
}
func (o SubscriptionArrayOutput) ToSubscriptionArrayOutputWithContext(ctx context.Context) SubscriptionArrayOutput {
return o
}
func (o SubscriptionArrayOutput) Index(i pulumi.IntInput) SubscriptionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Subscription {
return vs[0].([]*Subscription)[vs[1].(int)]
}).(SubscriptionOutput)
}
type SubscriptionMapOutput struct{ *pulumi.OutputState }
func (SubscriptionMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Subscription)(nil)).Elem()
}
func (o SubscriptionMapOutput) ToSubscriptionMapOutput() SubscriptionMapOutput {
return o
}
func (o SubscriptionMapOutput) ToSubscriptionMapOutputWithContext(ctx context.Context) SubscriptionMapOutput {
return o
}
func (o SubscriptionMapOutput) MapIndex(k pulumi.StringInput) SubscriptionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Subscription {
return vs[0].(map[string]*Subscription)[vs[1].(string)]
}).(SubscriptionOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SubscriptionInput)(nil)).Elem(), &Subscription{})
pulumi.RegisterInputType(reflect.TypeOf((*SubscriptionArrayInput)(nil)).Elem(), SubscriptionArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SubscriptionMapInput)(nil)).Elem(), SubscriptionMap{})
pulumi.RegisterOutputType(SubscriptionOutput{})
pulumi.RegisterOutputType(SubscriptionArrayOutput{})
pulumi.RegisterOutputType(SubscriptionMapOutput{})
}