/
pulumiTypes.go
1468 lines (1208 loc) · 98.6 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 autoscalingplans
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ScalingPlanApplicationSource struct {
// ARN of a AWS CloudFormation stack.
CloudformationStackArn *string `pulumi:"cloudformationStackArn"`
// Set of tags.
TagFilters []ScalingPlanApplicationSourceTagFilter `pulumi:"tagFilters"`
}
// ScalingPlanApplicationSourceInput is an input type that accepts ScalingPlanApplicationSourceArgs and ScalingPlanApplicationSourceOutput values.
// You can construct a concrete instance of `ScalingPlanApplicationSourceInput` via:
//
// ScalingPlanApplicationSourceArgs{...}
type ScalingPlanApplicationSourceInput interface {
pulumi.Input
ToScalingPlanApplicationSourceOutput() ScalingPlanApplicationSourceOutput
ToScalingPlanApplicationSourceOutputWithContext(context.Context) ScalingPlanApplicationSourceOutput
}
type ScalingPlanApplicationSourceArgs struct {
// ARN of a AWS CloudFormation stack.
CloudformationStackArn pulumi.StringPtrInput `pulumi:"cloudformationStackArn"`
// Set of tags.
TagFilters ScalingPlanApplicationSourceTagFilterArrayInput `pulumi:"tagFilters"`
}
func (ScalingPlanApplicationSourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanApplicationSource)(nil)).Elem()
}
func (i ScalingPlanApplicationSourceArgs) ToScalingPlanApplicationSourceOutput() ScalingPlanApplicationSourceOutput {
return i.ToScalingPlanApplicationSourceOutputWithContext(context.Background())
}
func (i ScalingPlanApplicationSourceArgs) ToScalingPlanApplicationSourceOutputWithContext(ctx context.Context) ScalingPlanApplicationSourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanApplicationSourceOutput)
}
func (i ScalingPlanApplicationSourceArgs) ToScalingPlanApplicationSourcePtrOutput() ScalingPlanApplicationSourcePtrOutput {
return i.ToScalingPlanApplicationSourcePtrOutputWithContext(context.Background())
}
func (i ScalingPlanApplicationSourceArgs) ToScalingPlanApplicationSourcePtrOutputWithContext(ctx context.Context) ScalingPlanApplicationSourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanApplicationSourceOutput).ToScalingPlanApplicationSourcePtrOutputWithContext(ctx)
}
// ScalingPlanApplicationSourcePtrInput is an input type that accepts ScalingPlanApplicationSourceArgs, ScalingPlanApplicationSourcePtr and ScalingPlanApplicationSourcePtrOutput values.
// You can construct a concrete instance of `ScalingPlanApplicationSourcePtrInput` via:
//
// ScalingPlanApplicationSourceArgs{...}
//
// or:
//
// nil
type ScalingPlanApplicationSourcePtrInput interface {
pulumi.Input
ToScalingPlanApplicationSourcePtrOutput() ScalingPlanApplicationSourcePtrOutput
ToScalingPlanApplicationSourcePtrOutputWithContext(context.Context) ScalingPlanApplicationSourcePtrOutput
}
type scalingPlanApplicationSourcePtrType ScalingPlanApplicationSourceArgs
func ScalingPlanApplicationSourcePtr(v *ScalingPlanApplicationSourceArgs) ScalingPlanApplicationSourcePtrInput {
return (*scalingPlanApplicationSourcePtrType)(v)
}
func (*scalingPlanApplicationSourcePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ScalingPlanApplicationSource)(nil)).Elem()
}
func (i *scalingPlanApplicationSourcePtrType) ToScalingPlanApplicationSourcePtrOutput() ScalingPlanApplicationSourcePtrOutput {
return i.ToScalingPlanApplicationSourcePtrOutputWithContext(context.Background())
}
func (i *scalingPlanApplicationSourcePtrType) ToScalingPlanApplicationSourcePtrOutputWithContext(ctx context.Context) ScalingPlanApplicationSourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanApplicationSourcePtrOutput)
}
type ScalingPlanApplicationSourceOutput struct{ *pulumi.OutputState }
func (ScalingPlanApplicationSourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanApplicationSource)(nil)).Elem()
}
func (o ScalingPlanApplicationSourceOutput) ToScalingPlanApplicationSourceOutput() ScalingPlanApplicationSourceOutput {
return o
}
func (o ScalingPlanApplicationSourceOutput) ToScalingPlanApplicationSourceOutputWithContext(ctx context.Context) ScalingPlanApplicationSourceOutput {
return o
}
func (o ScalingPlanApplicationSourceOutput) ToScalingPlanApplicationSourcePtrOutput() ScalingPlanApplicationSourcePtrOutput {
return o.ToScalingPlanApplicationSourcePtrOutputWithContext(context.Background())
}
func (o ScalingPlanApplicationSourceOutput) ToScalingPlanApplicationSourcePtrOutputWithContext(ctx context.Context) ScalingPlanApplicationSourcePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ScalingPlanApplicationSource) *ScalingPlanApplicationSource {
return &v
}).(ScalingPlanApplicationSourcePtrOutput)
}
// ARN of a AWS CloudFormation stack.
func (o ScalingPlanApplicationSourceOutput) CloudformationStackArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScalingPlanApplicationSource) *string { return v.CloudformationStackArn }).(pulumi.StringPtrOutput)
}
// Set of tags.
func (o ScalingPlanApplicationSourceOutput) TagFilters() ScalingPlanApplicationSourceTagFilterArrayOutput {
return o.ApplyT(func(v ScalingPlanApplicationSource) []ScalingPlanApplicationSourceTagFilter { return v.TagFilters }).(ScalingPlanApplicationSourceTagFilterArrayOutput)
}
type ScalingPlanApplicationSourcePtrOutput struct{ *pulumi.OutputState }
func (ScalingPlanApplicationSourcePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ScalingPlanApplicationSource)(nil)).Elem()
}
func (o ScalingPlanApplicationSourcePtrOutput) ToScalingPlanApplicationSourcePtrOutput() ScalingPlanApplicationSourcePtrOutput {
return o
}
func (o ScalingPlanApplicationSourcePtrOutput) ToScalingPlanApplicationSourcePtrOutputWithContext(ctx context.Context) ScalingPlanApplicationSourcePtrOutput {
return o
}
func (o ScalingPlanApplicationSourcePtrOutput) Elem() ScalingPlanApplicationSourceOutput {
return o.ApplyT(func(v *ScalingPlanApplicationSource) ScalingPlanApplicationSource {
if v != nil {
return *v
}
var ret ScalingPlanApplicationSource
return ret
}).(ScalingPlanApplicationSourceOutput)
}
// ARN of a AWS CloudFormation stack.
func (o ScalingPlanApplicationSourcePtrOutput) CloudformationStackArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanApplicationSource) *string {
if v == nil {
return nil
}
return v.CloudformationStackArn
}).(pulumi.StringPtrOutput)
}
// Set of tags.
func (o ScalingPlanApplicationSourcePtrOutput) TagFilters() ScalingPlanApplicationSourceTagFilterArrayOutput {
return o.ApplyT(func(v *ScalingPlanApplicationSource) []ScalingPlanApplicationSourceTagFilter {
if v == nil {
return nil
}
return v.TagFilters
}).(ScalingPlanApplicationSourceTagFilterArrayOutput)
}
type ScalingPlanApplicationSourceTagFilter struct {
// Tag key.
Key string `pulumi:"key"`
// Tag values.
Values []string `pulumi:"values"`
}
// ScalingPlanApplicationSourceTagFilterInput is an input type that accepts ScalingPlanApplicationSourceTagFilterArgs and ScalingPlanApplicationSourceTagFilterOutput values.
// You can construct a concrete instance of `ScalingPlanApplicationSourceTagFilterInput` via:
//
// ScalingPlanApplicationSourceTagFilterArgs{...}
type ScalingPlanApplicationSourceTagFilterInput interface {
pulumi.Input
ToScalingPlanApplicationSourceTagFilterOutput() ScalingPlanApplicationSourceTagFilterOutput
ToScalingPlanApplicationSourceTagFilterOutputWithContext(context.Context) ScalingPlanApplicationSourceTagFilterOutput
}
type ScalingPlanApplicationSourceTagFilterArgs struct {
// Tag key.
Key pulumi.StringInput `pulumi:"key"`
// Tag values.
Values pulumi.StringArrayInput `pulumi:"values"`
}
func (ScalingPlanApplicationSourceTagFilterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanApplicationSourceTagFilter)(nil)).Elem()
}
func (i ScalingPlanApplicationSourceTagFilterArgs) ToScalingPlanApplicationSourceTagFilterOutput() ScalingPlanApplicationSourceTagFilterOutput {
return i.ToScalingPlanApplicationSourceTagFilterOutputWithContext(context.Background())
}
func (i ScalingPlanApplicationSourceTagFilterArgs) ToScalingPlanApplicationSourceTagFilterOutputWithContext(ctx context.Context) ScalingPlanApplicationSourceTagFilterOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanApplicationSourceTagFilterOutput)
}
// ScalingPlanApplicationSourceTagFilterArrayInput is an input type that accepts ScalingPlanApplicationSourceTagFilterArray and ScalingPlanApplicationSourceTagFilterArrayOutput values.
// You can construct a concrete instance of `ScalingPlanApplicationSourceTagFilterArrayInput` via:
//
// ScalingPlanApplicationSourceTagFilterArray{ ScalingPlanApplicationSourceTagFilterArgs{...} }
type ScalingPlanApplicationSourceTagFilterArrayInput interface {
pulumi.Input
ToScalingPlanApplicationSourceTagFilterArrayOutput() ScalingPlanApplicationSourceTagFilterArrayOutput
ToScalingPlanApplicationSourceTagFilterArrayOutputWithContext(context.Context) ScalingPlanApplicationSourceTagFilterArrayOutput
}
type ScalingPlanApplicationSourceTagFilterArray []ScalingPlanApplicationSourceTagFilterInput
func (ScalingPlanApplicationSourceTagFilterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ScalingPlanApplicationSourceTagFilter)(nil)).Elem()
}
func (i ScalingPlanApplicationSourceTagFilterArray) ToScalingPlanApplicationSourceTagFilterArrayOutput() ScalingPlanApplicationSourceTagFilterArrayOutput {
return i.ToScalingPlanApplicationSourceTagFilterArrayOutputWithContext(context.Background())
}
func (i ScalingPlanApplicationSourceTagFilterArray) ToScalingPlanApplicationSourceTagFilterArrayOutputWithContext(ctx context.Context) ScalingPlanApplicationSourceTagFilterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanApplicationSourceTagFilterArrayOutput)
}
type ScalingPlanApplicationSourceTagFilterOutput struct{ *pulumi.OutputState }
func (ScalingPlanApplicationSourceTagFilterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanApplicationSourceTagFilter)(nil)).Elem()
}
func (o ScalingPlanApplicationSourceTagFilterOutput) ToScalingPlanApplicationSourceTagFilterOutput() ScalingPlanApplicationSourceTagFilterOutput {
return o
}
func (o ScalingPlanApplicationSourceTagFilterOutput) ToScalingPlanApplicationSourceTagFilterOutputWithContext(ctx context.Context) ScalingPlanApplicationSourceTagFilterOutput {
return o
}
// Tag key.
func (o ScalingPlanApplicationSourceTagFilterOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanApplicationSourceTagFilter) string { return v.Key }).(pulumi.StringOutput)
}
// Tag values.
func (o ScalingPlanApplicationSourceTagFilterOutput) Values() pulumi.StringArrayOutput {
return o.ApplyT(func(v ScalingPlanApplicationSourceTagFilter) []string { return v.Values }).(pulumi.StringArrayOutput)
}
type ScalingPlanApplicationSourceTagFilterArrayOutput struct{ *pulumi.OutputState }
func (ScalingPlanApplicationSourceTagFilterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ScalingPlanApplicationSourceTagFilter)(nil)).Elem()
}
func (o ScalingPlanApplicationSourceTagFilterArrayOutput) ToScalingPlanApplicationSourceTagFilterArrayOutput() ScalingPlanApplicationSourceTagFilterArrayOutput {
return o
}
func (o ScalingPlanApplicationSourceTagFilterArrayOutput) ToScalingPlanApplicationSourceTagFilterArrayOutputWithContext(ctx context.Context) ScalingPlanApplicationSourceTagFilterArrayOutput {
return o
}
func (o ScalingPlanApplicationSourceTagFilterArrayOutput) Index(i pulumi.IntInput) ScalingPlanApplicationSourceTagFilterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ScalingPlanApplicationSourceTagFilter {
return vs[0].([]ScalingPlanApplicationSourceTagFilter)[vs[1].(int)]
}).(ScalingPlanApplicationSourceTagFilterOutput)
}
type ScalingPlanScalingInstruction struct {
// Customized load metric to use for predictive scaling. You must specify either `customizedLoadMetricSpecification` or `predefinedLoadMetricSpecification` when configuring predictive scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedLoadMetricSpecification.html).
CustomizedLoadMetricSpecification *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification `pulumi:"customizedLoadMetricSpecification"`
// Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to `false`.
DisableDynamicScaling *bool `pulumi:"disableDynamicScaling"`
// Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for `predictiveScalingMaxCapacityBehavior`.
MaxCapacity int `pulumi:"maxCapacity"`
// Minimum capacity of the resource.
MinCapacity int `pulumi:"minCapacity"`
// Predefined load metric to use for predictive scaling. You must specify either `predefinedLoadMetricSpecification` or `customizedLoadMetricSpecification` when configuring predictive scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedLoadMetricSpecification.html).
PredefinedLoadMetricSpecification *ScalingPlanScalingInstructionPredefinedLoadMetricSpecification `pulumi:"predefinedLoadMetricSpecification"`
// Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource.
// Valid values: `SetForecastCapacityToMaxCapacity`, `SetMaxCapacityAboveForecastCapacity`, `SetMaxCapacityToForecastCapacity`.
PredictiveScalingMaxCapacityBehavior *string `pulumi:"predictiveScalingMaxCapacityBehavior"`
// Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity.
PredictiveScalingMaxCapacityBuffer *int `pulumi:"predictiveScalingMaxCapacityBuffer"`
// Predictive scaling mode. Valid values: `ForecastAndScale`, `ForecastOnly`.
PredictiveScalingMode *string `pulumi:"predictiveScalingMode"`
// ID of the resource. This string consists of the resource type and unique identifier.
ResourceId string `pulumi:"resourceId"`
// Scalable dimension associated with the resource. Valid values: `autoscaling:autoScalingGroup:DesiredCapacity`, `dynamodb:index:ReadCapacityUnits`, `dynamodb:index:WriteCapacityUnits`, `dynamodb:table:ReadCapacityUnits`, `dynamodb:table:WriteCapacityUnits`, `ecs:service:DesiredCount`, `ec2:spot-fleet-request:TargetCapacity`, `rds:cluster:ReadReplicaCount`.
ScalableDimension string `pulumi:"scalableDimension"`
// Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: `KeepExternalPolicies`, `ReplaceExternalPolicies`. Defaults to `KeepExternalPolicies`.
ScalingPolicyUpdateBehavior *string `pulumi:"scalingPolicyUpdateBehavior"`
// Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out.
ScheduledActionBufferTime *int `pulumi:"scheduledActionBufferTime"`
// Namespace of the AWS service. Valid values: `autoscaling`, `dynamodb`, `ecs`, `ec2`, `rds`.
ServiceNamespace string `pulumi:"serviceNamespace"`
// Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_TargetTrackingConfiguration.html).
TargetTrackingConfigurations []ScalingPlanScalingInstructionTargetTrackingConfiguration `pulumi:"targetTrackingConfigurations"`
}
// ScalingPlanScalingInstructionInput is an input type that accepts ScalingPlanScalingInstructionArgs and ScalingPlanScalingInstructionOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionInput` via:
//
// ScalingPlanScalingInstructionArgs{...}
type ScalingPlanScalingInstructionInput interface {
pulumi.Input
ToScalingPlanScalingInstructionOutput() ScalingPlanScalingInstructionOutput
ToScalingPlanScalingInstructionOutputWithContext(context.Context) ScalingPlanScalingInstructionOutput
}
type ScalingPlanScalingInstructionArgs struct {
// Customized load metric to use for predictive scaling. You must specify either `customizedLoadMetricSpecification` or `predefinedLoadMetricSpecification` when configuring predictive scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedLoadMetricSpecification.html).
CustomizedLoadMetricSpecification ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrInput `pulumi:"customizedLoadMetricSpecification"`
// Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to `false`.
DisableDynamicScaling pulumi.BoolPtrInput `pulumi:"disableDynamicScaling"`
// Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for `predictiveScalingMaxCapacityBehavior`.
MaxCapacity pulumi.IntInput `pulumi:"maxCapacity"`
// Minimum capacity of the resource.
MinCapacity pulumi.IntInput `pulumi:"minCapacity"`
// Predefined load metric to use for predictive scaling. You must specify either `predefinedLoadMetricSpecification` or `customizedLoadMetricSpecification` when configuring predictive scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedLoadMetricSpecification.html).
PredefinedLoadMetricSpecification ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrInput `pulumi:"predefinedLoadMetricSpecification"`
// Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource.
// Valid values: `SetForecastCapacityToMaxCapacity`, `SetMaxCapacityAboveForecastCapacity`, `SetMaxCapacityToForecastCapacity`.
PredictiveScalingMaxCapacityBehavior pulumi.StringPtrInput `pulumi:"predictiveScalingMaxCapacityBehavior"`
// Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity.
PredictiveScalingMaxCapacityBuffer pulumi.IntPtrInput `pulumi:"predictiveScalingMaxCapacityBuffer"`
// Predictive scaling mode. Valid values: `ForecastAndScale`, `ForecastOnly`.
PredictiveScalingMode pulumi.StringPtrInput `pulumi:"predictiveScalingMode"`
// ID of the resource. This string consists of the resource type and unique identifier.
ResourceId pulumi.StringInput `pulumi:"resourceId"`
// Scalable dimension associated with the resource. Valid values: `autoscaling:autoScalingGroup:DesiredCapacity`, `dynamodb:index:ReadCapacityUnits`, `dynamodb:index:WriteCapacityUnits`, `dynamodb:table:ReadCapacityUnits`, `dynamodb:table:WriteCapacityUnits`, `ecs:service:DesiredCount`, `ec2:spot-fleet-request:TargetCapacity`, `rds:cluster:ReadReplicaCount`.
ScalableDimension pulumi.StringInput `pulumi:"scalableDimension"`
// Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: `KeepExternalPolicies`, `ReplaceExternalPolicies`. Defaults to `KeepExternalPolicies`.
ScalingPolicyUpdateBehavior pulumi.StringPtrInput `pulumi:"scalingPolicyUpdateBehavior"`
// Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out.
ScheduledActionBufferTime pulumi.IntPtrInput `pulumi:"scheduledActionBufferTime"`
// Namespace of the AWS service. Valid values: `autoscaling`, `dynamodb`, `ecs`, `ec2`, `rds`.
ServiceNamespace pulumi.StringInput `pulumi:"serviceNamespace"`
// Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_TargetTrackingConfiguration.html).
TargetTrackingConfigurations ScalingPlanScalingInstructionTargetTrackingConfigurationArrayInput `pulumi:"targetTrackingConfigurations"`
}
func (ScalingPlanScalingInstructionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstruction)(nil)).Elem()
}
func (i ScalingPlanScalingInstructionArgs) ToScalingPlanScalingInstructionOutput() ScalingPlanScalingInstructionOutput {
return i.ToScalingPlanScalingInstructionOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionArgs) ToScalingPlanScalingInstructionOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionOutput)
}
// ScalingPlanScalingInstructionArrayInput is an input type that accepts ScalingPlanScalingInstructionArray and ScalingPlanScalingInstructionArrayOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionArrayInput` via:
//
// ScalingPlanScalingInstructionArray{ ScalingPlanScalingInstructionArgs{...} }
type ScalingPlanScalingInstructionArrayInput interface {
pulumi.Input
ToScalingPlanScalingInstructionArrayOutput() ScalingPlanScalingInstructionArrayOutput
ToScalingPlanScalingInstructionArrayOutputWithContext(context.Context) ScalingPlanScalingInstructionArrayOutput
}
type ScalingPlanScalingInstructionArray []ScalingPlanScalingInstructionInput
func (ScalingPlanScalingInstructionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ScalingPlanScalingInstruction)(nil)).Elem()
}
func (i ScalingPlanScalingInstructionArray) ToScalingPlanScalingInstructionArrayOutput() ScalingPlanScalingInstructionArrayOutput {
return i.ToScalingPlanScalingInstructionArrayOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionArray) ToScalingPlanScalingInstructionArrayOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionArrayOutput)
}
type ScalingPlanScalingInstructionOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstruction)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionOutput) ToScalingPlanScalingInstructionOutput() ScalingPlanScalingInstructionOutput {
return o
}
func (o ScalingPlanScalingInstructionOutput) ToScalingPlanScalingInstructionOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionOutput {
return o
}
// Customized load metric to use for predictive scaling. You must specify either `customizedLoadMetricSpecification` or `predefinedLoadMetricSpecification` when configuring predictive scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedLoadMetricSpecification.html).
func (o ScalingPlanScalingInstructionOutput) CustomizedLoadMetricSpecification() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification {
return v.CustomizedLoadMetricSpecification
}).(ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput)
}
// Boolean controlling whether dynamic scaling by AWS Auto Scaling is disabled. Defaults to `false`.
func (o ScalingPlanScalingInstructionOutput) DisableDynamicScaling() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *bool { return v.DisableDynamicScaling }).(pulumi.BoolPtrOutput)
}
// Maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for `predictiveScalingMaxCapacityBehavior`.
func (o ScalingPlanScalingInstructionOutput) MaxCapacity() pulumi.IntOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) int { return v.MaxCapacity }).(pulumi.IntOutput)
}
// Minimum capacity of the resource.
func (o ScalingPlanScalingInstructionOutput) MinCapacity() pulumi.IntOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) int { return v.MinCapacity }).(pulumi.IntOutput)
}
// Predefined load metric to use for predictive scaling. You must specify either `predefinedLoadMetricSpecification` or `customizedLoadMetricSpecification` when configuring predictive scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedLoadMetricSpecification.html).
func (o ScalingPlanScalingInstructionOutput) PredefinedLoadMetricSpecification() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *ScalingPlanScalingInstructionPredefinedLoadMetricSpecification {
return v.PredefinedLoadMetricSpecification
}).(ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput)
}
// Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource.
// Valid values: `SetForecastCapacityToMaxCapacity`, `SetMaxCapacityAboveForecastCapacity`, `SetMaxCapacityToForecastCapacity`.
func (o ScalingPlanScalingInstructionOutput) PredictiveScalingMaxCapacityBehavior() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *string { return v.PredictiveScalingMaxCapacityBehavior }).(pulumi.StringPtrOutput)
}
// Size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity.
func (o ScalingPlanScalingInstructionOutput) PredictiveScalingMaxCapacityBuffer() pulumi.IntPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *int { return v.PredictiveScalingMaxCapacityBuffer }).(pulumi.IntPtrOutput)
}
// Predictive scaling mode. Valid values: `ForecastAndScale`, `ForecastOnly`.
func (o ScalingPlanScalingInstructionOutput) PredictiveScalingMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *string { return v.PredictiveScalingMode }).(pulumi.StringPtrOutput)
}
// ID of the resource. This string consists of the resource type and unique identifier.
func (o ScalingPlanScalingInstructionOutput) ResourceId() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) string { return v.ResourceId }).(pulumi.StringOutput)
}
// Scalable dimension associated with the resource. Valid values: `autoscaling:autoScalingGroup:DesiredCapacity`, `dynamodb:index:ReadCapacityUnits`, `dynamodb:index:WriteCapacityUnits`, `dynamodb:table:ReadCapacityUnits`, `dynamodb:table:WriteCapacityUnits`, `ecs:service:DesiredCount`, `ec2:spot-fleet-request:TargetCapacity`, `rds:cluster:ReadReplicaCount`.
func (o ScalingPlanScalingInstructionOutput) ScalableDimension() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) string { return v.ScalableDimension }).(pulumi.StringOutput)
}
// Controls whether a resource's externally created scaling policies are kept or replaced. Valid values: `KeepExternalPolicies`, `ReplaceExternalPolicies`. Defaults to `KeepExternalPolicies`.
func (o ScalingPlanScalingInstructionOutput) ScalingPolicyUpdateBehavior() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *string { return v.ScalingPolicyUpdateBehavior }).(pulumi.StringPtrOutput)
}
// Amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out.
func (o ScalingPlanScalingInstructionOutput) ScheduledActionBufferTime() pulumi.IntPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) *int { return v.ScheduledActionBufferTime }).(pulumi.IntPtrOutput)
}
// Namespace of the AWS service. Valid values: `autoscaling`, `dynamodb`, `ecs`, `ec2`, `rds`.
func (o ScalingPlanScalingInstructionOutput) ServiceNamespace() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) string { return v.ServiceNamespace }).(pulumi.StringOutput)
}
// Structure that defines new target tracking configurations. Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_TargetTrackingConfiguration.html).
func (o ScalingPlanScalingInstructionOutput) TargetTrackingConfigurations() ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput {
return o.ApplyT(func(v ScalingPlanScalingInstruction) []ScalingPlanScalingInstructionTargetTrackingConfiguration {
return v.TargetTrackingConfigurations
}).(ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput)
}
type ScalingPlanScalingInstructionArrayOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ScalingPlanScalingInstruction)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionArrayOutput) ToScalingPlanScalingInstructionArrayOutput() ScalingPlanScalingInstructionArrayOutput {
return o
}
func (o ScalingPlanScalingInstructionArrayOutput) ToScalingPlanScalingInstructionArrayOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionArrayOutput {
return o
}
func (o ScalingPlanScalingInstructionArrayOutput) Index(i pulumi.IntInput) ScalingPlanScalingInstructionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ScalingPlanScalingInstruction {
return vs[0].([]ScalingPlanScalingInstruction)[vs[1].(int)]
}).(ScalingPlanScalingInstructionOutput)
}
type ScalingPlanScalingInstructionCustomizedLoadMetricSpecification struct {
// Dimensions of the metric.
Dimensions map[string]string `pulumi:"dimensions"`
// Name of the metric.
MetricName string `pulumi:"metricName"`
// Namespace of the metric.
Namespace string `pulumi:"namespace"`
// Statistic of the metric. Currently, the value must always be `Sum`.
Statistic string `pulumi:"statistic"`
// Unit of the metric.
Unit *string `pulumi:"unit"`
}
// ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationInput is an input type that accepts ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs and ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationInput` via:
//
// ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs{...}
type ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationInput interface {
pulumi.Input
ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput
ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutputWithContext(context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput
}
type ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs struct {
// Dimensions of the metric.
Dimensions pulumi.StringMapInput `pulumi:"dimensions"`
// Name of the metric.
MetricName pulumi.StringInput `pulumi:"metricName"`
// Namespace of the metric.
Namespace pulumi.StringInput `pulumi:"namespace"`
// Statistic of the metric. Currently, the value must always be `Sum`.
Statistic pulumi.StringInput `pulumi:"statistic"`
// Unit of the metric.
Unit pulumi.StringPtrInput `pulumi:"unit"`
}
func (ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstructionCustomizedLoadMetricSpecification)(nil)).Elem()
}
func (i ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput {
return i.ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput)
}
func (i ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return i.ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput).ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(ctx)
}
// ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrInput is an input type that accepts ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs, ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtr and ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrInput` via:
//
// ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs{...}
//
// or:
//
// nil
type ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrInput interface {
pulumi.Input
ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput
ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput
}
type scalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrType ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs
func ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtr(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationArgs) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrInput {
return (*scalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrType)(v)
}
func (*scalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ScalingPlanScalingInstructionCustomizedLoadMetricSpecification)(nil)).Elem()
}
func (i *scalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrType) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return i.ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(context.Background())
}
func (i *scalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrType) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput)
}
type ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstructionCustomizedLoadMetricSpecification)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput {
return o
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput {
return o
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return o.ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(context.Background())
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification {
return &v
}).(ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput)
}
// Dimensions of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) Dimensions() pulumi.StringMapOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) map[string]string {
return v.Dimensions
}).(pulumi.StringMapOutput)
}
// Name of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) MetricName() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) string { return v.MetricName }).(pulumi.StringOutput)
}
// Namespace of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) Namespace() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) string { return v.Namespace }).(pulumi.StringOutput)
}
// Statistic of the metric. Currently, the value must always be `Sum`.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) Statistic() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) string { return v.Statistic }).(pulumi.StringOutput)
}
// Unit of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput) Unit() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) *string { return v.Unit }).(pulumi.StringPtrOutput)
}
type ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ScalingPlanScalingInstructionCustomizedLoadMetricSpecification)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return o
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) ToScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput {
return o
}
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) Elem() ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) ScalingPlanScalingInstructionCustomizedLoadMetricSpecification {
if v != nil {
return *v
}
var ret ScalingPlanScalingInstructionCustomizedLoadMetricSpecification
return ret
}).(ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationOutput)
}
// Dimensions of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) Dimensions() pulumi.StringMapOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) map[string]string {
if v == nil {
return nil
}
return v.Dimensions
}).(pulumi.StringMapOutput)
}
// Name of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) MetricName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) *string {
if v == nil {
return nil
}
return &v.MetricName
}).(pulumi.StringPtrOutput)
}
// Namespace of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) Namespace() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) *string {
if v == nil {
return nil
}
return &v.Namespace
}).(pulumi.StringPtrOutput)
}
// Statistic of the metric. Currently, the value must always be `Sum`.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) Statistic() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) *string {
if v == nil {
return nil
}
return &v.Statistic
}).(pulumi.StringPtrOutput)
}
// Unit of the metric.
func (o ScalingPlanScalingInstructionCustomizedLoadMetricSpecificationPtrOutput) Unit() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionCustomizedLoadMetricSpecification) *string {
if v == nil {
return nil
}
return v.Unit
}).(pulumi.StringPtrOutput)
}
type ScalingPlanScalingInstructionPredefinedLoadMetricSpecification struct {
// Metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`.
PredefinedLoadMetricType string `pulumi:"predefinedLoadMetricType"`
// Identifies the resource associated with the metric type.
ResourceLabel *string `pulumi:"resourceLabel"`
}
// ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationInput is an input type that accepts ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs and ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationInput` via:
//
// ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs{...}
type ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationInput interface {
pulumi.Input
ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput
ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutputWithContext(context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput
}
type ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs struct {
// Metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`.
PredefinedLoadMetricType pulumi.StringInput `pulumi:"predefinedLoadMetricType"`
// Identifies the resource associated with the metric type.
ResourceLabel pulumi.StringPtrInput `pulumi:"resourceLabel"`
}
func (ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstructionPredefinedLoadMetricSpecification)(nil)).Elem()
}
func (i ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput {
return i.ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput)
}
func (i ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return i.ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput).ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(ctx)
}
// ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrInput is an input type that accepts ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs, ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtr and ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrInput` via:
//
// ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs{...}
//
// or:
//
// nil
type ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrInput interface {
pulumi.Input
ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput
ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput
}
type scalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrType ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs
func ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtr(v *ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationArgs) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrInput {
return (*scalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrType)(v)
}
func (*scalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ScalingPlanScalingInstructionPredefinedLoadMetricSpecification)(nil)).Elem()
}
func (i *scalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrType) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return i.ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(context.Background())
}
func (i *scalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrType) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput)
}
type ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstructionPredefinedLoadMetricSpecification)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput {
return o
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput {
return o
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return o.ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(context.Background())
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ScalingPlanScalingInstructionPredefinedLoadMetricSpecification) *ScalingPlanScalingInstructionPredefinedLoadMetricSpecification {
return &v
}).(ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput)
}
// Metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`.
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) PredefinedLoadMetricType() pulumi.StringOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionPredefinedLoadMetricSpecification) string {
return v.PredefinedLoadMetricType
}).(pulumi.StringOutput)
}
// Identifies the resource associated with the metric type.
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput) ResourceLabel() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionPredefinedLoadMetricSpecification) *string { return v.ResourceLabel }).(pulumi.StringPtrOutput)
}
type ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ScalingPlanScalingInstructionPredefinedLoadMetricSpecification)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return o
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput) ToScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput {
return o
}
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput) Elem() ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionPredefinedLoadMetricSpecification) ScalingPlanScalingInstructionPredefinedLoadMetricSpecification {
if v != nil {
return *v
}
var ret ScalingPlanScalingInstructionPredefinedLoadMetricSpecification
return ret
}).(ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationOutput)
}
// Metric type. Valid values: `ALBTargetGroupRequestCount`, `ASGTotalCPUUtilization`, `ASGTotalNetworkIn`, `ASGTotalNetworkOut`.
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput) PredefinedLoadMetricType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionPredefinedLoadMetricSpecification) *string {
if v == nil {
return nil
}
return &v.PredefinedLoadMetricType
}).(pulumi.StringPtrOutput)
}
// Identifies the resource associated with the metric type.
func (o ScalingPlanScalingInstructionPredefinedLoadMetricSpecificationPtrOutput) ResourceLabel() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScalingPlanScalingInstructionPredefinedLoadMetricSpecification) *string {
if v == nil {
return nil
}
return v.ResourceLabel
}).(pulumi.StringPtrOutput)
}
type ScalingPlanScalingInstructionTargetTrackingConfiguration struct {
// Customized metric. You can specify either `customizedScalingMetricSpecification` or `predefinedScalingMetricSpecification`.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedScalingMetricSpecification.html).
CustomizedScalingMetricSpecification *ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification `pulumi:"customizedScalingMetricSpecification"`
// Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to `false`.
DisableScaleIn *bool `pulumi:"disableScaleIn"`
// Estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
// This value is used only if the resource is an Auto Scaling group.
EstimatedInstanceWarmup *int `pulumi:"estimatedInstanceWarmup"`
// Predefined metric. You can specify either `predefinedScalingMetricSpecification` or `customizedScalingMetricSpecification`.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedScalingMetricSpecification.html).
PredefinedScalingMetricSpecification *ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecification `pulumi:"predefinedScalingMetricSpecification"`
// Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
// This value is not used if the scalable resource is an Auto Scaling group.
ScaleInCooldown *int `pulumi:"scaleInCooldown"`
// Amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.
// This value is not used if the scalable resource is an Auto Scaling group.
ScaleOutCooldown *int `pulumi:"scaleOutCooldown"`
// Target value for the metric.
TargetValue float64 `pulumi:"targetValue"`
}
// ScalingPlanScalingInstructionTargetTrackingConfigurationInput is an input type that accepts ScalingPlanScalingInstructionTargetTrackingConfigurationArgs and ScalingPlanScalingInstructionTargetTrackingConfigurationOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionTargetTrackingConfigurationInput` via:
//
// ScalingPlanScalingInstructionTargetTrackingConfigurationArgs{...}
type ScalingPlanScalingInstructionTargetTrackingConfigurationInput interface {
pulumi.Input
ToScalingPlanScalingInstructionTargetTrackingConfigurationOutput() ScalingPlanScalingInstructionTargetTrackingConfigurationOutput
ToScalingPlanScalingInstructionTargetTrackingConfigurationOutputWithContext(context.Context) ScalingPlanScalingInstructionTargetTrackingConfigurationOutput
}
type ScalingPlanScalingInstructionTargetTrackingConfigurationArgs struct {
// Customized metric. You can specify either `customizedScalingMetricSpecification` or `predefinedScalingMetricSpecification`.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedScalingMetricSpecification.html).
CustomizedScalingMetricSpecification ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationPtrInput `pulumi:"customizedScalingMetricSpecification"`
// Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to `false`.
DisableScaleIn pulumi.BoolPtrInput `pulumi:"disableScaleIn"`
// Estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
// This value is used only if the resource is an Auto Scaling group.
EstimatedInstanceWarmup pulumi.IntPtrInput `pulumi:"estimatedInstanceWarmup"`
// Predefined metric. You can specify either `predefinedScalingMetricSpecification` or `customizedScalingMetricSpecification`.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_PredefinedScalingMetricSpecification.html).
PredefinedScalingMetricSpecification ScalingPlanScalingInstructionTargetTrackingConfigurationPredefinedScalingMetricSpecificationPtrInput `pulumi:"predefinedScalingMetricSpecification"`
// Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
// This value is not used if the scalable resource is an Auto Scaling group.
ScaleInCooldown pulumi.IntPtrInput `pulumi:"scaleInCooldown"`
// Amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start.
// This value is not used if the scalable resource is an Auto Scaling group.
ScaleOutCooldown pulumi.IntPtrInput `pulumi:"scaleOutCooldown"`
// Target value for the metric.
TargetValue pulumi.Float64Input `pulumi:"targetValue"`
}
func (ScalingPlanScalingInstructionTargetTrackingConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstructionTargetTrackingConfiguration)(nil)).Elem()
}
func (i ScalingPlanScalingInstructionTargetTrackingConfigurationArgs) ToScalingPlanScalingInstructionTargetTrackingConfigurationOutput() ScalingPlanScalingInstructionTargetTrackingConfigurationOutput {
return i.ToScalingPlanScalingInstructionTargetTrackingConfigurationOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionTargetTrackingConfigurationArgs) ToScalingPlanScalingInstructionTargetTrackingConfigurationOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionTargetTrackingConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionTargetTrackingConfigurationOutput)
}
// ScalingPlanScalingInstructionTargetTrackingConfigurationArrayInput is an input type that accepts ScalingPlanScalingInstructionTargetTrackingConfigurationArray and ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput values.
// You can construct a concrete instance of `ScalingPlanScalingInstructionTargetTrackingConfigurationArrayInput` via:
//
// ScalingPlanScalingInstructionTargetTrackingConfigurationArray{ ScalingPlanScalingInstructionTargetTrackingConfigurationArgs{...} }
type ScalingPlanScalingInstructionTargetTrackingConfigurationArrayInput interface {
pulumi.Input
ToScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput() ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput
ToScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutputWithContext(context.Context) ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput
}
type ScalingPlanScalingInstructionTargetTrackingConfigurationArray []ScalingPlanScalingInstructionTargetTrackingConfigurationInput
func (ScalingPlanScalingInstructionTargetTrackingConfigurationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ScalingPlanScalingInstructionTargetTrackingConfiguration)(nil)).Elem()
}
func (i ScalingPlanScalingInstructionTargetTrackingConfigurationArray) ToScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput() ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput {
return i.ToScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutputWithContext(context.Background())
}
func (i ScalingPlanScalingInstructionTargetTrackingConfigurationArray) ToScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScalingPlanScalingInstructionTargetTrackingConfigurationArrayOutput)
}
type ScalingPlanScalingInstructionTargetTrackingConfigurationOutput struct{ *pulumi.OutputState }
func (ScalingPlanScalingInstructionTargetTrackingConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScalingPlanScalingInstructionTargetTrackingConfiguration)(nil)).Elem()
}
func (o ScalingPlanScalingInstructionTargetTrackingConfigurationOutput) ToScalingPlanScalingInstructionTargetTrackingConfigurationOutput() ScalingPlanScalingInstructionTargetTrackingConfigurationOutput {
return o
}
func (o ScalingPlanScalingInstructionTargetTrackingConfigurationOutput) ToScalingPlanScalingInstructionTargetTrackingConfigurationOutputWithContext(ctx context.Context) ScalingPlanScalingInstructionTargetTrackingConfigurationOutput {
return o
}
// Customized metric. You can specify either `customizedScalingMetricSpecification` or `predefinedScalingMetricSpecification`.
// More details can be found in the [AWS Auto Scaling API Reference](https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_CustomizedScalingMetricSpecification.html).
func (o ScalingPlanScalingInstructionTargetTrackingConfigurationOutput) CustomizedScalingMetricSpecification() ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionTargetTrackingConfiguration) *ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecification {
return v.CustomizedScalingMetricSpecification
}).(ScalingPlanScalingInstructionTargetTrackingConfigurationCustomizedScalingMetricSpecificationPtrOutput)
}
// Boolean indicating whether scale in by the target tracking scaling policy is disabled. Defaults to `false`.
func (o ScalingPlanScalingInstructionTargetTrackingConfigurationOutput) DisableScaleIn() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ScalingPlanScalingInstructionTargetTrackingConfiguration) *bool { return v.DisableScaleIn }).(pulumi.BoolPtrOutput)
}
// Estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
// This value is used only if the resource is an Auto Scaling group.