-
Notifications
You must be signed in to change notification settings - Fork 113
/
pulumiTypes.go
4049 lines (3305 loc) · 192 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 pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v2
import (
"context"
"reflect"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
type ContainerResourceMetricSource struct {
// container is the name of the container in the pods of the scaling target
Container string `pulumi:"container"`
// name is the name of the resource in question.
Name string `pulumi:"name"`
// target specifies the target value for the given metric
Target MetricTarget `pulumi:"target"`
}
// ContainerResourceMetricSourceInput is an input type that accepts ContainerResourceMetricSourceArgs and ContainerResourceMetricSourceOutput values.
// You can construct a concrete instance of `ContainerResourceMetricSourceInput` via:
//
// ContainerResourceMetricSourceArgs{...}
type ContainerResourceMetricSourceInput interface {
pulumi.Input
ToContainerResourceMetricSourceOutput() ContainerResourceMetricSourceOutput
ToContainerResourceMetricSourceOutputWithContext(context.Context) ContainerResourceMetricSourceOutput
}
// ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
type ContainerResourceMetricSourceArgs struct {
// container is the name of the container in the pods of the scaling target
Container pulumi.StringInput `pulumi:"container"`
// name is the name of the resource in question.
Name pulumi.StringInput `pulumi:"name"`
// target specifies the target value for the given metric
Target MetricTargetInput `pulumi:"target"`
}
func (ContainerResourceMetricSourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ContainerResourceMetricSource)(nil)).Elem()
}
func (i ContainerResourceMetricSourceArgs) ToContainerResourceMetricSourceOutput() ContainerResourceMetricSourceOutput {
return i.ToContainerResourceMetricSourceOutputWithContext(context.Background())
}
func (i ContainerResourceMetricSourceArgs) ToContainerResourceMetricSourceOutputWithContext(ctx context.Context) ContainerResourceMetricSourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContainerResourceMetricSourceOutput)
}
func (i ContainerResourceMetricSourceArgs) ToContainerResourceMetricSourcePtrOutput() ContainerResourceMetricSourcePtrOutput {
return i.ToContainerResourceMetricSourcePtrOutputWithContext(context.Background())
}
func (i ContainerResourceMetricSourceArgs) ToContainerResourceMetricSourcePtrOutputWithContext(ctx context.Context) ContainerResourceMetricSourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContainerResourceMetricSourceOutput).ToContainerResourceMetricSourcePtrOutputWithContext(ctx)
}
// ContainerResourceMetricSourcePtrInput is an input type that accepts ContainerResourceMetricSourceArgs, ContainerResourceMetricSourcePtr and ContainerResourceMetricSourcePtrOutput values.
// You can construct a concrete instance of `ContainerResourceMetricSourcePtrInput` via:
//
// ContainerResourceMetricSourceArgs{...}
//
// or:
//
// nil
type ContainerResourceMetricSourcePtrInput interface {
pulumi.Input
ToContainerResourceMetricSourcePtrOutput() ContainerResourceMetricSourcePtrOutput
ToContainerResourceMetricSourcePtrOutputWithContext(context.Context) ContainerResourceMetricSourcePtrOutput
}
type containerResourceMetricSourcePtrType ContainerResourceMetricSourceArgs
func ContainerResourceMetricSourcePtr(v *ContainerResourceMetricSourceArgs) ContainerResourceMetricSourcePtrInput {
return (*containerResourceMetricSourcePtrType)(v)
}
func (*containerResourceMetricSourcePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ContainerResourceMetricSource)(nil)).Elem()
}
func (i *containerResourceMetricSourcePtrType) ToContainerResourceMetricSourcePtrOutput() ContainerResourceMetricSourcePtrOutput {
return i.ToContainerResourceMetricSourcePtrOutputWithContext(context.Background())
}
func (i *containerResourceMetricSourcePtrType) ToContainerResourceMetricSourcePtrOutputWithContext(ctx context.Context) ContainerResourceMetricSourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContainerResourceMetricSourcePtrOutput)
}
// ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
type ContainerResourceMetricSourceOutput struct{ *pulumi.OutputState }
func (ContainerResourceMetricSourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ContainerResourceMetricSource)(nil)).Elem()
}
func (o ContainerResourceMetricSourceOutput) ToContainerResourceMetricSourceOutput() ContainerResourceMetricSourceOutput {
return o
}
func (o ContainerResourceMetricSourceOutput) ToContainerResourceMetricSourceOutputWithContext(ctx context.Context) ContainerResourceMetricSourceOutput {
return o
}
func (o ContainerResourceMetricSourceOutput) ToContainerResourceMetricSourcePtrOutput() ContainerResourceMetricSourcePtrOutput {
return o.ToContainerResourceMetricSourcePtrOutputWithContext(context.Background())
}
func (o ContainerResourceMetricSourceOutput) ToContainerResourceMetricSourcePtrOutputWithContext(ctx context.Context) ContainerResourceMetricSourcePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerResourceMetricSource) *ContainerResourceMetricSource {
return &v
}).(ContainerResourceMetricSourcePtrOutput)
}
// container is the name of the container in the pods of the scaling target
func (o ContainerResourceMetricSourceOutput) Container() pulumi.StringOutput {
return o.ApplyT(func(v ContainerResourceMetricSource) string { return v.Container }).(pulumi.StringOutput)
}
// name is the name of the resource in question.
func (o ContainerResourceMetricSourceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ContainerResourceMetricSource) string { return v.Name }).(pulumi.StringOutput)
}
// target specifies the target value for the given metric
func (o ContainerResourceMetricSourceOutput) Target() MetricTargetOutput {
return o.ApplyT(func(v ContainerResourceMetricSource) MetricTarget { return v.Target }).(MetricTargetOutput)
}
type ContainerResourceMetricSourcePtrOutput struct{ *pulumi.OutputState }
func (ContainerResourceMetricSourcePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ContainerResourceMetricSource)(nil)).Elem()
}
func (o ContainerResourceMetricSourcePtrOutput) ToContainerResourceMetricSourcePtrOutput() ContainerResourceMetricSourcePtrOutput {
return o
}
func (o ContainerResourceMetricSourcePtrOutput) ToContainerResourceMetricSourcePtrOutputWithContext(ctx context.Context) ContainerResourceMetricSourcePtrOutput {
return o
}
func (o ContainerResourceMetricSourcePtrOutput) Elem() ContainerResourceMetricSourceOutput {
return o.ApplyT(func(v *ContainerResourceMetricSource) ContainerResourceMetricSource {
if v != nil {
return *v
}
var ret ContainerResourceMetricSource
return ret
}).(ContainerResourceMetricSourceOutput)
}
// container is the name of the container in the pods of the scaling target
func (o ContainerResourceMetricSourcePtrOutput) Container() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ContainerResourceMetricSource) *string {
if v == nil {
return nil
}
return &v.Container
}).(pulumi.StringPtrOutput)
}
// name is the name of the resource in question.
func (o ContainerResourceMetricSourcePtrOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ContainerResourceMetricSource) *string {
if v == nil {
return nil
}
return &v.Name
}).(pulumi.StringPtrOutput)
}
// target specifies the target value for the given metric
func (o ContainerResourceMetricSourcePtrOutput) Target() MetricTargetPtrOutput {
return o.ApplyT(func(v *ContainerResourceMetricSource) *MetricTarget {
if v == nil {
return nil
}
return &v.Target
}).(MetricTargetPtrOutput)
}
// ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
type ContainerResourceMetricStatus struct {
// Container is the name of the container in the pods of the scaling target
Container string `pulumi:"container"`
// current contains the current value for the given metric
Current MetricValueStatus `pulumi:"current"`
// Name is the name of the resource in question.
Name string `pulumi:"name"`
}
// ContainerResourceMetricStatusInput is an input type that accepts ContainerResourceMetricStatusArgs and ContainerResourceMetricStatusOutput values.
// You can construct a concrete instance of `ContainerResourceMetricStatusInput` via:
//
// ContainerResourceMetricStatusArgs{...}
type ContainerResourceMetricStatusInput interface {
pulumi.Input
ToContainerResourceMetricStatusOutput() ContainerResourceMetricStatusOutput
ToContainerResourceMetricStatusOutputWithContext(context.Context) ContainerResourceMetricStatusOutput
}
// ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
type ContainerResourceMetricStatusArgs struct {
// Container is the name of the container in the pods of the scaling target
Container pulumi.StringInput `pulumi:"container"`
// current contains the current value for the given metric
Current MetricValueStatusInput `pulumi:"current"`
// Name is the name of the resource in question.
Name pulumi.StringInput `pulumi:"name"`
}
func (ContainerResourceMetricStatusArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ContainerResourceMetricStatus)(nil)).Elem()
}
func (i ContainerResourceMetricStatusArgs) ToContainerResourceMetricStatusOutput() ContainerResourceMetricStatusOutput {
return i.ToContainerResourceMetricStatusOutputWithContext(context.Background())
}
func (i ContainerResourceMetricStatusArgs) ToContainerResourceMetricStatusOutputWithContext(ctx context.Context) ContainerResourceMetricStatusOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContainerResourceMetricStatusOutput)
}
func (i ContainerResourceMetricStatusArgs) ToContainerResourceMetricStatusPtrOutput() ContainerResourceMetricStatusPtrOutput {
return i.ToContainerResourceMetricStatusPtrOutputWithContext(context.Background())
}
func (i ContainerResourceMetricStatusArgs) ToContainerResourceMetricStatusPtrOutputWithContext(ctx context.Context) ContainerResourceMetricStatusPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContainerResourceMetricStatusOutput).ToContainerResourceMetricStatusPtrOutputWithContext(ctx)
}
// ContainerResourceMetricStatusPtrInput is an input type that accepts ContainerResourceMetricStatusArgs, ContainerResourceMetricStatusPtr and ContainerResourceMetricStatusPtrOutput values.
// You can construct a concrete instance of `ContainerResourceMetricStatusPtrInput` via:
//
// ContainerResourceMetricStatusArgs{...}
//
// or:
//
// nil
type ContainerResourceMetricStatusPtrInput interface {
pulumi.Input
ToContainerResourceMetricStatusPtrOutput() ContainerResourceMetricStatusPtrOutput
ToContainerResourceMetricStatusPtrOutputWithContext(context.Context) ContainerResourceMetricStatusPtrOutput
}
type containerResourceMetricStatusPtrType ContainerResourceMetricStatusArgs
func ContainerResourceMetricStatusPtr(v *ContainerResourceMetricStatusArgs) ContainerResourceMetricStatusPtrInput {
return (*containerResourceMetricStatusPtrType)(v)
}
func (*containerResourceMetricStatusPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ContainerResourceMetricStatus)(nil)).Elem()
}
func (i *containerResourceMetricStatusPtrType) ToContainerResourceMetricStatusPtrOutput() ContainerResourceMetricStatusPtrOutput {
return i.ToContainerResourceMetricStatusPtrOutputWithContext(context.Background())
}
func (i *containerResourceMetricStatusPtrType) ToContainerResourceMetricStatusPtrOutputWithContext(ctx context.Context) ContainerResourceMetricStatusPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ContainerResourceMetricStatusPtrOutput)
}
// ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.
type ContainerResourceMetricStatusOutput struct{ *pulumi.OutputState }
func (ContainerResourceMetricStatusOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ContainerResourceMetricStatus)(nil)).Elem()
}
func (o ContainerResourceMetricStatusOutput) ToContainerResourceMetricStatusOutput() ContainerResourceMetricStatusOutput {
return o
}
func (o ContainerResourceMetricStatusOutput) ToContainerResourceMetricStatusOutputWithContext(ctx context.Context) ContainerResourceMetricStatusOutput {
return o
}
func (o ContainerResourceMetricStatusOutput) ToContainerResourceMetricStatusPtrOutput() ContainerResourceMetricStatusPtrOutput {
return o.ToContainerResourceMetricStatusPtrOutputWithContext(context.Background())
}
func (o ContainerResourceMetricStatusOutput) ToContainerResourceMetricStatusPtrOutputWithContext(ctx context.Context) ContainerResourceMetricStatusPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerResourceMetricStatus) *ContainerResourceMetricStatus {
return &v
}).(ContainerResourceMetricStatusPtrOutput)
}
// Container is the name of the container in the pods of the scaling target
func (o ContainerResourceMetricStatusOutput) Container() pulumi.StringOutput {
return o.ApplyT(func(v ContainerResourceMetricStatus) string { return v.Container }).(pulumi.StringOutput)
}
// current contains the current value for the given metric
func (o ContainerResourceMetricStatusOutput) Current() MetricValueStatusOutput {
return o.ApplyT(func(v ContainerResourceMetricStatus) MetricValueStatus { return v.Current }).(MetricValueStatusOutput)
}
// Name is the name of the resource in question.
func (o ContainerResourceMetricStatusOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ContainerResourceMetricStatus) string { return v.Name }).(pulumi.StringOutput)
}
type ContainerResourceMetricStatusPtrOutput struct{ *pulumi.OutputState }
func (ContainerResourceMetricStatusPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ContainerResourceMetricStatus)(nil)).Elem()
}
func (o ContainerResourceMetricStatusPtrOutput) ToContainerResourceMetricStatusPtrOutput() ContainerResourceMetricStatusPtrOutput {
return o
}
func (o ContainerResourceMetricStatusPtrOutput) ToContainerResourceMetricStatusPtrOutputWithContext(ctx context.Context) ContainerResourceMetricStatusPtrOutput {
return o
}
func (o ContainerResourceMetricStatusPtrOutput) Elem() ContainerResourceMetricStatusOutput {
return o.ApplyT(func(v *ContainerResourceMetricStatus) ContainerResourceMetricStatus {
if v != nil {
return *v
}
var ret ContainerResourceMetricStatus
return ret
}).(ContainerResourceMetricStatusOutput)
}
// Container is the name of the container in the pods of the scaling target
func (o ContainerResourceMetricStatusPtrOutput) Container() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ContainerResourceMetricStatus) *string {
if v == nil {
return nil
}
return &v.Container
}).(pulumi.StringPtrOutput)
}
// current contains the current value for the given metric
func (o ContainerResourceMetricStatusPtrOutput) Current() MetricValueStatusPtrOutput {
return o.ApplyT(func(v *ContainerResourceMetricStatus) *MetricValueStatus {
if v == nil {
return nil
}
return &v.Current
}).(MetricValueStatusPtrOutput)
}
// Name is the name of the resource in question.
func (o ContainerResourceMetricStatusPtrOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ContainerResourceMetricStatus) *string {
if v == nil {
return nil
}
return &v.Name
}).(pulumi.StringPtrOutput)
}
// CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CrossVersionObjectReference struct {
// API version of the referent
ApiVersion *string `pulumi:"apiVersion"`
// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
Kind string `pulumi:"kind"`
// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name string `pulumi:"name"`
}
// CrossVersionObjectReferenceInput is an input type that accepts CrossVersionObjectReferenceArgs and CrossVersionObjectReferenceOutput values.
// You can construct a concrete instance of `CrossVersionObjectReferenceInput` via:
//
// CrossVersionObjectReferenceArgs{...}
type CrossVersionObjectReferenceInput interface {
pulumi.Input
ToCrossVersionObjectReferenceOutput() CrossVersionObjectReferenceOutput
ToCrossVersionObjectReferenceOutputWithContext(context.Context) CrossVersionObjectReferenceOutput
}
// CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CrossVersionObjectReferenceArgs struct {
// API version of the referent
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
Kind pulumi.StringInput `pulumi:"kind"`
// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
Name pulumi.StringInput `pulumi:"name"`
}
func (CrossVersionObjectReferenceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CrossVersionObjectReference)(nil)).Elem()
}
func (i CrossVersionObjectReferenceArgs) ToCrossVersionObjectReferenceOutput() CrossVersionObjectReferenceOutput {
return i.ToCrossVersionObjectReferenceOutputWithContext(context.Background())
}
func (i CrossVersionObjectReferenceArgs) ToCrossVersionObjectReferenceOutputWithContext(ctx context.Context) CrossVersionObjectReferenceOutput {
return pulumi.ToOutputWithContext(ctx, i).(CrossVersionObjectReferenceOutput)
}
func (i CrossVersionObjectReferenceArgs) ToCrossVersionObjectReferencePtrOutput() CrossVersionObjectReferencePtrOutput {
return i.ToCrossVersionObjectReferencePtrOutputWithContext(context.Background())
}
func (i CrossVersionObjectReferenceArgs) ToCrossVersionObjectReferencePtrOutputWithContext(ctx context.Context) CrossVersionObjectReferencePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CrossVersionObjectReferenceOutput).ToCrossVersionObjectReferencePtrOutputWithContext(ctx)
}
// CrossVersionObjectReferencePtrInput is an input type that accepts CrossVersionObjectReferenceArgs, CrossVersionObjectReferencePtr and CrossVersionObjectReferencePtrOutput values.
// You can construct a concrete instance of `CrossVersionObjectReferencePtrInput` via:
//
// CrossVersionObjectReferenceArgs{...}
//
// or:
//
// nil
type CrossVersionObjectReferencePtrInput interface {
pulumi.Input
ToCrossVersionObjectReferencePtrOutput() CrossVersionObjectReferencePtrOutput
ToCrossVersionObjectReferencePtrOutputWithContext(context.Context) CrossVersionObjectReferencePtrOutput
}
type crossVersionObjectReferencePtrType CrossVersionObjectReferenceArgs
func CrossVersionObjectReferencePtr(v *CrossVersionObjectReferenceArgs) CrossVersionObjectReferencePtrInput {
return (*crossVersionObjectReferencePtrType)(v)
}
func (*crossVersionObjectReferencePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CrossVersionObjectReference)(nil)).Elem()
}
func (i *crossVersionObjectReferencePtrType) ToCrossVersionObjectReferencePtrOutput() CrossVersionObjectReferencePtrOutput {
return i.ToCrossVersionObjectReferencePtrOutputWithContext(context.Background())
}
func (i *crossVersionObjectReferencePtrType) ToCrossVersionObjectReferencePtrOutputWithContext(ctx context.Context) CrossVersionObjectReferencePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CrossVersionObjectReferencePtrOutput)
}
// CrossVersionObjectReference contains enough information to let you identify the referred resource.
type CrossVersionObjectReferenceOutput struct{ *pulumi.OutputState }
func (CrossVersionObjectReferenceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CrossVersionObjectReference)(nil)).Elem()
}
func (o CrossVersionObjectReferenceOutput) ToCrossVersionObjectReferenceOutput() CrossVersionObjectReferenceOutput {
return o
}
func (o CrossVersionObjectReferenceOutput) ToCrossVersionObjectReferenceOutputWithContext(ctx context.Context) CrossVersionObjectReferenceOutput {
return o
}
func (o CrossVersionObjectReferenceOutput) ToCrossVersionObjectReferencePtrOutput() CrossVersionObjectReferencePtrOutput {
return o.ToCrossVersionObjectReferencePtrOutputWithContext(context.Background())
}
func (o CrossVersionObjectReferenceOutput) ToCrossVersionObjectReferencePtrOutputWithContext(ctx context.Context) CrossVersionObjectReferencePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CrossVersionObjectReference) *CrossVersionObjectReference {
return &v
}).(CrossVersionObjectReferencePtrOutput)
}
// API version of the referent
func (o CrossVersionObjectReferenceOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CrossVersionObjectReference) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
func (o CrossVersionObjectReferenceOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v CrossVersionObjectReference) string { return v.Kind }).(pulumi.StringOutput)
}
// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
func (o CrossVersionObjectReferenceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v CrossVersionObjectReference) string { return v.Name }).(pulumi.StringOutput)
}
type CrossVersionObjectReferencePtrOutput struct{ *pulumi.OutputState }
func (CrossVersionObjectReferencePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CrossVersionObjectReference)(nil)).Elem()
}
func (o CrossVersionObjectReferencePtrOutput) ToCrossVersionObjectReferencePtrOutput() CrossVersionObjectReferencePtrOutput {
return o
}
func (o CrossVersionObjectReferencePtrOutput) ToCrossVersionObjectReferencePtrOutputWithContext(ctx context.Context) CrossVersionObjectReferencePtrOutput {
return o
}
func (o CrossVersionObjectReferencePtrOutput) Elem() CrossVersionObjectReferenceOutput {
return o.ApplyT(func(v *CrossVersionObjectReference) CrossVersionObjectReference {
if v != nil {
return *v
}
var ret CrossVersionObjectReference
return ret
}).(CrossVersionObjectReferenceOutput)
}
// API version of the referent
func (o CrossVersionObjectReferencePtrOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CrossVersionObjectReference) *string {
if v == nil {
return nil
}
return v.ApiVersion
}).(pulumi.StringPtrOutput)
}
// Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
func (o CrossVersionObjectReferencePtrOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CrossVersionObjectReference) *string {
if v == nil {
return nil
}
return &v.Kind
}).(pulumi.StringPtrOutput)
}
// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
func (o CrossVersionObjectReferencePtrOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CrossVersionObjectReference) *string {
if v == nil {
return nil
}
return &v.Name
}).(pulumi.StringPtrOutput)
}
// ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
type ExternalMetricSource struct {
// metric identifies the target metric by name and selector
Metric MetricIdentifier `pulumi:"metric"`
// target specifies the target value for the given metric
Target MetricTarget `pulumi:"target"`
}
// ExternalMetricSourceInput is an input type that accepts ExternalMetricSourceArgs and ExternalMetricSourceOutput values.
// You can construct a concrete instance of `ExternalMetricSourceInput` via:
//
// ExternalMetricSourceArgs{...}
type ExternalMetricSourceInput interface {
pulumi.Input
ToExternalMetricSourceOutput() ExternalMetricSourceOutput
ToExternalMetricSourceOutputWithContext(context.Context) ExternalMetricSourceOutput
}
// ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
type ExternalMetricSourceArgs struct {
// metric identifies the target metric by name and selector
Metric MetricIdentifierInput `pulumi:"metric"`
// target specifies the target value for the given metric
Target MetricTargetInput `pulumi:"target"`
}
func (ExternalMetricSourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExternalMetricSource)(nil)).Elem()
}
func (i ExternalMetricSourceArgs) ToExternalMetricSourceOutput() ExternalMetricSourceOutput {
return i.ToExternalMetricSourceOutputWithContext(context.Background())
}
func (i ExternalMetricSourceArgs) ToExternalMetricSourceOutputWithContext(ctx context.Context) ExternalMetricSourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExternalMetricSourceOutput)
}
func (i ExternalMetricSourceArgs) ToExternalMetricSourcePtrOutput() ExternalMetricSourcePtrOutput {
return i.ToExternalMetricSourcePtrOutputWithContext(context.Background())
}
func (i ExternalMetricSourceArgs) ToExternalMetricSourcePtrOutputWithContext(ctx context.Context) ExternalMetricSourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExternalMetricSourceOutput).ToExternalMetricSourcePtrOutputWithContext(ctx)
}
// ExternalMetricSourcePtrInput is an input type that accepts ExternalMetricSourceArgs, ExternalMetricSourcePtr and ExternalMetricSourcePtrOutput values.
// You can construct a concrete instance of `ExternalMetricSourcePtrInput` via:
//
// ExternalMetricSourceArgs{...}
//
// or:
//
// nil
type ExternalMetricSourcePtrInput interface {
pulumi.Input
ToExternalMetricSourcePtrOutput() ExternalMetricSourcePtrOutput
ToExternalMetricSourcePtrOutputWithContext(context.Context) ExternalMetricSourcePtrOutput
}
type externalMetricSourcePtrType ExternalMetricSourceArgs
func ExternalMetricSourcePtr(v *ExternalMetricSourceArgs) ExternalMetricSourcePtrInput {
return (*externalMetricSourcePtrType)(v)
}
func (*externalMetricSourcePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ExternalMetricSource)(nil)).Elem()
}
func (i *externalMetricSourcePtrType) ToExternalMetricSourcePtrOutput() ExternalMetricSourcePtrOutput {
return i.ToExternalMetricSourcePtrOutputWithContext(context.Background())
}
func (i *externalMetricSourcePtrType) ToExternalMetricSourcePtrOutputWithContext(ctx context.Context) ExternalMetricSourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExternalMetricSourcePtrOutput)
}
// ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
type ExternalMetricSourceOutput struct{ *pulumi.OutputState }
func (ExternalMetricSourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExternalMetricSource)(nil)).Elem()
}
func (o ExternalMetricSourceOutput) ToExternalMetricSourceOutput() ExternalMetricSourceOutput {
return o
}
func (o ExternalMetricSourceOutput) ToExternalMetricSourceOutputWithContext(ctx context.Context) ExternalMetricSourceOutput {
return o
}
func (o ExternalMetricSourceOutput) ToExternalMetricSourcePtrOutput() ExternalMetricSourcePtrOutput {
return o.ToExternalMetricSourcePtrOutputWithContext(context.Background())
}
func (o ExternalMetricSourceOutput) ToExternalMetricSourcePtrOutputWithContext(ctx context.Context) ExternalMetricSourcePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ExternalMetricSource) *ExternalMetricSource {
return &v
}).(ExternalMetricSourcePtrOutput)
}
// metric identifies the target metric by name and selector
func (o ExternalMetricSourceOutput) Metric() MetricIdentifierOutput {
return o.ApplyT(func(v ExternalMetricSource) MetricIdentifier { return v.Metric }).(MetricIdentifierOutput)
}
// target specifies the target value for the given metric
func (o ExternalMetricSourceOutput) Target() MetricTargetOutput {
return o.ApplyT(func(v ExternalMetricSource) MetricTarget { return v.Target }).(MetricTargetOutput)
}
type ExternalMetricSourcePtrOutput struct{ *pulumi.OutputState }
func (ExternalMetricSourcePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ExternalMetricSource)(nil)).Elem()
}
func (o ExternalMetricSourcePtrOutput) ToExternalMetricSourcePtrOutput() ExternalMetricSourcePtrOutput {
return o
}
func (o ExternalMetricSourcePtrOutput) ToExternalMetricSourcePtrOutputWithContext(ctx context.Context) ExternalMetricSourcePtrOutput {
return o
}
func (o ExternalMetricSourcePtrOutput) Elem() ExternalMetricSourceOutput {
return o.ApplyT(func(v *ExternalMetricSource) ExternalMetricSource {
if v != nil {
return *v
}
var ret ExternalMetricSource
return ret
}).(ExternalMetricSourceOutput)
}
// metric identifies the target metric by name and selector
func (o ExternalMetricSourcePtrOutput) Metric() MetricIdentifierPtrOutput {
return o.ApplyT(func(v *ExternalMetricSource) *MetricIdentifier {
if v == nil {
return nil
}
return &v.Metric
}).(MetricIdentifierPtrOutput)
}
// target specifies the target value for the given metric
func (o ExternalMetricSourcePtrOutput) Target() MetricTargetPtrOutput {
return o.ApplyT(func(v *ExternalMetricSource) *MetricTarget {
if v == nil {
return nil
}
return &v.Target
}).(MetricTargetPtrOutput)
}
// ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
type ExternalMetricStatus struct {
// current contains the current value for the given metric
Current MetricValueStatus `pulumi:"current"`
// metric identifies the target metric by name and selector
Metric MetricIdentifier `pulumi:"metric"`
}
// ExternalMetricStatusInput is an input type that accepts ExternalMetricStatusArgs and ExternalMetricStatusOutput values.
// You can construct a concrete instance of `ExternalMetricStatusInput` via:
//
// ExternalMetricStatusArgs{...}
type ExternalMetricStatusInput interface {
pulumi.Input
ToExternalMetricStatusOutput() ExternalMetricStatusOutput
ToExternalMetricStatusOutputWithContext(context.Context) ExternalMetricStatusOutput
}
// ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
type ExternalMetricStatusArgs struct {
// current contains the current value for the given metric
Current MetricValueStatusInput `pulumi:"current"`
// metric identifies the target metric by name and selector
Metric MetricIdentifierInput `pulumi:"metric"`
}
func (ExternalMetricStatusArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ExternalMetricStatus)(nil)).Elem()
}
func (i ExternalMetricStatusArgs) ToExternalMetricStatusOutput() ExternalMetricStatusOutput {
return i.ToExternalMetricStatusOutputWithContext(context.Background())
}
func (i ExternalMetricStatusArgs) ToExternalMetricStatusOutputWithContext(ctx context.Context) ExternalMetricStatusOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExternalMetricStatusOutput)
}
func (i ExternalMetricStatusArgs) ToExternalMetricStatusPtrOutput() ExternalMetricStatusPtrOutput {
return i.ToExternalMetricStatusPtrOutputWithContext(context.Background())
}
func (i ExternalMetricStatusArgs) ToExternalMetricStatusPtrOutputWithContext(ctx context.Context) ExternalMetricStatusPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExternalMetricStatusOutput).ToExternalMetricStatusPtrOutputWithContext(ctx)
}
// ExternalMetricStatusPtrInput is an input type that accepts ExternalMetricStatusArgs, ExternalMetricStatusPtr and ExternalMetricStatusPtrOutput values.
// You can construct a concrete instance of `ExternalMetricStatusPtrInput` via:
//
// ExternalMetricStatusArgs{...}
//
// or:
//
// nil
type ExternalMetricStatusPtrInput interface {
pulumi.Input
ToExternalMetricStatusPtrOutput() ExternalMetricStatusPtrOutput
ToExternalMetricStatusPtrOutputWithContext(context.Context) ExternalMetricStatusPtrOutput
}
type externalMetricStatusPtrType ExternalMetricStatusArgs
func ExternalMetricStatusPtr(v *ExternalMetricStatusArgs) ExternalMetricStatusPtrInput {
return (*externalMetricStatusPtrType)(v)
}
func (*externalMetricStatusPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ExternalMetricStatus)(nil)).Elem()
}
func (i *externalMetricStatusPtrType) ToExternalMetricStatusPtrOutput() ExternalMetricStatusPtrOutput {
return i.ToExternalMetricStatusPtrOutputWithContext(context.Background())
}
func (i *externalMetricStatusPtrType) ToExternalMetricStatusPtrOutputWithContext(ctx context.Context) ExternalMetricStatusPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ExternalMetricStatusPtrOutput)
}
// ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.
type ExternalMetricStatusOutput struct{ *pulumi.OutputState }
func (ExternalMetricStatusOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ExternalMetricStatus)(nil)).Elem()
}
func (o ExternalMetricStatusOutput) ToExternalMetricStatusOutput() ExternalMetricStatusOutput {
return o
}
func (o ExternalMetricStatusOutput) ToExternalMetricStatusOutputWithContext(ctx context.Context) ExternalMetricStatusOutput {
return o
}
func (o ExternalMetricStatusOutput) ToExternalMetricStatusPtrOutput() ExternalMetricStatusPtrOutput {
return o.ToExternalMetricStatusPtrOutputWithContext(context.Background())
}
func (o ExternalMetricStatusOutput) ToExternalMetricStatusPtrOutputWithContext(ctx context.Context) ExternalMetricStatusPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ExternalMetricStatus) *ExternalMetricStatus {
return &v
}).(ExternalMetricStatusPtrOutput)
}
// current contains the current value for the given metric
func (o ExternalMetricStatusOutput) Current() MetricValueStatusOutput {
return o.ApplyT(func(v ExternalMetricStatus) MetricValueStatus { return v.Current }).(MetricValueStatusOutput)
}
// metric identifies the target metric by name and selector
func (o ExternalMetricStatusOutput) Metric() MetricIdentifierOutput {
return o.ApplyT(func(v ExternalMetricStatus) MetricIdentifier { return v.Metric }).(MetricIdentifierOutput)
}
type ExternalMetricStatusPtrOutput struct{ *pulumi.OutputState }
func (ExternalMetricStatusPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ExternalMetricStatus)(nil)).Elem()
}
func (o ExternalMetricStatusPtrOutput) ToExternalMetricStatusPtrOutput() ExternalMetricStatusPtrOutput {
return o
}
func (o ExternalMetricStatusPtrOutput) ToExternalMetricStatusPtrOutputWithContext(ctx context.Context) ExternalMetricStatusPtrOutput {
return o
}
func (o ExternalMetricStatusPtrOutput) Elem() ExternalMetricStatusOutput {
return o.ApplyT(func(v *ExternalMetricStatus) ExternalMetricStatus {
if v != nil {
return *v
}
var ret ExternalMetricStatus
return ret
}).(ExternalMetricStatusOutput)
}
// current contains the current value for the given metric
func (o ExternalMetricStatusPtrOutput) Current() MetricValueStatusPtrOutput {
return o.ApplyT(func(v *ExternalMetricStatus) *MetricValueStatus {
if v == nil {
return nil
}
return &v.Current
}).(MetricValueStatusPtrOutput)
}
// metric identifies the target metric by name and selector
func (o ExternalMetricStatusPtrOutput) Metric() MetricIdentifierPtrOutput {
return o.ApplyT(func(v *ExternalMetricStatus) *MetricIdentifier {
if v == nil {
return nil
}
return &v.Metric
}).(MetricIdentifierPtrOutput)
}
// HPAScalingPolicy is a single policy which must hold true for a specified past interval.
type HPAScalingPolicy struct {
// PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
PeriodSeconds int `pulumi:"periodSeconds"`
// Type is used to specify the scaling policy.
Type string `pulumi:"type"`
// Value contains the amount of change which is permitted by the policy. It must be greater than zero
Value int `pulumi:"value"`
}
// HPAScalingPolicyInput is an input type that accepts HPAScalingPolicyArgs and HPAScalingPolicyOutput values.
// You can construct a concrete instance of `HPAScalingPolicyInput` via:
//
// HPAScalingPolicyArgs{...}
type HPAScalingPolicyInput interface {
pulumi.Input
ToHPAScalingPolicyOutput() HPAScalingPolicyOutput
ToHPAScalingPolicyOutputWithContext(context.Context) HPAScalingPolicyOutput
}
// HPAScalingPolicy is a single policy which must hold true for a specified past interval.
type HPAScalingPolicyArgs struct {
// PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
PeriodSeconds pulumi.IntInput `pulumi:"periodSeconds"`
// Type is used to specify the scaling policy.
Type pulumi.StringInput `pulumi:"type"`
// Value contains the amount of change which is permitted by the policy. It must be greater than zero
Value pulumi.IntInput `pulumi:"value"`
}
func (HPAScalingPolicyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*HPAScalingPolicy)(nil)).Elem()
}
func (i HPAScalingPolicyArgs) ToHPAScalingPolicyOutput() HPAScalingPolicyOutput {
return i.ToHPAScalingPolicyOutputWithContext(context.Background())
}
func (i HPAScalingPolicyArgs) ToHPAScalingPolicyOutputWithContext(ctx context.Context) HPAScalingPolicyOutput {
return pulumi.ToOutputWithContext(ctx, i).(HPAScalingPolicyOutput)
}
// HPAScalingPolicyArrayInput is an input type that accepts HPAScalingPolicyArray and HPAScalingPolicyArrayOutput values.
// You can construct a concrete instance of `HPAScalingPolicyArrayInput` via:
//
// HPAScalingPolicyArray{ HPAScalingPolicyArgs{...} }
type HPAScalingPolicyArrayInput interface {
pulumi.Input
ToHPAScalingPolicyArrayOutput() HPAScalingPolicyArrayOutput
ToHPAScalingPolicyArrayOutputWithContext(context.Context) HPAScalingPolicyArrayOutput
}
type HPAScalingPolicyArray []HPAScalingPolicyInput
func (HPAScalingPolicyArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]HPAScalingPolicy)(nil)).Elem()
}
func (i HPAScalingPolicyArray) ToHPAScalingPolicyArrayOutput() HPAScalingPolicyArrayOutput {
return i.ToHPAScalingPolicyArrayOutputWithContext(context.Background())
}
func (i HPAScalingPolicyArray) ToHPAScalingPolicyArrayOutputWithContext(ctx context.Context) HPAScalingPolicyArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(HPAScalingPolicyArrayOutput)
}
// HPAScalingPolicy is a single policy which must hold true for a specified past interval.
type HPAScalingPolicyOutput struct{ *pulumi.OutputState }
func (HPAScalingPolicyOutput) ElementType() reflect.Type {
return reflect.TypeOf((*HPAScalingPolicy)(nil)).Elem()
}
func (o HPAScalingPolicyOutput) ToHPAScalingPolicyOutput() HPAScalingPolicyOutput {
return o
}
func (o HPAScalingPolicyOutput) ToHPAScalingPolicyOutputWithContext(ctx context.Context) HPAScalingPolicyOutput {
return o
}
// PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
func (o HPAScalingPolicyOutput) PeriodSeconds() pulumi.IntOutput {
return o.ApplyT(func(v HPAScalingPolicy) int { return v.PeriodSeconds }).(pulumi.IntOutput)
}
// Type is used to specify the scaling policy.
func (o HPAScalingPolicyOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v HPAScalingPolicy) string { return v.Type }).(pulumi.StringOutput)
}
// Value contains the amount of change which is permitted by the policy. It must be greater than zero
func (o HPAScalingPolicyOutput) Value() pulumi.IntOutput {
return o.ApplyT(func(v HPAScalingPolicy) int { return v.Value }).(pulumi.IntOutput)
}
type HPAScalingPolicyArrayOutput struct{ *pulumi.OutputState }
func (HPAScalingPolicyArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]HPAScalingPolicy)(nil)).Elem()
}
func (o HPAScalingPolicyArrayOutput) ToHPAScalingPolicyArrayOutput() HPAScalingPolicyArrayOutput {
return o
}
func (o HPAScalingPolicyArrayOutput) ToHPAScalingPolicyArrayOutputWithContext(ctx context.Context) HPAScalingPolicyArrayOutput {
return o
}
func (o HPAScalingPolicyArrayOutput) Index(i pulumi.IntInput) HPAScalingPolicyOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) HPAScalingPolicy {
return vs[0].([]HPAScalingPolicy)[vs[1].(int)]
}).(HPAScalingPolicyOutput)
}
// HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
type HPAScalingRules struct {
// policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
Policies []HPAScalingPolicy `pulumi:"policies"`
// selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
SelectPolicy *string `pulumi:"selectPolicy"`
// StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
StabilizationWindowSeconds *int `pulumi:"stabilizationWindowSeconds"`
}
// HPAScalingRulesInput is an input type that accepts HPAScalingRulesArgs and HPAScalingRulesOutput values.
// You can construct a concrete instance of `HPAScalingRulesInput` via:
//
// HPAScalingRulesArgs{...}
type HPAScalingRulesInput interface {
pulumi.Input