/
pulumiTypes.go
1229 lines (991 loc) · 44 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
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package synthetics
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type CanaryArtifactConfig struct {
// Encryption configuration for uploading artifacts to S3
S3Encryption *CanaryS3Encryption `pulumi:"s3Encryption"`
}
// CanaryArtifactConfigInput is an input type that accepts CanaryArtifactConfigArgs and CanaryArtifactConfigOutput values.
// You can construct a concrete instance of `CanaryArtifactConfigInput` via:
//
// CanaryArtifactConfigArgs{...}
type CanaryArtifactConfigInput interface {
pulumi.Input
ToCanaryArtifactConfigOutput() CanaryArtifactConfigOutput
ToCanaryArtifactConfigOutputWithContext(context.Context) CanaryArtifactConfigOutput
}
type CanaryArtifactConfigArgs struct {
// Encryption configuration for uploading artifacts to S3
S3Encryption CanaryS3EncryptionPtrInput `pulumi:"s3Encryption"`
}
func (CanaryArtifactConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryArtifactConfig)(nil)).Elem()
}
func (i CanaryArtifactConfigArgs) ToCanaryArtifactConfigOutput() CanaryArtifactConfigOutput {
return i.ToCanaryArtifactConfigOutputWithContext(context.Background())
}
func (i CanaryArtifactConfigArgs) ToCanaryArtifactConfigOutputWithContext(ctx context.Context) CanaryArtifactConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryArtifactConfigOutput)
}
func (i CanaryArtifactConfigArgs) ToCanaryArtifactConfigPtrOutput() CanaryArtifactConfigPtrOutput {
return i.ToCanaryArtifactConfigPtrOutputWithContext(context.Background())
}
func (i CanaryArtifactConfigArgs) ToCanaryArtifactConfigPtrOutputWithContext(ctx context.Context) CanaryArtifactConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryArtifactConfigOutput).ToCanaryArtifactConfigPtrOutputWithContext(ctx)
}
// CanaryArtifactConfigPtrInput is an input type that accepts CanaryArtifactConfigArgs, CanaryArtifactConfigPtr and CanaryArtifactConfigPtrOutput values.
// You can construct a concrete instance of `CanaryArtifactConfigPtrInput` via:
//
// CanaryArtifactConfigArgs{...}
//
// or:
//
// nil
type CanaryArtifactConfigPtrInput interface {
pulumi.Input
ToCanaryArtifactConfigPtrOutput() CanaryArtifactConfigPtrOutput
ToCanaryArtifactConfigPtrOutputWithContext(context.Context) CanaryArtifactConfigPtrOutput
}
type canaryArtifactConfigPtrType CanaryArtifactConfigArgs
func CanaryArtifactConfigPtr(v *CanaryArtifactConfigArgs) CanaryArtifactConfigPtrInput {
return (*canaryArtifactConfigPtrType)(v)
}
func (*canaryArtifactConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryArtifactConfig)(nil)).Elem()
}
func (i *canaryArtifactConfigPtrType) ToCanaryArtifactConfigPtrOutput() CanaryArtifactConfigPtrOutput {
return i.ToCanaryArtifactConfigPtrOutputWithContext(context.Background())
}
func (i *canaryArtifactConfigPtrType) ToCanaryArtifactConfigPtrOutputWithContext(ctx context.Context) CanaryArtifactConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryArtifactConfigPtrOutput)
}
type CanaryArtifactConfigOutput struct{ *pulumi.OutputState }
func (CanaryArtifactConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryArtifactConfig)(nil)).Elem()
}
func (o CanaryArtifactConfigOutput) ToCanaryArtifactConfigOutput() CanaryArtifactConfigOutput {
return o
}
func (o CanaryArtifactConfigOutput) ToCanaryArtifactConfigOutputWithContext(ctx context.Context) CanaryArtifactConfigOutput {
return o
}
func (o CanaryArtifactConfigOutput) ToCanaryArtifactConfigPtrOutput() CanaryArtifactConfigPtrOutput {
return o.ToCanaryArtifactConfigPtrOutputWithContext(context.Background())
}
func (o CanaryArtifactConfigOutput) ToCanaryArtifactConfigPtrOutputWithContext(ctx context.Context) CanaryArtifactConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CanaryArtifactConfig) *CanaryArtifactConfig {
return &v
}).(CanaryArtifactConfigPtrOutput)
}
// Encryption configuration for uploading artifacts to S3
func (o CanaryArtifactConfigOutput) S3Encryption() CanaryS3EncryptionPtrOutput {
return o.ApplyT(func(v CanaryArtifactConfig) *CanaryS3Encryption { return v.S3Encryption }).(CanaryS3EncryptionPtrOutput)
}
type CanaryArtifactConfigPtrOutput struct{ *pulumi.OutputState }
func (CanaryArtifactConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryArtifactConfig)(nil)).Elem()
}
func (o CanaryArtifactConfigPtrOutput) ToCanaryArtifactConfigPtrOutput() CanaryArtifactConfigPtrOutput {
return o
}
func (o CanaryArtifactConfigPtrOutput) ToCanaryArtifactConfigPtrOutputWithContext(ctx context.Context) CanaryArtifactConfigPtrOutput {
return o
}
func (o CanaryArtifactConfigPtrOutput) Elem() CanaryArtifactConfigOutput {
return o.ApplyT(func(v *CanaryArtifactConfig) CanaryArtifactConfig {
if v != nil {
return *v
}
var ret CanaryArtifactConfig
return ret
}).(CanaryArtifactConfigOutput)
}
// Encryption configuration for uploading artifacts to S3
func (o CanaryArtifactConfigPtrOutput) S3Encryption() CanaryS3EncryptionPtrOutput {
return o.ApplyT(func(v *CanaryArtifactConfig) *CanaryS3Encryption {
if v == nil {
return nil
}
return v.S3Encryption
}).(CanaryS3EncryptionPtrOutput)
}
type CanaryBaseScreenshot struct {
// List of coordinates of rectangles to be ignored during visual testing
IgnoreCoordinates []string `pulumi:"ignoreCoordinates"`
// Name of the screenshot to be used as base reference for visual testing
ScreenshotName string `pulumi:"screenshotName"`
}
// CanaryBaseScreenshotInput is an input type that accepts CanaryBaseScreenshotArgs and CanaryBaseScreenshotOutput values.
// You can construct a concrete instance of `CanaryBaseScreenshotInput` via:
//
// CanaryBaseScreenshotArgs{...}
type CanaryBaseScreenshotInput interface {
pulumi.Input
ToCanaryBaseScreenshotOutput() CanaryBaseScreenshotOutput
ToCanaryBaseScreenshotOutputWithContext(context.Context) CanaryBaseScreenshotOutput
}
type CanaryBaseScreenshotArgs struct {
// List of coordinates of rectangles to be ignored during visual testing
IgnoreCoordinates pulumi.StringArrayInput `pulumi:"ignoreCoordinates"`
// Name of the screenshot to be used as base reference for visual testing
ScreenshotName pulumi.StringInput `pulumi:"screenshotName"`
}
func (CanaryBaseScreenshotArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryBaseScreenshot)(nil)).Elem()
}
func (i CanaryBaseScreenshotArgs) ToCanaryBaseScreenshotOutput() CanaryBaseScreenshotOutput {
return i.ToCanaryBaseScreenshotOutputWithContext(context.Background())
}
func (i CanaryBaseScreenshotArgs) ToCanaryBaseScreenshotOutputWithContext(ctx context.Context) CanaryBaseScreenshotOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryBaseScreenshotOutput)
}
// CanaryBaseScreenshotArrayInput is an input type that accepts CanaryBaseScreenshotArray and CanaryBaseScreenshotArrayOutput values.
// You can construct a concrete instance of `CanaryBaseScreenshotArrayInput` via:
//
// CanaryBaseScreenshotArray{ CanaryBaseScreenshotArgs{...} }
type CanaryBaseScreenshotArrayInput interface {
pulumi.Input
ToCanaryBaseScreenshotArrayOutput() CanaryBaseScreenshotArrayOutput
ToCanaryBaseScreenshotArrayOutputWithContext(context.Context) CanaryBaseScreenshotArrayOutput
}
type CanaryBaseScreenshotArray []CanaryBaseScreenshotInput
func (CanaryBaseScreenshotArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CanaryBaseScreenshot)(nil)).Elem()
}
func (i CanaryBaseScreenshotArray) ToCanaryBaseScreenshotArrayOutput() CanaryBaseScreenshotArrayOutput {
return i.ToCanaryBaseScreenshotArrayOutputWithContext(context.Background())
}
func (i CanaryBaseScreenshotArray) ToCanaryBaseScreenshotArrayOutputWithContext(ctx context.Context) CanaryBaseScreenshotArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryBaseScreenshotArrayOutput)
}
type CanaryBaseScreenshotOutput struct{ *pulumi.OutputState }
func (CanaryBaseScreenshotOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryBaseScreenshot)(nil)).Elem()
}
func (o CanaryBaseScreenshotOutput) ToCanaryBaseScreenshotOutput() CanaryBaseScreenshotOutput {
return o
}
func (o CanaryBaseScreenshotOutput) ToCanaryBaseScreenshotOutputWithContext(ctx context.Context) CanaryBaseScreenshotOutput {
return o
}
// List of coordinates of rectangles to be ignored during visual testing
func (o CanaryBaseScreenshotOutput) IgnoreCoordinates() pulumi.StringArrayOutput {
return o.ApplyT(func(v CanaryBaseScreenshot) []string { return v.IgnoreCoordinates }).(pulumi.StringArrayOutput)
}
// Name of the screenshot to be used as base reference for visual testing
func (o CanaryBaseScreenshotOutput) ScreenshotName() pulumi.StringOutput {
return o.ApplyT(func(v CanaryBaseScreenshot) string { return v.ScreenshotName }).(pulumi.StringOutput)
}
type CanaryBaseScreenshotArrayOutput struct{ *pulumi.OutputState }
func (CanaryBaseScreenshotArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CanaryBaseScreenshot)(nil)).Elem()
}
func (o CanaryBaseScreenshotArrayOutput) ToCanaryBaseScreenshotArrayOutput() CanaryBaseScreenshotArrayOutput {
return o
}
func (o CanaryBaseScreenshotArrayOutput) ToCanaryBaseScreenshotArrayOutputWithContext(ctx context.Context) CanaryBaseScreenshotArrayOutput {
return o
}
func (o CanaryBaseScreenshotArrayOutput) Index(i pulumi.IntInput) CanaryBaseScreenshotOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CanaryBaseScreenshot {
return vs[0].([]CanaryBaseScreenshot)[vs[1].(int)]
}).(CanaryBaseScreenshotOutput)
}
type CanaryCode struct {
Handler string `pulumi:"handler"`
S3Bucket *string `pulumi:"s3Bucket"`
S3Key *string `pulumi:"s3Key"`
S3ObjectVersion *string `pulumi:"s3ObjectVersion"`
Script *string `pulumi:"script"`
SourceLocationArn *string `pulumi:"sourceLocationArn"`
}
// CanaryCodeInput is an input type that accepts CanaryCodeArgs and CanaryCodeOutput values.
// You can construct a concrete instance of `CanaryCodeInput` via:
//
// CanaryCodeArgs{...}
type CanaryCodeInput interface {
pulumi.Input
ToCanaryCodeOutput() CanaryCodeOutput
ToCanaryCodeOutputWithContext(context.Context) CanaryCodeOutput
}
type CanaryCodeArgs struct {
Handler pulumi.StringInput `pulumi:"handler"`
S3Bucket pulumi.StringPtrInput `pulumi:"s3Bucket"`
S3Key pulumi.StringPtrInput `pulumi:"s3Key"`
S3ObjectVersion pulumi.StringPtrInput `pulumi:"s3ObjectVersion"`
Script pulumi.StringPtrInput `pulumi:"script"`
SourceLocationArn pulumi.StringPtrInput `pulumi:"sourceLocationArn"`
}
func (CanaryCodeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryCode)(nil)).Elem()
}
func (i CanaryCodeArgs) ToCanaryCodeOutput() CanaryCodeOutput {
return i.ToCanaryCodeOutputWithContext(context.Background())
}
func (i CanaryCodeArgs) ToCanaryCodeOutputWithContext(ctx context.Context) CanaryCodeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryCodeOutput)
}
type CanaryCodeOutput struct{ *pulumi.OutputState }
func (CanaryCodeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryCode)(nil)).Elem()
}
func (o CanaryCodeOutput) ToCanaryCodeOutput() CanaryCodeOutput {
return o
}
func (o CanaryCodeOutput) ToCanaryCodeOutputWithContext(ctx context.Context) CanaryCodeOutput {
return o
}
func (o CanaryCodeOutput) Handler() pulumi.StringOutput {
return o.ApplyT(func(v CanaryCode) string { return v.Handler }).(pulumi.StringOutput)
}
func (o CanaryCodeOutput) S3Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryCode) *string { return v.S3Bucket }).(pulumi.StringPtrOutput)
}
func (o CanaryCodeOutput) S3Key() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryCode) *string { return v.S3Key }).(pulumi.StringPtrOutput)
}
func (o CanaryCodeOutput) S3ObjectVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryCode) *string { return v.S3ObjectVersion }).(pulumi.StringPtrOutput)
}
func (o CanaryCodeOutput) Script() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryCode) *string { return v.Script }).(pulumi.StringPtrOutput)
}
func (o CanaryCodeOutput) SourceLocationArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryCode) *string { return v.SourceLocationArn }).(pulumi.StringPtrOutput)
}
type CanaryCodePtrOutput struct{ *pulumi.OutputState }
func (CanaryCodePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryCode)(nil)).Elem()
}
func (o CanaryCodePtrOutput) ToCanaryCodePtrOutput() CanaryCodePtrOutput {
return o
}
func (o CanaryCodePtrOutput) ToCanaryCodePtrOutputWithContext(ctx context.Context) CanaryCodePtrOutput {
return o
}
func (o CanaryCodePtrOutput) Elem() CanaryCodeOutput {
return o.ApplyT(func(v *CanaryCode) CanaryCode {
if v != nil {
return *v
}
var ret CanaryCode
return ret
}).(CanaryCodeOutput)
}
func (o CanaryCodePtrOutput) Handler() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryCode) *string {
if v == nil {
return nil
}
return &v.Handler
}).(pulumi.StringPtrOutput)
}
func (o CanaryCodePtrOutput) S3Bucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryCode) *string {
if v == nil {
return nil
}
return v.S3Bucket
}).(pulumi.StringPtrOutput)
}
func (o CanaryCodePtrOutput) S3Key() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryCode) *string {
if v == nil {
return nil
}
return v.S3Key
}).(pulumi.StringPtrOutput)
}
func (o CanaryCodePtrOutput) S3ObjectVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryCode) *string {
if v == nil {
return nil
}
return v.S3ObjectVersion
}).(pulumi.StringPtrOutput)
}
func (o CanaryCodePtrOutput) Script() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryCode) *string {
if v == nil {
return nil
}
return v.Script
}).(pulumi.StringPtrOutput)
}
func (o CanaryCodePtrOutput) SourceLocationArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryCode) *string {
if v == nil {
return nil
}
return v.SourceLocationArn
}).(pulumi.StringPtrOutput)
}
type CanaryRunConfig struct {
// Enable active tracing if set to true
ActiveTracing *bool `pulumi:"activeTracing"`
// Environment variable key-value pairs.
EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
// Provide maximum memory available for canary in MB
MemoryInMb *int `pulumi:"memoryInMb"`
// Provide maximum canary timeout per run in seconds
TimeoutInSeconds *int `pulumi:"timeoutInSeconds"`
}
// CanaryRunConfigInput is an input type that accepts CanaryRunConfigArgs and CanaryRunConfigOutput values.
// You can construct a concrete instance of `CanaryRunConfigInput` via:
//
// CanaryRunConfigArgs{...}
type CanaryRunConfigInput interface {
pulumi.Input
ToCanaryRunConfigOutput() CanaryRunConfigOutput
ToCanaryRunConfigOutputWithContext(context.Context) CanaryRunConfigOutput
}
type CanaryRunConfigArgs struct {
// Enable active tracing if set to true
ActiveTracing pulumi.BoolPtrInput `pulumi:"activeTracing"`
// Environment variable key-value pairs.
EnvironmentVariables pulumi.StringMapInput `pulumi:"environmentVariables"`
// Provide maximum memory available for canary in MB
MemoryInMb pulumi.IntPtrInput `pulumi:"memoryInMb"`
// Provide maximum canary timeout per run in seconds
TimeoutInSeconds pulumi.IntPtrInput `pulumi:"timeoutInSeconds"`
}
func (CanaryRunConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryRunConfig)(nil)).Elem()
}
func (i CanaryRunConfigArgs) ToCanaryRunConfigOutput() CanaryRunConfigOutput {
return i.ToCanaryRunConfigOutputWithContext(context.Background())
}
func (i CanaryRunConfigArgs) ToCanaryRunConfigOutputWithContext(ctx context.Context) CanaryRunConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryRunConfigOutput)
}
func (i CanaryRunConfigArgs) ToCanaryRunConfigPtrOutput() CanaryRunConfigPtrOutput {
return i.ToCanaryRunConfigPtrOutputWithContext(context.Background())
}
func (i CanaryRunConfigArgs) ToCanaryRunConfigPtrOutputWithContext(ctx context.Context) CanaryRunConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryRunConfigOutput).ToCanaryRunConfigPtrOutputWithContext(ctx)
}
// CanaryRunConfigPtrInput is an input type that accepts CanaryRunConfigArgs, CanaryRunConfigPtr and CanaryRunConfigPtrOutput values.
// You can construct a concrete instance of `CanaryRunConfigPtrInput` via:
//
// CanaryRunConfigArgs{...}
//
// or:
//
// nil
type CanaryRunConfigPtrInput interface {
pulumi.Input
ToCanaryRunConfigPtrOutput() CanaryRunConfigPtrOutput
ToCanaryRunConfigPtrOutputWithContext(context.Context) CanaryRunConfigPtrOutput
}
type canaryRunConfigPtrType CanaryRunConfigArgs
func CanaryRunConfigPtr(v *CanaryRunConfigArgs) CanaryRunConfigPtrInput {
return (*canaryRunConfigPtrType)(v)
}
func (*canaryRunConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryRunConfig)(nil)).Elem()
}
func (i *canaryRunConfigPtrType) ToCanaryRunConfigPtrOutput() CanaryRunConfigPtrOutput {
return i.ToCanaryRunConfigPtrOutputWithContext(context.Background())
}
func (i *canaryRunConfigPtrType) ToCanaryRunConfigPtrOutputWithContext(ctx context.Context) CanaryRunConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryRunConfigPtrOutput)
}
type CanaryRunConfigOutput struct{ *pulumi.OutputState }
func (CanaryRunConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryRunConfig)(nil)).Elem()
}
func (o CanaryRunConfigOutput) ToCanaryRunConfigOutput() CanaryRunConfigOutput {
return o
}
func (o CanaryRunConfigOutput) ToCanaryRunConfigOutputWithContext(ctx context.Context) CanaryRunConfigOutput {
return o
}
func (o CanaryRunConfigOutput) ToCanaryRunConfigPtrOutput() CanaryRunConfigPtrOutput {
return o.ToCanaryRunConfigPtrOutputWithContext(context.Background())
}
func (o CanaryRunConfigOutput) ToCanaryRunConfigPtrOutputWithContext(ctx context.Context) CanaryRunConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CanaryRunConfig) *CanaryRunConfig {
return &v
}).(CanaryRunConfigPtrOutput)
}
// Enable active tracing if set to true
func (o CanaryRunConfigOutput) ActiveTracing() pulumi.BoolPtrOutput {
return o.ApplyT(func(v CanaryRunConfig) *bool { return v.ActiveTracing }).(pulumi.BoolPtrOutput)
}
// Environment variable key-value pairs.
func (o CanaryRunConfigOutput) EnvironmentVariables() pulumi.StringMapOutput {
return o.ApplyT(func(v CanaryRunConfig) map[string]string { return v.EnvironmentVariables }).(pulumi.StringMapOutput)
}
// Provide maximum memory available for canary in MB
func (o CanaryRunConfigOutput) MemoryInMb() pulumi.IntPtrOutput {
return o.ApplyT(func(v CanaryRunConfig) *int { return v.MemoryInMb }).(pulumi.IntPtrOutput)
}
// Provide maximum canary timeout per run in seconds
func (o CanaryRunConfigOutput) TimeoutInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v CanaryRunConfig) *int { return v.TimeoutInSeconds }).(pulumi.IntPtrOutput)
}
type CanaryRunConfigPtrOutput struct{ *pulumi.OutputState }
func (CanaryRunConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryRunConfig)(nil)).Elem()
}
func (o CanaryRunConfigPtrOutput) ToCanaryRunConfigPtrOutput() CanaryRunConfigPtrOutput {
return o
}
func (o CanaryRunConfigPtrOutput) ToCanaryRunConfigPtrOutputWithContext(ctx context.Context) CanaryRunConfigPtrOutput {
return o
}
func (o CanaryRunConfigPtrOutput) Elem() CanaryRunConfigOutput {
return o.ApplyT(func(v *CanaryRunConfig) CanaryRunConfig {
if v != nil {
return *v
}
var ret CanaryRunConfig
return ret
}).(CanaryRunConfigOutput)
}
// Enable active tracing if set to true
func (o CanaryRunConfigPtrOutput) ActiveTracing() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *CanaryRunConfig) *bool {
if v == nil {
return nil
}
return v.ActiveTracing
}).(pulumi.BoolPtrOutput)
}
// Environment variable key-value pairs.
func (o CanaryRunConfigPtrOutput) EnvironmentVariables() pulumi.StringMapOutput {
return o.ApplyT(func(v *CanaryRunConfig) map[string]string {
if v == nil {
return nil
}
return v.EnvironmentVariables
}).(pulumi.StringMapOutput)
}
// Provide maximum memory available for canary in MB
func (o CanaryRunConfigPtrOutput) MemoryInMb() pulumi.IntPtrOutput {
return o.ApplyT(func(v *CanaryRunConfig) *int {
if v == nil {
return nil
}
return v.MemoryInMb
}).(pulumi.IntPtrOutput)
}
// Provide maximum canary timeout per run in seconds
func (o CanaryRunConfigPtrOutput) TimeoutInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v *CanaryRunConfig) *int {
if v == nil {
return nil
}
return v.TimeoutInSeconds
}).(pulumi.IntPtrOutput)
}
type CanaryS3Encryption struct {
// Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
EncryptionMode *string `pulumi:"encryptionMode"`
// KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
KmsKeyArn *string `pulumi:"kmsKeyArn"`
}
// CanaryS3EncryptionInput is an input type that accepts CanaryS3EncryptionArgs and CanaryS3EncryptionOutput values.
// You can construct a concrete instance of `CanaryS3EncryptionInput` via:
//
// CanaryS3EncryptionArgs{...}
type CanaryS3EncryptionInput interface {
pulumi.Input
ToCanaryS3EncryptionOutput() CanaryS3EncryptionOutput
ToCanaryS3EncryptionOutputWithContext(context.Context) CanaryS3EncryptionOutput
}
type CanaryS3EncryptionArgs struct {
// Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
EncryptionMode pulumi.StringPtrInput `pulumi:"encryptionMode"`
// KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
KmsKeyArn pulumi.StringPtrInput `pulumi:"kmsKeyArn"`
}
func (CanaryS3EncryptionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryS3Encryption)(nil)).Elem()
}
func (i CanaryS3EncryptionArgs) ToCanaryS3EncryptionOutput() CanaryS3EncryptionOutput {
return i.ToCanaryS3EncryptionOutputWithContext(context.Background())
}
func (i CanaryS3EncryptionArgs) ToCanaryS3EncryptionOutputWithContext(ctx context.Context) CanaryS3EncryptionOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryS3EncryptionOutput)
}
func (i CanaryS3EncryptionArgs) ToCanaryS3EncryptionPtrOutput() CanaryS3EncryptionPtrOutput {
return i.ToCanaryS3EncryptionPtrOutputWithContext(context.Background())
}
func (i CanaryS3EncryptionArgs) ToCanaryS3EncryptionPtrOutputWithContext(ctx context.Context) CanaryS3EncryptionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryS3EncryptionOutput).ToCanaryS3EncryptionPtrOutputWithContext(ctx)
}
// CanaryS3EncryptionPtrInput is an input type that accepts CanaryS3EncryptionArgs, CanaryS3EncryptionPtr and CanaryS3EncryptionPtrOutput values.
// You can construct a concrete instance of `CanaryS3EncryptionPtrInput` via:
//
// CanaryS3EncryptionArgs{...}
//
// or:
//
// nil
type CanaryS3EncryptionPtrInput interface {
pulumi.Input
ToCanaryS3EncryptionPtrOutput() CanaryS3EncryptionPtrOutput
ToCanaryS3EncryptionPtrOutputWithContext(context.Context) CanaryS3EncryptionPtrOutput
}
type canaryS3EncryptionPtrType CanaryS3EncryptionArgs
func CanaryS3EncryptionPtr(v *CanaryS3EncryptionArgs) CanaryS3EncryptionPtrInput {
return (*canaryS3EncryptionPtrType)(v)
}
func (*canaryS3EncryptionPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryS3Encryption)(nil)).Elem()
}
func (i *canaryS3EncryptionPtrType) ToCanaryS3EncryptionPtrOutput() CanaryS3EncryptionPtrOutput {
return i.ToCanaryS3EncryptionPtrOutputWithContext(context.Background())
}
func (i *canaryS3EncryptionPtrType) ToCanaryS3EncryptionPtrOutputWithContext(ctx context.Context) CanaryS3EncryptionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryS3EncryptionPtrOutput)
}
type CanaryS3EncryptionOutput struct{ *pulumi.OutputState }
func (CanaryS3EncryptionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryS3Encryption)(nil)).Elem()
}
func (o CanaryS3EncryptionOutput) ToCanaryS3EncryptionOutput() CanaryS3EncryptionOutput {
return o
}
func (o CanaryS3EncryptionOutput) ToCanaryS3EncryptionOutputWithContext(ctx context.Context) CanaryS3EncryptionOutput {
return o
}
func (o CanaryS3EncryptionOutput) ToCanaryS3EncryptionPtrOutput() CanaryS3EncryptionPtrOutput {
return o.ToCanaryS3EncryptionPtrOutputWithContext(context.Background())
}
func (o CanaryS3EncryptionOutput) ToCanaryS3EncryptionPtrOutputWithContext(ctx context.Context) CanaryS3EncryptionPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CanaryS3Encryption) *CanaryS3Encryption {
return &v
}).(CanaryS3EncryptionPtrOutput)
}
// Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
func (o CanaryS3EncryptionOutput) EncryptionMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryS3Encryption) *string { return v.EncryptionMode }).(pulumi.StringPtrOutput)
}
// KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
func (o CanaryS3EncryptionOutput) KmsKeyArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanaryS3Encryption) *string { return v.KmsKeyArn }).(pulumi.StringPtrOutput)
}
type CanaryS3EncryptionPtrOutput struct{ *pulumi.OutputState }
func (CanaryS3EncryptionPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryS3Encryption)(nil)).Elem()
}
func (o CanaryS3EncryptionPtrOutput) ToCanaryS3EncryptionPtrOutput() CanaryS3EncryptionPtrOutput {
return o
}
func (o CanaryS3EncryptionPtrOutput) ToCanaryS3EncryptionPtrOutputWithContext(ctx context.Context) CanaryS3EncryptionPtrOutput {
return o
}
func (o CanaryS3EncryptionPtrOutput) Elem() CanaryS3EncryptionOutput {
return o.ApplyT(func(v *CanaryS3Encryption) CanaryS3Encryption {
if v != nil {
return *v
}
var ret CanaryS3Encryption
return ret
}).(CanaryS3EncryptionOutput)
}
// Encryption mode for encrypting artifacts when uploading to S3. Valid values: SSE_S3 and SSE_KMS.
func (o CanaryS3EncryptionPtrOutput) EncryptionMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryS3Encryption) *string {
if v == nil {
return nil
}
return v.EncryptionMode
}).(pulumi.StringPtrOutput)
}
// KMS key Arn for encrypting artifacts when uploading to S3. You must specify KMS key Arn for SSE_KMS encryption mode only.
func (o CanaryS3EncryptionPtrOutput) KmsKeyArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanaryS3Encryption) *string {
if v == nil {
return nil
}
return v.KmsKeyArn
}).(pulumi.StringPtrOutput)
}
type CanarySchedule struct {
DurationInSeconds *string `pulumi:"durationInSeconds"`
Expression string `pulumi:"expression"`
}
// CanaryScheduleInput is an input type that accepts CanaryScheduleArgs and CanaryScheduleOutput values.
// You can construct a concrete instance of `CanaryScheduleInput` via:
//
// CanaryScheduleArgs{...}
type CanaryScheduleInput interface {
pulumi.Input
ToCanaryScheduleOutput() CanaryScheduleOutput
ToCanaryScheduleOutputWithContext(context.Context) CanaryScheduleOutput
}
type CanaryScheduleArgs struct {
DurationInSeconds pulumi.StringPtrInput `pulumi:"durationInSeconds"`
Expression pulumi.StringInput `pulumi:"expression"`
}
func (CanaryScheduleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanarySchedule)(nil)).Elem()
}
func (i CanaryScheduleArgs) ToCanaryScheduleOutput() CanaryScheduleOutput {
return i.ToCanaryScheduleOutputWithContext(context.Background())
}
func (i CanaryScheduleArgs) ToCanaryScheduleOutputWithContext(ctx context.Context) CanaryScheduleOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryScheduleOutput)
}
type CanaryScheduleOutput struct{ *pulumi.OutputState }
func (CanaryScheduleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanarySchedule)(nil)).Elem()
}
func (o CanaryScheduleOutput) ToCanaryScheduleOutput() CanaryScheduleOutput {
return o
}
func (o CanaryScheduleOutput) ToCanaryScheduleOutputWithContext(ctx context.Context) CanaryScheduleOutput {
return o
}
func (o CanaryScheduleOutput) DurationInSeconds() pulumi.StringPtrOutput {
return o.ApplyT(func(v CanarySchedule) *string { return v.DurationInSeconds }).(pulumi.StringPtrOutput)
}
func (o CanaryScheduleOutput) Expression() pulumi.StringOutput {
return o.ApplyT(func(v CanarySchedule) string { return v.Expression }).(pulumi.StringOutput)
}
type CanarySchedulePtrOutput struct{ *pulumi.OutputState }
func (CanarySchedulePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CanarySchedule)(nil)).Elem()
}
func (o CanarySchedulePtrOutput) ToCanarySchedulePtrOutput() CanarySchedulePtrOutput {
return o
}
func (o CanarySchedulePtrOutput) ToCanarySchedulePtrOutputWithContext(ctx context.Context) CanarySchedulePtrOutput {
return o
}
func (o CanarySchedulePtrOutput) Elem() CanaryScheduleOutput {
return o.ApplyT(func(v *CanarySchedule) CanarySchedule {
if v != nil {
return *v
}
var ret CanarySchedule
return ret
}).(CanaryScheduleOutput)
}
func (o CanarySchedulePtrOutput) DurationInSeconds() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanarySchedule) *string {
if v == nil {
return nil
}
return v.DurationInSeconds
}).(pulumi.StringPtrOutput)
}
func (o CanarySchedulePtrOutput) Expression() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CanarySchedule) *string {
if v == nil {
return nil
}
return &v.Expression
}).(pulumi.StringPtrOutput)
}
// A key-value pair to associate with a resource.
type CanaryTag struct {
// The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Key string `pulumi:"key"`
// The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string `pulumi:"value"`
}
type CanaryVisualReference struct {
// Canary run id to be used as base reference for visual testing
BaseCanaryRunId string `pulumi:"baseCanaryRunId"`
// List of screenshots used as base reference for visual testing
BaseScreenshots []CanaryBaseScreenshot `pulumi:"baseScreenshots"`
}
// CanaryVisualReferenceInput is an input type that accepts CanaryVisualReferenceArgs and CanaryVisualReferenceOutput values.
// You can construct a concrete instance of `CanaryVisualReferenceInput` via:
//
// CanaryVisualReferenceArgs{...}
type CanaryVisualReferenceInput interface {
pulumi.Input
ToCanaryVisualReferenceOutput() CanaryVisualReferenceOutput
ToCanaryVisualReferenceOutputWithContext(context.Context) CanaryVisualReferenceOutput
}
type CanaryVisualReferenceArgs struct {
// Canary run id to be used as base reference for visual testing
BaseCanaryRunId pulumi.StringInput `pulumi:"baseCanaryRunId"`
// List of screenshots used as base reference for visual testing
BaseScreenshots CanaryBaseScreenshotArrayInput `pulumi:"baseScreenshots"`
}
func (CanaryVisualReferenceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryVisualReference)(nil)).Elem()
}
func (i CanaryVisualReferenceArgs) ToCanaryVisualReferenceOutput() CanaryVisualReferenceOutput {
return i.ToCanaryVisualReferenceOutputWithContext(context.Background())
}
func (i CanaryVisualReferenceArgs) ToCanaryVisualReferenceOutputWithContext(ctx context.Context) CanaryVisualReferenceOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryVisualReferenceOutput)
}
func (i CanaryVisualReferenceArgs) ToCanaryVisualReferencePtrOutput() CanaryVisualReferencePtrOutput {
return i.ToCanaryVisualReferencePtrOutputWithContext(context.Background())
}
func (i CanaryVisualReferenceArgs) ToCanaryVisualReferencePtrOutputWithContext(ctx context.Context) CanaryVisualReferencePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryVisualReferenceOutput).ToCanaryVisualReferencePtrOutputWithContext(ctx)
}
// CanaryVisualReferencePtrInput is an input type that accepts CanaryVisualReferenceArgs, CanaryVisualReferencePtr and CanaryVisualReferencePtrOutput values.
// You can construct a concrete instance of `CanaryVisualReferencePtrInput` via:
//
// CanaryVisualReferenceArgs{...}
//
// or:
//
// nil
type CanaryVisualReferencePtrInput interface {
pulumi.Input
ToCanaryVisualReferencePtrOutput() CanaryVisualReferencePtrOutput
ToCanaryVisualReferencePtrOutputWithContext(context.Context) CanaryVisualReferencePtrOutput
}
type canaryVisualReferencePtrType CanaryVisualReferenceArgs
func CanaryVisualReferencePtr(v *CanaryVisualReferenceArgs) CanaryVisualReferencePtrInput {
return (*canaryVisualReferencePtrType)(v)
}
func (*canaryVisualReferencePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryVisualReference)(nil)).Elem()
}
func (i *canaryVisualReferencePtrType) ToCanaryVisualReferencePtrOutput() CanaryVisualReferencePtrOutput {
return i.ToCanaryVisualReferencePtrOutputWithContext(context.Background())
}
func (i *canaryVisualReferencePtrType) ToCanaryVisualReferencePtrOutputWithContext(ctx context.Context) CanaryVisualReferencePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CanaryVisualReferencePtrOutput)
}
type CanaryVisualReferenceOutput struct{ *pulumi.OutputState }
func (CanaryVisualReferenceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CanaryVisualReference)(nil)).Elem()
}
func (o CanaryVisualReferenceOutput) ToCanaryVisualReferenceOutput() CanaryVisualReferenceOutput {
return o
}
func (o CanaryVisualReferenceOutput) ToCanaryVisualReferenceOutputWithContext(ctx context.Context) CanaryVisualReferenceOutput {
return o
}
func (o CanaryVisualReferenceOutput) ToCanaryVisualReferencePtrOutput() CanaryVisualReferencePtrOutput {
return o.ToCanaryVisualReferencePtrOutputWithContext(context.Background())
}
func (o CanaryVisualReferenceOutput) ToCanaryVisualReferencePtrOutputWithContext(ctx context.Context) CanaryVisualReferencePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CanaryVisualReference) *CanaryVisualReference {
return &v
}).(CanaryVisualReferencePtrOutput)
}
// Canary run id to be used as base reference for visual testing
func (o CanaryVisualReferenceOutput) BaseCanaryRunId() pulumi.StringOutput {
return o.ApplyT(func(v CanaryVisualReference) string { return v.BaseCanaryRunId }).(pulumi.StringOutput)
}
// List of screenshots used as base reference for visual testing
func (o CanaryVisualReferenceOutput) BaseScreenshots() CanaryBaseScreenshotArrayOutput {
return o.ApplyT(func(v CanaryVisualReference) []CanaryBaseScreenshot { return v.BaseScreenshots }).(CanaryBaseScreenshotArrayOutput)
}
type CanaryVisualReferencePtrOutput struct{ *pulumi.OutputState }
func (CanaryVisualReferencePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CanaryVisualReference)(nil)).Elem()
}
func (o CanaryVisualReferencePtrOutput) ToCanaryVisualReferencePtrOutput() CanaryVisualReferencePtrOutput {
return o
}
func (o CanaryVisualReferencePtrOutput) ToCanaryVisualReferencePtrOutputWithContext(ctx context.Context) CanaryVisualReferencePtrOutput {
return o
}
func (o CanaryVisualReferencePtrOutput) Elem() CanaryVisualReferenceOutput {
return o.ApplyT(func(v *CanaryVisualReference) CanaryVisualReference {
if v != nil {
return *v