/
pulumiTypes.go
2383 lines (1925 loc) · 112 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 the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package apigateway
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type AccountThrottleSetting struct {
// Absolute maximum number of times API Gateway allows the API to be called per second (RPS).
BurstLimit *int `pulumi:"burstLimit"`
// Number of times API Gateway allows the API to be called per second on average (RPS).
RateLimit *float64 `pulumi:"rateLimit"`
}
// AccountThrottleSettingInput is an input type that accepts AccountThrottleSettingArgs and AccountThrottleSettingOutput values.
// You can construct a concrete instance of `AccountThrottleSettingInput` via:
//
// AccountThrottleSettingArgs{...}
type AccountThrottleSettingInput interface {
pulumi.Input
ToAccountThrottleSettingOutput() AccountThrottleSettingOutput
ToAccountThrottleSettingOutputWithContext(context.Context) AccountThrottleSettingOutput
}
type AccountThrottleSettingArgs struct {
// Absolute maximum number of times API Gateway allows the API to be called per second (RPS).
BurstLimit pulumi.IntPtrInput `pulumi:"burstLimit"`
// Number of times API Gateway allows the API to be called per second on average (RPS).
RateLimit pulumi.Float64PtrInput `pulumi:"rateLimit"`
}
func (AccountThrottleSettingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountThrottleSetting)(nil)).Elem()
}
func (i AccountThrottleSettingArgs) ToAccountThrottleSettingOutput() AccountThrottleSettingOutput {
return i.ToAccountThrottleSettingOutputWithContext(context.Background())
}
func (i AccountThrottleSettingArgs) ToAccountThrottleSettingOutputWithContext(ctx context.Context) AccountThrottleSettingOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountThrottleSettingOutput)
}
// AccountThrottleSettingArrayInput is an input type that accepts AccountThrottleSettingArray and AccountThrottleSettingArrayOutput values.
// You can construct a concrete instance of `AccountThrottleSettingArrayInput` via:
//
// AccountThrottleSettingArray{ AccountThrottleSettingArgs{...} }
type AccountThrottleSettingArrayInput interface {
pulumi.Input
ToAccountThrottleSettingArrayOutput() AccountThrottleSettingArrayOutput
ToAccountThrottleSettingArrayOutputWithContext(context.Context) AccountThrottleSettingArrayOutput
}
type AccountThrottleSettingArray []AccountThrottleSettingInput
func (AccountThrottleSettingArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountThrottleSetting)(nil)).Elem()
}
func (i AccountThrottleSettingArray) ToAccountThrottleSettingArrayOutput() AccountThrottleSettingArrayOutput {
return i.ToAccountThrottleSettingArrayOutputWithContext(context.Background())
}
func (i AccountThrottleSettingArray) ToAccountThrottleSettingArrayOutputWithContext(ctx context.Context) AccountThrottleSettingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountThrottleSettingArrayOutput)
}
type AccountThrottleSettingOutput struct{ *pulumi.OutputState }
func (AccountThrottleSettingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountThrottleSetting)(nil)).Elem()
}
func (o AccountThrottleSettingOutput) ToAccountThrottleSettingOutput() AccountThrottleSettingOutput {
return o
}
func (o AccountThrottleSettingOutput) ToAccountThrottleSettingOutputWithContext(ctx context.Context) AccountThrottleSettingOutput {
return o
}
// Absolute maximum number of times API Gateway allows the API to be called per second (RPS).
func (o AccountThrottleSettingOutput) BurstLimit() pulumi.IntPtrOutput {
return o.ApplyT(func(v AccountThrottleSetting) *int { return v.BurstLimit }).(pulumi.IntPtrOutput)
}
// Number of times API Gateway allows the API to be called per second on average (RPS).
func (o AccountThrottleSettingOutput) RateLimit() pulumi.Float64PtrOutput {
return o.ApplyT(func(v AccountThrottleSetting) *float64 { return v.RateLimit }).(pulumi.Float64PtrOutput)
}
type AccountThrottleSettingArrayOutput struct{ *pulumi.OutputState }
func (AccountThrottleSettingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountThrottleSetting)(nil)).Elem()
}
func (o AccountThrottleSettingArrayOutput) ToAccountThrottleSettingArrayOutput() AccountThrottleSettingArrayOutput {
return o
}
func (o AccountThrottleSettingArrayOutput) ToAccountThrottleSettingArrayOutputWithContext(ctx context.Context) AccountThrottleSettingArrayOutput {
return o
}
func (o AccountThrottleSettingArrayOutput) Index(i pulumi.IntInput) AccountThrottleSettingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountThrottleSetting {
return vs[0].([]AccountThrottleSetting)[vs[1].(int)]
}).(AccountThrottleSettingOutput)
}
type DocumentationPartLocation struct {
// HTTP verb of a method. The default value is `*` for any method.
Method *string `pulumi:"method"`
// Name of the targeted API entity.
Name *string `pulumi:"name"`
// URL path of the target. The default value is `/` for the root resource.
Path *string `pulumi:"path"`
// HTTP status code of a response. The default value is `*` for any status code.
StatusCode *string `pulumi:"statusCode"`
// Type of API entity to which the documentation content appliesE.g., `API`, `METHOD` or `REQUEST_BODY`
Type string `pulumi:"type"`
}
// DocumentationPartLocationInput is an input type that accepts DocumentationPartLocationArgs and DocumentationPartLocationOutput values.
// You can construct a concrete instance of `DocumentationPartLocationInput` via:
//
// DocumentationPartLocationArgs{...}
type DocumentationPartLocationInput interface {
pulumi.Input
ToDocumentationPartLocationOutput() DocumentationPartLocationOutput
ToDocumentationPartLocationOutputWithContext(context.Context) DocumentationPartLocationOutput
}
type DocumentationPartLocationArgs struct {
// HTTP verb of a method. The default value is `*` for any method.
Method pulumi.StringPtrInput `pulumi:"method"`
// Name of the targeted API entity.
Name pulumi.StringPtrInput `pulumi:"name"`
// URL path of the target. The default value is `/` for the root resource.
Path pulumi.StringPtrInput `pulumi:"path"`
// HTTP status code of a response. The default value is `*` for any status code.
StatusCode pulumi.StringPtrInput `pulumi:"statusCode"`
// Type of API entity to which the documentation content appliesE.g., `API`, `METHOD` or `REQUEST_BODY`
Type pulumi.StringInput `pulumi:"type"`
}
func (DocumentationPartLocationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DocumentationPartLocation)(nil)).Elem()
}
func (i DocumentationPartLocationArgs) ToDocumentationPartLocationOutput() DocumentationPartLocationOutput {
return i.ToDocumentationPartLocationOutputWithContext(context.Background())
}
func (i DocumentationPartLocationArgs) ToDocumentationPartLocationOutputWithContext(ctx context.Context) DocumentationPartLocationOutput {
return pulumi.ToOutputWithContext(ctx, i).(DocumentationPartLocationOutput)
}
func (i DocumentationPartLocationArgs) ToDocumentationPartLocationPtrOutput() DocumentationPartLocationPtrOutput {
return i.ToDocumentationPartLocationPtrOutputWithContext(context.Background())
}
func (i DocumentationPartLocationArgs) ToDocumentationPartLocationPtrOutputWithContext(ctx context.Context) DocumentationPartLocationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DocumentationPartLocationOutput).ToDocumentationPartLocationPtrOutputWithContext(ctx)
}
// DocumentationPartLocationPtrInput is an input type that accepts DocumentationPartLocationArgs, DocumentationPartLocationPtr and DocumentationPartLocationPtrOutput values.
// You can construct a concrete instance of `DocumentationPartLocationPtrInput` via:
//
// DocumentationPartLocationArgs{...}
//
// or:
//
// nil
type DocumentationPartLocationPtrInput interface {
pulumi.Input
ToDocumentationPartLocationPtrOutput() DocumentationPartLocationPtrOutput
ToDocumentationPartLocationPtrOutputWithContext(context.Context) DocumentationPartLocationPtrOutput
}
type documentationPartLocationPtrType DocumentationPartLocationArgs
func DocumentationPartLocationPtr(v *DocumentationPartLocationArgs) DocumentationPartLocationPtrInput {
return (*documentationPartLocationPtrType)(v)
}
func (*documentationPartLocationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DocumentationPartLocation)(nil)).Elem()
}
func (i *documentationPartLocationPtrType) ToDocumentationPartLocationPtrOutput() DocumentationPartLocationPtrOutput {
return i.ToDocumentationPartLocationPtrOutputWithContext(context.Background())
}
func (i *documentationPartLocationPtrType) ToDocumentationPartLocationPtrOutputWithContext(ctx context.Context) DocumentationPartLocationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DocumentationPartLocationPtrOutput)
}
type DocumentationPartLocationOutput struct{ *pulumi.OutputState }
func (DocumentationPartLocationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DocumentationPartLocation)(nil)).Elem()
}
func (o DocumentationPartLocationOutput) ToDocumentationPartLocationOutput() DocumentationPartLocationOutput {
return o
}
func (o DocumentationPartLocationOutput) ToDocumentationPartLocationOutputWithContext(ctx context.Context) DocumentationPartLocationOutput {
return o
}
func (o DocumentationPartLocationOutput) ToDocumentationPartLocationPtrOutput() DocumentationPartLocationPtrOutput {
return o.ToDocumentationPartLocationPtrOutputWithContext(context.Background())
}
func (o DocumentationPartLocationOutput) ToDocumentationPartLocationPtrOutputWithContext(ctx context.Context) DocumentationPartLocationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DocumentationPartLocation) *DocumentationPartLocation {
return &v
}).(DocumentationPartLocationPtrOutput)
}
// HTTP verb of a method. The default value is `*` for any method.
func (o DocumentationPartLocationOutput) Method() pulumi.StringPtrOutput {
return o.ApplyT(func(v DocumentationPartLocation) *string { return v.Method }).(pulumi.StringPtrOutput)
}
// Name of the targeted API entity.
func (o DocumentationPartLocationOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v DocumentationPartLocation) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// URL path of the target. The default value is `/` for the root resource.
func (o DocumentationPartLocationOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v DocumentationPartLocation) *string { return v.Path }).(pulumi.StringPtrOutput)
}
// HTTP status code of a response. The default value is `*` for any status code.
func (o DocumentationPartLocationOutput) StatusCode() pulumi.StringPtrOutput {
return o.ApplyT(func(v DocumentationPartLocation) *string { return v.StatusCode }).(pulumi.StringPtrOutput)
}
// Type of API entity to which the documentation content appliesE.g., `API`, `METHOD` or `REQUEST_BODY`
func (o DocumentationPartLocationOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v DocumentationPartLocation) string { return v.Type }).(pulumi.StringOutput)
}
type DocumentationPartLocationPtrOutput struct{ *pulumi.OutputState }
func (DocumentationPartLocationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DocumentationPartLocation)(nil)).Elem()
}
func (o DocumentationPartLocationPtrOutput) ToDocumentationPartLocationPtrOutput() DocumentationPartLocationPtrOutput {
return o
}
func (o DocumentationPartLocationPtrOutput) ToDocumentationPartLocationPtrOutputWithContext(ctx context.Context) DocumentationPartLocationPtrOutput {
return o
}
func (o DocumentationPartLocationPtrOutput) Elem() DocumentationPartLocationOutput {
return o.ApplyT(func(v *DocumentationPartLocation) DocumentationPartLocation {
if v != nil {
return *v
}
var ret DocumentationPartLocation
return ret
}).(DocumentationPartLocationOutput)
}
// HTTP verb of a method. The default value is `*` for any method.
func (o DocumentationPartLocationPtrOutput) Method() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DocumentationPartLocation) *string {
if v == nil {
return nil
}
return v.Method
}).(pulumi.StringPtrOutput)
}
// Name of the targeted API entity.
func (o DocumentationPartLocationPtrOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DocumentationPartLocation) *string {
if v == nil {
return nil
}
return v.Name
}).(pulumi.StringPtrOutput)
}
// URL path of the target. The default value is `/` for the root resource.
func (o DocumentationPartLocationPtrOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DocumentationPartLocation) *string {
if v == nil {
return nil
}
return v.Path
}).(pulumi.StringPtrOutput)
}
// HTTP status code of a response. The default value is `*` for any status code.
func (o DocumentationPartLocationPtrOutput) StatusCode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DocumentationPartLocation) *string {
if v == nil {
return nil
}
return v.StatusCode
}).(pulumi.StringPtrOutput)
}
// Type of API entity to which the documentation content appliesE.g., `API`, `METHOD` or `REQUEST_BODY`
func (o DocumentationPartLocationPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DocumentationPartLocation) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
type DomainNameEndpointConfiguration struct {
// List of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE` or `REGIONAL`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs.
Types string `pulumi:"types"`
}
// DomainNameEndpointConfigurationInput is an input type that accepts DomainNameEndpointConfigurationArgs and DomainNameEndpointConfigurationOutput values.
// You can construct a concrete instance of `DomainNameEndpointConfigurationInput` via:
//
// DomainNameEndpointConfigurationArgs{...}
type DomainNameEndpointConfigurationInput interface {
pulumi.Input
ToDomainNameEndpointConfigurationOutput() DomainNameEndpointConfigurationOutput
ToDomainNameEndpointConfigurationOutputWithContext(context.Context) DomainNameEndpointConfigurationOutput
}
type DomainNameEndpointConfigurationArgs struct {
// List of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE` or `REGIONAL`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs.
Types pulumi.StringInput `pulumi:"types"`
}
func (DomainNameEndpointConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainNameEndpointConfiguration)(nil)).Elem()
}
func (i DomainNameEndpointConfigurationArgs) ToDomainNameEndpointConfigurationOutput() DomainNameEndpointConfigurationOutput {
return i.ToDomainNameEndpointConfigurationOutputWithContext(context.Background())
}
func (i DomainNameEndpointConfigurationArgs) ToDomainNameEndpointConfigurationOutputWithContext(ctx context.Context) DomainNameEndpointConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainNameEndpointConfigurationOutput)
}
func (i DomainNameEndpointConfigurationArgs) ToDomainNameEndpointConfigurationPtrOutput() DomainNameEndpointConfigurationPtrOutput {
return i.ToDomainNameEndpointConfigurationPtrOutputWithContext(context.Background())
}
func (i DomainNameEndpointConfigurationArgs) ToDomainNameEndpointConfigurationPtrOutputWithContext(ctx context.Context) DomainNameEndpointConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainNameEndpointConfigurationOutput).ToDomainNameEndpointConfigurationPtrOutputWithContext(ctx)
}
// DomainNameEndpointConfigurationPtrInput is an input type that accepts DomainNameEndpointConfigurationArgs, DomainNameEndpointConfigurationPtr and DomainNameEndpointConfigurationPtrOutput values.
// You can construct a concrete instance of `DomainNameEndpointConfigurationPtrInput` via:
//
// DomainNameEndpointConfigurationArgs{...}
//
// or:
//
// nil
type DomainNameEndpointConfigurationPtrInput interface {
pulumi.Input
ToDomainNameEndpointConfigurationPtrOutput() DomainNameEndpointConfigurationPtrOutput
ToDomainNameEndpointConfigurationPtrOutputWithContext(context.Context) DomainNameEndpointConfigurationPtrOutput
}
type domainNameEndpointConfigurationPtrType DomainNameEndpointConfigurationArgs
func DomainNameEndpointConfigurationPtr(v *DomainNameEndpointConfigurationArgs) DomainNameEndpointConfigurationPtrInput {
return (*domainNameEndpointConfigurationPtrType)(v)
}
func (*domainNameEndpointConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DomainNameEndpointConfiguration)(nil)).Elem()
}
func (i *domainNameEndpointConfigurationPtrType) ToDomainNameEndpointConfigurationPtrOutput() DomainNameEndpointConfigurationPtrOutput {
return i.ToDomainNameEndpointConfigurationPtrOutputWithContext(context.Background())
}
func (i *domainNameEndpointConfigurationPtrType) ToDomainNameEndpointConfigurationPtrOutputWithContext(ctx context.Context) DomainNameEndpointConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainNameEndpointConfigurationPtrOutput)
}
type DomainNameEndpointConfigurationOutput struct{ *pulumi.OutputState }
func (DomainNameEndpointConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainNameEndpointConfiguration)(nil)).Elem()
}
func (o DomainNameEndpointConfigurationOutput) ToDomainNameEndpointConfigurationOutput() DomainNameEndpointConfigurationOutput {
return o
}
func (o DomainNameEndpointConfigurationOutput) ToDomainNameEndpointConfigurationOutputWithContext(ctx context.Context) DomainNameEndpointConfigurationOutput {
return o
}
func (o DomainNameEndpointConfigurationOutput) ToDomainNameEndpointConfigurationPtrOutput() DomainNameEndpointConfigurationPtrOutput {
return o.ToDomainNameEndpointConfigurationPtrOutputWithContext(context.Background())
}
func (o DomainNameEndpointConfigurationOutput) ToDomainNameEndpointConfigurationPtrOutputWithContext(ctx context.Context) DomainNameEndpointConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainNameEndpointConfiguration) *DomainNameEndpointConfiguration {
return &v
}).(DomainNameEndpointConfigurationPtrOutput)
}
// List of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE` or `REGIONAL`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs.
func (o DomainNameEndpointConfigurationOutput) Types() pulumi.StringOutput {
return o.ApplyT(func(v DomainNameEndpointConfiguration) string { return v.Types }).(pulumi.StringOutput)
}
type DomainNameEndpointConfigurationPtrOutput struct{ *pulumi.OutputState }
func (DomainNameEndpointConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DomainNameEndpointConfiguration)(nil)).Elem()
}
func (o DomainNameEndpointConfigurationPtrOutput) ToDomainNameEndpointConfigurationPtrOutput() DomainNameEndpointConfigurationPtrOutput {
return o
}
func (o DomainNameEndpointConfigurationPtrOutput) ToDomainNameEndpointConfigurationPtrOutputWithContext(ctx context.Context) DomainNameEndpointConfigurationPtrOutput {
return o
}
func (o DomainNameEndpointConfigurationPtrOutput) Elem() DomainNameEndpointConfigurationOutput {
return o.ApplyT(func(v *DomainNameEndpointConfiguration) DomainNameEndpointConfiguration {
if v != nil {
return *v
}
var ret DomainNameEndpointConfiguration
return ret
}).(DomainNameEndpointConfigurationOutput)
}
// List of endpoint types. This resource currently only supports managing a single value. Valid values: `EDGE` or `REGIONAL`. If unspecified, defaults to `EDGE`. Must be declared as `REGIONAL` in non-Commercial partitions. Refer to the [documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/create-regional-api.html) for more information on the difference between edge-optimized and regional APIs.
func (o DomainNameEndpointConfigurationPtrOutput) Types() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainNameEndpointConfiguration) *string {
if v == nil {
return nil
}
return &v.Types
}).(pulumi.StringPtrOutput)
}
type DomainNameMutualTlsAuthentication struct {
// Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version.
TruststoreUri string `pulumi:"truststoreUri"`
// Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
TruststoreVersion *string `pulumi:"truststoreVersion"`
}
// DomainNameMutualTlsAuthenticationInput is an input type that accepts DomainNameMutualTlsAuthenticationArgs and DomainNameMutualTlsAuthenticationOutput values.
// You can construct a concrete instance of `DomainNameMutualTlsAuthenticationInput` via:
//
// DomainNameMutualTlsAuthenticationArgs{...}
type DomainNameMutualTlsAuthenticationInput interface {
pulumi.Input
ToDomainNameMutualTlsAuthenticationOutput() DomainNameMutualTlsAuthenticationOutput
ToDomainNameMutualTlsAuthenticationOutputWithContext(context.Context) DomainNameMutualTlsAuthenticationOutput
}
type DomainNameMutualTlsAuthenticationArgs struct {
// Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version.
TruststoreUri pulumi.StringInput `pulumi:"truststoreUri"`
// Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
TruststoreVersion pulumi.StringPtrInput `pulumi:"truststoreVersion"`
}
func (DomainNameMutualTlsAuthenticationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DomainNameMutualTlsAuthentication)(nil)).Elem()
}
func (i DomainNameMutualTlsAuthenticationArgs) ToDomainNameMutualTlsAuthenticationOutput() DomainNameMutualTlsAuthenticationOutput {
return i.ToDomainNameMutualTlsAuthenticationOutputWithContext(context.Background())
}
func (i DomainNameMutualTlsAuthenticationArgs) ToDomainNameMutualTlsAuthenticationOutputWithContext(ctx context.Context) DomainNameMutualTlsAuthenticationOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainNameMutualTlsAuthenticationOutput)
}
func (i DomainNameMutualTlsAuthenticationArgs) ToDomainNameMutualTlsAuthenticationPtrOutput() DomainNameMutualTlsAuthenticationPtrOutput {
return i.ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(context.Background())
}
func (i DomainNameMutualTlsAuthenticationArgs) ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(ctx context.Context) DomainNameMutualTlsAuthenticationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainNameMutualTlsAuthenticationOutput).ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(ctx)
}
// DomainNameMutualTlsAuthenticationPtrInput is an input type that accepts DomainNameMutualTlsAuthenticationArgs, DomainNameMutualTlsAuthenticationPtr and DomainNameMutualTlsAuthenticationPtrOutput values.
// You can construct a concrete instance of `DomainNameMutualTlsAuthenticationPtrInput` via:
//
// DomainNameMutualTlsAuthenticationArgs{...}
//
// or:
//
// nil
type DomainNameMutualTlsAuthenticationPtrInput interface {
pulumi.Input
ToDomainNameMutualTlsAuthenticationPtrOutput() DomainNameMutualTlsAuthenticationPtrOutput
ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(context.Context) DomainNameMutualTlsAuthenticationPtrOutput
}
type domainNameMutualTlsAuthenticationPtrType DomainNameMutualTlsAuthenticationArgs
func DomainNameMutualTlsAuthenticationPtr(v *DomainNameMutualTlsAuthenticationArgs) DomainNameMutualTlsAuthenticationPtrInput {
return (*domainNameMutualTlsAuthenticationPtrType)(v)
}
func (*domainNameMutualTlsAuthenticationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DomainNameMutualTlsAuthentication)(nil)).Elem()
}
func (i *domainNameMutualTlsAuthenticationPtrType) ToDomainNameMutualTlsAuthenticationPtrOutput() DomainNameMutualTlsAuthenticationPtrOutput {
return i.ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(context.Background())
}
func (i *domainNameMutualTlsAuthenticationPtrType) ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(ctx context.Context) DomainNameMutualTlsAuthenticationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DomainNameMutualTlsAuthenticationPtrOutput)
}
type DomainNameMutualTlsAuthenticationOutput struct{ *pulumi.OutputState }
func (DomainNameMutualTlsAuthenticationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DomainNameMutualTlsAuthentication)(nil)).Elem()
}
func (o DomainNameMutualTlsAuthenticationOutput) ToDomainNameMutualTlsAuthenticationOutput() DomainNameMutualTlsAuthenticationOutput {
return o
}
func (o DomainNameMutualTlsAuthenticationOutput) ToDomainNameMutualTlsAuthenticationOutputWithContext(ctx context.Context) DomainNameMutualTlsAuthenticationOutput {
return o
}
func (o DomainNameMutualTlsAuthenticationOutput) ToDomainNameMutualTlsAuthenticationPtrOutput() DomainNameMutualTlsAuthenticationPtrOutput {
return o.ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(context.Background())
}
func (o DomainNameMutualTlsAuthenticationOutput) ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(ctx context.Context) DomainNameMutualTlsAuthenticationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainNameMutualTlsAuthentication) *DomainNameMutualTlsAuthentication {
return &v
}).(DomainNameMutualTlsAuthenticationPtrOutput)
}
// Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version.
func (o DomainNameMutualTlsAuthenticationOutput) TruststoreUri() pulumi.StringOutput {
return o.ApplyT(func(v DomainNameMutualTlsAuthentication) string { return v.TruststoreUri }).(pulumi.StringOutput)
}
// Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
func (o DomainNameMutualTlsAuthenticationOutput) TruststoreVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v DomainNameMutualTlsAuthentication) *string { return v.TruststoreVersion }).(pulumi.StringPtrOutput)
}
type DomainNameMutualTlsAuthenticationPtrOutput struct{ *pulumi.OutputState }
func (DomainNameMutualTlsAuthenticationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DomainNameMutualTlsAuthentication)(nil)).Elem()
}
func (o DomainNameMutualTlsAuthenticationPtrOutput) ToDomainNameMutualTlsAuthenticationPtrOutput() DomainNameMutualTlsAuthenticationPtrOutput {
return o
}
func (o DomainNameMutualTlsAuthenticationPtrOutput) ToDomainNameMutualTlsAuthenticationPtrOutputWithContext(ctx context.Context) DomainNameMutualTlsAuthenticationPtrOutput {
return o
}
func (o DomainNameMutualTlsAuthenticationPtrOutput) Elem() DomainNameMutualTlsAuthenticationOutput {
return o.ApplyT(func(v *DomainNameMutualTlsAuthentication) DomainNameMutualTlsAuthentication {
if v != nil {
return *v
}
var ret DomainNameMutualTlsAuthentication
return ret
}).(DomainNameMutualTlsAuthenticationOutput)
}
// Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, `s3://bucket-name/key-name`. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version.
func (o DomainNameMutualTlsAuthenticationPtrOutput) TruststoreUri() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainNameMutualTlsAuthentication) *string {
if v == nil {
return nil
}
return &v.TruststoreUri
}).(pulumi.StringPtrOutput)
}
// Version of the S3 object that contains the truststore. To specify a version, you must have versioning enabled for the S3 bucket.
func (o DomainNameMutualTlsAuthenticationPtrOutput) TruststoreVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DomainNameMutualTlsAuthentication) *string {
if v == nil {
return nil
}
return v.TruststoreVersion
}).(pulumi.StringPtrOutput)
}
type IntegrationTlsConfig struct {
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a [supported certificate authority](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-supported-certificate-authorities-for-http-endpoints.html). This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for `HTTP` and `HTTP_PROXY` integrations.
InsecureSkipVerification *bool `pulumi:"insecureSkipVerification"`
}
// IntegrationTlsConfigInput is an input type that accepts IntegrationTlsConfigArgs and IntegrationTlsConfigOutput values.
// You can construct a concrete instance of `IntegrationTlsConfigInput` via:
//
// IntegrationTlsConfigArgs{...}
type IntegrationTlsConfigInput interface {
pulumi.Input
ToIntegrationTlsConfigOutput() IntegrationTlsConfigOutput
ToIntegrationTlsConfigOutputWithContext(context.Context) IntegrationTlsConfigOutput
}
type IntegrationTlsConfigArgs struct {
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a [supported certificate authority](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-supported-certificate-authorities-for-http-endpoints.html). This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for `HTTP` and `HTTP_PROXY` integrations.
InsecureSkipVerification pulumi.BoolPtrInput `pulumi:"insecureSkipVerification"`
}
func (IntegrationTlsConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*IntegrationTlsConfig)(nil)).Elem()
}
func (i IntegrationTlsConfigArgs) ToIntegrationTlsConfigOutput() IntegrationTlsConfigOutput {
return i.ToIntegrationTlsConfigOutputWithContext(context.Background())
}
func (i IntegrationTlsConfigArgs) ToIntegrationTlsConfigOutputWithContext(ctx context.Context) IntegrationTlsConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationTlsConfigOutput)
}
func (i IntegrationTlsConfigArgs) ToIntegrationTlsConfigPtrOutput() IntegrationTlsConfigPtrOutput {
return i.ToIntegrationTlsConfigPtrOutputWithContext(context.Background())
}
func (i IntegrationTlsConfigArgs) ToIntegrationTlsConfigPtrOutputWithContext(ctx context.Context) IntegrationTlsConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationTlsConfigOutput).ToIntegrationTlsConfigPtrOutputWithContext(ctx)
}
// IntegrationTlsConfigPtrInput is an input type that accepts IntegrationTlsConfigArgs, IntegrationTlsConfigPtr and IntegrationTlsConfigPtrOutput values.
// You can construct a concrete instance of `IntegrationTlsConfigPtrInput` via:
//
// IntegrationTlsConfigArgs{...}
//
// or:
//
// nil
type IntegrationTlsConfigPtrInput interface {
pulumi.Input
ToIntegrationTlsConfigPtrOutput() IntegrationTlsConfigPtrOutput
ToIntegrationTlsConfigPtrOutputWithContext(context.Context) IntegrationTlsConfigPtrOutput
}
type integrationTlsConfigPtrType IntegrationTlsConfigArgs
func IntegrationTlsConfigPtr(v *IntegrationTlsConfigArgs) IntegrationTlsConfigPtrInput {
return (*integrationTlsConfigPtrType)(v)
}
func (*integrationTlsConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**IntegrationTlsConfig)(nil)).Elem()
}
func (i *integrationTlsConfigPtrType) ToIntegrationTlsConfigPtrOutput() IntegrationTlsConfigPtrOutput {
return i.ToIntegrationTlsConfigPtrOutputWithContext(context.Background())
}
func (i *integrationTlsConfigPtrType) ToIntegrationTlsConfigPtrOutputWithContext(ctx context.Context) IntegrationTlsConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationTlsConfigPtrOutput)
}
type IntegrationTlsConfigOutput struct{ *pulumi.OutputState }
func (IntegrationTlsConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IntegrationTlsConfig)(nil)).Elem()
}
func (o IntegrationTlsConfigOutput) ToIntegrationTlsConfigOutput() IntegrationTlsConfigOutput {
return o
}
func (o IntegrationTlsConfigOutput) ToIntegrationTlsConfigOutputWithContext(ctx context.Context) IntegrationTlsConfigOutput {
return o
}
func (o IntegrationTlsConfigOutput) ToIntegrationTlsConfigPtrOutput() IntegrationTlsConfigPtrOutput {
return o.ToIntegrationTlsConfigPtrOutputWithContext(context.Background())
}
func (o IntegrationTlsConfigOutput) ToIntegrationTlsConfigPtrOutputWithContext(ctx context.Context) IntegrationTlsConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v IntegrationTlsConfig) *IntegrationTlsConfig {
return &v
}).(IntegrationTlsConfigPtrOutput)
}
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a [supported certificate authority](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-supported-certificate-authorities-for-http-endpoints.html). This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for `HTTP` and `HTTP_PROXY` integrations.
func (o IntegrationTlsConfigOutput) InsecureSkipVerification() pulumi.BoolPtrOutput {
return o.ApplyT(func(v IntegrationTlsConfig) *bool { return v.InsecureSkipVerification }).(pulumi.BoolPtrOutput)
}
type IntegrationTlsConfigPtrOutput struct{ *pulumi.OutputState }
func (IntegrationTlsConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**IntegrationTlsConfig)(nil)).Elem()
}
func (o IntegrationTlsConfigPtrOutput) ToIntegrationTlsConfigPtrOutput() IntegrationTlsConfigPtrOutput {
return o
}
func (o IntegrationTlsConfigPtrOutput) ToIntegrationTlsConfigPtrOutputWithContext(ctx context.Context) IntegrationTlsConfigPtrOutput {
return o
}
func (o IntegrationTlsConfigPtrOutput) Elem() IntegrationTlsConfigOutput {
return o.ApplyT(func(v *IntegrationTlsConfig) IntegrationTlsConfig {
if v != nil {
return *v
}
var ret IntegrationTlsConfig
return ret
}).(IntegrationTlsConfigOutput)
}
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a [supported certificate authority](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-supported-certificate-authorities-for-http-endpoints.html). This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for `HTTP` and `HTTP_PROXY` integrations.
func (o IntegrationTlsConfigPtrOutput) InsecureSkipVerification() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *IntegrationTlsConfig) *bool {
if v == nil {
return nil
}
return v.InsecureSkipVerification
}).(pulumi.BoolPtrOutput)
}
type MethodSettingsSettings struct {
// Whether the cached responses are encrypted.
CacheDataEncrypted *bool `pulumi:"cacheDataEncrypted"`
// Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
CacheTtlInSeconds *int `pulumi:"cacheTtlInSeconds"`
// Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
CachingEnabled *bool `pulumi:"cachingEnabled"`
// Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
DataTraceEnabled *bool `pulumi:"dataTraceEnabled"`
// Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are `OFF`, `ERROR`, and `INFO`.
LoggingLevel *string `pulumi:"loggingLevel"`
// Whether Amazon CloudWatch metrics are enabled for this method.
MetricsEnabled *bool `pulumi:"metricsEnabled"`
// Whether authorization is required for a cache invalidation request.
RequireAuthorizationForCacheControl *bool `pulumi:"requireAuthorizationForCacheControl"`
// Throttling burst limit. Default: `-1` (throttling disabled).
ThrottlingBurstLimit *int `pulumi:"throttlingBurstLimit"`
// Throttling rate limit. Default: `-1` (throttling disabled).
ThrottlingRateLimit *float64 `pulumi:"throttlingRateLimit"`
// How to handle unauthorized requests for cache invalidation. The available values are `FAIL_WITH_403`, `SUCCEED_WITH_RESPONSE_HEADER`, `SUCCEED_WITHOUT_RESPONSE_HEADER`.
UnauthorizedCacheControlHeaderStrategy *string `pulumi:"unauthorizedCacheControlHeaderStrategy"`
}
// MethodSettingsSettingsInput is an input type that accepts MethodSettingsSettingsArgs and MethodSettingsSettingsOutput values.
// You can construct a concrete instance of `MethodSettingsSettingsInput` via:
//
// MethodSettingsSettingsArgs{...}
type MethodSettingsSettingsInput interface {
pulumi.Input
ToMethodSettingsSettingsOutput() MethodSettingsSettingsOutput
ToMethodSettingsSettingsOutputWithContext(context.Context) MethodSettingsSettingsOutput
}
type MethodSettingsSettingsArgs struct {
// Whether the cached responses are encrypted.
CacheDataEncrypted pulumi.BoolPtrInput `pulumi:"cacheDataEncrypted"`
// Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
CacheTtlInSeconds pulumi.IntPtrInput `pulumi:"cacheTtlInSeconds"`
// Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
CachingEnabled pulumi.BoolPtrInput `pulumi:"cachingEnabled"`
// Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
DataTraceEnabled pulumi.BoolPtrInput `pulumi:"dataTraceEnabled"`
// Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are `OFF`, `ERROR`, and `INFO`.
LoggingLevel pulumi.StringPtrInput `pulumi:"loggingLevel"`
// Whether Amazon CloudWatch metrics are enabled for this method.
MetricsEnabled pulumi.BoolPtrInput `pulumi:"metricsEnabled"`
// Whether authorization is required for a cache invalidation request.
RequireAuthorizationForCacheControl pulumi.BoolPtrInput `pulumi:"requireAuthorizationForCacheControl"`
// Throttling burst limit. Default: `-1` (throttling disabled).
ThrottlingBurstLimit pulumi.IntPtrInput `pulumi:"throttlingBurstLimit"`
// Throttling rate limit. Default: `-1` (throttling disabled).
ThrottlingRateLimit pulumi.Float64PtrInput `pulumi:"throttlingRateLimit"`
// How to handle unauthorized requests for cache invalidation. The available values are `FAIL_WITH_403`, `SUCCEED_WITH_RESPONSE_HEADER`, `SUCCEED_WITHOUT_RESPONSE_HEADER`.
UnauthorizedCacheControlHeaderStrategy pulumi.StringPtrInput `pulumi:"unauthorizedCacheControlHeaderStrategy"`
}
func (MethodSettingsSettingsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*MethodSettingsSettings)(nil)).Elem()
}
func (i MethodSettingsSettingsArgs) ToMethodSettingsSettingsOutput() MethodSettingsSettingsOutput {
return i.ToMethodSettingsSettingsOutputWithContext(context.Background())
}
func (i MethodSettingsSettingsArgs) ToMethodSettingsSettingsOutputWithContext(ctx context.Context) MethodSettingsSettingsOutput {
return pulumi.ToOutputWithContext(ctx, i).(MethodSettingsSettingsOutput)
}
func (i MethodSettingsSettingsArgs) ToMethodSettingsSettingsPtrOutput() MethodSettingsSettingsPtrOutput {
return i.ToMethodSettingsSettingsPtrOutputWithContext(context.Background())
}
func (i MethodSettingsSettingsArgs) ToMethodSettingsSettingsPtrOutputWithContext(ctx context.Context) MethodSettingsSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(MethodSettingsSettingsOutput).ToMethodSettingsSettingsPtrOutputWithContext(ctx)
}
// MethodSettingsSettingsPtrInput is an input type that accepts MethodSettingsSettingsArgs, MethodSettingsSettingsPtr and MethodSettingsSettingsPtrOutput values.
// You can construct a concrete instance of `MethodSettingsSettingsPtrInput` via:
//
// MethodSettingsSettingsArgs{...}
//
// or:
//
// nil
type MethodSettingsSettingsPtrInput interface {
pulumi.Input
ToMethodSettingsSettingsPtrOutput() MethodSettingsSettingsPtrOutput
ToMethodSettingsSettingsPtrOutputWithContext(context.Context) MethodSettingsSettingsPtrOutput
}
type methodSettingsSettingsPtrType MethodSettingsSettingsArgs
func MethodSettingsSettingsPtr(v *MethodSettingsSettingsArgs) MethodSettingsSettingsPtrInput {
return (*methodSettingsSettingsPtrType)(v)
}
func (*methodSettingsSettingsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**MethodSettingsSettings)(nil)).Elem()
}
func (i *methodSettingsSettingsPtrType) ToMethodSettingsSettingsPtrOutput() MethodSettingsSettingsPtrOutput {
return i.ToMethodSettingsSettingsPtrOutputWithContext(context.Background())
}
func (i *methodSettingsSettingsPtrType) ToMethodSettingsSettingsPtrOutputWithContext(ctx context.Context) MethodSettingsSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(MethodSettingsSettingsPtrOutput)
}
type MethodSettingsSettingsOutput struct{ *pulumi.OutputState }
func (MethodSettingsSettingsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*MethodSettingsSettings)(nil)).Elem()
}
func (o MethodSettingsSettingsOutput) ToMethodSettingsSettingsOutput() MethodSettingsSettingsOutput {
return o
}
func (o MethodSettingsSettingsOutput) ToMethodSettingsSettingsOutputWithContext(ctx context.Context) MethodSettingsSettingsOutput {
return o
}
func (o MethodSettingsSettingsOutput) ToMethodSettingsSettingsPtrOutput() MethodSettingsSettingsPtrOutput {
return o.ToMethodSettingsSettingsPtrOutputWithContext(context.Background())
}
func (o MethodSettingsSettingsOutput) ToMethodSettingsSettingsPtrOutputWithContext(ctx context.Context) MethodSettingsSettingsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v MethodSettingsSettings) *MethodSettingsSettings {
return &v
}).(MethodSettingsSettingsPtrOutput)
}
// Whether the cached responses are encrypted.
func (o MethodSettingsSettingsOutput) CacheDataEncrypted() pulumi.BoolPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *bool { return v.CacheDataEncrypted }).(pulumi.BoolPtrOutput)
}
// Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
func (o MethodSettingsSettingsOutput) CacheTtlInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *int { return v.CacheTtlInSeconds }).(pulumi.IntPtrOutput)
}
// Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
func (o MethodSettingsSettingsOutput) CachingEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *bool { return v.CachingEnabled }).(pulumi.BoolPtrOutput)
}
// Whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
func (o MethodSettingsSettingsOutput) DataTraceEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *bool { return v.DataTraceEnabled }).(pulumi.BoolPtrOutput)
}
// Logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The available levels are `OFF`, `ERROR`, and `INFO`.
func (o MethodSettingsSettingsOutput) LoggingLevel() pulumi.StringPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *string { return v.LoggingLevel }).(pulumi.StringPtrOutput)
}
// Whether Amazon CloudWatch metrics are enabled for this method.
func (o MethodSettingsSettingsOutput) MetricsEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *bool { return v.MetricsEnabled }).(pulumi.BoolPtrOutput)
}
// Whether authorization is required for a cache invalidation request.
func (o MethodSettingsSettingsOutput) RequireAuthorizationForCacheControl() pulumi.BoolPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *bool { return v.RequireAuthorizationForCacheControl }).(pulumi.BoolPtrOutput)
}
// Throttling burst limit. Default: `-1` (throttling disabled).
func (o MethodSettingsSettingsOutput) ThrottlingBurstLimit() pulumi.IntPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *int { return v.ThrottlingBurstLimit }).(pulumi.IntPtrOutput)
}
// Throttling rate limit. Default: `-1` (throttling disabled).
func (o MethodSettingsSettingsOutput) ThrottlingRateLimit() pulumi.Float64PtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *float64 { return v.ThrottlingRateLimit }).(pulumi.Float64PtrOutput)
}
// How to handle unauthorized requests for cache invalidation. The available values are `FAIL_WITH_403`, `SUCCEED_WITH_RESPONSE_HEADER`, `SUCCEED_WITHOUT_RESPONSE_HEADER`.
func (o MethodSettingsSettingsOutput) UnauthorizedCacheControlHeaderStrategy() pulumi.StringPtrOutput {
return o.ApplyT(func(v MethodSettingsSettings) *string { return v.UnauthorizedCacheControlHeaderStrategy }).(pulumi.StringPtrOutput)
}
type MethodSettingsSettingsPtrOutput struct{ *pulumi.OutputState }
func (MethodSettingsSettingsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**MethodSettingsSettings)(nil)).Elem()
}
func (o MethodSettingsSettingsPtrOutput) ToMethodSettingsSettingsPtrOutput() MethodSettingsSettingsPtrOutput {
return o
}
func (o MethodSettingsSettingsPtrOutput) ToMethodSettingsSettingsPtrOutputWithContext(ctx context.Context) MethodSettingsSettingsPtrOutput {
return o
}
func (o MethodSettingsSettingsPtrOutput) Elem() MethodSettingsSettingsOutput {
return o.ApplyT(func(v *MethodSettingsSettings) MethodSettingsSettings {
if v != nil {
return *v
}
var ret MethodSettingsSettings
return ret
}).(MethodSettingsSettingsOutput)
}
// Whether the cached responses are encrypted.
func (o MethodSettingsSettingsPtrOutput) CacheDataEncrypted() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *MethodSettingsSettings) *bool {
if v == nil {
return nil
}
return v.CacheDataEncrypted
}).(pulumi.BoolPtrOutput)
}
// Time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response will be cached.
func (o MethodSettingsSettingsPtrOutput) CacheTtlInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v *MethodSettingsSettings) *int {
if v == nil {
return nil
}
return v.CacheTtlInSeconds
}).(pulumi.IntPtrOutput)
}
// Whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
func (o MethodSettingsSettingsPtrOutput) CachingEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *MethodSettingsSettings) *bool {
if v == nil {
return nil
}
return v.CachingEnabled
}).(pulumi.BoolPtrOutput)