/
pulumiTypes.go
2158 lines (1763 loc) · 127 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 apprunner
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type CustomDomainAssociationCertificateValidationRecord struct {
// The certificate CNAME record name.
Name *string `pulumi:"name"`
// The current state of the certificate CNAME record validation. It should change to `SUCCESS` after App Runner completes validation with your DNS.
Status *string `pulumi:"status"`
// The record type, always `CNAME`.
Type *string `pulumi:"type"`
// The certificate CNAME record value.
Value *string `pulumi:"value"`
}
// CustomDomainAssociationCertificateValidationRecordInput is an input type that accepts CustomDomainAssociationCertificateValidationRecordArgs and CustomDomainAssociationCertificateValidationRecordOutput values.
// You can construct a concrete instance of `CustomDomainAssociationCertificateValidationRecordInput` via:
//
// CustomDomainAssociationCertificateValidationRecordArgs{...}
type CustomDomainAssociationCertificateValidationRecordInput interface {
pulumi.Input
ToCustomDomainAssociationCertificateValidationRecordOutput() CustomDomainAssociationCertificateValidationRecordOutput
ToCustomDomainAssociationCertificateValidationRecordOutputWithContext(context.Context) CustomDomainAssociationCertificateValidationRecordOutput
}
type CustomDomainAssociationCertificateValidationRecordArgs struct {
// The certificate CNAME record name.
Name pulumi.StringPtrInput `pulumi:"name"`
// The current state of the certificate CNAME record validation. It should change to `SUCCESS` after App Runner completes validation with your DNS.
Status pulumi.StringPtrInput `pulumi:"status"`
// The record type, always `CNAME`.
Type pulumi.StringPtrInput `pulumi:"type"`
// The certificate CNAME record value.
Value pulumi.StringPtrInput `pulumi:"value"`
}
func (CustomDomainAssociationCertificateValidationRecordArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomDomainAssociationCertificateValidationRecord)(nil)).Elem()
}
func (i CustomDomainAssociationCertificateValidationRecordArgs) ToCustomDomainAssociationCertificateValidationRecordOutput() CustomDomainAssociationCertificateValidationRecordOutput {
return i.ToCustomDomainAssociationCertificateValidationRecordOutputWithContext(context.Background())
}
func (i CustomDomainAssociationCertificateValidationRecordArgs) ToCustomDomainAssociationCertificateValidationRecordOutputWithContext(ctx context.Context) CustomDomainAssociationCertificateValidationRecordOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomDomainAssociationCertificateValidationRecordOutput)
}
// CustomDomainAssociationCertificateValidationRecordArrayInput is an input type that accepts CustomDomainAssociationCertificateValidationRecordArray and CustomDomainAssociationCertificateValidationRecordArrayOutput values.
// You can construct a concrete instance of `CustomDomainAssociationCertificateValidationRecordArrayInput` via:
//
// CustomDomainAssociationCertificateValidationRecordArray{ CustomDomainAssociationCertificateValidationRecordArgs{...} }
type CustomDomainAssociationCertificateValidationRecordArrayInput interface {
pulumi.Input
ToCustomDomainAssociationCertificateValidationRecordArrayOutput() CustomDomainAssociationCertificateValidationRecordArrayOutput
ToCustomDomainAssociationCertificateValidationRecordArrayOutputWithContext(context.Context) CustomDomainAssociationCertificateValidationRecordArrayOutput
}
type CustomDomainAssociationCertificateValidationRecordArray []CustomDomainAssociationCertificateValidationRecordInput
func (CustomDomainAssociationCertificateValidationRecordArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomDomainAssociationCertificateValidationRecord)(nil)).Elem()
}
func (i CustomDomainAssociationCertificateValidationRecordArray) ToCustomDomainAssociationCertificateValidationRecordArrayOutput() CustomDomainAssociationCertificateValidationRecordArrayOutput {
return i.ToCustomDomainAssociationCertificateValidationRecordArrayOutputWithContext(context.Background())
}
func (i CustomDomainAssociationCertificateValidationRecordArray) ToCustomDomainAssociationCertificateValidationRecordArrayOutputWithContext(ctx context.Context) CustomDomainAssociationCertificateValidationRecordArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomDomainAssociationCertificateValidationRecordArrayOutput)
}
type CustomDomainAssociationCertificateValidationRecordOutput struct{ *pulumi.OutputState }
func (CustomDomainAssociationCertificateValidationRecordOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomDomainAssociationCertificateValidationRecord)(nil)).Elem()
}
func (o CustomDomainAssociationCertificateValidationRecordOutput) ToCustomDomainAssociationCertificateValidationRecordOutput() CustomDomainAssociationCertificateValidationRecordOutput {
return o
}
func (o CustomDomainAssociationCertificateValidationRecordOutput) ToCustomDomainAssociationCertificateValidationRecordOutputWithContext(ctx context.Context) CustomDomainAssociationCertificateValidationRecordOutput {
return o
}
// The certificate CNAME record name.
func (o CustomDomainAssociationCertificateValidationRecordOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomDomainAssociationCertificateValidationRecord) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// The current state of the certificate CNAME record validation. It should change to `SUCCESS` after App Runner completes validation with your DNS.
func (o CustomDomainAssociationCertificateValidationRecordOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomDomainAssociationCertificateValidationRecord) *string { return v.Status }).(pulumi.StringPtrOutput)
}
// The record type, always `CNAME`.
func (o CustomDomainAssociationCertificateValidationRecordOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomDomainAssociationCertificateValidationRecord) *string { return v.Type }).(pulumi.StringPtrOutput)
}
// The certificate CNAME record value.
func (o CustomDomainAssociationCertificateValidationRecordOutput) Value() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomDomainAssociationCertificateValidationRecord) *string { return v.Value }).(pulumi.StringPtrOutput)
}
type CustomDomainAssociationCertificateValidationRecordArrayOutput struct{ *pulumi.OutputState }
func (CustomDomainAssociationCertificateValidationRecordArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomDomainAssociationCertificateValidationRecord)(nil)).Elem()
}
func (o CustomDomainAssociationCertificateValidationRecordArrayOutput) ToCustomDomainAssociationCertificateValidationRecordArrayOutput() CustomDomainAssociationCertificateValidationRecordArrayOutput {
return o
}
func (o CustomDomainAssociationCertificateValidationRecordArrayOutput) ToCustomDomainAssociationCertificateValidationRecordArrayOutputWithContext(ctx context.Context) CustomDomainAssociationCertificateValidationRecordArrayOutput {
return o
}
func (o CustomDomainAssociationCertificateValidationRecordArrayOutput) Index(i pulumi.IntInput) CustomDomainAssociationCertificateValidationRecordOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CustomDomainAssociationCertificateValidationRecord {
return vs[0].([]CustomDomainAssociationCertificateValidationRecord)[vs[1].(int)]
}).(CustomDomainAssociationCertificateValidationRecordOutput)
}
type ServiceEncryptionConfiguration struct {
// The ARN of the KMS key used for encryption.
KmsKey string `pulumi:"kmsKey"`
}
// ServiceEncryptionConfigurationInput is an input type that accepts ServiceEncryptionConfigurationArgs and ServiceEncryptionConfigurationOutput values.
// You can construct a concrete instance of `ServiceEncryptionConfigurationInput` via:
//
// ServiceEncryptionConfigurationArgs{...}
type ServiceEncryptionConfigurationInput interface {
pulumi.Input
ToServiceEncryptionConfigurationOutput() ServiceEncryptionConfigurationOutput
ToServiceEncryptionConfigurationOutputWithContext(context.Context) ServiceEncryptionConfigurationOutput
}
type ServiceEncryptionConfigurationArgs struct {
// The ARN of the KMS key used for encryption.
KmsKey pulumi.StringInput `pulumi:"kmsKey"`
}
func (ServiceEncryptionConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceEncryptionConfiguration)(nil)).Elem()
}
func (i ServiceEncryptionConfigurationArgs) ToServiceEncryptionConfigurationOutput() ServiceEncryptionConfigurationOutput {
return i.ToServiceEncryptionConfigurationOutputWithContext(context.Background())
}
func (i ServiceEncryptionConfigurationArgs) ToServiceEncryptionConfigurationOutputWithContext(ctx context.Context) ServiceEncryptionConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceEncryptionConfigurationOutput)
}
func (i ServiceEncryptionConfigurationArgs) ToServiceEncryptionConfigurationPtrOutput() ServiceEncryptionConfigurationPtrOutput {
return i.ToServiceEncryptionConfigurationPtrOutputWithContext(context.Background())
}
func (i ServiceEncryptionConfigurationArgs) ToServiceEncryptionConfigurationPtrOutputWithContext(ctx context.Context) ServiceEncryptionConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceEncryptionConfigurationOutput).ToServiceEncryptionConfigurationPtrOutputWithContext(ctx)
}
// ServiceEncryptionConfigurationPtrInput is an input type that accepts ServiceEncryptionConfigurationArgs, ServiceEncryptionConfigurationPtr and ServiceEncryptionConfigurationPtrOutput values.
// You can construct a concrete instance of `ServiceEncryptionConfigurationPtrInput` via:
//
// ServiceEncryptionConfigurationArgs{...}
//
// or:
//
// nil
type ServiceEncryptionConfigurationPtrInput interface {
pulumi.Input
ToServiceEncryptionConfigurationPtrOutput() ServiceEncryptionConfigurationPtrOutput
ToServiceEncryptionConfigurationPtrOutputWithContext(context.Context) ServiceEncryptionConfigurationPtrOutput
}
type serviceEncryptionConfigurationPtrType ServiceEncryptionConfigurationArgs
func ServiceEncryptionConfigurationPtr(v *ServiceEncryptionConfigurationArgs) ServiceEncryptionConfigurationPtrInput {
return (*serviceEncryptionConfigurationPtrType)(v)
}
func (*serviceEncryptionConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceEncryptionConfiguration)(nil)).Elem()
}
func (i *serviceEncryptionConfigurationPtrType) ToServiceEncryptionConfigurationPtrOutput() ServiceEncryptionConfigurationPtrOutput {
return i.ToServiceEncryptionConfigurationPtrOutputWithContext(context.Background())
}
func (i *serviceEncryptionConfigurationPtrType) ToServiceEncryptionConfigurationPtrOutputWithContext(ctx context.Context) ServiceEncryptionConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceEncryptionConfigurationPtrOutput)
}
type ServiceEncryptionConfigurationOutput struct{ *pulumi.OutputState }
func (ServiceEncryptionConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceEncryptionConfiguration)(nil)).Elem()
}
func (o ServiceEncryptionConfigurationOutput) ToServiceEncryptionConfigurationOutput() ServiceEncryptionConfigurationOutput {
return o
}
func (o ServiceEncryptionConfigurationOutput) ToServiceEncryptionConfigurationOutputWithContext(ctx context.Context) ServiceEncryptionConfigurationOutput {
return o
}
func (o ServiceEncryptionConfigurationOutput) ToServiceEncryptionConfigurationPtrOutput() ServiceEncryptionConfigurationPtrOutput {
return o.ToServiceEncryptionConfigurationPtrOutputWithContext(context.Background())
}
func (o ServiceEncryptionConfigurationOutput) ToServiceEncryptionConfigurationPtrOutputWithContext(ctx context.Context) ServiceEncryptionConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceEncryptionConfiguration) *ServiceEncryptionConfiguration {
return &v
}).(ServiceEncryptionConfigurationPtrOutput)
}
// The ARN of the KMS key used for encryption.
func (o ServiceEncryptionConfigurationOutput) KmsKey() pulumi.StringOutput {
return o.ApplyT(func(v ServiceEncryptionConfiguration) string { return v.KmsKey }).(pulumi.StringOutput)
}
type ServiceEncryptionConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ServiceEncryptionConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceEncryptionConfiguration)(nil)).Elem()
}
func (o ServiceEncryptionConfigurationPtrOutput) ToServiceEncryptionConfigurationPtrOutput() ServiceEncryptionConfigurationPtrOutput {
return o
}
func (o ServiceEncryptionConfigurationPtrOutput) ToServiceEncryptionConfigurationPtrOutputWithContext(ctx context.Context) ServiceEncryptionConfigurationPtrOutput {
return o
}
func (o ServiceEncryptionConfigurationPtrOutput) Elem() ServiceEncryptionConfigurationOutput {
return o.ApplyT(func(v *ServiceEncryptionConfiguration) ServiceEncryptionConfiguration {
if v != nil {
return *v
}
var ret ServiceEncryptionConfiguration
return ret
}).(ServiceEncryptionConfigurationOutput)
}
// The ARN of the KMS key used for encryption.
func (o ServiceEncryptionConfigurationPtrOutput) KmsKey() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceEncryptionConfiguration) *string {
if v == nil {
return nil
}
return &v.KmsKey
}).(pulumi.StringPtrOutput)
}
type ServiceHealthCheckConfiguration struct {
// The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
HealthyThreshold *int `pulumi:"healthyThreshold"`
// The time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
Interval *int `pulumi:"interval"`
// The URL to send requests to for health checks. Defaults to `/`. Minimum length of 0. Maximum length of 51200.
Path *string `pulumi:"path"`
// The IP protocol that App Runner uses to perform health checks for your service. Valid values: `TCP`, `HTTP`. Defaults to `TCP`. If you set protocol to `HTTP`, App Runner sends health check requests to the HTTP path specified by `path`.
Protocol *string `pulumi:"protocol"`
// The time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
Timeout *int `pulumi:"timeout"`
// The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
UnhealthyThreshold *int `pulumi:"unhealthyThreshold"`
}
// ServiceHealthCheckConfigurationInput is an input type that accepts ServiceHealthCheckConfigurationArgs and ServiceHealthCheckConfigurationOutput values.
// You can construct a concrete instance of `ServiceHealthCheckConfigurationInput` via:
//
// ServiceHealthCheckConfigurationArgs{...}
type ServiceHealthCheckConfigurationInput interface {
pulumi.Input
ToServiceHealthCheckConfigurationOutput() ServiceHealthCheckConfigurationOutput
ToServiceHealthCheckConfigurationOutputWithContext(context.Context) ServiceHealthCheckConfigurationOutput
}
type ServiceHealthCheckConfigurationArgs struct {
// The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
HealthyThreshold pulumi.IntPtrInput `pulumi:"healthyThreshold"`
// The time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
Interval pulumi.IntPtrInput `pulumi:"interval"`
// The URL to send requests to for health checks. Defaults to `/`. Minimum length of 0. Maximum length of 51200.
Path pulumi.StringPtrInput `pulumi:"path"`
// The IP protocol that App Runner uses to perform health checks for your service. Valid values: `TCP`, `HTTP`. Defaults to `TCP`. If you set protocol to `HTTP`, App Runner sends health check requests to the HTTP path specified by `path`.
Protocol pulumi.StringPtrInput `pulumi:"protocol"`
// The time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
Timeout pulumi.IntPtrInput `pulumi:"timeout"`
// The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
UnhealthyThreshold pulumi.IntPtrInput `pulumi:"unhealthyThreshold"`
}
func (ServiceHealthCheckConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceHealthCheckConfiguration)(nil)).Elem()
}
func (i ServiceHealthCheckConfigurationArgs) ToServiceHealthCheckConfigurationOutput() ServiceHealthCheckConfigurationOutput {
return i.ToServiceHealthCheckConfigurationOutputWithContext(context.Background())
}
func (i ServiceHealthCheckConfigurationArgs) ToServiceHealthCheckConfigurationOutputWithContext(ctx context.Context) ServiceHealthCheckConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceHealthCheckConfigurationOutput)
}
func (i ServiceHealthCheckConfigurationArgs) ToServiceHealthCheckConfigurationPtrOutput() ServiceHealthCheckConfigurationPtrOutput {
return i.ToServiceHealthCheckConfigurationPtrOutputWithContext(context.Background())
}
func (i ServiceHealthCheckConfigurationArgs) ToServiceHealthCheckConfigurationPtrOutputWithContext(ctx context.Context) ServiceHealthCheckConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceHealthCheckConfigurationOutput).ToServiceHealthCheckConfigurationPtrOutputWithContext(ctx)
}
// ServiceHealthCheckConfigurationPtrInput is an input type that accepts ServiceHealthCheckConfigurationArgs, ServiceHealthCheckConfigurationPtr and ServiceHealthCheckConfigurationPtrOutput values.
// You can construct a concrete instance of `ServiceHealthCheckConfigurationPtrInput` via:
//
// ServiceHealthCheckConfigurationArgs{...}
//
// or:
//
// nil
type ServiceHealthCheckConfigurationPtrInput interface {
pulumi.Input
ToServiceHealthCheckConfigurationPtrOutput() ServiceHealthCheckConfigurationPtrOutput
ToServiceHealthCheckConfigurationPtrOutputWithContext(context.Context) ServiceHealthCheckConfigurationPtrOutput
}
type serviceHealthCheckConfigurationPtrType ServiceHealthCheckConfigurationArgs
func ServiceHealthCheckConfigurationPtr(v *ServiceHealthCheckConfigurationArgs) ServiceHealthCheckConfigurationPtrInput {
return (*serviceHealthCheckConfigurationPtrType)(v)
}
func (*serviceHealthCheckConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceHealthCheckConfiguration)(nil)).Elem()
}
func (i *serviceHealthCheckConfigurationPtrType) ToServiceHealthCheckConfigurationPtrOutput() ServiceHealthCheckConfigurationPtrOutput {
return i.ToServiceHealthCheckConfigurationPtrOutputWithContext(context.Background())
}
func (i *serviceHealthCheckConfigurationPtrType) ToServiceHealthCheckConfigurationPtrOutputWithContext(ctx context.Context) ServiceHealthCheckConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceHealthCheckConfigurationPtrOutput)
}
type ServiceHealthCheckConfigurationOutput struct{ *pulumi.OutputState }
func (ServiceHealthCheckConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceHealthCheckConfiguration)(nil)).Elem()
}
func (o ServiceHealthCheckConfigurationOutput) ToServiceHealthCheckConfigurationOutput() ServiceHealthCheckConfigurationOutput {
return o
}
func (o ServiceHealthCheckConfigurationOutput) ToServiceHealthCheckConfigurationOutputWithContext(ctx context.Context) ServiceHealthCheckConfigurationOutput {
return o
}
func (o ServiceHealthCheckConfigurationOutput) ToServiceHealthCheckConfigurationPtrOutput() ServiceHealthCheckConfigurationPtrOutput {
return o.ToServiceHealthCheckConfigurationPtrOutputWithContext(context.Background())
}
func (o ServiceHealthCheckConfigurationOutput) ToServiceHealthCheckConfigurationPtrOutputWithContext(ctx context.Context) ServiceHealthCheckConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceHealthCheckConfiguration) *ServiceHealthCheckConfiguration {
return &v
}).(ServiceHealthCheckConfigurationPtrOutput)
}
// The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationOutput) HealthyThreshold() pulumi.IntPtrOutput {
return o.ApplyT(func(v ServiceHealthCheckConfiguration) *int { return v.HealthyThreshold }).(pulumi.IntPtrOutput)
}
// The time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationOutput) Interval() pulumi.IntPtrOutput {
return o.ApplyT(func(v ServiceHealthCheckConfiguration) *int { return v.Interval }).(pulumi.IntPtrOutput)
}
// The URL to send requests to for health checks. Defaults to `/`. Minimum length of 0. Maximum length of 51200.
func (o ServiceHealthCheckConfigurationOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceHealthCheckConfiguration) *string { return v.Path }).(pulumi.StringPtrOutput)
}
// The IP protocol that App Runner uses to perform health checks for your service. Valid values: `TCP`, `HTTP`. Defaults to `TCP`. If you set protocol to `HTTP`, App Runner sends health check requests to the HTTP path specified by `path`.
func (o ServiceHealthCheckConfigurationOutput) Protocol() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceHealthCheckConfiguration) *string { return v.Protocol }).(pulumi.StringPtrOutput)
}
// The time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationOutput) Timeout() pulumi.IntPtrOutput {
return o.ApplyT(func(v ServiceHealthCheckConfiguration) *int { return v.Timeout }).(pulumi.IntPtrOutput)
}
// The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationOutput) UnhealthyThreshold() pulumi.IntPtrOutput {
return o.ApplyT(func(v ServiceHealthCheckConfiguration) *int { return v.UnhealthyThreshold }).(pulumi.IntPtrOutput)
}
type ServiceHealthCheckConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ServiceHealthCheckConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceHealthCheckConfiguration)(nil)).Elem()
}
func (o ServiceHealthCheckConfigurationPtrOutput) ToServiceHealthCheckConfigurationPtrOutput() ServiceHealthCheckConfigurationPtrOutput {
return o
}
func (o ServiceHealthCheckConfigurationPtrOutput) ToServiceHealthCheckConfigurationPtrOutputWithContext(ctx context.Context) ServiceHealthCheckConfigurationPtrOutput {
return o
}
func (o ServiceHealthCheckConfigurationPtrOutput) Elem() ServiceHealthCheckConfigurationOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) ServiceHealthCheckConfiguration {
if v != nil {
return *v
}
var ret ServiceHealthCheckConfiguration
return ret
}).(ServiceHealthCheckConfigurationOutput)
}
// The number of consecutive checks that must succeed before App Runner decides that the service is healthy. Defaults to 1. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationPtrOutput) HealthyThreshold() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) *int {
if v == nil {
return nil
}
return v.HealthyThreshold
}).(pulumi.IntPtrOutput)
}
// The time interval, in seconds, between health checks. Defaults to 5. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationPtrOutput) Interval() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) *int {
if v == nil {
return nil
}
return v.Interval
}).(pulumi.IntPtrOutput)
}
// The URL to send requests to for health checks. Defaults to `/`. Minimum length of 0. Maximum length of 51200.
func (o ServiceHealthCheckConfigurationPtrOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) *string {
if v == nil {
return nil
}
return v.Path
}).(pulumi.StringPtrOutput)
}
// The IP protocol that App Runner uses to perform health checks for your service. Valid values: `TCP`, `HTTP`. Defaults to `TCP`. If you set protocol to `HTTP`, App Runner sends health check requests to the HTTP path specified by `path`.
func (o ServiceHealthCheckConfigurationPtrOutput) Protocol() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) *string {
if v == nil {
return nil
}
return v.Protocol
}).(pulumi.StringPtrOutput)
}
// The time, in seconds, to wait for a health check response before deciding it failed. Defaults to 2. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationPtrOutput) Timeout() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) *int {
if v == nil {
return nil
}
return v.Timeout
}).(pulumi.IntPtrOutput)
}
// The number of consecutive checks that must fail before App Runner decides that the service is unhealthy. Defaults to 5. Minimum value of 1. Maximum value of 20.
func (o ServiceHealthCheckConfigurationPtrOutput) UnhealthyThreshold() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ServiceHealthCheckConfiguration) *int {
if v == nil {
return nil
}
return v.UnhealthyThreshold
}).(pulumi.IntPtrOutput)
}
type ServiceInstanceConfiguration struct {
// The number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `1024|2048|(1|2) vCPU`.
Cpu *string `pulumi:"cpu"`
// The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
InstanceRoleArn *string `pulumi:"instanceRoleArn"`
// The amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `2048|3072|4096|(2|3|4) GB`.
Memory *string `pulumi:"memory"`
}
// ServiceInstanceConfigurationInput is an input type that accepts ServiceInstanceConfigurationArgs and ServiceInstanceConfigurationOutput values.
// You can construct a concrete instance of `ServiceInstanceConfigurationInput` via:
//
// ServiceInstanceConfigurationArgs{...}
type ServiceInstanceConfigurationInput interface {
pulumi.Input
ToServiceInstanceConfigurationOutput() ServiceInstanceConfigurationOutput
ToServiceInstanceConfigurationOutputWithContext(context.Context) ServiceInstanceConfigurationOutput
}
type ServiceInstanceConfigurationArgs struct {
// The number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `1024|2048|(1|2) vCPU`.
Cpu pulumi.StringPtrInput `pulumi:"cpu"`
// The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
InstanceRoleArn pulumi.StringPtrInput `pulumi:"instanceRoleArn"`
// The amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `2048|3072|4096|(2|3|4) GB`.
Memory pulumi.StringPtrInput `pulumi:"memory"`
}
func (ServiceInstanceConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceInstanceConfiguration)(nil)).Elem()
}
func (i ServiceInstanceConfigurationArgs) ToServiceInstanceConfigurationOutput() ServiceInstanceConfigurationOutput {
return i.ToServiceInstanceConfigurationOutputWithContext(context.Background())
}
func (i ServiceInstanceConfigurationArgs) ToServiceInstanceConfigurationOutputWithContext(ctx context.Context) ServiceInstanceConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceInstanceConfigurationOutput)
}
func (i ServiceInstanceConfigurationArgs) ToServiceInstanceConfigurationPtrOutput() ServiceInstanceConfigurationPtrOutput {
return i.ToServiceInstanceConfigurationPtrOutputWithContext(context.Background())
}
func (i ServiceInstanceConfigurationArgs) ToServiceInstanceConfigurationPtrOutputWithContext(ctx context.Context) ServiceInstanceConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceInstanceConfigurationOutput).ToServiceInstanceConfigurationPtrOutputWithContext(ctx)
}
// ServiceInstanceConfigurationPtrInput is an input type that accepts ServiceInstanceConfigurationArgs, ServiceInstanceConfigurationPtr and ServiceInstanceConfigurationPtrOutput values.
// You can construct a concrete instance of `ServiceInstanceConfigurationPtrInput` via:
//
// ServiceInstanceConfigurationArgs{...}
//
// or:
//
// nil
type ServiceInstanceConfigurationPtrInput interface {
pulumi.Input
ToServiceInstanceConfigurationPtrOutput() ServiceInstanceConfigurationPtrOutput
ToServiceInstanceConfigurationPtrOutputWithContext(context.Context) ServiceInstanceConfigurationPtrOutput
}
type serviceInstanceConfigurationPtrType ServiceInstanceConfigurationArgs
func ServiceInstanceConfigurationPtr(v *ServiceInstanceConfigurationArgs) ServiceInstanceConfigurationPtrInput {
return (*serviceInstanceConfigurationPtrType)(v)
}
func (*serviceInstanceConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceInstanceConfiguration)(nil)).Elem()
}
func (i *serviceInstanceConfigurationPtrType) ToServiceInstanceConfigurationPtrOutput() ServiceInstanceConfigurationPtrOutput {
return i.ToServiceInstanceConfigurationPtrOutputWithContext(context.Background())
}
func (i *serviceInstanceConfigurationPtrType) ToServiceInstanceConfigurationPtrOutputWithContext(ctx context.Context) ServiceInstanceConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceInstanceConfigurationPtrOutput)
}
type ServiceInstanceConfigurationOutput struct{ *pulumi.OutputState }
func (ServiceInstanceConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceInstanceConfiguration)(nil)).Elem()
}
func (o ServiceInstanceConfigurationOutput) ToServiceInstanceConfigurationOutput() ServiceInstanceConfigurationOutput {
return o
}
func (o ServiceInstanceConfigurationOutput) ToServiceInstanceConfigurationOutputWithContext(ctx context.Context) ServiceInstanceConfigurationOutput {
return o
}
func (o ServiceInstanceConfigurationOutput) ToServiceInstanceConfigurationPtrOutput() ServiceInstanceConfigurationPtrOutput {
return o.ToServiceInstanceConfigurationPtrOutputWithContext(context.Background())
}
func (o ServiceInstanceConfigurationOutput) ToServiceInstanceConfigurationPtrOutputWithContext(ctx context.Context) ServiceInstanceConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceInstanceConfiguration) *ServiceInstanceConfiguration {
return &v
}).(ServiceInstanceConfigurationPtrOutput)
}
// The number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `1024|2048|(1|2) vCPU`.
func (o ServiceInstanceConfigurationOutput) Cpu() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceInstanceConfiguration) *string { return v.Cpu }).(pulumi.StringPtrOutput)
}
// The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
func (o ServiceInstanceConfigurationOutput) InstanceRoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceInstanceConfiguration) *string { return v.InstanceRoleArn }).(pulumi.StringPtrOutput)
}
// The amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `2048|3072|4096|(2|3|4) GB`.
func (o ServiceInstanceConfigurationOutput) Memory() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceInstanceConfiguration) *string { return v.Memory }).(pulumi.StringPtrOutput)
}
type ServiceInstanceConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ServiceInstanceConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceInstanceConfiguration)(nil)).Elem()
}
func (o ServiceInstanceConfigurationPtrOutput) ToServiceInstanceConfigurationPtrOutput() ServiceInstanceConfigurationPtrOutput {
return o
}
func (o ServiceInstanceConfigurationPtrOutput) ToServiceInstanceConfigurationPtrOutputWithContext(ctx context.Context) ServiceInstanceConfigurationPtrOutput {
return o
}
func (o ServiceInstanceConfigurationPtrOutput) Elem() ServiceInstanceConfigurationOutput {
return o.ApplyT(func(v *ServiceInstanceConfiguration) ServiceInstanceConfiguration {
if v != nil {
return *v
}
var ret ServiceInstanceConfiguration
return ret
}).(ServiceInstanceConfigurationOutput)
}
// The number of CPU units reserved for each instance of your App Runner service represented as a String. Defaults to `1024`. Valid values: `1024|2048|(1|2) vCPU`.
func (o ServiceInstanceConfigurationPtrOutput) Cpu() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceInstanceConfiguration) *string {
if v == nil {
return nil
}
return v.Cpu
}).(pulumi.StringPtrOutput)
}
// The Amazon Resource Name (ARN) of an IAM role that provides permissions to your App Runner service. These are permissions that your code needs when it calls any AWS APIs.
func (o ServiceInstanceConfigurationPtrOutput) InstanceRoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceInstanceConfiguration) *string {
if v == nil {
return nil
}
return v.InstanceRoleArn
}).(pulumi.StringPtrOutput)
}
// The amount of memory, in MB or GB, reserved for each instance of your App Runner service. Defaults to `2048`. Valid values: `2048|3072|4096|(2|3|4) GB`.
func (o ServiceInstanceConfigurationPtrOutput) Memory() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceInstanceConfiguration) *string {
if v == nil {
return nil
}
return v.Memory
}).(pulumi.StringPtrOutput)
}
type ServiceSourceConfiguration struct {
// Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
AuthenticationConfiguration *ServiceSourceConfigurationAuthenticationConfiguration `pulumi:"authenticationConfiguration"`
// Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
AutoDeploymentsEnabled *bool `pulumi:"autoDeploymentsEnabled"`
// Description of a source code repository. See Code Repository below for more details.
CodeRepository *ServiceSourceConfigurationCodeRepository `pulumi:"codeRepository"`
// Description of a source image repository. See Image Repository below for more details.
ImageRepository *ServiceSourceConfigurationImageRepository `pulumi:"imageRepository"`
}
// ServiceSourceConfigurationInput is an input type that accepts ServiceSourceConfigurationArgs and ServiceSourceConfigurationOutput values.
// You can construct a concrete instance of `ServiceSourceConfigurationInput` via:
//
// ServiceSourceConfigurationArgs{...}
type ServiceSourceConfigurationInput interface {
pulumi.Input
ToServiceSourceConfigurationOutput() ServiceSourceConfigurationOutput
ToServiceSourceConfigurationOutputWithContext(context.Context) ServiceSourceConfigurationOutput
}
type ServiceSourceConfigurationArgs struct {
// Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
AuthenticationConfiguration ServiceSourceConfigurationAuthenticationConfigurationPtrInput `pulumi:"authenticationConfiguration"`
// Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
AutoDeploymentsEnabled pulumi.BoolPtrInput `pulumi:"autoDeploymentsEnabled"`
// Description of a source code repository. See Code Repository below for more details.
CodeRepository ServiceSourceConfigurationCodeRepositoryPtrInput `pulumi:"codeRepository"`
// Description of a source image repository. See Image Repository below for more details.
ImageRepository ServiceSourceConfigurationImageRepositoryPtrInput `pulumi:"imageRepository"`
}
func (ServiceSourceConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceSourceConfiguration)(nil)).Elem()
}
func (i ServiceSourceConfigurationArgs) ToServiceSourceConfigurationOutput() ServiceSourceConfigurationOutput {
return i.ToServiceSourceConfigurationOutputWithContext(context.Background())
}
func (i ServiceSourceConfigurationArgs) ToServiceSourceConfigurationOutputWithContext(ctx context.Context) ServiceSourceConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceSourceConfigurationOutput)
}
func (i ServiceSourceConfigurationArgs) ToServiceSourceConfigurationPtrOutput() ServiceSourceConfigurationPtrOutput {
return i.ToServiceSourceConfigurationPtrOutputWithContext(context.Background())
}
func (i ServiceSourceConfigurationArgs) ToServiceSourceConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceSourceConfigurationOutput).ToServiceSourceConfigurationPtrOutputWithContext(ctx)
}
// ServiceSourceConfigurationPtrInput is an input type that accepts ServiceSourceConfigurationArgs, ServiceSourceConfigurationPtr and ServiceSourceConfigurationPtrOutput values.
// You can construct a concrete instance of `ServiceSourceConfigurationPtrInput` via:
//
// ServiceSourceConfigurationArgs{...}
//
// or:
//
// nil
type ServiceSourceConfigurationPtrInput interface {
pulumi.Input
ToServiceSourceConfigurationPtrOutput() ServiceSourceConfigurationPtrOutput
ToServiceSourceConfigurationPtrOutputWithContext(context.Context) ServiceSourceConfigurationPtrOutput
}
type serviceSourceConfigurationPtrType ServiceSourceConfigurationArgs
func ServiceSourceConfigurationPtr(v *ServiceSourceConfigurationArgs) ServiceSourceConfigurationPtrInput {
return (*serviceSourceConfigurationPtrType)(v)
}
func (*serviceSourceConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceSourceConfiguration)(nil)).Elem()
}
func (i *serviceSourceConfigurationPtrType) ToServiceSourceConfigurationPtrOutput() ServiceSourceConfigurationPtrOutput {
return i.ToServiceSourceConfigurationPtrOutputWithContext(context.Background())
}
func (i *serviceSourceConfigurationPtrType) ToServiceSourceConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceSourceConfigurationPtrOutput)
}
type ServiceSourceConfigurationOutput struct{ *pulumi.OutputState }
func (ServiceSourceConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceSourceConfiguration)(nil)).Elem()
}
func (o ServiceSourceConfigurationOutput) ToServiceSourceConfigurationOutput() ServiceSourceConfigurationOutput {
return o
}
func (o ServiceSourceConfigurationOutput) ToServiceSourceConfigurationOutputWithContext(ctx context.Context) ServiceSourceConfigurationOutput {
return o
}
func (o ServiceSourceConfigurationOutput) ToServiceSourceConfigurationPtrOutput() ServiceSourceConfigurationPtrOutput {
return o.ToServiceSourceConfigurationPtrOutputWithContext(context.Background())
}
func (o ServiceSourceConfigurationOutput) ToServiceSourceConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceSourceConfiguration) *ServiceSourceConfiguration {
return &v
}).(ServiceSourceConfigurationPtrOutput)
}
// Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
func (o ServiceSourceConfigurationOutput) AuthenticationConfiguration() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return o.ApplyT(func(v ServiceSourceConfiguration) *ServiceSourceConfigurationAuthenticationConfiguration {
return v.AuthenticationConfiguration
}).(ServiceSourceConfigurationAuthenticationConfigurationPtrOutput)
}
// Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
func (o ServiceSourceConfigurationOutput) AutoDeploymentsEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ServiceSourceConfiguration) *bool { return v.AutoDeploymentsEnabled }).(pulumi.BoolPtrOutput)
}
// Description of a source code repository. See Code Repository below for more details.
func (o ServiceSourceConfigurationOutput) CodeRepository() ServiceSourceConfigurationCodeRepositoryPtrOutput {
return o.ApplyT(func(v ServiceSourceConfiguration) *ServiceSourceConfigurationCodeRepository { return v.CodeRepository }).(ServiceSourceConfigurationCodeRepositoryPtrOutput)
}
// Description of a source image repository. See Image Repository below for more details.
func (o ServiceSourceConfigurationOutput) ImageRepository() ServiceSourceConfigurationImageRepositoryPtrOutput {
return o.ApplyT(func(v ServiceSourceConfiguration) *ServiceSourceConfigurationImageRepository {
return v.ImageRepository
}).(ServiceSourceConfigurationImageRepositoryPtrOutput)
}
type ServiceSourceConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ServiceSourceConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceSourceConfiguration)(nil)).Elem()
}
func (o ServiceSourceConfigurationPtrOutput) ToServiceSourceConfigurationPtrOutput() ServiceSourceConfigurationPtrOutput {
return o
}
func (o ServiceSourceConfigurationPtrOutput) ToServiceSourceConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationPtrOutput {
return o
}
func (o ServiceSourceConfigurationPtrOutput) Elem() ServiceSourceConfigurationOutput {
return o.ApplyT(func(v *ServiceSourceConfiguration) ServiceSourceConfiguration {
if v != nil {
return *v
}
var ret ServiceSourceConfiguration
return ret
}).(ServiceSourceConfigurationOutput)
}
// Describes resources needed to authenticate access to some source repositories. See Authentication Configuration below for more details.
func (o ServiceSourceConfigurationPtrOutput) AuthenticationConfiguration() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return o.ApplyT(func(v *ServiceSourceConfiguration) *ServiceSourceConfigurationAuthenticationConfiguration {
if v == nil {
return nil
}
return v.AuthenticationConfiguration
}).(ServiceSourceConfigurationAuthenticationConfigurationPtrOutput)
}
// Whether continuous integration from the source repository is enabled for the App Runner service. If set to `true`, each repository change (source code commit or new image version) starts a deployment. Defaults to `true`.
func (o ServiceSourceConfigurationPtrOutput) AutoDeploymentsEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ServiceSourceConfiguration) *bool {
if v == nil {
return nil
}
return v.AutoDeploymentsEnabled
}).(pulumi.BoolPtrOutput)
}
// Description of a source code repository. See Code Repository below for more details.
func (o ServiceSourceConfigurationPtrOutput) CodeRepository() ServiceSourceConfigurationCodeRepositoryPtrOutput {
return o.ApplyT(func(v *ServiceSourceConfiguration) *ServiceSourceConfigurationCodeRepository {
if v == nil {
return nil
}
return v.CodeRepository
}).(ServiceSourceConfigurationCodeRepositoryPtrOutput)
}
// Description of a source image repository. See Image Repository below for more details.
func (o ServiceSourceConfigurationPtrOutput) ImageRepository() ServiceSourceConfigurationImageRepositoryPtrOutput {
return o.ApplyT(func(v *ServiceSourceConfiguration) *ServiceSourceConfigurationImageRepository {
if v == nil {
return nil
}
return v.ImageRepository
}).(ServiceSourceConfigurationImageRepositoryPtrOutput)
}
type ServiceSourceConfigurationAuthenticationConfiguration struct {
// ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
AccessRoleArn *string `pulumi:"accessRoleArn"`
// ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
ConnectionArn *string `pulumi:"connectionArn"`
}
// ServiceSourceConfigurationAuthenticationConfigurationInput is an input type that accepts ServiceSourceConfigurationAuthenticationConfigurationArgs and ServiceSourceConfigurationAuthenticationConfigurationOutput values.
// You can construct a concrete instance of `ServiceSourceConfigurationAuthenticationConfigurationInput` via:
//
// ServiceSourceConfigurationAuthenticationConfigurationArgs{...}
type ServiceSourceConfigurationAuthenticationConfigurationInput interface {
pulumi.Input
ToServiceSourceConfigurationAuthenticationConfigurationOutput() ServiceSourceConfigurationAuthenticationConfigurationOutput
ToServiceSourceConfigurationAuthenticationConfigurationOutputWithContext(context.Context) ServiceSourceConfigurationAuthenticationConfigurationOutput
}
type ServiceSourceConfigurationAuthenticationConfigurationArgs struct {
// ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
AccessRoleArn pulumi.StringPtrInput `pulumi:"accessRoleArn"`
// ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
ConnectionArn pulumi.StringPtrInput `pulumi:"connectionArn"`
}
func (ServiceSourceConfigurationAuthenticationConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceSourceConfigurationAuthenticationConfiguration)(nil)).Elem()
}
func (i ServiceSourceConfigurationAuthenticationConfigurationArgs) ToServiceSourceConfigurationAuthenticationConfigurationOutput() ServiceSourceConfigurationAuthenticationConfigurationOutput {
return i.ToServiceSourceConfigurationAuthenticationConfigurationOutputWithContext(context.Background())
}
func (i ServiceSourceConfigurationAuthenticationConfigurationArgs) ToServiceSourceConfigurationAuthenticationConfigurationOutputWithContext(ctx context.Context) ServiceSourceConfigurationAuthenticationConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceSourceConfigurationAuthenticationConfigurationOutput)
}
func (i ServiceSourceConfigurationAuthenticationConfigurationArgs) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutput() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return i.ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(context.Background())
}
func (i ServiceSourceConfigurationAuthenticationConfigurationArgs) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceSourceConfigurationAuthenticationConfigurationOutput).ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(ctx)
}
// ServiceSourceConfigurationAuthenticationConfigurationPtrInput is an input type that accepts ServiceSourceConfigurationAuthenticationConfigurationArgs, ServiceSourceConfigurationAuthenticationConfigurationPtr and ServiceSourceConfigurationAuthenticationConfigurationPtrOutput values.
// You can construct a concrete instance of `ServiceSourceConfigurationAuthenticationConfigurationPtrInput` via:
//
// ServiceSourceConfigurationAuthenticationConfigurationArgs{...}
//
// or:
//
// nil
type ServiceSourceConfigurationAuthenticationConfigurationPtrInput interface {
pulumi.Input
ToServiceSourceConfigurationAuthenticationConfigurationPtrOutput() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput
ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(context.Context) ServiceSourceConfigurationAuthenticationConfigurationPtrOutput
}
type serviceSourceConfigurationAuthenticationConfigurationPtrType ServiceSourceConfigurationAuthenticationConfigurationArgs
func ServiceSourceConfigurationAuthenticationConfigurationPtr(v *ServiceSourceConfigurationAuthenticationConfigurationArgs) ServiceSourceConfigurationAuthenticationConfigurationPtrInput {
return (*serviceSourceConfigurationAuthenticationConfigurationPtrType)(v)
}
func (*serviceSourceConfigurationAuthenticationConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceSourceConfigurationAuthenticationConfiguration)(nil)).Elem()
}
func (i *serviceSourceConfigurationAuthenticationConfigurationPtrType) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutput() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return i.ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(context.Background())
}
func (i *serviceSourceConfigurationAuthenticationConfigurationPtrType) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceSourceConfigurationAuthenticationConfigurationPtrOutput)
}
type ServiceSourceConfigurationAuthenticationConfigurationOutput struct{ *pulumi.OutputState }
func (ServiceSourceConfigurationAuthenticationConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceSourceConfigurationAuthenticationConfiguration)(nil)).Elem()
}
func (o ServiceSourceConfigurationAuthenticationConfigurationOutput) ToServiceSourceConfigurationAuthenticationConfigurationOutput() ServiceSourceConfigurationAuthenticationConfigurationOutput {
return o
}
func (o ServiceSourceConfigurationAuthenticationConfigurationOutput) ToServiceSourceConfigurationAuthenticationConfigurationOutputWithContext(ctx context.Context) ServiceSourceConfigurationAuthenticationConfigurationOutput {
return o
}
func (o ServiceSourceConfigurationAuthenticationConfigurationOutput) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutput() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return o.ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(context.Background())
}
func (o ServiceSourceConfigurationAuthenticationConfigurationOutput) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutputWithContext(ctx context.Context) ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceSourceConfigurationAuthenticationConfiguration) *ServiceSourceConfigurationAuthenticationConfiguration {
return &v
}).(ServiceSourceConfigurationAuthenticationConfigurationPtrOutput)
}
// ARN of the IAM role that grants the App Runner service access to a source repository. Required for ECR image repositories (but not for ECR Public)
func (o ServiceSourceConfigurationAuthenticationConfigurationOutput) AccessRoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceSourceConfigurationAuthenticationConfiguration) *string { return v.AccessRoleArn }).(pulumi.StringPtrOutput)
}
// ARN of the App Runner connection that enables the App Runner service to connect to a source repository. Required for GitHub code repositories.
func (o ServiceSourceConfigurationAuthenticationConfigurationOutput) ConnectionArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServiceSourceConfigurationAuthenticationConfiguration) *string { return v.ConnectionArn }).(pulumi.StringPtrOutput)
}
type ServiceSourceConfigurationAuthenticationConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ServiceSourceConfigurationAuthenticationConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceSourceConfigurationAuthenticationConfiguration)(nil)).Elem()
}
func (o ServiceSourceConfigurationAuthenticationConfigurationPtrOutput) ToServiceSourceConfigurationAuthenticationConfigurationPtrOutput() ServiceSourceConfigurationAuthenticationConfigurationPtrOutput {
return o
}