/
androidApp.go
528 lines (472 loc) · 21 KB
/
androidApp.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
// 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 firebase
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## Example Usage
//
// ### Firebase Android App Basic
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := firebase.NewAndroidApp(ctx, "basic", &firebase.AndroidAppArgs{
// Project: pulumi.String("my-project-name"),
// DisplayName: pulumi.String("Display Name Basic"),
// PackageName: pulumi.String("android.package.app"),
// Sha1Hashes: pulumi.StringArray{
// pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
// },
// Sha256Hashes: pulumi.StringArray{
// pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### Firebase Android App Custom Api Key
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/projects"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// android, err := projects.NewApiKey(ctx, "android", &projects.ApiKeyArgs{
// Name: pulumi.String("api-key"),
// DisplayName: pulumi.String("Display Name"),
// Project: pulumi.String("my-project-name"),
// Restrictions: &projects.ApiKeyRestrictionsArgs{
// AndroidKeyRestrictions: &projects.ApiKeyRestrictionsAndroidKeyRestrictionsArgs{
// AllowedApplications: projects.ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArray{
// &projects.ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgs{
// PackageName: pulumi.String("android.package.app"),
// Sha1Fingerprint: pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
// },
// },
// },
// },
// })
// if err != nil {
// return err
// }
// _, err = firebase.NewAndroidApp(ctx, "default", &firebase.AndroidAppArgs{
// Project: pulumi.String("my-project-name"),
// DisplayName: pulumi.String("Display Name"),
// PackageName: pulumi.String("android.package.app"),
// Sha1Hashes: pulumi.StringArray{
// pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21c"),
// },
// Sha256Hashes: pulumi.StringArray{
// pulumi.String("2145bdf698b8715039bd0e83f2069bed435ac21ca1b2c3d4e5f6123456789abc"),
// },
// ApiKeyId: android.Uid,
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// AndroidApp can be imported using any of these accepted formats:
//
// * `{{project}} projects/{{project}}/androidApps/{{app_id}}`
//
// * `projects/{{project}}/androidApps/{{app_id}}`
//
// * `{{project}}/{{project}}/{{app_id}}`
//
// * `androidApps/{{app_id}}`
//
// * `{{app_id}}`
//
// When using the `pulumi import` command, AndroidApp can be imported using one of the formats above. For example:
//
// ```sh
// $ pulumi import gcp:firebase/androidApp:AndroidApp default {{project}} projects/{{project}}/androidApps/{{app_id}}
// ```
//
// ```sh
// $ pulumi import gcp:firebase/androidApp:AndroidApp default projects/{{project}}/androidApps/{{app_id}}
// ```
//
// ```sh
// $ pulumi import gcp:firebase/androidApp:AndroidApp default {{project}}/{{project}}/{{app_id}}
// ```
//
// ```sh
// $ pulumi import gcp:firebase/androidApp:AndroidApp default androidApps/{{app_id}}
// ```
//
// ```sh
// $ pulumi import gcp:firebase/androidApp:AndroidApp default {{app_id}}
// ```
type AndroidApp struct {
pulumi.CustomResourceState
// The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp.
// If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp.
// This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
ApiKeyId pulumi.StringOutput `pulumi:"apiKeyId"`
// The globally unique, Firebase-assigned identifier of the AndroidApp.
// This identifier should be treated as an opaque token, as the data format is not specified.
AppId pulumi.StringOutput `pulumi:"appId"`
// (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
// 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
// AndroidApp. Defaults to 'DELETE'.
DeletionPolicy pulumi.StringPtrOutput `pulumi:"deletionPolicy"`
// The user-assigned display name of the AndroidApp.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// This checksum is computed by the server based on the value of other fields, and it may be sent
// with update requests to ensure the client has an up-to-date value before proceeding.
Etag pulumi.StringOutput `pulumi:"etag"`
// The fully qualified resource name of the AndroidApp, for example:
// projects/projectId/androidApps/appId
Name pulumi.StringOutput `pulumi:"name"`
// The canonical package name of the Android app as would appear in the Google Play
// Developer Console.
//
// ***
PackageName pulumi.StringOutput `pulumi:"packageName"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project pulumi.StringOutput `pulumi:"project"`
// The SHA1 certificate hashes for the AndroidApp.
Sha1Hashes pulumi.StringArrayOutput `pulumi:"sha1Hashes"`
// The SHA256 certificate hashes for the AndroidApp.
Sha256Hashes pulumi.StringArrayOutput `pulumi:"sha256Hashes"`
}
// NewAndroidApp registers a new resource with the given unique name, arguments, and options.
func NewAndroidApp(ctx *pulumi.Context,
name string, args *AndroidAppArgs, opts ...pulumi.ResourceOption) (*AndroidApp, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DisplayName == nil {
return nil, errors.New("invalid value for required argument 'DisplayName'")
}
if args.PackageName == nil {
return nil, errors.New("invalid value for required argument 'PackageName'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource AndroidApp
err := ctx.RegisterResource("gcp:firebase/androidApp:AndroidApp", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAndroidApp gets an existing AndroidApp 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 GetAndroidApp(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AndroidAppState, opts ...pulumi.ResourceOption) (*AndroidApp, error) {
var resource AndroidApp
err := ctx.ReadResource("gcp:firebase/androidApp:AndroidApp", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering AndroidApp resources.
type androidAppState struct {
// The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp.
// If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp.
// This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
ApiKeyId *string `pulumi:"apiKeyId"`
// The globally unique, Firebase-assigned identifier of the AndroidApp.
// This identifier should be treated as an opaque token, as the data format is not specified.
AppId *string `pulumi:"appId"`
// (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
// 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
// AndroidApp. Defaults to 'DELETE'.
DeletionPolicy *string `pulumi:"deletionPolicy"`
// The user-assigned display name of the AndroidApp.
DisplayName *string `pulumi:"displayName"`
// This checksum is computed by the server based on the value of other fields, and it may be sent
// with update requests to ensure the client has an up-to-date value before proceeding.
Etag *string `pulumi:"etag"`
// The fully qualified resource name of the AndroidApp, for example:
// projects/projectId/androidApps/appId
Name *string `pulumi:"name"`
// The canonical package name of the Android app as would appear in the Google Play
// Developer Console.
//
// ***
PackageName *string `pulumi:"packageName"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `pulumi:"project"`
// The SHA1 certificate hashes for the AndroidApp.
Sha1Hashes []string `pulumi:"sha1Hashes"`
// The SHA256 certificate hashes for the AndroidApp.
Sha256Hashes []string `pulumi:"sha256Hashes"`
}
type AndroidAppState struct {
// The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp.
// If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp.
// This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
ApiKeyId pulumi.StringPtrInput
// The globally unique, Firebase-assigned identifier of the AndroidApp.
// This identifier should be treated as an opaque token, as the data format is not specified.
AppId pulumi.StringPtrInput
// (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
// 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
// AndroidApp. Defaults to 'DELETE'.
DeletionPolicy pulumi.StringPtrInput
// The user-assigned display name of the AndroidApp.
DisplayName pulumi.StringPtrInput
// This checksum is computed by the server based on the value of other fields, and it may be sent
// with update requests to ensure the client has an up-to-date value before proceeding.
Etag pulumi.StringPtrInput
// The fully qualified resource name of the AndroidApp, for example:
// projects/projectId/androidApps/appId
Name pulumi.StringPtrInput
// The canonical package name of the Android app as would appear in the Google Play
// Developer Console.
//
// ***
PackageName pulumi.StringPtrInput
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project pulumi.StringPtrInput
// The SHA1 certificate hashes for the AndroidApp.
Sha1Hashes pulumi.StringArrayInput
// The SHA256 certificate hashes for the AndroidApp.
Sha256Hashes pulumi.StringArrayInput
}
func (AndroidAppState) ElementType() reflect.Type {
return reflect.TypeOf((*androidAppState)(nil)).Elem()
}
type androidAppArgs struct {
// The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp.
// If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp.
// This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
ApiKeyId *string `pulumi:"apiKeyId"`
// (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
// 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
// AndroidApp. Defaults to 'DELETE'.
DeletionPolicy *string `pulumi:"deletionPolicy"`
// The user-assigned display name of the AndroidApp.
DisplayName string `pulumi:"displayName"`
// The canonical package name of the Android app as would appear in the Google Play
// Developer Console.
//
// ***
PackageName string `pulumi:"packageName"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `pulumi:"project"`
// The SHA1 certificate hashes for the AndroidApp.
Sha1Hashes []string `pulumi:"sha1Hashes"`
// The SHA256 certificate hashes for the AndroidApp.
Sha256Hashes []string `pulumi:"sha256Hashes"`
}
// The set of arguments for constructing a AndroidApp resource.
type AndroidAppArgs struct {
// The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp.
// If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp.
// This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
ApiKeyId pulumi.StringPtrInput
// (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
// 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
// AndroidApp. Defaults to 'DELETE'.
DeletionPolicy pulumi.StringPtrInput
// The user-assigned display name of the AndroidApp.
DisplayName pulumi.StringInput
// The canonical package name of the Android app as would appear in the Google Play
// Developer Console.
//
// ***
PackageName pulumi.StringInput
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project pulumi.StringPtrInput
// The SHA1 certificate hashes for the AndroidApp.
Sha1Hashes pulumi.StringArrayInput
// The SHA256 certificate hashes for the AndroidApp.
Sha256Hashes pulumi.StringArrayInput
}
func (AndroidAppArgs) ElementType() reflect.Type {
return reflect.TypeOf((*androidAppArgs)(nil)).Elem()
}
type AndroidAppInput interface {
pulumi.Input
ToAndroidAppOutput() AndroidAppOutput
ToAndroidAppOutputWithContext(ctx context.Context) AndroidAppOutput
}
func (*AndroidApp) ElementType() reflect.Type {
return reflect.TypeOf((**AndroidApp)(nil)).Elem()
}
func (i *AndroidApp) ToAndroidAppOutput() AndroidAppOutput {
return i.ToAndroidAppOutputWithContext(context.Background())
}
func (i *AndroidApp) ToAndroidAppOutputWithContext(ctx context.Context) AndroidAppOutput {
return pulumi.ToOutputWithContext(ctx, i).(AndroidAppOutput)
}
// AndroidAppArrayInput is an input type that accepts AndroidAppArray and AndroidAppArrayOutput values.
// You can construct a concrete instance of `AndroidAppArrayInput` via:
//
// AndroidAppArray{ AndroidAppArgs{...} }
type AndroidAppArrayInput interface {
pulumi.Input
ToAndroidAppArrayOutput() AndroidAppArrayOutput
ToAndroidAppArrayOutputWithContext(context.Context) AndroidAppArrayOutput
}
type AndroidAppArray []AndroidAppInput
func (AndroidAppArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AndroidApp)(nil)).Elem()
}
func (i AndroidAppArray) ToAndroidAppArrayOutput() AndroidAppArrayOutput {
return i.ToAndroidAppArrayOutputWithContext(context.Background())
}
func (i AndroidAppArray) ToAndroidAppArrayOutputWithContext(ctx context.Context) AndroidAppArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AndroidAppArrayOutput)
}
// AndroidAppMapInput is an input type that accepts AndroidAppMap and AndroidAppMapOutput values.
// You can construct a concrete instance of `AndroidAppMapInput` via:
//
// AndroidAppMap{ "key": AndroidAppArgs{...} }
type AndroidAppMapInput interface {
pulumi.Input
ToAndroidAppMapOutput() AndroidAppMapOutput
ToAndroidAppMapOutputWithContext(context.Context) AndroidAppMapOutput
}
type AndroidAppMap map[string]AndroidAppInput
func (AndroidAppMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AndroidApp)(nil)).Elem()
}
func (i AndroidAppMap) ToAndroidAppMapOutput() AndroidAppMapOutput {
return i.ToAndroidAppMapOutputWithContext(context.Background())
}
func (i AndroidAppMap) ToAndroidAppMapOutputWithContext(ctx context.Context) AndroidAppMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AndroidAppMapOutput)
}
type AndroidAppOutput struct{ *pulumi.OutputState }
func (AndroidAppOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AndroidApp)(nil)).Elem()
}
func (o AndroidAppOutput) ToAndroidAppOutput() AndroidAppOutput {
return o
}
func (o AndroidAppOutput) ToAndroidAppOutputWithContext(ctx context.Context) AndroidAppOutput {
return o
}
// The globally unique, Google-assigned identifier (UID) for the Firebase API key associated with the AndroidApp.
// If apiKeyId is not set during creation, then Firebase automatically associates an apiKeyId with the AndroidApp.
// This auto-associated key may be an existing valid key or, if no valid key exists, a new one will be provisioned.
func (o AndroidAppOutput) ApiKeyId() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.ApiKeyId }).(pulumi.StringOutput)
}
// The globally unique, Firebase-assigned identifier of the AndroidApp.
// This identifier should be treated as an opaque token, as the data format is not specified.
func (o AndroidAppOutput) AppId() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.AppId }).(pulumi.StringOutput)
}
// (Optional) Set to 'ABANDON' to allow the AndroidApp to be untracked from terraform state rather than deleted upon
// 'terraform destroy'. This is useful because the AndroidApp may be serving traffic. Set to 'DELETE' to delete the
// AndroidApp. Defaults to 'DELETE'.
func (o AndroidAppOutput) DeletionPolicy() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringPtrOutput { return v.DeletionPolicy }).(pulumi.StringPtrOutput)
}
// The user-assigned display name of the AndroidApp.
func (o AndroidAppOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// This checksum is computed by the server based on the value of other fields, and it may be sent
// with update requests to ensure the client has an up-to-date value before proceeding.
func (o AndroidAppOutput) Etag() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.Etag }).(pulumi.StringOutput)
}
// The fully qualified resource name of the AndroidApp, for example:
// projects/projectId/androidApps/appId
func (o AndroidAppOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The canonical package name of the Android app as would appear in the Google Play
// Developer Console.
//
// ***
func (o AndroidAppOutput) PackageName() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.PackageName }).(pulumi.StringOutput)
}
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
func (o AndroidAppOutput) Project() pulumi.StringOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput)
}
// The SHA1 certificate hashes for the AndroidApp.
func (o AndroidAppOutput) Sha1Hashes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringArrayOutput { return v.Sha1Hashes }).(pulumi.StringArrayOutput)
}
// The SHA256 certificate hashes for the AndroidApp.
func (o AndroidAppOutput) Sha256Hashes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *AndroidApp) pulumi.StringArrayOutput { return v.Sha256Hashes }).(pulumi.StringArrayOutput)
}
type AndroidAppArrayOutput struct{ *pulumi.OutputState }
func (AndroidAppArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AndroidApp)(nil)).Elem()
}
func (o AndroidAppArrayOutput) ToAndroidAppArrayOutput() AndroidAppArrayOutput {
return o
}
func (o AndroidAppArrayOutput) ToAndroidAppArrayOutputWithContext(ctx context.Context) AndroidAppArrayOutput {
return o
}
func (o AndroidAppArrayOutput) Index(i pulumi.IntInput) AndroidAppOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AndroidApp {
return vs[0].([]*AndroidApp)[vs[1].(int)]
}).(AndroidAppOutput)
}
type AndroidAppMapOutput struct{ *pulumi.OutputState }
func (AndroidAppMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AndroidApp)(nil)).Elem()
}
func (o AndroidAppMapOutput) ToAndroidAppMapOutput() AndroidAppMapOutput {
return o
}
func (o AndroidAppMapOutput) ToAndroidAppMapOutputWithContext(ctx context.Context) AndroidAppMapOutput {
return o
}
func (o AndroidAppMapOutput) MapIndex(k pulumi.StringInput) AndroidAppOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AndroidApp {
return vs[0].(map[string]*AndroidApp)[vs[1].(string)]
}).(AndroidAppOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AndroidAppInput)(nil)).Elem(), &AndroidApp{})
pulumi.RegisterInputType(reflect.TypeOf((*AndroidAppArrayInput)(nil)).Elem(), AndroidAppArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AndroidAppMapInput)(nil)).Elem(), AndroidAppMap{})
pulumi.RegisterOutputType(AndroidAppOutput{})
pulumi.RegisterOutputType(AndroidAppArrayOutput{})
pulumi.RegisterOutputType(AndroidAppMapOutput{})
}