/
pulumiTypes.go
3005 lines (2424 loc) · 131 KB
/
pulumiTypes.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
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// *** 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 oss
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type BucketCorsRule struct {
// Specifies which headers are allowed.
AllowedHeaders []string `pulumi:"allowedHeaders"`
// Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
AllowedMethods []string `pulumi:"allowedMethods"`
// Specifies which origins are allowed.
AllowedOrigins []string `pulumi:"allowedOrigins"`
// Specifies expose header in the response.
ExposeHeaders []string `pulumi:"exposeHeaders"`
// Specifies time in seconds that browser can cache the response for a preflight request.
MaxAgeSeconds *int `pulumi:"maxAgeSeconds"`
}
// BucketCorsRuleInput is an input type that accepts BucketCorsRuleArgs and BucketCorsRuleOutput values.
// You can construct a concrete instance of `BucketCorsRuleInput` via:
//
// BucketCorsRuleArgs{...}
type BucketCorsRuleInput interface {
pulumi.Input
ToBucketCorsRuleOutput() BucketCorsRuleOutput
ToBucketCorsRuleOutputWithContext(context.Context) BucketCorsRuleOutput
}
type BucketCorsRuleArgs struct {
// Specifies which headers are allowed.
AllowedHeaders pulumi.StringArrayInput `pulumi:"allowedHeaders"`
// Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
AllowedMethods pulumi.StringArrayInput `pulumi:"allowedMethods"`
// Specifies which origins are allowed.
AllowedOrigins pulumi.StringArrayInput `pulumi:"allowedOrigins"`
// Specifies expose header in the response.
ExposeHeaders pulumi.StringArrayInput `pulumi:"exposeHeaders"`
// Specifies time in seconds that browser can cache the response for a preflight request.
MaxAgeSeconds pulumi.IntPtrInput `pulumi:"maxAgeSeconds"`
}
func (BucketCorsRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketCorsRule)(nil)).Elem()
}
func (i BucketCorsRuleArgs) ToBucketCorsRuleOutput() BucketCorsRuleOutput {
return i.ToBucketCorsRuleOutputWithContext(context.Background())
}
func (i BucketCorsRuleArgs) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketCorsRuleOutput)
}
// BucketCorsRuleArrayInput is an input type that accepts BucketCorsRuleArray and BucketCorsRuleArrayOutput values.
// You can construct a concrete instance of `BucketCorsRuleArrayInput` via:
//
// BucketCorsRuleArray{ BucketCorsRuleArgs{...} }
type BucketCorsRuleArrayInput interface {
pulumi.Input
ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput
ToBucketCorsRuleArrayOutputWithContext(context.Context) BucketCorsRuleArrayOutput
}
type BucketCorsRuleArray []BucketCorsRuleInput
func (BucketCorsRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketCorsRule)(nil)).Elem()
}
func (i BucketCorsRuleArray) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput {
return i.ToBucketCorsRuleArrayOutputWithContext(context.Background())
}
func (i BucketCorsRuleArray) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketCorsRuleArrayOutput)
}
type BucketCorsRuleOutput struct{ *pulumi.OutputState }
func (BucketCorsRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketCorsRule)(nil)).Elem()
}
func (o BucketCorsRuleOutput) ToBucketCorsRuleOutput() BucketCorsRuleOutput {
return o
}
func (o BucketCorsRuleOutput) ToBucketCorsRuleOutputWithContext(ctx context.Context) BucketCorsRuleOutput {
return o
}
// Specifies which headers are allowed.
func (o BucketCorsRuleOutput) AllowedHeaders() pulumi.StringArrayOutput {
return o.ApplyT(func(v BucketCorsRule) []string { return v.AllowedHeaders }).(pulumi.StringArrayOutput)
}
// Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.
func (o BucketCorsRuleOutput) AllowedMethods() pulumi.StringArrayOutput {
return o.ApplyT(func(v BucketCorsRule) []string { return v.AllowedMethods }).(pulumi.StringArrayOutput)
}
// Specifies which origins are allowed.
func (o BucketCorsRuleOutput) AllowedOrigins() pulumi.StringArrayOutput {
return o.ApplyT(func(v BucketCorsRule) []string { return v.AllowedOrigins }).(pulumi.StringArrayOutput)
}
// Specifies expose header in the response.
func (o BucketCorsRuleOutput) ExposeHeaders() pulumi.StringArrayOutput {
return o.ApplyT(func(v BucketCorsRule) []string { return v.ExposeHeaders }).(pulumi.StringArrayOutput)
}
// Specifies time in seconds that browser can cache the response for a preflight request.
func (o BucketCorsRuleOutput) MaxAgeSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v BucketCorsRule) *int { return v.MaxAgeSeconds }).(pulumi.IntPtrOutput)
}
type BucketCorsRuleArrayOutput struct{ *pulumi.OutputState }
func (BucketCorsRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketCorsRule)(nil)).Elem()
}
func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutput() BucketCorsRuleArrayOutput {
return o
}
func (o BucketCorsRuleArrayOutput) ToBucketCorsRuleArrayOutputWithContext(ctx context.Context) BucketCorsRuleArrayOutput {
return o
}
func (o BucketCorsRuleArrayOutput) Index(i pulumi.IntInput) BucketCorsRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) BucketCorsRule {
return vs[0].([]BucketCorsRule)[vs[1].(int)]
}).(BucketCorsRuleOutput)
}
type BucketLifecycleRule struct {
// Specifies lifecycle rule status.
Enabled bool `pulumi:"enabled"`
// Specifies a period in the object's expire (documented below).
Expirations []BucketLifecycleRuleExpiration `pulumi:"expirations"`
// Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
Id *string `pulumi:"id"`
// Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
Prefix *string `pulumi:"prefix"`
// Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
Transitions []BucketLifecycleRuleTransition `pulumi:"transitions"`
}
// BucketLifecycleRuleInput is an input type that accepts BucketLifecycleRuleArgs and BucketLifecycleRuleOutput values.
// You can construct a concrete instance of `BucketLifecycleRuleInput` via:
//
// BucketLifecycleRuleArgs{...}
type BucketLifecycleRuleInput interface {
pulumi.Input
ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput
ToBucketLifecycleRuleOutputWithContext(context.Context) BucketLifecycleRuleOutput
}
type BucketLifecycleRuleArgs struct {
// Specifies lifecycle rule status.
Enabled pulumi.BoolInput `pulumi:"enabled"`
// Specifies a period in the object's expire (documented below).
Expirations BucketLifecycleRuleExpirationArrayInput `pulumi:"expirations"`
// Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
Id pulumi.StringPtrInput `pulumi:"id"`
// Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
Prefix pulumi.StringPtrInput `pulumi:"prefix"`
// Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
Transitions BucketLifecycleRuleTransitionArrayInput `pulumi:"transitions"`
}
func (BucketLifecycleRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLifecycleRule)(nil)).Elem()
}
func (i BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput {
return i.ToBucketLifecycleRuleOutputWithContext(context.Background())
}
func (i BucketLifecycleRuleArgs) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLifecycleRuleOutput)
}
// BucketLifecycleRuleArrayInput is an input type that accepts BucketLifecycleRuleArray and BucketLifecycleRuleArrayOutput values.
// You can construct a concrete instance of `BucketLifecycleRuleArrayInput` via:
//
// BucketLifecycleRuleArray{ BucketLifecycleRuleArgs{...} }
type BucketLifecycleRuleArrayInput interface {
pulumi.Input
ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput
ToBucketLifecycleRuleArrayOutputWithContext(context.Context) BucketLifecycleRuleArrayOutput
}
type BucketLifecycleRuleArray []BucketLifecycleRuleInput
func (BucketLifecycleRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketLifecycleRule)(nil)).Elem()
}
func (i BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput {
return i.ToBucketLifecycleRuleArrayOutputWithContext(context.Background())
}
func (i BucketLifecycleRuleArray) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLifecycleRuleArrayOutput)
}
type BucketLifecycleRuleOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLifecycleRule)(nil)).Elem()
}
func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutput() BucketLifecycleRuleOutput {
return o
}
func (o BucketLifecycleRuleOutput) ToBucketLifecycleRuleOutputWithContext(ctx context.Context) BucketLifecycleRuleOutput {
return o
}
// Specifies lifecycle rule status.
func (o BucketLifecycleRuleOutput) Enabled() pulumi.BoolOutput {
return o.ApplyT(func(v BucketLifecycleRule) bool { return v.Enabled }).(pulumi.BoolOutput)
}
// Specifies a period in the object's expire (documented below).
func (o BucketLifecycleRuleOutput) Expirations() BucketLifecycleRuleExpirationArrayOutput {
return o.ApplyT(func(v BucketLifecycleRule) []BucketLifecycleRuleExpiration { return v.Expirations }).(BucketLifecycleRuleExpirationArrayOutput)
}
// Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.
func (o BucketLifecycleRuleOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketLifecycleRule) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.
func (o BucketLifecycleRuleOutput) Prefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketLifecycleRule) *string { return v.Prefix }).(pulumi.StringPtrOutput)
}
// Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. (documented below).
func (o BucketLifecycleRuleOutput) Transitions() BucketLifecycleRuleTransitionArrayOutput {
return o.ApplyT(func(v BucketLifecycleRule) []BucketLifecycleRuleTransition { return v.Transitions }).(BucketLifecycleRuleTransitionArrayOutput)
}
type BucketLifecycleRuleArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketLifecycleRule)(nil)).Elem()
}
func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutput() BucketLifecycleRuleArrayOutput {
return o
}
func (o BucketLifecycleRuleArrayOutput) ToBucketLifecycleRuleArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleArrayOutput {
return o
}
func (o BucketLifecycleRuleArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) BucketLifecycleRule {
return vs[0].([]BucketLifecycleRule)[vs[1].(int)]
}).(BucketLifecycleRuleOutput)
}
type BucketLifecycleRuleExpiration struct {
// Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like `2017-03-09`.
Date *string `pulumi:"date"`
// Specifies the number of days after object creation when the specific rule action takes effect.
Days *int `pulumi:"days"`
}
// BucketLifecycleRuleExpirationInput is an input type that accepts BucketLifecycleRuleExpirationArgs and BucketLifecycleRuleExpirationOutput values.
// You can construct a concrete instance of `BucketLifecycleRuleExpirationInput` via:
//
// BucketLifecycleRuleExpirationArgs{...}
type BucketLifecycleRuleExpirationInput interface {
pulumi.Input
ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput
ToBucketLifecycleRuleExpirationOutputWithContext(context.Context) BucketLifecycleRuleExpirationOutput
}
type BucketLifecycleRuleExpirationArgs struct {
// Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like `2017-03-09`.
Date pulumi.StringPtrInput `pulumi:"date"`
// Specifies the number of days after object creation when the specific rule action takes effect.
Days pulumi.IntPtrInput `pulumi:"days"`
}
func (BucketLifecycleRuleExpirationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLifecycleRuleExpiration)(nil)).Elem()
}
func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput {
return i.ToBucketLifecycleRuleExpirationOutputWithContext(context.Background())
}
func (i BucketLifecycleRuleExpirationArgs) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLifecycleRuleExpirationOutput)
}
// BucketLifecycleRuleExpirationArrayInput is an input type that accepts BucketLifecycleRuleExpirationArray and BucketLifecycleRuleExpirationArrayOutput values.
// You can construct a concrete instance of `BucketLifecycleRuleExpirationArrayInput` via:
//
// BucketLifecycleRuleExpirationArray{ BucketLifecycleRuleExpirationArgs{...} }
type BucketLifecycleRuleExpirationArrayInput interface {
pulumi.Input
ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput
ToBucketLifecycleRuleExpirationArrayOutputWithContext(context.Context) BucketLifecycleRuleExpirationArrayOutput
}
type BucketLifecycleRuleExpirationArray []BucketLifecycleRuleExpirationInput
func (BucketLifecycleRuleExpirationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketLifecycleRuleExpiration)(nil)).Elem()
}
func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput {
return i.ToBucketLifecycleRuleExpirationArrayOutputWithContext(context.Background())
}
func (i BucketLifecycleRuleExpirationArray) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLifecycleRuleExpirationArrayOutput)
}
type BucketLifecycleRuleExpirationOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleExpirationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLifecycleRuleExpiration)(nil)).Elem()
}
func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutput() BucketLifecycleRuleExpirationOutput {
return o
}
func (o BucketLifecycleRuleExpirationOutput) ToBucketLifecycleRuleExpirationOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationOutput {
return o
}
// Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like `2017-03-09`.
func (o BucketLifecycleRuleExpirationOutput) Date() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketLifecycleRuleExpiration) *string { return v.Date }).(pulumi.StringPtrOutput)
}
// Specifies the number of days after object creation when the specific rule action takes effect.
func (o BucketLifecycleRuleExpirationOutput) Days() pulumi.IntPtrOutput {
return o.ApplyT(func(v BucketLifecycleRuleExpiration) *int { return v.Days }).(pulumi.IntPtrOutput)
}
type BucketLifecycleRuleExpirationArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleExpirationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketLifecycleRuleExpiration)(nil)).Elem()
}
func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutput() BucketLifecycleRuleExpirationArrayOutput {
return o
}
func (o BucketLifecycleRuleExpirationArrayOutput) ToBucketLifecycleRuleExpirationArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleExpirationArrayOutput {
return o
}
func (o BucketLifecycleRuleExpirationArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleExpirationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) BucketLifecycleRuleExpiration {
return vs[0].([]BucketLifecycleRuleExpiration)[vs[1].(int)]
}).(BucketLifecycleRuleExpirationOutput)
}
type BucketLifecycleRuleTransition struct {
// Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that objects updated before 2002-10-11T00:00:00.000Z are deleted or converted to another storage class, and objects updated after this time (including this time) are not deleted or converted.
CreatedBeforeDate *string `pulumi:"createdBeforeDate"`
// Specifies the number of days after object creation when the specific rule action takes effect.
Days *int `pulumi:"days"`
// Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values: `IA`, `Archive`.
StorageClass *string `pulumi:"storageClass"`
}
// BucketLifecycleRuleTransitionInput is an input type that accepts BucketLifecycleRuleTransitionArgs and BucketLifecycleRuleTransitionOutput values.
// You can construct a concrete instance of `BucketLifecycleRuleTransitionInput` via:
//
// BucketLifecycleRuleTransitionArgs{...}
type BucketLifecycleRuleTransitionInput interface {
pulumi.Input
ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput
ToBucketLifecycleRuleTransitionOutputWithContext(context.Context) BucketLifecycleRuleTransitionOutput
}
type BucketLifecycleRuleTransitionArgs struct {
// Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that objects updated before 2002-10-11T00:00:00.000Z are deleted or converted to another storage class, and objects updated after this time (including this time) are not deleted or converted.
CreatedBeforeDate pulumi.StringPtrInput `pulumi:"createdBeforeDate"`
// Specifies the number of days after object creation when the specific rule action takes effect.
Days pulumi.IntPtrInput `pulumi:"days"`
// Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values: `IA`, `Archive`.
StorageClass pulumi.StringPtrInput `pulumi:"storageClass"`
}
func (BucketLifecycleRuleTransitionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLifecycleRuleTransition)(nil)).Elem()
}
func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput {
return i.ToBucketLifecycleRuleTransitionOutputWithContext(context.Background())
}
func (i BucketLifecycleRuleTransitionArgs) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLifecycleRuleTransitionOutput)
}
// BucketLifecycleRuleTransitionArrayInput is an input type that accepts BucketLifecycleRuleTransitionArray and BucketLifecycleRuleTransitionArrayOutput values.
// You can construct a concrete instance of `BucketLifecycleRuleTransitionArrayInput` via:
//
// BucketLifecycleRuleTransitionArray{ BucketLifecycleRuleTransitionArgs{...} }
type BucketLifecycleRuleTransitionArrayInput interface {
pulumi.Input
ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput
ToBucketLifecycleRuleTransitionArrayOutputWithContext(context.Context) BucketLifecycleRuleTransitionArrayOutput
}
type BucketLifecycleRuleTransitionArray []BucketLifecycleRuleTransitionInput
func (BucketLifecycleRuleTransitionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketLifecycleRuleTransition)(nil)).Elem()
}
func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput {
return i.ToBucketLifecycleRuleTransitionArrayOutputWithContext(context.Background())
}
func (i BucketLifecycleRuleTransitionArray) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLifecycleRuleTransitionArrayOutput)
}
type BucketLifecycleRuleTransitionOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleTransitionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLifecycleRuleTransition)(nil)).Elem()
}
func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutput() BucketLifecycleRuleTransitionOutput {
return o
}
func (o BucketLifecycleRuleTransitionOutput) ToBucketLifecycleRuleTransitionOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionOutput {
return o
}
// Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that objects updated before 2002-10-11T00:00:00.000Z are deleted or converted to another storage class, and objects updated after this time (including this time) are not deleted or converted.
func (o BucketLifecycleRuleTransitionOutput) CreatedBeforeDate() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketLifecycleRuleTransition) *string { return v.CreatedBeforeDate }).(pulumi.StringPtrOutput)
}
// Specifies the number of days after object creation when the specific rule action takes effect.
func (o BucketLifecycleRuleTransitionOutput) Days() pulumi.IntPtrOutput {
return o.ApplyT(func(v BucketLifecycleRuleTransition) *int { return v.Days }).(pulumi.IntPtrOutput)
}
// Specifies the storage class that objects that conform to the rule are converted into. The storage class of the objects in a bucket of the IA storage class can be converted into Archive but cannot be converted into Standard. Values: `IA`, `Archive`.
func (o BucketLifecycleRuleTransitionOutput) StorageClass() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketLifecycleRuleTransition) *string { return v.StorageClass }).(pulumi.StringPtrOutput)
}
type BucketLifecycleRuleTransitionArrayOutput struct{ *pulumi.OutputState }
func (BucketLifecycleRuleTransitionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]BucketLifecycleRuleTransition)(nil)).Elem()
}
func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutput() BucketLifecycleRuleTransitionArrayOutput {
return o
}
func (o BucketLifecycleRuleTransitionArrayOutput) ToBucketLifecycleRuleTransitionArrayOutputWithContext(ctx context.Context) BucketLifecycleRuleTransitionArrayOutput {
return o
}
func (o BucketLifecycleRuleTransitionArrayOutput) Index(i pulumi.IntInput) BucketLifecycleRuleTransitionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) BucketLifecycleRuleTransition {
return vs[0].([]BucketLifecycleRuleTransition)[vs[1].(int)]
}).(BucketLifecycleRuleTransitionOutput)
}
type BucketLogging struct {
// The name of the bucket that will receive the log objects.
TargetBucket string `pulumi:"targetBucket"`
// To specify a key prefix for log objects.
TargetPrefix *string `pulumi:"targetPrefix"`
}
// BucketLoggingInput is an input type that accepts BucketLoggingArgs and BucketLoggingOutput values.
// You can construct a concrete instance of `BucketLoggingInput` via:
//
// BucketLoggingArgs{...}
type BucketLoggingInput interface {
pulumi.Input
ToBucketLoggingOutput() BucketLoggingOutput
ToBucketLoggingOutputWithContext(context.Context) BucketLoggingOutput
}
type BucketLoggingArgs struct {
// The name of the bucket that will receive the log objects.
TargetBucket pulumi.StringInput `pulumi:"targetBucket"`
// To specify a key prefix for log objects.
TargetPrefix pulumi.StringPtrInput `pulumi:"targetPrefix"`
}
func (BucketLoggingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLogging)(nil)).Elem()
}
func (i BucketLoggingArgs) ToBucketLoggingOutput() BucketLoggingOutput {
return i.ToBucketLoggingOutputWithContext(context.Background())
}
func (i BucketLoggingArgs) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLoggingOutput)
}
func (i BucketLoggingArgs) ToBucketLoggingPtrOutput() BucketLoggingPtrOutput {
return i.ToBucketLoggingPtrOutputWithContext(context.Background())
}
func (i BucketLoggingArgs) ToBucketLoggingPtrOutputWithContext(ctx context.Context) BucketLoggingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLoggingOutput).ToBucketLoggingPtrOutputWithContext(ctx)
}
// BucketLoggingPtrInput is an input type that accepts BucketLoggingArgs, BucketLoggingPtr and BucketLoggingPtrOutput values.
// You can construct a concrete instance of `BucketLoggingPtrInput` via:
//
// BucketLoggingArgs{...}
//
// or:
//
// nil
type BucketLoggingPtrInput interface {
pulumi.Input
ToBucketLoggingPtrOutput() BucketLoggingPtrOutput
ToBucketLoggingPtrOutputWithContext(context.Context) BucketLoggingPtrOutput
}
type bucketLoggingPtrType BucketLoggingArgs
func BucketLoggingPtr(v *BucketLoggingArgs) BucketLoggingPtrInput {
return (*bucketLoggingPtrType)(v)
}
func (*bucketLoggingPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**BucketLogging)(nil)).Elem()
}
func (i *bucketLoggingPtrType) ToBucketLoggingPtrOutput() BucketLoggingPtrOutput {
return i.ToBucketLoggingPtrOutputWithContext(context.Background())
}
func (i *bucketLoggingPtrType) ToBucketLoggingPtrOutputWithContext(ctx context.Context) BucketLoggingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketLoggingPtrOutput)
}
type BucketLoggingOutput struct{ *pulumi.OutputState }
func (BucketLoggingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketLogging)(nil)).Elem()
}
func (o BucketLoggingOutput) ToBucketLoggingOutput() BucketLoggingOutput {
return o
}
func (o BucketLoggingOutput) ToBucketLoggingOutputWithContext(ctx context.Context) BucketLoggingOutput {
return o
}
func (o BucketLoggingOutput) ToBucketLoggingPtrOutput() BucketLoggingPtrOutput {
return o.ToBucketLoggingPtrOutputWithContext(context.Background())
}
func (o BucketLoggingOutput) ToBucketLoggingPtrOutputWithContext(ctx context.Context) BucketLoggingPtrOutput {
return o.ApplyT(func(v BucketLogging) *BucketLogging {
return &v
}).(BucketLoggingPtrOutput)
}
// The name of the bucket that will receive the log objects.
func (o BucketLoggingOutput) TargetBucket() pulumi.StringOutput {
return o.ApplyT(func(v BucketLogging) string { return v.TargetBucket }).(pulumi.StringOutput)
}
// To specify a key prefix for log objects.
func (o BucketLoggingOutput) TargetPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketLogging) *string { return v.TargetPrefix }).(pulumi.StringPtrOutput)
}
type BucketLoggingPtrOutput struct{ *pulumi.OutputState }
func (BucketLoggingPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BucketLogging)(nil)).Elem()
}
func (o BucketLoggingPtrOutput) ToBucketLoggingPtrOutput() BucketLoggingPtrOutput {
return o
}
func (o BucketLoggingPtrOutput) ToBucketLoggingPtrOutputWithContext(ctx context.Context) BucketLoggingPtrOutput {
return o
}
func (o BucketLoggingPtrOutput) Elem() BucketLoggingOutput {
return o.ApplyT(func(v *BucketLogging) BucketLogging { return *v }).(BucketLoggingOutput)
}
// The name of the bucket that will receive the log objects.
func (o BucketLoggingPtrOutput) TargetBucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BucketLogging) *string {
if v == nil {
return nil
}
return &v.TargetBucket
}).(pulumi.StringPtrOutput)
}
// To specify a key prefix for log objects.
func (o BucketLoggingPtrOutput) TargetPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BucketLogging) *string {
if v == nil {
return nil
}
return v.TargetPrefix
}).(pulumi.StringPtrOutput)
}
type BucketRefererConfig struct {
// Allows referer to be empty. Defaults false.
AllowEmpty *bool `pulumi:"allowEmpty"`
// The list of referer.
Referers []string `pulumi:"referers"`
}
// BucketRefererConfigInput is an input type that accepts BucketRefererConfigArgs and BucketRefererConfigOutput values.
// You can construct a concrete instance of `BucketRefererConfigInput` via:
//
// BucketRefererConfigArgs{...}
type BucketRefererConfigInput interface {
pulumi.Input
ToBucketRefererConfigOutput() BucketRefererConfigOutput
ToBucketRefererConfigOutputWithContext(context.Context) BucketRefererConfigOutput
}
type BucketRefererConfigArgs struct {
// Allows referer to be empty. Defaults false.
AllowEmpty pulumi.BoolPtrInput `pulumi:"allowEmpty"`
// The list of referer.
Referers pulumi.StringArrayInput `pulumi:"referers"`
}
func (BucketRefererConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketRefererConfig)(nil)).Elem()
}
func (i BucketRefererConfigArgs) ToBucketRefererConfigOutput() BucketRefererConfigOutput {
return i.ToBucketRefererConfigOutputWithContext(context.Background())
}
func (i BucketRefererConfigArgs) ToBucketRefererConfigOutputWithContext(ctx context.Context) BucketRefererConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketRefererConfigOutput)
}
func (i BucketRefererConfigArgs) ToBucketRefererConfigPtrOutput() BucketRefererConfigPtrOutput {
return i.ToBucketRefererConfigPtrOutputWithContext(context.Background())
}
func (i BucketRefererConfigArgs) ToBucketRefererConfigPtrOutputWithContext(ctx context.Context) BucketRefererConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketRefererConfigOutput).ToBucketRefererConfigPtrOutputWithContext(ctx)
}
// BucketRefererConfigPtrInput is an input type that accepts BucketRefererConfigArgs, BucketRefererConfigPtr and BucketRefererConfigPtrOutput values.
// You can construct a concrete instance of `BucketRefererConfigPtrInput` via:
//
// BucketRefererConfigArgs{...}
//
// or:
//
// nil
type BucketRefererConfigPtrInput interface {
pulumi.Input
ToBucketRefererConfigPtrOutput() BucketRefererConfigPtrOutput
ToBucketRefererConfigPtrOutputWithContext(context.Context) BucketRefererConfigPtrOutput
}
type bucketRefererConfigPtrType BucketRefererConfigArgs
func BucketRefererConfigPtr(v *BucketRefererConfigArgs) BucketRefererConfigPtrInput {
return (*bucketRefererConfigPtrType)(v)
}
func (*bucketRefererConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**BucketRefererConfig)(nil)).Elem()
}
func (i *bucketRefererConfigPtrType) ToBucketRefererConfigPtrOutput() BucketRefererConfigPtrOutput {
return i.ToBucketRefererConfigPtrOutputWithContext(context.Background())
}
func (i *bucketRefererConfigPtrType) ToBucketRefererConfigPtrOutputWithContext(ctx context.Context) BucketRefererConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketRefererConfigPtrOutput)
}
type BucketRefererConfigOutput struct{ *pulumi.OutputState }
func (BucketRefererConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketRefererConfig)(nil)).Elem()
}
func (o BucketRefererConfigOutput) ToBucketRefererConfigOutput() BucketRefererConfigOutput {
return o
}
func (o BucketRefererConfigOutput) ToBucketRefererConfigOutputWithContext(ctx context.Context) BucketRefererConfigOutput {
return o
}
func (o BucketRefererConfigOutput) ToBucketRefererConfigPtrOutput() BucketRefererConfigPtrOutput {
return o.ToBucketRefererConfigPtrOutputWithContext(context.Background())
}
func (o BucketRefererConfigOutput) ToBucketRefererConfigPtrOutputWithContext(ctx context.Context) BucketRefererConfigPtrOutput {
return o.ApplyT(func(v BucketRefererConfig) *BucketRefererConfig {
return &v
}).(BucketRefererConfigPtrOutput)
}
// Allows referer to be empty. Defaults false.
func (o BucketRefererConfigOutput) AllowEmpty() pulumi.BoolPtrOutput {
return o.ApplyT(func(v BucketRefererConfig) *bool { return v.AllowEmpty }).(pulumi.BoolPtrOutput)
}
// The list of referer.
func (o BucketRefererConfigOutput) Referers() pulumi.StringArrayOutput {
return o.ApplyT(func(v BucketRefererConfig) []string { return v.Referers }).(pulumi.StringArrayOutput)
}
type BucketRefererConfigPtrOutput struct{ *pulumi.OutputState }
func (BucketRefererConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BucketRefererConfig)(nil)).Elem()
}
func (o BucketRefererConfigPtrOutput) ToBucketRefererConfigPtrOutput() BucketRefererConfigPtrOutput {
return o
}
func (o BucketRefererConfigPtrOutput) ToBucketRefererConfigPtrOutputWithContext(ctx context.Context) BucketRefererConfigPtrOutput {
return o
}
func (o BucketRefererConfigPtrOutput) Elem() BucketRefererConfigOutput {
return o.ApplyT(func(v *BucketRefererConfig) BucketRefererConfig { return *v }).(BucketRefererConfigOutput)
}
// Allows referer to be empty. Defaults false.
func (o BucketRefererConfigPtrOutput) AllowEmpty() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *BucketRefererConfig) *bool {
if v == nil {
return nil
}
return v.AllowEmpty
}).(pulumi.BoolPtrOutput)
}
// The list of referer.
func (o BucketRefererConfigPtrOutput) Referers() pulumi.StringArrayOutput {
return o.ApplyT(func(v *BucketRefererConfig) []string {
if v == nil {
return nil
}
return v.Referers
}).(pulumi.StringArrayOutput)
}
type BucketServerSideEncryptionRule struct {
// The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
KmsMasterKeyId *string `pulumi:"kmsMasterKeyId"`
// The server-side encryption algorithm to use. Possible values: `AES256` and `KMS`.
SseAlgorithm string `pulumi:"sseAlgorithm"`
}
// BucketServerSideEncryptionRuleInput is an input type that accepts BucketServerSideEncryptionRuleArgs and BucketServerSideEncryptionRuleOutput values.
// You can construct a concrete instance of `BucketServerSideEncryptionRuleInput` via:
//
// BucketServerSideEncryptionRuleArgs{...}
type BucketServerSideEncryptionRuleInput interface {
pulumi.Input
ToBucketServerSideEncryptionRuleOutput() BucketServerSideEncryptionRuleOutput
ToBucketServerSideEncryptionRuleOutputWithContext(context.Context) BucketServerSideEncryptionRuleOutput
}
type BucketServerSideEncryptionRuleArgs struct {
// The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
KmsMasterKeyId pulumi.StringPtrInput `pulumi:"kmsMasterKeyId"`
// The server-side encryption algorithm to use. Possible values: `AES256` and `KMS`.
SseAlgorithm pulumi.StringInput `pulumi:"sseAlgorithm"`
}
func (BucketServerSideEncryptionRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketServerSideEncryptionRule)(nil)).Elem()
}
func (i BucketServerSideEncryptionRuleArgs) ToBucketServerSideEncryptionRuleOutput() BucketServerSideEncryptionRuleOutput {
return i.ToBucketServerSideEncryptionRuleOutputWithContext(context.Background())
}
func (i BucketServerSideEncryptionRuleArgs) ToBucketServerSideEncryptionRuleOutputWithContext(ctx context.Context) BucketServerSideEncryptionRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketServerSideEncryptionRuleOutput)
}
func (i BucketServerSideEncryptionRuleArgs) ToBucketServerSideEncryptionRulePtrOutput() BucketServerSideEncryptionRulePtrOutput {
return i.ToBucketServerSideEncryptionRulePtrOutputWithContext(context.Background())
}
func (i BucketServerSideEncryptionRuleArgs) ToBucketServerSideEncryptionRulePtrOutputWithContext(ctx context.Context) BucketServerSideEncryptionRulePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketServerSideEncryptionRuleOutput).ToBucketServerSideEncryptionRulePtrOutputWithContext(ctx)
}
// BucketServerSideEncryptionRulePtrInput is an input type that accepts BucketServerSideEncryptionRuleArgs, BucketServerSideEncryptionRulePtr and BucketServerSideEncryptionRulePtrOutput values.
// You can construct a concrete instance of `BucketServerSideEncryptionRulePtrInput` via:
//
// BucketServerSideEncryptionRuleArgs{...}
//
// or:
//
// nil
type BucketServerSideEncryptionRulePtrInput interface {
pulumi.Input
ToBucketServerSideEncryptionRulePtrOutput() BucketServerSideEncryptionRulePtrOutput
ToBucketServerSideEncryptionRulePtrOutputWithContext(context.Context) BucketServerSideEncryptionRulePtrOutput
}
type bucketServerSideEncryptionRulePtrType BucketServerSideEncryptionRuleArgs
func BucketServerSideEncryptionRulePtr(v *BucketServerSideEncryptionRuleArgs) BucketServerSideEncryptionRulePtrInput {
return (*bucketServerSideEncryptionRulePtrType)(v)
}
func (*bucketServerSideEncryptionRulePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**BucketServerSideEncryptionRule)(nil)).Elem()
}
func (i *bucketServerSideEncryptionRulePtrType) ToBucketServerSideEncryptionRulePtrOutput() BucketServerSideEncryptionRulePtrOutput {
return i.ToBucketServerSideEncryptionRulePtrOutputWithContext(context.Background())
}
func (i *bucketServerSideEncryptionRulePtrType) ToBucketServerSideEncryptionRulePtrOutputWithContext(ctx context.Context) BucketServerSideEncryptionRulePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketServerSideEncryptionRulePtrOutput)
}
type BucketServerSideEncryptionRuleOutput struct{ *pulumi.OutputState }
func (BucketServerSideEncryptionRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BucketServerSideEncryptionRule)(nil)).Elem()
}
func (o BucketServerSideEncryptionRuleOutput) ToBucketServerSideEncryptionRuleOutput() BucketServerSideEncryptionRuleOutput {
return o
}
func (o BucketServerSideEncryptionRuleOutput) ToBucketServerSideEncryptionRuleOutputWithContext(ctx context.Context) BucketServerSideEncryptionRuleOutput {
return o
}
func (o BucketServerSideEncryptionRuleOutput) ToBucketServerSideEncryptionRulePtrOutput() BucketServerSideEncryptionRulePtrOutput {
return o.ToBucketServerSideEncryptionRulePtrOutputWithContext(context.Background())
}
func (o BucketServerSideEncryptionRuleOutput) ToBucketServerSideEncryptionRulePtrOutputWithContext(ctx context.Context) BucketServerSideEncryptionRulePtrOutput {
return o.ApplyT(func(v BucketServerSideEncryptionRule) *BucketServerSideEncryptionRule {
return &v
}).(BucketServerSideEncryptionRulePtrOutput)
}
// The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
func (o BucketServerSideEncryptionRuleOutput) KmsMasterKeyId() pulumi.StringPtrOutput {
return o.ApplyT(func(v BucketServerSideEncryptionRule) *string { return v.KmsMasterKeyId }).(pulumi.StringPtrOutput)
}
// The server-side encryption algorithm to use. Possible values: `AES256` and `KMS`.
func (o BucketServerSideEncryptionRuleOutput) SseAlgorithm() pulumi.StringOutput {
return o.ApplyT(func(v BucketServerSideEncryptionRule) string { return v.SseAlgorithm }).(pulumi.StringOutput)
}
type BucketServerSideEncryptionRulePtrOutput struct{ *pulumi.OutputState }
func (BucketServerSideEncryptionRulePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**BucketServerSideEncryptionRule)(nil)).Elem()
}
func (o BucketServerSideEncryptionRulePtrOutput) ToBucketServerSideEncryptionRulePtrOutput() BucketServerSideEncryptionRulePtrOutput {
return o
}
func (o BucketServerSideEncryptionRulePtrOutput) ToBucketServerSideEncryptionRulePtrOutputWithContext(ctx context.Context) BucketServerSideEncryptionRulePtrOutput {
return o
}
func (o BucketServerSideEncryptionRulePtrOutput) Elem() BucketServerSideEncryptionRuleOutput {
return o.ApplyT(func(v *BucketServerSideEncryptionRule) BucketServerSideEncryptionRule { return *v }).(BucketServerSideEncryptionRuleOutput)
}
// The alibaba cloud KMS master key ID used for the SSE-KMS encryption.
func (o BucketServerSideEncryptionRulePtrOutput) KmsMasterKeyId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BucketServerSideEncryptionRule) *string {
if v == nil {
return nil
}
return v.KmsMasterKeyId
}).(pulumi.StringPtrOutput)
}
// The server-side encryption algorithm to use. Possible values: `AES256` and `KMS`.
func (o BucketServerSideEncryptionRulePtrOutput) SseAlgorithm() pulumi.StringPtrOutput {
return o.ApplyT(func(v *BucketServerSideEncryptionRule) *string {
if v == nil {
return nil
}
return &v.SseAlgorithm
}).(pulumi.StringPtrOutput)
}
type BucketVersioning struct {
// Specifies the versioning state of a bucket. Valid values: `Enabled` and `Suspended`.
Status string `pulumi:"status"`
}
// BucketVersioningInput is an input type that accepts BucketVersioningArgs and BucketVersioningOutput values.
// You can construct a concrete instance of `BucketVersioningInput` via:
//
// BucketVersioningArgs{...}
type BucketVersioningInput interface {
pulumi.Input
ToBucketVersioningOutput() BucketVersioningOutput
ToBucketVersioningOutputWithContext(context.Context) BucketVersioningOutput
}
type BucketVersioningArgs struct {
// Specifies the versioning state of a bucket. Valid values: `Enabled` and `Suspended`.
Status pulumi.StringInput `pulumi:"status"`
}
func (BucketVersioningArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BucketVersioning)(nil)).Elem()
}
func (i BucketVersioningArgs) ToBucketVersioningOutput() BucketVersioningOutput {
return i.ToBucketVersioningOutputWithContext(context.Background())
}
func (i BucketVersioningArgs) ToBucketVersioningOutputWithContext(ctx context.Context) BucketVersioningOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketVersioningOutput)
}
func (i BucketVersioningArgs) ToBucketVersioningPtrOutput() BucketVersioningPtrOutput {
return i.ToBucketVersioningPtrOutputWithContext(context.Background())
}
func (i BucketVersioningArgs) ToBucketVersioningPtrOutputWithContext(ctx context.Context) BucketVersioningPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(BucketVersioningOutput).ToBucketVersioningPtrOutputWithContext(ctx)
}
// BucketVersioningPtrInput is an input type that accepts BucketVersioningArgs, BucketVersioningPtr and BucketVersioningPtrOutput values.
// You can construct a concrete instance of `BucketVersioningPtrInput` via:
//
// BucketVersioningArgs{...}
//
// or:
//
// nil
type BucketVersioningPtrInput interface {
pulumi.Input