-
Notifications
You must be signed in to change notification settings - Fork 117
/
zz_autoscalinggroup_types.go
executable file
·1761 lines (1281 loc) · 95 KB
/
zz_autoscalinggroup_types.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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AcceleratorCountInitParameters struct {
// Maximum.
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type AcceleratorCountObservation struct {
// Maximum.
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type AcceleratorCountParameters struct {
// Maximum.
// +kubebuilder:validation:Optional
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
// +kubebuilder:validation:Optional
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type AcceleratorTotalMemoryMibInitParameters struct {
// Maximum.
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type AcceleratorTotalMemoryMibObservation struct {
// Maximum.
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type AcceleratorTotalMemoryMibParameters struct {
// Maximum.
// +kubebuilder:validation:Optional
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
// +kubebuilder:validation:Optional
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type AutoscalingGroupInitParameters struct {
// List of one or more availability zones for the group. Used for EC2-Classic, attaching a network interface via id from a launch template and default subnets when not specified with vpc_zone_identifier argument. Conflicts with vpc_zone_identifier.
// +listType=set
AvailabilityZones []*string `json:"availabilityZones,omitempty" tf:"availability_zones,omitempty"`
// Whether capacity rebalance is enabled. Otherwise, capacity rebalance is disabled.
CapacityRebalance *bool `json:"capacityRebalance,omitempty" tf:"capacity_rebalance,omitempty"`
// Reserved.
Context *string `json:"context,omitempty" tf:"context,omitempty"`
// Amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
DefaultCooldown *float64 `json:"defaultCooldown,omitempty" tf:"default_cooldown,omitempty"`
// Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. (See Set the default instance warmup for an Auto Scaling group)
DefaultInstanceWarmup *float64 `json:"defaultInstanceWarmup,omitempty" tf:"default_instance_warmup,omitempty"`
// Number of Amazon EC2 instances that
// should be running in the group. (See also Waiting for
// Capacity below.)
DesiredCapacity *float64 `json:"desiredCapacity,omitempty" tf:"desired_capacity,omitempty"`
// The unit of measurement for the value specified for desired_capacity. Supported for attribute-based instance type selection only. Valid values: "units", "vcpu", "memory-mib".
DesiredCapacityType *string `json:"desiredCapacityType,omitempty" tf:"desired_capacity_type,omitempty"`
// List of metrics to collect. The allowed values are defined by the underlying AWS API.
// +listType=set
EnabledMetrics []*string `json:"enabledMetrics,omitempty" tf:"enabled_metrics,omitempty"`
// Allows deleting the Auto Scaling Group without waiting
// for all instances in the pool to terminate. You can force an Auto Scaling Group to delete
// even if it's in the process of scaling a resource. This bypasses that
// behavior and potentially leaves resources dangling.
ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"`
// If this block is configured, add a Warm Pool
// to the specified Auto Scaling group. Defined below
ForceDeleteWarmPool *bool `json:"forceDeleteWarmPool,omitempty" tf:"force_delete_warm_pool,omitempty"`
// Time (in seconds) after instance comes into service before checking health.
HealthCheckGracePeriod *float64 `json:"healthCheckGracePeriod,omitempty" tf:"health_check_grace_period,omitempty"`
// "EC2" or "ELB". Controls how health checking is done.
HealthCheckType *string `json:"healthCheckType,omitempty" tf:"health_check_type,omitempty"`
// One or more
// Lifecycle Hooks
// to attach to the Auto Scaling Group before instances are launched. The
// syntax is exactly the same as the separate
// aws_autoscaling_lifecycle_hook
// resource, without the autoscaling_group_name attribute. Please note that this will only work when creating
// a new Auto Scaling Group. For all other use-cases, please use aws_autoscaling_lifecycle_hook resource.
InitialLifecycleHook []InitialLifecycleHookInitParameters `json:"initialLifecycleHook,omitempty" tf:"initial_lifecycle_hook,omitempty"`
// If this block is configured, start an
// Instance Refresh
// when this Auto Scaling Group is updated. Defined below.
InstanceRefresh []InstanceRefreshInitParameters `json:"instanceRefresh,omitempty" tf:"instance_refresh,omitempty"`
// Name of the launch configuration to use.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.LaunchConfiguration
LaunchConfiguration *string `json:"launchConfiguration,omitempty" tf:"launch_configuration,omitempty"`
// Reference to a LaunchConfiguration in autoscaling to populate launchConfiguration.
// +kubebuilder:validation:Optional
LaunchConfigurationRef *v1.Reference `json:"launchConfigurationRef,omitempty" tf:"-"`
// Selector for a LaunchConfiguration in autoscaling to populate launchConfiguration.
// +kubebuilder:validation:Optional
LaunchConfigurationSelector *v1.Selector `json:"launchConfigurationSelector,omitempty" tf:"-"`
// Nested argument with Launch template specification to use to launch instances. See Launch Template below for more details.
LaunchTemplate []LaunchTemplateInitParameters `json:"launchTemplate,omitempty" tf:"launch_template,omitempty"`
// Maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds.
MaxInstanceLifetime *float64 `json:"maxInstanceLifetime,omitempty" tf:"max_instance_lifetime,omitempty"`
// Maximum size of the Auto Scaling Group.
MaxSize *float64 `json:"maxSize,omitempty" tf:"max_size,omitempty"`
// Granularity to associate with the metrics to collect. The only valid value is 1Minute. Default is 1Minute.
MetricsGranularity *string `json:"metricsGranularity,omitempty" tf:"metrics_granularity,omitempty"`
// Updates will not wait on ELB instance number changes.
// (See also Waiting for Capacity below.)
MinELBCapacity *float64 `json:"minElbCapacity,omitempty" tf:"min_elb_capacity,omitempty"`
// Minimum size of the Auto Scaling Group.
// (See also Waiting for Capacity below.)
MinSize *float64 `json:"minSize,omitempty" tf:"min_size,omitempty"`
// Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details.
MixedInstancesPolicy []MixedInstancesPolicyInitParameters `json:"mixedInstancesPolicy,omitempty" tf:"mixed_instances_policy,omitempty"`
// Name of the placement group into which you'll launch your instances, if any.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.PlacementGroup
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
PlacementGroup *string `json:"placementGroup,omitempty" tf:"placement_group,omitempty"`
// Reference to a PlacementGroup in ec2 to populate placementGroup.
// +kubebuilder:validation:Optional
PlacementGroupRef *v1.Reference `json:"placementGroupRef,omitempty" tf:"-"`
// Selector for a PlacementGroup in ec2 to populate placementGroup.
// +kubebuilder:validation:Optional
PlacementGroupSelector *v1.Selector `json:"placementGroupSelector,omitempty" tf:"-"`
// in protection
// in the Amazon EC2 Auto Scaling User Guide.
ProtectFromScaleIn *bool `json:"protectFromScaleIn,omitempty" tf:"protect_from_scale_in,omitempty"`
// linked role that the ASG will use to call other AWS services
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
ServiceLinkedRoleArn *string `json:"serviceLinkedRoleArn,omitempty" tf:"service_linked_role_arn,omitempty"`
// Reference to a Role in iam to populate serviceLinkedRoleArn.
// +kubebuilder:validation:Optional
ServiceLinkedRoleArnRef *v1.Reference `json:"serviceLinkedRoleArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate serviceLinkedRoleArn.
// +kubebuilder:validation:Optional
ServiceLinkedRoleArnSelector *v1.Selector `json:"serviceLinkedRoleArnSelector,omitempty" tf:"-"`
// List of processes to suspend for the Auto Scaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer, InstanceRefresh.
// Note that if you suspend either the Launch or Terminate process types, it can prevent your Auto Scaling Group from functioning properly.
// +listType=set
SuspendedProcesses []*string `json:"suspendedProcesses,omitempty" tf:"suspended_processes,omitempty"`
// Configuration block(s) containing resource tags. Conflicts with tags. See Tag below for more details.
Tag []TagInitParameters `json:"tag,omitempty" tf:"tag,omitempty"`
// Key-value map of resource tags.
Tags []map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// List of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy, Default. Additionally, the ARN of a Lambda function can be specified for custom termination policies.
TerminationPolicies []*string `json:"terminationPolicies,omitempty" tf:"termination_policies,omitempty"`
// List of subnet IDs to launch resources in. Subnets automatically determine which availability zones the group will reside. Conflicts with availability_zones.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet
// +listType=set
VPCZoneIdentifier []*string `json:"vpcZoneIdentifier,omitempty" tf:"vpc_zone_identifier,omitempty"`
// References to Subnet in ec2 to populate vpcZoneIdentifier.
// +kubebuilder:validation:Optional
VPCZoneIdentifierRefs []v1.Reference `json:"vpcZoneIdentifierRefs,omitempty" tf:"-"`
// Selector for a list of Subnet in ec2 to populate vpcZoneIdentifier.
// +kubebuilder:validation:Optional
VPCZoneIdentifierSelector *v1.Selector `json:"vpcZoneIdentifierSelector,omitempty" tf:"-"`
// (See also Waiting
// for Capacity below.
WaitForCapacityTimeout *string `json:"waitForCapacityTimeout,omitempty" tf:"wait_for_capacity_timeout,omitempty"`
// (Takes
// precedence over min_elb_capacity behavior.)
// (See also Waiting for Capacity below.)
WaitForELBCapacity *float64 `json:"waitForElbCapacity,omitempty" tf:"wait_for_elb_capacity,omitempty"`
// If this block is configured, add a Warm Pool
// to the specified Auto Scaling group. Defined below
WarmPool []WarmPoolInitParameters `json:"warmPool,omitempty" tf:"warm_pool,omitempty"`
}
type AutoscalingGroupObservation struct {
// ARN for this Auto Scaling Group
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// List of one or more availability zones for the group. Used for EC2-Classic, attaching a network interface via id from a launch template and default subnets when not specified with vpc_zone_identifier argument. Conflicts with vpc_zone_identifier.
// +listType=set
AvailabilityZones []*string `json:"availabilityZones,omitempty" tf:"availability_zones,omitempty"`
// Whether capacity rebalance is enabled. Otherwise, capacity rebalance is disabled.
CapacityRebalance *bool `json:"capacityRebalance,omitempty" tf:"capacity_rebalance,omitempty"`
// Reserved.
Context *string `json:"context,omitempty" tf:"context,omitempty"`
// Amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
DefaultCooldown *float64 `json:"defaultCooldown,omitempty" tf:"default_cooldown,omitempty"`
// Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. (See Set the default instance warmup for an Auto Scaling group)
DefaultInstanceWarmup *float64 `json:"defaultInstanceWarmup,omitempty" tf:"default_instance_warmup,omitempty"`
// Number of Amazon EC2 instances that
// should be running in the group. (See also Waiting for
// Capacity below.)
DesiredCapacity *float64 `json:"desiredCapacity,omitempty" tf:"desired_capacity,omitempty"`
// The unit of measurement for the value specified for desired_capacity. Supported for attribute-based instance type selection only. Valid values: "units", "vcpu", "memory-mib".
DesiredCapacityType *string `json:"desiredCapacityType,omitempty" tf:"desired_capacity_type,omitempty"`
// List of metrics to collect. The allowed values are defined by the underlying AWS API.
// +listType=set
EnabledMetrics []*string `json:"enabledMetrics,omitempty" tf:"enabled_metrics,omitempty"`
// Allows deleting the Auto Scaling Group without waiting
// for all instances in the pool to terminate. You can force an Auto Scaling Group to delete
// even if it's in the process of scaling a resource. This bypasses that
// behavior and potentially leaves resources dangling.
ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"`
// If this block is configured, add a Warm Pool
// to the specified Auto Scaling group. Defined below
ForceDeleteWarmPool *bool `json:"forceDeleteWarmPool,omitempty" tf:"force_delete_warm_pool,omitempty"`
// Time (in seconds) after instance comes into service before checking health.
HealthCheckGracePeriod *float64 `json:"healthCheckGracePeriod,omitempty" tf:"health_check_grace_period,omitempty"`
// "EC2" or "ELB". Controls how health checking is done.
HealthCheckType *string `json:"healthCheckType,omitempty" tf:"health_check_type,omitempty"`
// Auto Scaling Group id.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// One or more
// Lifecycle Hooks
// to attach to the Auto Scaling Group before instances are launched. The
// syntax is exactly the same as the separate
// aws_autoscaling_lifecycle_hook
// resource, without the autoscaling_group_name attribute. Please note that this will only work when creating
// a new Auto Scaling Group. For all other use-cases, please use aws_autoscaling_lifecycle_hook resource.
InitialLifecycleHook []InitialLifecycleHookObservation `json:"initialLifecycleHook,omitempty" tf:"initial_lifecycle_hook,omitempty"`
// If this block is configured, start an
// Instance Refresh
// when this Auto Scaling Group is updated. Defined below.
InstanceRefresh []InstanceRefreshObservation `json:"instanceRefresh,omitempty" tf:"instance_refresh,omitempty"`
// Name of the launch configuration to use.
LaunchConfiguration *string `json:"launchConfiguration,omitempty" tf:"launch_configuration,omitempty"`
// Nested argument with Launch template specification to use to launch instances. See Launch Template below for more details.
LaunchTemplate []LaunchTemplateObservation `json:"launchTemplate,omitempty" tf:"launch_template,omitempty"`
// List of elastic load balancer names to add to the autoscaling
// group names. Only valid for classic load balancers. For ALBs, use target_group_arns instead.
// +listType=set
LoadBalancers []*string `json:"loadBalancers,omitempty" tf:"load_balancers,omitempty"`
// Maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds.
MaxInstanceLifetime *float64 `json:"maxInstanceLifetime,omitempty" tf:"max_instance_lifetime,omitempty"`
// Maximum size of the Auto Scaling Group.
MaxSize *float64 `json:"maxSize,omitempty" tf:"max_size,omitempty"`
// Granularity to associate with the metrics to collect. The only valid value is 1Minute. Default is 1Minute.
MetricsGranularity *string `json:"metricsGranularity,omitempty" tf:"metrics_granularity,omitempty"`
// Updates will not wait on ELB instance number changes.
// (See also Waiting for Capacity below.)
MinELBCapacity *float64 `json:"minElbCapacity,omitempty" tf:"min_elb_capacity,omitempty"`
// Minimum size of the Auto Scaling Group.
// (See also Waiting for Capacity below.)
MinSize *float64 `json:"minSize,omitempty" tf:"min_size,omitempty"`
// Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details.
MixedInstancesPolicy []MixedInstancesPolicyObservation `json:"mixedInstancesPolicy,omitempty" tf:"mixed_instances_policy,omitempty"`
// Name of the placement group into which you'll launch your instances, if any.
PlacementGroup *string `json:"placementGroup,omitempty" tf:"placement_group,omitempty"`
// Predicted capacity of the group.
PredictedCapacity *float64 `json:"predictedCapacity,omitempty" tf:"predicted_capacity,omitempty"`
// in protection
// in the Amazon EC2 Auto Scaling User Guide.
ProtectFromScaleIn *bool `json:"protectFromScaleIn,omitempty" tf:"protect_from_scale_in,omitempty"`
// linked role that the ASG will use to call other AWS services
ServiceLinkedRoleArn *string `json:"serviceLinkedRoleArn,omitempty" tf:"service_linked_role_arn,omitempty"`
// List of processes to suspend for the Auto Scaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer, InstanceRefresh.
// Note that if you suspend either the Launch or Terminate process types, it can prevent your Auto Scaling Group from functioning properly.
// +listType=set
SuspendedProcesses []*string `json:"suspendedProcesses,omitempty" tf:"suspended_processes,omitempty"`
// Configuration block(s) containing resource tags. Conflicts with tags. See Tag below for more details.
Tag []TagObservation `json:"tag,omitempty" tf:"tag,omitempty"`
// Key-value map of resource tags.
Tags []map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Set of aws_alb_target_group ARNs, for use with Application or Network Load Balancing.
// +listType=set
TargetGroupArns []*string `json:"targetGroupArns,omitempty" tf:"target_group_arns,omitempty"`
// List of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy, Default. Additionally, the ARN of a Lambda function can be specified for custom termination policies.
TerminationPolicies []*string `json:"terminationPolicies,omitempty" tf:"termination_policies,omitempty"`
// List of subnet IDs to launch resources in. Subnets automatically determine which availability zones the group will reside. Conflicts with availability_zones.
// +listType=set
VPCZoneIdentifier []*string `json:"vpcZoneIdentifier,omitempty" tf:"vpc_zone_identifier,omitempty"`
// (See also Waiting
// for Capacity below.
WaitForCapacityTimeout *string `json:"waitForCapacityTimeout,omitempty" tf:"wait_for_capacity_timeout,omitempty"`
// (Takes
// precedence over min_elb_capacity behavior.)
// (See also Waiting for Capacity below.)
WaitForELBCapacity *float64 `json:"waitForElbCapacity,omitempty" tf:"wait_for_elb_capacity,omitempty"`
// If this block is configured, add a Warm Pool
// to the specified Auto Scaling group. Defined below
WarmPool []WarmPoolObservation `json:"warmPool,omitempty" tf:"warm_pool,omitempty"`
// Current size of the warm pool.
WarmPoolSize *float64 `json:"warmPoolSize,omitempty" tf:"warm_pool_size,omitempty"`
}
type AutoscalingGroupParameters struct {
// List of one or more availability zones for the group. Used for EC2-Classic, attaching a network interface via id from a launch template and default subnets when not specified with vpc_zone_identifier argument. Conflicts with vpc_zone_identifier.
// +kubebuilder:validation:Optional
// +listType=set
AvailabilityZones []*string `json:"availabilityZones,omitempty" tf:"availability_zones,omitempty"`
// Whether capacity rebalance is enabled. Otherwise, capacity rebalance is disabled.
// +kubebuilder:validation:Optional
CapacityRebalance *bool `json:"capacityRebalance,omitempty" tf:"capacity_rebalance,omitempty"`
// Reserved.
// +kubebuilder:validation:Optional
Context *string `json:"context,omitempty" tf:"context,omitempty"`
// Amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
// +kubebuilder:validation:Optional
DefaultCooldown *float64 `json:"defaultCooldown,omitempty" tf:"default_cooldown,omitempty"`
// Amount of time, in seconds, until a newly launched instance can contribute to the Amazon CloudWatch metrics. This delay lets an instance finish initializing before Amazon EC2 Auto Scaling aggregates instance metrics, resulting in more reliable usage data. Set this value equal to the amount of time that it takes for resource consumption to become stable after an instance reaches the InService state. (See Set the default instance warmup for an Auto Scaling group)
// +kubebuilder:validation:Optional
DefaultInstanceWarmup *float64 `json:"defaultInstanceWarmup,omitempty" tf:"default_instance_warmup,omitempty"`
// Number of Amazon EC2 instances that
// should be running in the group. (See also Waiting for
// Capacity below.)
// +kubebuilder:validation:Optional
DesiredCapacity *float64 `json:"desiredCapacity,omitempty" tf:"desired_capacity,omitempty"`
// The unit of measurement for the value specified for desired_capacity. Supported for attribute-based instance type selection only. Valid values: "units", "vcpu", "memory-mib".
// +kubebuilder:validation:Optional
DesiredCapacityType *string `json:"desiredCapacityType,omitempty" tf:"desired_capacity_type,omitempty"`
// List of metrics to collect. The allowed values are defined by the underlying AWS API.
// +kubebuilder:validation:Optional
// +listType=set
EnabledMetrics []*string `json:"enabledMetrics,omitempty" tf:"enabled_metrics,omitempty"`
// Allows deleting the Auto Scaling Group without waiting
// for all instances in the pool to terminate. You can force an Auto Scaling Group to delete
// even if it's in the process of scaling a resource. This bypasses that
// behavior and potentially leaves resources dangling.
// +kubebuilder:validation:Optional
ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete,omitempty"`
// If this block is configured, add a Warm Pool
// to the specified Auto Scaling group. Defined below
// +kubebuilder:validation:Optional
ForceDeleteWarmPool *bool `json:"forceDeleteWarmPool,omitempty" tf:"force_delete_warm_pool,omitempty"`
// Time (in seconds) after instance comes into service before checking health.
// +kubebuilder:validation:Optional
HealthCheckGracePeriod *float64 `json:"healthCheckGracePeriod,omitempty" tf:"health_check_grace_period,omitempty"`
// "EC2" or "ELB". Controls how health checking is done.
// +kubebuilder:validation:Optional
HealthCheckType *string `json:"healthCheckType,omitempty" tf:"health_check_type,omitempty"`
// One or more
// Lifecycle Hooks
// to attach to the Auto Scaling Group before instances are launched. The
// syntax is exactly the same as the separate
// aws_autoscaling_lifecycle_hook
// resource, without the autoscaling_group_name attribute. Please note that this will only work when creating
// a new Auto Scaling Group. For all other use-cases, please use aws_autoscaling_lifecycle_hook resource.
// +kubebuilder:validation:Optional
InitialLifecycleHook []InitialLifecycleHookParameters `json:"initialLifecycleHook,omitempty" tf:"initial_lifecycle_hook,omitempty"`
// If this block is configured, start an
// Instance Refresh
// when this Auto Scaling Group is updated. Defined below.
// +kubebuilder:validation:Optional
InstanceRefresh []InstanceRefreshParameters `json:"instanceRefresh,omitempty" tf:"instance_refresh,omitempty"`
// Name of the launch configuration to use.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/autoscaling/v1beta1.LaunchConfiguration
// +kubebuilder:validation:Optional
LaunchConfiguration *string `json:"launchConfiguration,omitempty" tf:"launch_configuration,omitempty"`
// Reference to a LaunchConfiguration in autoscaling to populate launchConfiguration.
// +kubebuilder:validation:Optional
LaunchConfigurationRef *v1.Reference `json:"launchConfigurationRef,omitempty" tf:"-"`
// Selector for a LaunchConfiguration in autoscaling to populate launchConfiguration.
// +kubebuilder:validation:Optional
LaunchConfigurationSelector *v1.Selector `json:"launchConfigurationSelector,omitempty" tf:"-"`
// Nested argument with Launch template specification to use to launch instances. See Launch Template below for more details.
// +kubebuilder:validation:Optional
LaunchTemplate []LaunchTemplateParameters `json:"launchTemplate,omitempty" tf:"launch_template,omitempty"`
// Maximum amount of time, in seconds, that an instance can be in service, values must be either equal to 0 or between 86400 and 31536000 seconds.
// +kubebuilder:validation:Optional
MaxInstanceLifetime *float64 `json:"maxInstanceLifetime,omitempty" tf:"max_instance_lifetime,omitempty"`
// Maximum size of the Auto Scaling Group.
// +kubebuilder:validation:Optional
MaxSize *float64 `json:"maxSize,omitempty" tf:"max_size,omitempty"`
// Granularity to associate with the metrics to collect. The only valid value is 1Minute. Default is 1Minute.
// +kubebuilder:validation:Optional
MetricsGranularity *string `json:"metricsGranularity,omitempty" tf:"metrics_granularity,omitempty"`
// Updates will not wait on ELB instance number changes.
// (See also Waiting for Capacity below.)
// +kubebuilder:validation:Optional
MinELBCapacity *float64 `json:"minElbCapacity,omitempty" tf:"min_elb_capacity,omitempty"`
// Minimum size of the Auto Scaling Group.
// (See also Waiting for Capacity below.)
// +kubebuilder:validation:Optional
MinSize *float64 `json:"minSize,omitempty" tf:"min_size,omitempty"`
// Configuration block containing settings to define launch targets for Auto Scaling groups. See Mixed Instances Policy below for more details.
// +kubebuilder:validation:Optional
MixedInstancesPolicy []MixedInstancesPolicyParameters `json:"mixedInstancesPolicy,omitempty" tf:"mixed_instances_policy,omitempty"`
// Name of the placement group into which you'll launch your instances, if any.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.PlacementGroup
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
PlacementGroup *string `json:"placementGroup,omitempty" tf:"placement_group,omitempty"`
// Reference to a PlacementGroup in ec2 to populate placementGroup.
// +kubebuilder:validation:Optional
PlacementGroupRef *v1.Reference `json:"placementGroupRef,omitempty" tf:"-"`
// Selector for a PlacementGroup in ec2 to populate placementGroup.
// +kubebuilder:validation:Optional
PlacementGroupSelector *v1.Selector `json:"placementGroupSelector,omitempty" tf:"-"`
// in protection
// in the Amazon EC2 Auto Scaling User Guide.
// +kubebuilder:validation:Optional
ProtectFromScaleIn *bool `json:"protectFromScaleIn,omitempty" tf:"protect_from_scale_in,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// linked role that the ASG will use to call other AWS services
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
ServiceLinkedRoleArn *string `json:"serviceLinkedRoleArn,omitempty" tf:"service_linked_role_arn,omitempty"`
// Reference to a Role in iam to populate serviceLinkedRoleArn.
// +kubebuilder:validation:Optional
ServiceLinkedRoleArnRef *v1.Reference `json:"serviceLinkedRoleArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate serviceLinkedRoleArn.
// +kubebuilder:validation:Optional
ServiceLinkedRoleArnSelector *v1.Selector `json:"serviceLinkedRoleArnSelector,omitempty" tf:"-"`
// List of processes to suspend for the Auto Scaling Group. The allowed values are Launch, Terminate, HealthCheck, ReplaceUnhealthy, AZRebalance, AlarmNotification, ScheduledActions, AddToLoadBalancer, InstanceRefresh.
// Note that if you suspend either the Launch or Terminate process types, it can prevent your Auto Scaling Group from functioning properly.
// +kubebuilder:validation:Optional
// +listType=set
SuspendedProcesses []*string `json:"suspendedProcesses,omitempty" tf:"suspended_processes,omitempty"`
// Configuration block(s) containing resource tags. Conflicts with tags. See Tag below for more details.
// +kubebuilder:validation:Optional
Tag []TagParameters `json:"tag,omitempty" tf:"tag,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags []map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// List of policies to decide how the instances in the Auto Scaling Group should be terminated. The allowed values are OldestInstance, NewestInstance, OldestLaunchConfiguration, ClosestToNextInstanceHour, OldestLaunchTemplate, AllocationStrategy, Default. Additionally, the ARN of a Lambda function can be specified for custom termination policies.
// +kubebuilder:validation:Optional
TerminationPolicies []*string `json:"terminationPolicies,omitempty" tf:"termination_policies,omitempty"`
// List of subnet IDs to launch resources in. Subnets automatically determine which availability zones the group will reside. Conflicts with availability_zones.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet
// +kubebuilder:validation:Optional
// +listType=set
VPCZoneIdentifier []*string `json:"vpcZoneIdentifier,omitempty" tf:"vpc_zone_identifier,omitempty"`
// References to Subnet in ec2 to populate vpcZoneIdentifier.
// +kubebuilder:validation:Optional
VPCZoneIdentifierRefs []v1.Reference `json:"vpcZoneIdentifierRefs,omitempty" tf:"-"`
// Selector for a list of Subnet in ec2 to populate vpcZoneIdentifier.
// +kubebuilder:validation:Optional
VPCZoneIdentifierSelector *v1.Selector `json:"vpcZoneIdentifierSelector,omitempty" tf:"-"`
// (See also Waiting
// for Capacity below.
// +kubebuilder:validation:Optional
WaitForCapacityTimeout *string `json:"waitForCapacityTimeout,omitempty" tf:"wait_for_capacity_timeout,omitempty"`
// (Takes
// precedence over min_elb_capacity behavior.)
// (See also Waiting for Capacity below.)
// +kubebuilder:validation:Optional
WaitForELBCapacity *float64 `json:"waitForElbCapacity,omitempty" tf:"wait_for_elb_capacity,omitempty"`
// If this block is configured, add a Warm Pool
// to the specified Auto Scaling group. Defined below
// +kubebuilder:validation:Optional
WarmPool []WarmPoolParameters `json:"warmPool,omitempty" tf:"warm_pool,omitempty"`
}
type BaselineEBSBandwidthMbpsInitParameters struct {
// Maximum.
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type BaselineEBSBandwidthMbpsObservation struct {
// Maximum.
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type BaselineEBSBandwidthMbpsParameters struct {
// Maximum.
// +kubebuilder:validation:Optional
Max *float64 `json:"max,omitempty" tf:"max,omitempty"`
// Minimum.
// +kubebuilder:validation:Optional
Min *float64 `json:"min,omitempty" tf:"min,omitempty"`
}
type InitialLifecycleHookInitParameters struct {
DefaultResult *string `json:"defaultResult,omitempty" tf:"default_result,omitempty"`
HeartbeatTimeout *float64 `json:"heartbeatTimeout,omitempty" tf:"heartbeat_timeout,omitempty"`
LifecycleTransition *string `json:"lifecycleTransition,omitempty" tf:"lifecycle_transition,omitempty"`
// Name of the Auto Scaling Group. Conflicts with name_prefix.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
NotificationMetadata *string `json:"notificationMetadata,omitempty" tf:"notification_metadata,omitempty"`
// ARN for this Auto Scaling Group
NotificationTargetArn *string `json:"notificationTargetArn,omitempty" tf:"notification_target_arn,omitempty"`
// ARN for this Auto Scaling Group
RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"`
}
type InitialLifecycleHookObservation struct {
DefaultResult *string `json:"defaultResult,omitempty" tf:"default_result,omitempty"`
HeartbeatTimeout *float64 `json:"heartbeatTimeout,omitempty" tf:"heartbeat_timeout,omitempty"`
LifecycleTransition *string `json:"lifecycleTransition,omitempty" tf:"lifecycle_transition,omitempty"`
// Name of the Auto Scaling Group. Conflicts with name_prefix.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
NotificationMetadata *string `json:"notificationMetadata,omitempty" tf:"notification_metadata,omitempty"`
// ARN for this Auto Scaling Group
NotificationTargetArn *string `json:"notificationTargetArn,omitempty" tf:"notification_target_arn,omitempty"`
// ARN for this Auto Scaling Group
RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"`
}
type InitialLifecycleHookParameters struct {
// +kubebuilder:validation:Optional
DefaultResult *string `json:"defaultResult,omitempty" tf:"default_result,omitempty"`
// +kubebuilder:validation:Optional
HeartbeatTimeout *float64 `json:"heartbeatTimeout,omitempty" tf:"heartbeat_timeout,omitempty"`
// +kubebuilder:validation:Optional
LifecycleTransition *string `json:"lifecycleTransition" tf:"lifecycle_transition,omitempty"`
// Name of the Auto Scaling Group. Conflicts with name_prefix.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// +kubebuilder:validation:Optional
NotificationMetadata *string `json:"notificationMetadata,omitempty" tf:"notification_metadata,omitempty"`
// ARN for this Auto Scaling Group
// +kubebuilder:validation:Optional
NotificationTargetArn *string `json:"notificationTargetArn,omitempty" tf:"notification_target_arn,omitempty"`
// ARN for this Auto Scaling Group
// +kubebuilder:validation:Optional
RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"`
}
type InstanceRefreshInitParameters struct {
// Override default parameters for Instance Refresh.
Preferences []PreferencesInitParameters `json:"preferences,omitempty" tf:"preferences,omitempty"`
// Strategy to use for instance refresh. The only allowed value is Rolling. See StartInstanceRefresh Action for more information.
Strategy *string `json:"strategy,omitempty" tf:"strategy,omitempty"`
// Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy.
// +listType=set
Triggers []*string `json:"triggers,omitempty" tf:"triggers,omitempty"`
}
type InstanceRefreshObservation struct {
// Override default parameters for Instance Refresh.
Preferences []PreferencesObservation `json:"preferences,omitempty" tf:"preferences,omitempty"`
// Strategy to use for instance refresh. The only allowed value is Rolling. See StartInstanceRefresh Action for more information.
Strategy *string `json:"strategy,omitempty" tf:"strategy,omitempty"`
// Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy.
// +listType=set
Triggers []*string `json:"triggers,omitempty" tf:"triggers,omitempty"`
}
type InstanceRefreshParameters struct {
// Override default parameters for Instance Refresh.
// +kubebuilder:validation:Optional
Preferences []PreferencesParameters `json:"preferences,omitempty" tf:"preferences,omitempty"`
// Strategy to use for instance refresh. The only allowed value is Rolling. See StartInstanceRefresh Action for more information.
// +kubebuilder:validation:Optional
Strategy *string `json:"strategy" tf:"strategy,omitempty"`
// Set of additional property names that will trigger an Instance Refresh. A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy.
// +kubebuilder:validation:Optional
// +listType=set
Triggers []*string `json:"triggers,omitempty" tf:"triggers,omitempty"`
}
type InstanceRequirementsInitParameters struct {
// Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
AcceleratorCount []AcceleratorCountInitParameters `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// List of accelerator manufacturer names. Default is any manufacturer.
// +listType=set
AcceleratorManufacturers []*string `json:"acceleratorManufacturers,omitempty" tf:"accelerator_manufacturers,omitempty"`
// List of accelerator names. Default is any acclerator.
// +listType=set
AcceleratorNames []*string `json:"acceleratorNames,omitempty" tf:"accelerator_names,omitempty"`
// Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
AcceleratorTotalMemoryMib []AcceleratorTotalMemoryMibInitParameters `json:"acceleratorTotalMemoryMib,omitempty" tf:"accelerator_total_memory_mib,omitempty"`
// List of accelerator types. Default is any accelerator type.
// +listType=set
AcceleratorTypes []*string `json:"acceleratorTypes,omitempty" tf:"accelerator_types,omitempty"`
// List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types.
// +listType=set
AllowedInstanceTypes []*string `json:"allowedInstanceTypes,omitempty" tf:"allowed_instance_types,omitempty"`
// Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.
BareMetal *string `json:"bareMetal,omitempty" tf:"bare_metal,omitempty"`
// Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
BaselineEBSBandwidthMbps []BaselineEBSBandwidthMbpsInitParameters `json:"baselineEbsBandwidthMbps,omitempty" tf:"baseline_ebs_bandwidth_mbps,omitempty"`
// Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.
BurstablePerformance *string `json:"burstablePerformance,omitempty" tf:"burstable_performance,omitempty"`
// List of CPU manufacturer names. Default is any manufacturer.
// +listType=set
CPUManufacturers []*string `json:"cpuManufacturers,omitempty" tf:"cpu_manufacturers,omitempty"`
// List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.
// +listType=set
ExcludedInstanceTypes []*string `json:"excludedInstanceTypes,omitempty" tf:"excluded_instance_types,omitempty"`
// List of instance generation names. Default is any generation.
// +listType=set
InstanceGenerations []*string `json:"instanceGenerations,omitempty" tf:"instance_generations,omitempty"`
// Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
LocalStorage *string `json:"localStorage,omitempty" tf:"local_storage,omitempty"`
// List of local storage type names. Default any storage type.
// +listType=set
LocalStorageTypes []*string `json:"localStorageTypes,omitempty" tf:"local_storage_types,omitempty"`
// Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
MemoryGibPerVcpu []MemoryGibPerVcpuInitParameters `json:"memoryGibPerVcpu,omitempty" tf:"memory_gib_per_vcpu,omitempty"`
// Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
MemoryMib []MemoryMibInitParameters `json:"memoryMib,omitempty" tf:"memory_mib,omitempty"`
// Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
NetworkBandwidthGbps []NetworkBandwidthGbpsInitParameters `json:"networkBandwidthGbps,omitempty" tf:"network_bandwidth_gbps,omitempty"`
// Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
NetworkInterfaceCount []NetworkInterfaceCountInitParameters `json:"networkInterfaceCount,omitempty" tf:"network_interface_count,omitempty"`
// Price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
OnDemandMaxPricePercentageOverLowestPrice *float64 `json:"onDemandMaxPricePercentageOverLowestPrice,omitempty" tf:"on_demand_max_price_percentage_over_lowest_price,omitempty"`
// Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
RequireHibernateSupport *bool `json:"requireHibernateSupport,omitempty" tf:"require_hibernate_support,omitempty"`
// Price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.
SpotMaxPricePercentageOverLowestPrice *float64 `json:"spotMaxPricePercentageOverLowestPrice,omitempty" tf:"spot_max_price_percentage_over_lowest_price,omitempty"`
// Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
TotalLocalStorageGb []TotalLocalStorageGbInitParameters `json:"totalLocalStorageGb,omitempty" tf:"total_local_storage_gb,omitempty"`
// Block describing the minimum and maximum number of vCPUs. Default is no maximum.
VcpuCount []VcpuCountInitParameters `json:"vcpuCount,omitempty" tf:"vcpu_count,omitempty"`
}
type InstanceRequirementsObservation struct {
// Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
AcceleratorCount []AcceleratorCountObservation `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// List of accelerator manufacturer names. Default is any manufacturer.
// +listType=set
AcceleratorManufacturers []*string `json:"acceleratorManufacturers,omitempty" tf:"accelerator_manufacturers,omitempty"`
// List of accelerator names. Default is any acclerator.
// +listType=set
AcceleratorNames []*string `json:"acceleratorNames,omitempty" tf:"accelerator_names,omitempty"`
// Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
AcceleratorTotalMemoryMib []AcceleratorTotalMemoryMibObservation `json:"acceleratorTotalMemoryMib,omitempty" tf:"accelerator_total_memory_mib,omitempty"`
// List of accelerator types. Default is any accelerator type.
// +listType=set
AcceleratorTypes []*string `json:"acceleratorTypes,omitempty" tf:"accelerator_types,omitempty"`
// List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types.
// +listType=set
AllowedInstanceTypes []*string `json:"allowedInstanceTypes,omitempty" tf:"allowed_instance_types,omitempty"`
// Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.
BareMetal *string `json:"bareMetal,omitempty" tf:"bare_metal,omitempty"`
// Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
BaselineEBSBandwidthMbps []BaselineEBSBandwidthMbpsObservation `json:"baselineEbsBandwidthMbps,omitempty" tf:"baseline_ebs_bandwidth_mbps,omitempty"`
// Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.
BurstablePerformance *string `json:"burstablePerformance,omitempty" tf:"burstable_performance,omitempty"`
// List of CPU manufacturer names. Default is any manufacturer.
// +listType=set
CPUManufacturers []*string `json:"cpuManufacturers,omitempty" tf:"cpu_manufacturers,omitempty"`
// List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.
// +listType=set
ExcludedInstanceTypes []*string `json:"excludedInstanceTypes,omitempty" tf:"excluded_instance_types,omitempty"`
// List of instance generation names. Default is any generation.
// +listType=set
InstanceGenerations []*string `json:"instanceGenerations,omitempty" tf:"instance_generations,omitempty"`
// Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
LocalStorage *string `json:"localStorage,omitempty" tf:"local_storage,omitempty"`
// List of local storage type names. Default any storage type.
// +listType=set
LocalStorageTypes []*string `json:"localStorageTypes,omitempty" tf:"local_storage_types,omitempty"`
// Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
MemoryGibPerVcpu []MemoryGibPerVcpuObservation `json:"memoryGibPerVcpu,omitempty" tf:"memory_gib_per_vcpu,omitempty"`
// Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
MemoryMib []MemoryMibObservation `json:"memoryMib,omitempty" tf:"memory_mib,omitempty"`
// Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
NetworkBandwidthGbps []NetworkBandwidthGbpsObservation `json:"networkBandwidthGbps,omitempty" tf:"network_bandwidth_gbps,omitempty"`
// Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
NetworkInterfaceCount []NetworkInterfaceCountObservation `json:"networkInterfaceCount,omitempty" tf:"network_interface_count,omitempty"`
// Price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
OnDemandMaxPricePercentageOverLowestPrice *float64 `json:"onDemandMaxPricePercentageOverLowestPrice,omitempty" tf:"on_demand_max_price_percentage_over_lowest_price,omitempty"`
// Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
RequireHibernateSupport *bool `json:"requireHibernateSupport,omitempty" tf:"require_hibernate_support,omitempty"`
// Price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.
SpotMaxPricePercentageOverLowestPrice *float64 `json:"spotMaxPricePercentageOverLowestPrice,omitempty" tf:"spot_max_price_percentage_over_lowest_price,omitempty"`
// Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
TotalLocalStorageGb []TotalLocalStorageGbObservation `json:"totalLocalStorageGb,omitempty" tf:"total_local_storage_gb,omitempty"`
// Block describing the minimum and maximum number of vCPUs. Default is no maximum.
VcpuCount []VcpuCountObservation `json:"vcpuCount,omitempty" tf:"vcpu_count,omitempty"`
}
type InstanceRequirementsParameters struct {
// Block describing the minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips). Default is no minimum or maximum.
// +kubebuilder:validation:Optional
AcceleratorCount []AcceleratorCountParameters `json:"acceleratorCount,omitempty" tf:"accelerator_count,omitempty"`
// List of accelerator manufacturer names. Default is any manufacturer.
// +kubebuilder:validation:Optional
// +listType=set
AcceleratorManufacturers []*string `json:"acceleratorManufacturers,omitempty" tf:"accelerator_manufacturers,omitempty"`
// List of accelerator names. Default is any acclerator.
// +kubebuilder:validation:Optional
// +listType=set
AcceleratorNames []*string `json:"acceleratorNames,omitempty" tf:"accelerator_names,omitempty"`
// Block describing the minimum and maximum total memory of the accelerators. Default is no minimum or maximum.
// +kubebuilder:validation:Optional
AcceleratorTotalMemoryMib []AcceleratorTotalMemoryMibParameters `json:"acceleratorTotalMemoryMib,omitempty" tf:"accelerator_total_memory_mib,omitempty"`
// List of accelerator types. Default is any accelerator type.
// +kubebuilder:validation:Optional
// +listType=set
AcceleratorTypes []*string `json:"acceleratorTypes,omitempty" tf:"accelerator_types,omitempty"`
// List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types.
// +kubebuilder:validation:Optional
// +listType=set
AllowedInstanceTypes []*string `json:"allowedInstanceTypes,omitempty" tf:"allowed_instance_types,omitempty"`
// Indicate whether bare metal instace types should be included, excluded, or required. Default is excluded.
// +kubebuilder:validation:Optional
BareMetal *string `json:"bareMetal,omitempty" tf:"bare_metal,omitempty"`
// Block describing the minimum and maximum baseline EBS bandwidth, in Mbps. Default is no minimum or maximum.
// +kubebuilder:validation:Optional
BaselineEBSBandwidthMbps []BaselineEBSBandwidthMbpsParameters `json:"baselineEbsBandwidthMbps,omitempty" tf:"baseline_ebs_bandwidth_mbps,omitempty"`
// Indicate whether burstable performance instance types should be included, excluded, or required. Default is excluded.
// +kubebuilder:validation:Optional
BurstablePerformance *string `json:"burstablePerformance,omitempty" tf:"burstable_performance,omitempty"`
// List of CPU manufacturer names. Default is any manufacturer.
// +kubebuilder:validation:Optional
// +listType=set
CPUManufacturers []*string `json:"cpuManufacturers,omitempty" tf:"cpu_manufacturers,omitempty"`
// List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.
// +kubebuilder:validation:Optional
// +listType=set
ExcludedInstanceTypes []*string `json:"excludedInstanceTypes,omitempty" tf:"excluded_instance_types,omitempty"`
// List of instance generation names. Default is any generation.
// +kubebuilder:validation:Optional
// +listType=set
InstanceGenerations []*string `json:"instanceGenerations,omitempty" tf:"instance_generations,omitempty"`
// Indicate whether instance types with local storage volumes are included, excluded, or required. Default is included.
// +kubebuilder:validation:Optional
LocalStorage *string `json:"localStorage,omitempty" tf:"local_storage,omitempty"`
// List of local storage type names. Default any storage type.
// +kubebuilder:validation:Optional
// +listType=set
LocalStorageTypes []*string `json:"localStorageTypes,omitempty" tf:"local_storage_types,omitempty"`
// Block describing the minimum and maximum amount of memory (GiB) per vCPU. Default is no minimum or maximum.
// +kubebuilder:validation:Optional
MemoryGibPerVcpu []MemoryGibPerVcpuParameters `json:"memoryGibPerVcpu,omitempty" tf:"memory_gib_per_vcpu,omitempty"`
// Block describing the minimum and maximum amount of memory (MiB). Default is no maximum.
// +kubebuilder:validation:Optional
MemoryMib []MemoryMibParameters `json:"memoryMib,omitempty" tf:"memory_mib,omitempty"`
// Block describing the minimum and maximum amount of network bandwidth, in gigabits per second (Gbps). Default is no minimum or maximum.
// +kubebuilder:validation:Optional
NetworkBandwidthGbps []NetworkBandwidthGbpsParameters `json:"networkBandwidthGbps,omitempty" tf:"network_bandwidth_gbps,omitempty"`
// Block describing the minimum and maximum number of network interfaces. Default is no minimum or maximum.
// +kubebuilder:validation:Optional
NetworkInterfaceCount []NetworkInterfaceCountParameters `json:"networkInterfaceCount,omitempty" tf:"network_interface_count,omitempty"`
// Price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 20.
// +kubebuilder:validation:Optional
OnDemandMaxPricePercentageOverLowestPrice *float64 `json:"onDemandMaxPricePercentageOverLowestPrice,omitempty" tf:"on_demand_max_price_percentage_over_lowest_price,omitempty"`
// Indicate whether instance types must support On-Demand Instance Hibernation, either true or false. Default is false.
// +kubebuilder:validation:Optional
RequireHibernateSupport *bool `json:"requireHibernateSupport,omitempty" tf:"require_hibernate_support,omitempty"`
// Price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999. Default is 100.
// +kubebuilder:validation:Optional
SpotMaxPricePercentageOverLowestPrice *float64 `json:"spotMaxPricePercentageOverLowestPrice,omitempty" tf:"spot_max_price_percentage_over_lowest_price,omitempty"`
// Block describing the minimum and maximum total local storage (GB). Default is no minimum or maximum.
// +kubebuilder:validation:Optional
TotalLocalStorageGb []TotalLocalStorageGbParameters `json:"totalLocalStorageGb,omitempty" tf:"total_local_storage_gb,omitempty"`
// Block describing the minimum and maximum number of vCPUs. Default is no maximum.
// +kubebuilder:validation:Optional
VcpuCount []VcpuCountParameters `json:"vcpuCount,omitempty" tf:"vcpu_count,omitempty"`
}
type InstanceReusePolicyInitParameters struct {
// Whether instances in the Auto Scaling group can be returned to the warm pool on scale in.
ReuseOnScaleIn *bool `json:"reuseOnScaleIn,omitempty" tf:"reuse_on_scale_in,omitempty"`
}
type InstanceReusePolicyObservation struct {
// Whether instances in the Auto Scaling group can be returned to the warm pool on scale in.