/
app.go
543 lines (480 loc) · 23 KB
/
app.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
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package containerapp
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Container App.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/containerapp"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("example-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
// Name: pulumi.String("acctest-01"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// Sku: pulumi.String("PerGB2018"),
// RetentionInDays: pulumi.Int(30),
// })
// if err != nil {
// return err
// }
// exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
// Name: pulumi.String("Example-Environment"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
// })
// if err != nil {
// return err
// }
// _, err = containerapp.NewApp(ctx, "example", &containerapp.AppArgs{
// Name: pulumi.String("example-app"),
// ContainerAppEnvironmentId: exampleEnvironment.ID(),
// ResourceGroupName: example.Name,
// RevisionMode: pulumi.String("Single"),
// Template: &containerapp.AppTemplateArgs{
// Containers: containerapp.AppTemplateContainerArray{
// &containerapp.AppTemplateContainerArgs{
// Name: pulumi.String("examplecontainerapp"),
// Image: pulumi.String("mcr.microsoft.com/azuredocs/containerapps-helloworld:latest"),
// Cpu: pulumi.Float64(0.25),
// Memory: pulumi.String("0.5Gi"),
// },
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// A Container App can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:containerapp/app:App example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/containerApps/myContainerApp"
// ```
type App struct {
pulumi.CustomResourceState
// The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ContainerAppEnvironmentId pulumi.StringOutput `pulumi:"containerAppEnvironmentId"`
// The ID of the Custom Domain Verification for this Container App.
CustomDomainVerificationId pulumi.StringOutput `pulumi:"customDomainVerificationId"`
// A `dapr` block as detailed below.
Dapr AppDaprPtrOutput `pulumi:"dapr"`
// An `identity` block as detailed below.
Identity AppIdentityPtrOutput `pulumi:"identity"`
// An `ingress` block as detailed below.
Ingress AppIngressPtrOutput `pulumi:"ingress"`
// The FQDN of the Latest Revision of the Container App.
LatestRevisionFqdn pulumi.StringOutput `pulumi:"latestRevisionFqdn"`
// The name of the latest Container Revision.
LatestRevisionName pulumi.StringOutput `pulumi:"latestRevisionName"`
// The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
Location pulumi.StringOutput `pulumi:"location"`
// The name for this Container App. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// A list of the Public IP Addresses which the Container App uses for outbound network access.
OutboundIpAddresses pulumi.StringArrayOutput `pulumi:"outboundIpAddresses"`
// A `registry` block as detailed below.
Registries AppRegistryArrayOutput `pulumi:"registries"`
// The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration.
RevisionMode pulumi.StringOutput `pulumi:"revisionMode"`
// One or more `secret` block as detailed below.
Secrets AppSecretArrayOutput `pulumi:"secrets"`
// A mapping of tags to assign to the Container App.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// A `template` block as detailed below.
Template AppTemplateOutput `pulumi:"template"`
// The name of the Workload Profile in the Container App Environment to place this Container App.
//
// > **Note:** Omit this value to use the default `Consumption` Workload Profile.
WorkloadProfileName pulumi.StringPtrOutput `pulumi:"workloadProfileName"`
}
// NewApp registers a new resource with the given unique name, arguments, and options.
func NewApp(ctx *pulumi.Context,
name string, args *AppArgs, opts ...pulumi.ResourceOption) (*App, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ContainerAppEnvironmentId == nil {
return nil, errors.New("invalid value for required argument 'ContainerAppEnvironmentId'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.RevisionMode == nil {
return nil, errors.New("invalid value for required argument 'RevisionMode'")
}
if args.Template == nil {
return nil, errors.New("invalid value for required argument 'Template'")
}
if args.Secrets != nil {
args.Secrets = pulumi.ToSecret(args.Secrets).(AppSecretArrayInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"customDomainVerificationId",
"secrets",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource App
err := ctx.RegisterResource("azure:containerapp/app:App", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetApp gets an existing App 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 GetApp(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AppState, opts ...pulumi.ResourceOption) (*App, error) {
var resource App
err := ctx.ReadResource("azure:containerapp/app:App", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering App resources.
type appState struct {
// The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ContainerAppEnvironmentId *string `pulumi:"containerAppEnvironmentId"`
// The ID of the Custom Domain Verification for this Container App.
CustomDomainVerificationId *string `pulumi:"customDomainVerificationId"`
// A `dapr` block as detailed below.
Dapr *AppDapr `pulumi:"dapr"`
// An `identity` block as detailed below.
Identity *AppIdentity `pulumi:"identity"`
// An `ingress` block as detailed below.
Ingress *AppIngress `pulumi:"ingress"`
// The FQDN of the Latest Revision of the Container App.
LatestRevisionFqdn *string `pulumi:"latestRevisionFqdn"`
// The name of the latest Container Revision.
LatestRevisionName *string `pulumi:"latestRevisionName"`
// The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
Location *string `pulumi:"location"`
// The name for this Container App. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A list of the Public IP Addresses which the Container App uses for outbound network access.
OutboundIpAddresses []string `pulumi:"outboundIpAddresses"`
// A `registry` block as detailed below.
Registries []AppRegistry `pulumi:"registries"`
// The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration.
RevisionMode *string `pulumi:"revisionMode"`
// One or more `secret` block as detailed below.
Secrets []AppSecret `pulumi:"secrets"`
// A mapping of tags to assign to the Container App.
Tags map[string]string `pulumi:"tags"`
// A `template` block as detailed below.
Template *AppTemplate `pulumi:"template"`
// The name of the Workload Profile in the Container App Environment to place this Container App.
//
// > **Note:** Omit this value to use the default `Consumption` Workload Profile.
WorkloadProfileName *string `pulumi:"workloadProfileName"`
}
type AppState struct {
// The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ContainerAppEnvironmentId pulumi.StringPtrInput
// The ID of the Custom Domain Verification for this Container App.
CustomDomainVerificationId pulumi.StringPtrInput
// A `dapr` block as detailed below.
Dapr AppDaprPtrInput
// An `identity` block as detailed below.
Identity AppIdentityPtrInput
// An `ingress` block as detailed below.
Ingress AppIngressPtrInput
// The FQDN of the Latest Revision of the Container App.
LatestRevisionFqdn pulumi.StringPtrInput
// The name of the latest Container Revision.
LatestRevisionName pulumi.StringPtrInput
// The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
Location pulumi.StringPtrInput
// The name for this Container App. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A list of the Public IP Addresses which the Container App uses for outbound network access.
OutboundIpAddresses pulumi.StringArrayInput
// A `registry` block as detailed below.
Registries AppRegistryArrayInput
// The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration.
RevisionMode pulumi.StringPtrInput
// One or more `secret` block as detailed below.
Secrets AppSecretArrayInput
// A mapping of tags to assign to the Container App.
Tags pulumi.StringMapInput
// A `template` block as detailed below.
Template AppTemplatePtrInput
// The name of the Workload Profile in the Container App Environment to place this Container App.
//
// > **Note:** Omit this value to use the default `Consumption` Workload Profile.
WorkloadProfileName pulumi.StringPtrInput
}
func (AppState) ElementType() reflect.Type {
return reflect.TypeOf((*appState)(nil)).Elem()
}
type appArgs struct {
// The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ContainerAppEnvironmentId string `pulumi:"containerAppEnvironmentId"`
// A `dapr` block as detailed below.
Dapr *AppDapr `pulumi:"dapr"`
// An `identity` block as detailed below.
Identity *AppIdentity `pulumi:"identity"`
// An `ingress` block as detailed below.
Ingress *AppIngress `pulumi:"ingress"`
// The name for this Container App. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A `registry` block as detailed below.
Registries []AppRegistry `pulumi:"registries"`
// The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration.
RevisionMode string `pulumi:"revisionMode"`
// One or more `secret` block as detailed below.
Secrets []AppSecret `pulumi:"secrets"`
// A mapping of tags to assign to the Container App.
Tags map[string]string `pulumi:"tags"`
// A `template` block as detailed below.
Template AppTemplate `pulumi:"template"`
// The name of the Workload Profile in the Container App Environment to place this Container App.
//
// > **Note:** Omit this value to use the default `Consumption` Workload Profile.
WorkloadProfileName *string `pulumi:"workloadProfileName"`
}
// The set of arguments for constructing a App resource.
type AppArgs struct {
// The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
ContainerAppEnvironmentId pulumi.StringInput
// A `dapr` block as detailed below.
Dapr AppDaprPtrInput
// An `identity` block as detailed below.
Identity AppIdentityPtrInput
// An `ingress` block as detailed below.
Ingress AppIngressPtrInput
// The name for this Container App. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A `registry` block as detailed below.
Registries AppRegistryArrayInput
// The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration.
RevisionMode pulumi.StringInput
// One or more `secret` block as detailed below.
Secrets AppSecretArrayInput
// A mapping of tags to assign to the Container App.
Tags pulumi.StringMapInput
// A `template` block as detailed below.
Template AppTemplateInput
// The name of the Workload Profile in the Container App Environment to place this Container App.
//
// > **Note:** Omit this value to use the default `Consumption` Workload Profile.
WorkloadProfileName pulumi.StringPtrInput
}
func (AppArgs) ElementType() reflect.Type {
return reflect.TypeOf((*appArgs)(nil)).Elem()
}
type AppInput interface {
pulumi.Input
ToAppOutput() AppOutput
ToAppOutputWithContext(ctx context.Context) AppOutput
}
func (*App) ElementType() reflect.Type {
return reflect.TypeOf((**App)(nil)).Elem()
}
func (i *App) ToAppOutput() AppOutput {
return i.ToAppOutputWithContext(context.Background())
}
func (i *App) ToAppOutputWithContext(ctx context.Context) AppOutput {
return pulumi.ToOutputWithContext(ctx, i).(AppOutput)
}
// AppArrayInput is an input type that accepts AppArray and AppArrayOutput values.
// You can construct a concrete instance of `AppArrayInput` via:
//
// AppArray{ AppArgs{...} }
type AppArrayInput interface {
pulumi.Input
ToAppArrayOutput() AppArrayOutput
ToAppArrayOutputWithContext(context.Context) AppArrayOutput
}
type AppArray []AppInput
func (AppArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*App)(nil)).Elem()
}
func (i AppArray) ToAppArrayOutput() AppArrayOutput {
return i.ToAppArrayOutputWithContext(context.Background())
}
func (i AppArray) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AppArrayOutput)
}
// AppMapInput is an input type that accepts AppMap and AppMapOutput values.
// You can construct a concrete instance of `AppMapInput` via:
//
// AppMap{ "key": AppArgs{...} }
type AppMapInput interface {
pulumi.Input
ToAppMapOutput() AppMapOutput
ToAppMapOutputWithContext(context.Context) AppMapOutput
}
type AppMap map[string]AppInput
func (AppMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*App)(nil)).Elem()
}
func (i AppMap) ToAppMapOutput() AppMapOutput {
return i.ToAppMapOutputWithContext(context.Background())
}
func (i AppMap) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AppMapOutput)
}
type AppOutput struct{ *pulumi.OutputState }
func (AppOutput) ElementType() reflect.Type {
return reflect.TypeOf((**App)(nil)).Elem()
}
func (o AppOutput) ToAppOutput() AppOutput {
return o
}
func (o AppOutput) ToAppOutputWithContext(ctx context.Context) AppOutput {
return o
}
// The ID of the Container App Environment within which this Container App should exist. Changing this forces a new resource to be created.
func (o AppOutput) ContainerAppEnvironmentId() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.ContainerAppEnvironmentId }).(pulumi.StringOutput)
}
// The ID of the Custom Domain Verification for this Container App.
func (o AppOutput) CustomDomainVerificationId() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.CustomDomainVerificationId }).(pulumi.StringOutput)
}
// A `dapr` block as detailed below.
func (o AppOutput) Dapr() AppDaprPtrOutput {
return o.ApplyT(func(v *App) AppDaprPtrOutput { return v.Dapr }).(AppDaprPtrOutput)
}
// An `identity` block as detailed below.
func (o AppOutput) Identity() AppIdentityPtrOutput {
return o.ApplyT(func(v *App) AppIdentityPtrOutput { return v.Identity }).(AppIdentityPtrOutput)
}
// An `ingress` block as detailed below.
func (o AppOutput) Ingress() AppIngressPtrOutput {
return o.ApplyT(func(v *App) AppIngressPtrOutput { return v.Ingress }).(AppIngressPtrOutput)
}
// The FQDN of the Latest Revision of the Container App.
func (o AppOutput) LatestRevisionFqdn() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.LatestRevisionFqdn }).(pulumi.StringOutput)
}
// The name of the latest Container Revision.
func (o AppOutput) LatestRevisionName() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.LatestRevisionName }).(pulumi.StringOutput)
}
// The location this Container App is deployed in. This is the same as the Environment in which it is deployed.
func (o AppOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// The name for this Container App. Changing this forces a new resource to be created.
func (o AppOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A list of the Public IP Addresses which the Container App uses for outbound network access.
func (o AppOutput) OutboundIpAddresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *App) pulumi.StringArrayOutput { return v.OutboundIpAddresses }).(pulumi.StringArrayOutput)
}
// A `registry` block as detailed below.
func (o AppOutput) Registries() AppRegistryArrayOutput {
return o.ApplyT(func(v *App) AppRegistryArrayOutput { return v.Registries }).(AppRegistryArrayOutput)
}
// The name of the resource group in which the Container App Environment is to be created. Changing this forces a new resource to be created.
func (o AppOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// The revisions operational mode for the Container App. Possible values include `Single` and `Multiple`. In `Single` mode, a single revision is in operation at any given time. In `Multiple` mode, more than one revision can be active at a time and can be configured with load distribution via the `trafficWeight` block in the `ingress` configuration.
func (o AppOutput) RevisionMode() pulumi.StringOutput {
return o.ApplyT(func(v *App) pulumi.StringOutput { return v.RevisionMode }).(pulumi.StringOutput)
}
// One or more `secret` block as detailed below.
func (o AppOutput) Secrets() AppSecretArrayOutput {
return o.ApplyT(func(v *App) AppSecretArrayOutput { return v.Secrets }).(AppSecretArrayOutput)
}
// A mapping of tags to assign to the Container App.
func (o AppOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *App) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// A `template` block as detailed below.
func (o AppOutput) Template() AppTemplateOutput {
return o.ApplyT(func(v *App) AppTemplateOutput { return v.Template }).(AppTemplateOutput)
}
// The name of the Workload Profile in the Container App Environment to place this Container App.
//
// > **Note:** Omit this value to use the default `Consumption` Workload Profile.
func (o AppOutput) WorkloadProfileName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *App) pulumi.StringPtrOutput { return v.WorkloadProfileName }).(pulumi.StringPtrOutput)
}
type AppArrayOutput struct{ *pulumi.OutputState }
func (AppArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*App)(nil)).Elem()
}
func (o AppArrayOutput) ToAppArrayOutput() AppArrayOutput {
return o
}
func (o AppArrayOutput) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput {
return o
}
func (o AppArrayOutput) Index(i pulumi.IntInput) AppOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *App {
return vs[0].([]*App)[vs[1].(int)]
}).(AppOutput)
}
type AppMapOutput struct{ *pulumi.OutputState }
func (AppMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*App)(nil)).Elem()
}
func (o AppMapOutput) ToAppMapOutput() AppMapOutput {
return o
}
func (o AppMapOutput) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput {
return o
}
func (o AppMapOutput) MapIndex(k pulumi.StringInput) AppOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *App {
return vs[0].(map[string]*App)[vs[1].(string)]
}).(AppOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AppInput)(nil)).Elem(), &App{})
pulumi.RegisterInputType(reflect.TypeOf((*AppArrayInput)(nil)).Elem(), AppArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AppMapInput)(nil)).Elem(), AppMap{})
pulumi.RegisterOutputType(AppOutput{})
pulumi.RegisterOutputType(AppArrayOutput{})
pulumi.RegisterOutputType(AppMapOutput{})
}