/
bucketObject.go
470 lines (410 loc) · 21.1 KB
/
bucketObject.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
// *** 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 storage
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Creates a new object inside an existing bucket in Google cloud storage service (GCS).
// [ACLs](https://cloud.google.com/storage/docs/access-control/lists) can be applied using the `storage.ObjectACL` resource.
// For more information see
// [the official documentation](https://cloud.google.com/storage/docs/key-terms#objects)
// and
// [API](https://cloud.google.com/storage/docs/json_api/v1/objects).
//
// ## Example Usage
//
// Example creating a public object in an existing `image-store` bucket.
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/storage"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := storage.NewBucketObject(ctx, "picture", &storage.BucketObjectArgs{
// Bucket: pulumi.String("image-store"),
// Source: pulumi.NewFileAsset("/images/nature/garden-tiger-moth.jpg"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// This resource does not support import.
type BucketObject struct {
pulumi.CustomResourceState
// The name of the containing bucket.
Bucket pulumi.StringOutput `pulumi:"bucket"`
// [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
// directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
CacheControl pulumi.StringPtrOutput `pulumi:"cacheControl"`
// Data as `string` to be uploaded. Must be defined if `source` is not. **Note**: The `content` field is marked as sensitive.
Content pulumi.StringPtrOutput `pulumi:"content"`
// [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
ContentDisposition pulumi.StringPtrOutput `pulumi:"contentDisposition"`
// [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
ContentEncoding pulumi.StringPtrOutput `pulumi:"contentEncoding"`
// [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
ContentLanguage pulumi.StringPtrOutput `pulumi:"contentLanguage"`
// [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
ContentType pulumi.StringOutput `pulumi:"contentType"`
// (Computed) Base 64 CRC32 hash of the uploaded data.
Crc32c pulumi.StringOutput `pulumi:"crc32c"`
DetectMd5hash pulumi.StringPtrOutput `pulumi:"detectMd5hash"`
// The resource name of the Cloud KMS key that will be used to [encrypt](https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys) the object.
KmsKeyName pulumi.StringOutput `pulumi:"kmsKeyName"`
// (Computed) Base 64 MD5 hash of the uploaded data.
Md5hash pulumi.StringOutput `pulumi:"md5hash"`
// (Computed) A url reference to download this object.
MediaLink pulumi.StringOutput `pulumi:"mediaLink"`
// User-provided metadata, in key/value pairs.
Metadata pulumi.StringMapOutput `pulumi:"metadata"`
// The name of the object. If you're interpolating the name of this object, see `outputName` instead.
Name pulumi.StringOutput `pulumi:"name"`
// (Computed) The name of the object. Use this field in interpolations with `storage.ObjectACL` to recreate
// `storage.ObjectACL` resources when your `storage.BucketObject` is recreated.
OutputName pulumi.StringOutput `pulumi:"outputName"`
// (Computed) A url reference to this object.
SelfLink pulumi.StringOutput `pulumi:"selfLink"`
// A path to the data you want to upload. Must be defined
// if `content` is not.
Source pulumi.AssetOrArchiveOutput `pulumi:"source"`
// The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object.
// Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default
// storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
StorageClass pulumi.StringOutput `pulumi:"storageClass"`
}
// NewBucketObject registers a new resource with the given unique name, arguments, and options.
func NewBucketObject(ctx *pulumi.Context,
name string, args *BucketObjectArgs, opts ...pulumi.ResourceOption) (*BucketObject, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Bucket == nil {
return nil, errors.New("invalid value for required argument 'Bucket'")
}
var resource BucketObject
err := ctx.RegisterResource("gcp:storage/bucketObject:BucketObject", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetBucketObject gets an existing BucketObject 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 GetBucketObject(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *BucketObjectState, opts ...pulumi.ResourceOption) (*BucketObject, error) {
var resource BucketObject
err := ctx.ReadResource("gcp:storage/bucketObject:BucketObject", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering BucketObject resources.
type bucketObjectState struct {
// The name of the containing bucket.
Bucket *string `pulumi:"bucket"`
// [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
// directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
CacheControl *string `pulumi:"cacheControl"`
// Data as `string` to be uploaded. Must be defined if `source` is not. **Note**: The `content` field is marked as sensitive.
Content *string `pulumi:"content"`
// [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
ContentDisposition *string `pulumi:"contentDisposition"`
// [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
ContentEncoding *string `pulumi:"contentEncoding"`
// [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
ContentLanguage *string `pulumi:"contentLanguage"`
// [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
ContentType *string `pulumi:"contentType"`
// (Computed) Base 64 CRC32 hash of the uploaded data.
Crc32c *string `pulumi:"crc32c"`
DetectMd5hash *string `pulumi:"detectMd5hash"`
// The resource name of the Cloud KMS key that will be used to [encrypt](https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys) the object.
KmsKeyName *string `pulumi:"kmsKeyName"`
// (Computed) Base 64 MD5 hash of the uploaded data.
Md5hash *string `pulumi:"md5hash"`
// (Computed) A url reference to download this object.
MediaLink *string `pulumi:"mediaLink"`
// User-provided metadata, in key/value pairs.
Metadata map[string]string `pulumi:"metadata"`
// The name of the object. If you're interpolating the name of this object, see `outputName` instead.
Name *string `pulumi:"name"`
// (Computed) The name of the object. Use this field in interpolations with `storage.ObjectACL` to recreate
// `storage.ObjectACL` resources when your `storage.BucketObject` is recreated.
OutputName *string `pulumi:"outputName"`
// (Computed) A url reference to this object.
SelfLink *string `pulumi:"selfLink"`
// A path to the data you want to upload. Must be defined
// if `content` is not.
Source pulumi.AssetOrArchive `pulumi:"source"`
// The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object.
// Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default
// storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
StorageClass *string `pulumi:"storageClass"`
}
type BucketObjectState struct {
// The name of the containing bucket.
Bucket pulumi.StringPtrInput
// [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
// directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
CacheControl pulumi.StringPtrInput
// Data as `string` to be uploaded. Must be defined if `source` is not. **Note**: The `content` field is marked as sensitive.
Content pulumi.StringPtrInput
// [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
ContentDisposition pulumi.StringPtrInput
// [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
ContentEncoding pulumi.StringPtrInput
// [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
ContentLanguage pulumi.StringPtrInput
// [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
ContentType pulumi.StringPtrInput
// (Computed) Base 64 CRC32 hash of the uploaded data.
Crc32c pulumi.StringPtrInput
DetectMd5hash pulumi.StringPtrInput
// The resource name of the Cloud KMS key that will be used to [encrypt](https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys) the object.
KmsKeyName pulumi.StringPtrInput
// (Computed) Base 64 MD5 hash of the uploaded data.
Md5hash pulumi.StringPtrInput
// (Computed) A url reference to download this object.
MediaLink pulumi.StringPtrInput
// User-provided metadata, in key/value pairs.
Metadata pulumi.StringMapInput
// The name of the object. If you're interpolating the name of this object, see `outputName` instead.
Name pulumi.StringPtrInput
// (Computed) The name of the object. Use this field in interpolations with `storage.ObjectACL` to recreate
// `storage.ObjectACL` resources when your `storage.BucketObject` is recreated.
OutputName pulumi.StringPtrInput
// (Computed) A url reference to this object.
SelfLink pulumi.StringPtrInput
// A path to the data you want to upload. Must be defined
// if `content` is not.
Source pulumi.AssetOrArchiveInput
// The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object.
// Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default
// storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
StorageClass pulumi.StringPtrInput
}
func (BucketObjectState) ElementType() reflect.Type {
return reflect.TypeOf((*bucketObjectState)(nil)).Elem()
}
type bucketObjectArgs struct {
// The name of the containing bucket.
Bucket string `pulumi:"bucket"`
// [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
// directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
CacheControl *string `pulumi:"cacheControl"`
// Data as `string` to be uploaded. Must be defined if `source` is not. **Note**: The `content` field is marked as sensitive.
Content *string `pulumi:"content"`
// [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
ContentDisposition *string `pulumi:"contentDisposition"`
// [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
ContentEncoding *string `pulumi:"contentEncoding"`
// [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
ContentLanguage *string `pulumi:"contentLanguage"`
// [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
ContentType *string `pulumi:"contentType"`
DetectMd5hash *string `pulumi:"detectMd5hash"`
// The resource name of the Cloud KMS key that will be used to [encrypt](https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys) the object.
KmsKeyName *string `pulumi:"kmsKeyName"`
// User-provided metadata, in key/value pairs.
Metadata map[string]string `pulumi:"metadata"`
// The name of the object. If you're interpolating the name of this object, see `outputName` instead.
Name *string `pulumi:"name"`
// A path to the data you want to upload. Must be defined
// if `content` is not.
Source pulumi.AssetOrArchive `pulumi:"source"`
// The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object.
// Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default
// storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
StorageClass *string `pulumi:"storageClass"`
}
// The set of arguments for constructing a BucketObject resource.
type BucketObjectArgs struct {
// The name of the containing bucket.
Bucket pulumi.StringInput
// [Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
// directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
CacheControl pulumi.StringPtrInput
// Data as `string` to be uploaded. Must be defined if `source` is not. **Note**: The `content` field is marked as sensitive.
Content pulumi.StringPtrInput
// [Content-Disposition](https://tools.ietf.org/html/rfc6266) of the object data.
ContentDisposition pulumi.StringPtrInput
// [Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2) of the object data.
ContentEncoding pulumi.StringPtrInput
// [Content-Language](https://tools.ietf.org/html/rfc7231#section-3.1.3.2) of the object data.
ContentLanguage pulumi.StringPtrInput
// [Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5) of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8".
ContentType pulumi.StringPtrInput
DetectMd5hash pulumi.StringPtrInput
// The resource name of the Cloud KMS key that will be used to [encrypt](https://cloud.google.com/storage/docs/encryption/using-customer-managed-keys) the object.
KmsKeyName pulumi.StringPtrInput
// User-provided metadata, in key/value pairs.
Metadata pulumi.StringMapInput
// The name of the object. If you're interpolating the name of this object, see `outputName` instead.
Name pulumi.StringPtrInput
// A path to the data you want to upload. Must be defined
// if `content` is not.
Source pulumi.AssetOrArchiveInput
// The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the new bucket object.
// Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`. If not provided, this defaults to the bucket's default
// storage class or to a [standard](https://cloud.google.com/storage/docs/storage-classes#standard) class.
StorageClass pulumi.StringPtrInput
}
func (BucketObjectArgs) ElementType() reflect.Type {
return reflect.TypeOf((*bucketObjectArgs)(nil)).Elem()
}
type BucketObjectInput interface {
pulumi.Input
ToBucketObjectOutput() BucketObjectOutput
ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput
}
func (*BucketObject) ElementType() reflect.Type {
return reflect.TypeOf((*BucketObject)(nil))
}
func (i *BucketObject) ToBucketObjectOutput() BucketObjectOutput {
return i.ToBucketObjectOutputWithContext(context.Background())
}
func (i *BucketObject) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketObjectOutput)
}
func (i *BucketObject) ToBucketObjectPtrOutput() BucketObjectPtrOutput {
return i.ToBucketObjectPtrOutputWithContext(context.Background())
}
func (i *BucketObject) ToBucketObjectPtrOutputWithContext(ctx context.Context) BucketObjectPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketObjectPtrOutput)
}
type BucketObjectPtrInput interface {
pulumi.Input
ToBucketObjectPtrOutput() BucketObjectPtrOutput
ToBucketObjectPtrOutputWithContext(ctx context.Context) BucketObjectPtrOutput
}
type bucketObjectPtrType BucketObjectArgs
func (*bucketObjectPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**BucketObject)(nil))
}
func (i *bucketObjectPtrType) ToBucketObjectPtrOutput() BucketObjectPtrOutput {
return i.ToBucketObjectPtrOutputWithContext(context.Background())
}
func (i *bucketObjectPtrType) ToBucketObjectPtrOutputWithContext(ctx context.Context) BucketObjectPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketObjectPtrOutput)
}
// BucketObjectArrayInput is an input type that accepts BucketObjectArray and BucketObjectArrayOutput values.
// You can construct a concrete instance of `BucketObjectArrayInput` via:
//
// BucketObjectArray{ BucketObjectArgs{...} }
type BucketObjectArrayInput interface {
pulumi.Input
ToBucketObjectArrayOutput() BucketObjectArrayOutput
ToBucketObjectArrayOutputWithContext(context.Context) BucketObjectArrayOutput
}
type BucketObjectArray []BucketObjectInput
func (BucketObjectArray) ElementType() reflect.Type {
return reflect.TypeOf(([]*BucketObject)(nil))
}
func (i BucketObjectArray) ToBucketObjectArrayOutput() BucketObjectArrayOutput {
return i.ToBucketObjectArrayOutputWithContext(context.Background())
}
func (i BucketObjectArray) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketObjectArrayOutput)
}
// BucketObjectMapInput is an input type that accepts BucketObjectMap and BucketObjectMapOutput values.
// You can construct a concrete instance of `BucketObjectMapInput` via:
//
// BucketObjectMap{ "key": BucketObjectArgs{...} }
type BucketObjectMapInput interface {
pulumi.Input
ToBucketObjectMapOutput() BucketObjectMapOutput
ToBucketObjectMapOutputWithContext(context.Context) BucketObjectMapOutput
}
type BucketObjectMap map[string]BucketObjectInput
func (BucketObjectMap) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*BucketObject)(nil))
}
func (i BucketObjectMap) ToBucketObjectMapOutput() BucketObjectMapOutput {
return i.ToBucketObjectMapOutputWithContext(context.Background())
}
func (i BucketObjectMap) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketObjectMapOutput)
}
type BucketObjectOutput struct {
*pulumi.OutputState
}
func (BucketObjectOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketObject)(nil))
}
func (o BucketObjectOutput) ToBucketObjectOutput() BucketObjectOutput {
return o
}
func (o BucketObjectOutput) ToBucketObjectOutputWithContext(ctx context.Context) BucketObjectOutput {
return o
}
func (o BucketObjectOutput) ToBucketObjectPtrOutput() BucketObjectPtrOutput {
return o.ToBucketObjectPtrOutputWithContext(context.Background())
}
func (o BucketObjectOutput) ToBucketObjectPtrOutputWithContext(ctx context.Context) BucketObjectPtrOutput {
return o.ApplyT(func(v BucketObject) *BucketObject {
return &v
}).(BucketObjectPtrOutput)
}
type BucketObjectPtrOutput struct {
*pulumi.OutputState
}
func (BucketObjectPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BucketObject)(nil))
}
func (o BucketObjectPtrOutput) ToBucketObjectPtrOutput() BucketObjectPtrOutput {
return o
}
func (o BucketObjectPtrOutput) ToBucketObjectPtrOutputWithContext(ctx context.Context) BucketObjectPtrOutput {
return o
}
type BucketObjectArrayOutput struct{ *pulumi.OutputState }
func (BucketObjectArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketObject)(nil))
}
func (o BucketObjectArrayOutput) ToBucketObjectArrayOutput() BucketObjectArrayOutput {
return o
}
func (o BucketObjectArrayOutput) ToBucketObjectArrayOutputWithContext(ctx context.Context) BucketObjectArrayOutput {
return o
}
func (o BucketObjectArrayOutput) Index(i pulumi.IntInput) BucketObjectOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) BucketObject {
return vs[0].([]BucketObject)[vs[1].(int)]
}).(BucketObjectOutput)
}
type BucketObjectMapOutput struct{ *pulumi.OutputState }
func (BucketObjectMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]BucketObject)(nil))
}
func (o BucketObjectMapOutput) ToBucketObjectMapOutput() BucketObjectMapOutput {
return o
}
func (o BucketObjectMapOutput) ToBucketObjectMapOutputWithContext(ctx context.Context) BucketObjectMapOutput {
return o
}
func (o BucketObjectMapOutput) MapIndex(k pulumi.StringInput) BucketObjectOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) BucketObject {
return vs[0].(map[string]BucketObject)[vs[1].(string)]
}).(BucketObjectOutput)
}
func init() {
pulumi.RegisterOutputType(BucketObjectOutput{})
pulumi.RegisterOutputType(BucketObjectPtrOutput{})
pulumi.RegisterOutputType(BucketObjectArrayOutput{})
pulumi.RegisterOutputType(BucketObjectMapOutput{})
}