-
Notifications
You must be signed in to change notification settings - Fork 112
/
zz_launchtemplate_types.go
executable file
·2166 lines (1571 loc) · 108 KB
/
zz_launchtemplate_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: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
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 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 BlockDeviceMappingsInitParameters struct {
// The name of the device to mount.
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Configure EBS volume properties.
EBS *EBSInitParameters `json:"ebs,omitempty" tf:"ebs,omitempty"`
// Suppresses the specified device included in the AMI's block device mapping.
NoDevice *string `json:"noDevice,omitempty" tf:"no_device,omitempty"`
// The Instance Store Device
// Name
// (e.g., "ephemeral0").
VirtualName *string `json:"virtualName,omitempty" tf:"virtual_name,omitempty"`
}
type BlockDeviceMappingsObservation struct {
// The name of the device to mount.
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Configure EBS volume properties.
EBS *EBSObservation `json:"ebs,omitempty" tf:"ebs,omitempty"`
// Suppresses the specified device included in the AMI's block device mapping.
NoDevice *string `json:"noDevice,omitempty" tf:"no_device,omitempty"`
// The Instance Store Device
// Name
// (e.g., "ephemeral0").
VirtualName *string `json:"virtualName,omitempty" tf:"virtual_name,omitempty"`
}
type BlockDeviceMappingsParameters struct {
// The name of the device to mount.
// +kubebuilder:validation:Optional
DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"`
// Configure EBS volume properties.
// +kubebuilder:validation:Optional
EBS *EBSParameters `json:"ebs,omitempty" tf:"ebs,omitempty"`
// Suppresses the specified device included in the AMI's block device mapping.
// +kubebuilder:validation:Optional
NoDevice *string `json:"noDevice,omitempty" tf:"no_device,omitempty"`
// The Instance Store Device
// Name
// (e.g., "ephemeral0").
// +kubebuilder:validation:Optional
VirtualName *string `json:"virtualName,omitempty" tf:"virtual_name,omitempty"`
}
type CapacityReservationSpecificationCapacityReservationTargetInitParameters struct {
// The ID of the Capacity Reservation in which to run the instance.
CapacityReservationID *string `json:"capacityReservationId,omitempty" tf:"capacity_reservation_id,omitempty"`
// The ARN of the Capacity Reservation resource group in which to run the instance.
CapacityReservationResourceGroupArn *string `json:"capacityReservationResourceGroupArn,omitempty" tf:"capacity_reservation_resource_group_arn,omitempty"`
}
type CapacityReservationSpecificationCapacityReservationTargetObservation struct {
// The ID of the Capacity Reservation in which to run the instance.
CapacityReservationID *string `json:"capacityReservationId,omitempty" tf:"capacity_reservation_id,omitempty"`
// The ARN of the Capacity Reservation resource group in which to run the instance.
CapacityReservationResourceGroupArn *string `json:"capacityReservationResourceGroupArn,omitempty" tf:"capacity_reservation_resource_group_arn,omitempty"`
}
type CapacityReservationSpecificationCapacityReservationTargetParameters struct {
// The ID of the Capacity Reservation in which to run the instance.
// +kubebuilder:validation:Optional
CapacityReservationID *string `json:"capacityReservationId,omitempty" tf:"capacity_reservation_id,omitempty"`
// The ARN of the Capacity Reservation resource group in which to run the instance.
// +kubebuilder:validation:Optional
CapacityReservationResourceGroupArn *string `json:"capacityReservationResourceGroupArn,omitempty" tf:"capacity_reservation_resource_group_arn,omitempty"`
}
type EBSInitParameters struct {
// Whether the volume should be destroyed on instance termination.
// See Preserving Amazon EBS Volumes on Instance Termination for more information.
DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"`
// Enables EBS encryption on the volume.
// Cannot be used with snapshot_id.
Encrypted *string `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// The amount of provisioned IOPS.
// This must be set with a volume_type of "io1/io2/gp3".
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume.
// encrypted must be set to true when this is set.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Reference to a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// The Snapshot ID to mount.
SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`
// The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// The size of the volume in gigabytes.
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// The volume type.
// Can be one of standard, gp2, gp3, io1, io2, sc1 or st1.
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type EBSObservation struct {
// Whether the volume should be destroyed on instance termination.
// See Preserving Amazon EBS Volumes on Instance Termination for more information.
DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"`
// Enables EBS encryption on the volume.
// Cannot be used with snapshot_id.
Encrypted *string `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// The amount of provisioned IOPS.
// This must be set with a volume_type of "io1/io2/gp3".
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume.
// encrypted must be set to true when this is set.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// The Snapshot ID to mount.
SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`
// The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// The size of the volume in gigabytes.
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// The volume type.
// Can be one of standard, gp2, gp3, io1, io2, sc1 or st1.
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type EBSParameters struct {
// Whether the volume should be destroyed on instance termination.
// See Preserving Amazon EBS Volumes on Instance Termination for more information.
// +kubebuilder:validation:Optional
DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"`
// Enables EBS encryption on the volume.
// Cannot be used with snapshot_id.
// +kubebuilder:validation:Optional
Encrypted *string `json:"encrypted,omitempty" tf:"encrypted,omitempty"`
// The amount of provisioned IOPS.
// This must be set with a volume_type of "io1/io2/gp3".
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The ARN of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume.
// encrypted must be set to true when this is set.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Reference to a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// The Snapshot ID to mount.
// +kubebuilder:validation:Optional
SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"`
// The throughput to provision for a gp3 volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.
// +kubebuilder:validation:Optional
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// The size of the volume in gigabytes.
// +kubebuilder:validation:Optional
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// The volume type.
// Can be one of standard, gp2, gp3, io1, io2, sc1 or st1.
// +kubebuilder:validation:Optional
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type ElasticGpuSpecificationsInitParameters struct {
// The Elastic GPU Type
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ElasticGpuSpecificationsObservation struct {
// The Elastic GPU Type
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ElasticGpuSpecificationsParameters struct {
// The Elastic GPU Type
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type ElasticInferenceAcceleratorInitParameters struct {
// Accelerator type.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ElasticInferenceAcceleratorObservation struct {
// Accelerator type.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type ElasticInferenceAcceleratorParameters struct {
// Accelerator type.
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type HibernationOptionsInitParameters struct {
// If set to true, the launched EC2 instance will hibernation enabled.
Configured *bool `json:"configured,omitempty" tf:"configured,omitempty"`
}
type HibernationOptionsObservation struct {
// If set to true, the launched EC2 instance will hibernation enabled.
Configured *bool `json:"configured,omitempty" tf:"configured,omitempty"`
}
type HibernationOptionsParameters struct {
// If set to true, the launched EC2 instance will hibernation enabled.
// +kubebuilder:validation:Optional
Configured *bool `json:"configured" tf:"configured,omitempty"`
}
type IAMInstanceProfileInitParameters struct {
// The Amazon Resource Name (ARN) of the instance profile. Conflicts with name.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Reference to a InstanceProfile in iam to populate arn.
// +kubebuilder:validation:Optional
ArnRef *v1.Reference `json:"arnRef,omitempty" tf:"-"`
// Selector for a InstanceProfile in iam to populate arn.
// +kubebuilder:validation:Optional
ArnSelector *v1.Selector `json:"arnSelector,omitempty" tf:"-"`
// The name of the instance profile.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Reference to a InstanceProfile in iam to populate name.
// +kubebuilder:validation:Optional
NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`
// Selector for a InstanceProfile in iam to populate name.
// +kubebuilder:validation:Optional
NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`
}
type IAMInstanceProfileObservation struct {
// The Amazon Resource Name (ARN) of the instance profile. Conflicts with name.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The name of the instance profile.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type IAMInstanceProfileParameters struct {
// The Amazon Resource Name (ARN) of the instance profile. Conflicts with name.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Reference to a InstanceProfile in iam to populate arn.
// +kubebuilder:validation:Optional
ArnRef *v1.Reference `json:"arnRef,omitempty" tf:"-"`
// Selector for a InstanceProfile in iam to populate arn.
// +kubebuilder:validation:Optional
ArnSelector *v1.Selector `json:"arnSelector,omitempty" tf:"-"`
// The name of the instance profile.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.InstanceProfile
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Reference to a InstanceProfile in iam to populate name.
// +kubebuilder:validation:Optional
NameRef *v1.Reference `json:"nameRef,omitempty" tf:"-"`
// Selector for a InstanceProfile in iam to populate name.
// +kubebuilder:validation:Optional
NameSelector *v1.Selector `json:"nameSelector,omitempty" tf:"-"`
}
type InstanceMarketOptionsSpotOptionsInitParameters struct {
// The required duration in minutes. This value must be a multiple of 60.
BlockDurationMinutes *float64 `json:"blockDurationMinutes,omitempty" tf:"block_duration_minutes,omitempty"`
// The behavior when a Spot Instance is interrupted. Can be hibernate,
// stop, or terminate. (Default: terminate).
InstanceInterruptionBehavior *string `json:"instanceInterruptionBehavior,omitempty" tf:"instance_interruption_behavior,omitempty"`
// The maximum hourly price you're willing to pay for the Spot Instances.
MaxPrice *string `json:"maxPrice,omitempty" tf:"max_price,omitempty"`
// The Spot Instance request type. Can be one-time, or persistent.
SpotInstanceType *string `json:"spotInstanceType,omitempty" tf:"spot_instance_type,omitempty"`
// The end date of the request.
ValidUntil *string `json:"validUntil,omitempty" tf:"valid_until,omitempty"`
}
type InstanceMarketOptionsSpotOptionsObservation struct {
// The required duration in minutes. This value must be a multiple of 60.
BlockDurationMinutes *float64 `json:"blockDurationMinutes,omitempty" tf:"block_duration_minutes,omitempty"`
// The behavior when a Spot Instance is interrupted. Can be hibernate,
// stop, or terminate. (Default: terminate).
InstanceInterruptionBehavior *string `json:"instanceInterruptionBehavior,omitempty" tf:"instance_interruption_behavior,omitempty"`
// The maximum hourly price you're willing to pay for the Spot Instances.
MaxPrice *string `json:"maxPrice,omitempty" tf:"max_price,omitempty"`
// The Spot Instance request type. Can be one-time, or persistent.
SpotInstanceType *string `json:"spotInstanceType,omitempty" tf:"spot_instance_type,omitempty"`
// The end date of the request.
ValidUntil *string `json:"validUntil,omitempty" tf:"valid_until,omitempty"`
}
type InstanceMarketOptionsSpotOptionsParameters struct {
// The required duration in minutes. This value must be a multiple of 60.
// +kubebuilder:validation:Optional
BlockDurationMinutes *float64 `json:"blockDurationMinutes,omitempty" tf:"block_duration_minutes,omitempty"`
// The behavior when a Spot Instance is interrupted. Can be hibernate,
// stop, or terminate. (Default: terminate).
// +kubebuilder:validation:Optional
InstanceInterruptionBehavior *string `json:"instanceInterruptionBehavior,omitempty" tf:"instance_interruption_behavior,omitempty"`
// The maximum hourly price you're willing to pay for the Spot Instances.
// +kubebuilder:validation:Optional
MaxPrice *string `json:"maxPrice,omitempty" tf:"max_price,omitempty"`
// The Spot Instance request type. Can be one-time, or persistent.
// +kubebuilder:validation:Optional
SpotInstanceType *string `json:"spotInstanceType,omitempty" tf:"spot_instance_type,omitempty"`
// The end date of the request.
// +kubebuilder:validation:Optional
ValidUntil *string `json:"validUntil,omitempty" tf:"valid_until,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"`
// The 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"`
// The 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"`
// The 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"`
// The 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" 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"`
// The 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"`
// The 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" tf:"vcpu_count,omitempty"`
}
type LaunchTemplateCPUOptionsInitParameters struct {
// Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled.
AmdSevSnp *string `json:"amdSevSnp,omitempty" tf:"amd_sev_snp,omitempty"`
// The number of CPU cores for the instance.
CoreCount *float64 `json:"coreCount,omitempty" tf:"core_count,omitempty"`
// The number of threads per CPU core.
// To disable Intel Hyper-Threading Technology for the instance, specify a value of 1.
// Otherwise, specify the default value of 2.
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
}
type LaunchTemplateCPUOptionsObservation struct {
// Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled.
AmdSevSnp *string `json:"amdSevSnp,omitempty" tf:"amd_sev_snp,omitempty"`
// The number of CPU cores for the instance.
CoreCount *float64 `json:"coreCount,omitempty" tf:"core_count,omitempty"`
// The number of threads per CPU core.
// To disable Intel Hyper-Threading Technology for the instance, specify a value of 1.
// Otherwise, specify the default value of 2.
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
}
type LaunchTemplateCPUOptionsParameters struct {
// Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. Valid values are enabled and disabled.
// +kubebuilder:validation:Optional
AmdSevSnp *string `json:"amdSevSnp,omitempty" tf:"amd_sev_snp,omitempty"`
// The number of CPU cores for the instance.
// +kubebuilder:validation:Optional
CoreCount *float64 `json:"coreCount,omitempty" tf:"core_count,omitempty"`
// The number of threads per CPU core.
// To disable Intel Hyper-Threading Technology for the instance, specify a value of 1.
// Otherwise, specify the default value of 2.
// +kubebuilder:validation:Optional
ThreadsPerCore *float64 `json:"threadsPerCore,omitempty" tf:"threads_per_core,omitempty"`
}
type LaunchTemplateCapacityReservationSpecificationInitParameters struct {
// Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).
CapacityReservationPreference *string `json:"capacityReservationPreference,omitempty" tf:"capacity_reservation_preference,omitempty"`
// Used to target a specific Capacity Reservation:
CapacityReservationTarget *CapacityReservationSpecificationCapacityReservationTargetInitParameters `json:"capacityReservationTarget,omitempty" tf:"capacity_reservation_target,omitempty"`
}
type LaunchTemplateCapacityReservationSpecificationObservation struct {
// Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).
CapacityReservationPreference *string `json:"capacityReservationPreference,omitempty" tf:"capacity_reservation_preference,omitempty"`
// Used to target a specific Capacity Reservation:
CapacityReservationTarget *CapacityReservationSpecificationCapacityReservationTargetObservation `json:"capacityReservationTarget,omitempty" tf:"capacity_reservation_target,omitempty"`
}
type LaunchTemplateCapacityReservationSpecificationParameters struct {
// Indicates the instance's Capacity Reservation preferences. Can be open or none. (Default none).
// +kubebuilder:validation:Optional
CapacityReservationPreference *string `json:"capacityReservationPreference,omitempty" tf:"capacity_reservation_preference,omitempty"`
// Used to target a specific Capacity Reservation:
// +kubebuilder:validation:Optional
CapacityReservationTarget *CapacityReservationSpecificationCapacityReservationTargetParameters `json:"capacityReservationTarget,omitempty" tf:"capacity_reservation_target,omitempty"`
}
type LaunchTemplateCreditSpecificationInitParameters struct {
// The credit option for CPU usage.
// Can be standard or unlimited.
// T3 instances are launched as unlimited by default.
// T2 instances are launched as standard by default.
CPUCredits *string `json:"cpuCredits,omitempty" tf:"cpu_credits,omitempty"`
}
type LaunchTemplateCreditSpecificationObservation struct {
// The credit option for CPU usage.
// Can be standard or unlimited.
// T3 instances are launched as unlimited by default.
// T2 instances are launched as standard by default.
CPUCredits *string `json:"cpuCredits,omitempty" tf:"cpu_credits,omitempty"`
}
type LaunchTemplateCreditSpecificationParameters struct {
// The credit option for CPU usage.
// Can be standard or unlimited.
// T3 instances are launched as unlimited by default.
// T2 instances are launched as standard by default.
// +kubebuilder:validation:Optional
CPUCredits *string `json:"cpuCredits,omitempty" tf:"cpu_credits,omitempty"`
}
type LaunchTemplateEnclaveOptionsInitParameters struct {
// If set to true, Nitro Enclaves will be enabled on the instance.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type LaunchTemplateEnclaveOptionsObservation struct {
// If set to true, Nitro Enclaves will be enabled on the instance.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type LaunchTemplateEnclaveOptionsParameters struct {
// If set to true, Nitro Enclaves will be enabled on the instance.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type LaunchTemplateInitParameters_2 struct {
// Specify volumes to attach to the instance besides the volumes specified by the AMI.
// See Block Devices below for details.
BlockDeviceMappings []BlockDeviceMappingsInitParameters `json:"blockDeviceMappings,omitempty" tf:"block_device_mappings,omitempty"`
// The CPU options for the instance. See CPU Options below for more details.
CPUOptions *LaunchTemplateCPUOptionsInitParameters `json:"cpuOptions,omitempty" tf:"cpu_options,omitempty"`
// Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationInitParameters `json:"capacityReservationSpecification,omitempty" tf:"capacity_reservation_specification,omitempty"`
// Customize the credit specification of the instance. See Credit
// Specification below for more details.
CreditSpecification *LaunchTemplateCreditSpecificationInitParameters `json:"creditSpecification,omitempty" tf:"credit_specification,omitempty"`
// Default Version of the launch template.
DefaultVersion *float64 `json:"defaultVersion,omitempty" tf:"default_version,omitempty"`
// Description of the launch template.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// If true, enables EC2 Instance Stop Protection.
DisableAPIStop *bool `json:"disableApiStop,omitempty" tf:"disable_api_stop,omitempty"`
// If true, enables EC2 Instance
// Termination Protection
DisableAPITermination *bool `json:"disableApiTermination,omitempty" tf:"disable_api_termination,omitempty"`
// If true, the launched EC2 instance will be EBS-optimized.
EBSOptimized *string `json:"ebsOptimized,omitempty" tf:"ebs_optimized,omitempty"`
// The elastic GPU to attach to the instance. See Elastic GPU
// below for more details.
ElasticGpuSpecifications []ElasticGpuSpecificationsInitParameters `json:"elasticGpuSpecifications,omitempty" tf:"elastic_gpu_specifications,omitempty"`
// Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
ElasticInferenceAccelerator *ElasticInferenceAcceleratorInitParameters `json:"elasticInferenceAccelerator,omitempty" tf:"elastic_inference_accelerator,omitempty"`
// Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
EnclaveOptions *LaunchTemplateEnclaveOptionsInitParameters `json:"enclaveOptions,omitempty" tf:"enclave_options,omitempty"`
// The hibernation options for the instance. See Hibernation Options below for more details.
HibernationOptions *HibernationOptionsInitParameters `json:"hibernationOptions,omitempty" tf:"hibernation_options,omitempty"`
// The IAM Instance Profile to launch the instance with. See Instance Profile
// below for more details.
IAMInstanceProfile *IAMInstanceProfileInitParameters `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"`
// The AMI from which to launch the instance.
ImageID *string `json:"imageId,omitempty" tf:"image_id,omitempty"`
// Shutdown behavior for the instance. Can be stop or terminate.
// (Default: stop).
InstanceInitiatedShutdownBehavior *string `json:"instanceInitiatedShutdownBehavior,omitempty" tf:"instance_initiated_shutdown_behavior,omitempty"`
// The market (purchasing) option for the instance. See Market Options
// below for details.
InstanceMarketOptions *LaunchTemplateInstanceMarketOptionsInitParameters `json:"instanceMarketOptions,omitempty" tf:"instance_market_options,omitempty"`
// The attribute requirements for the type of instance. If present then instance_type cannot be present.
InstanceRequirements *InstanceRequirementsInitParameters `json:"instanceRequirements,omitempty" tf:"instance_requirements,omitempty"`
// The type of the instance. If present then instance_requirements cannot be present.
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// The kernel ID.
KernelID *string `json:"kernelId,omitempty" tf:"kernel_id,omitempty"`
// The key name to use for the instance.
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// A list of license specifications to associate with. See License Specification below for more details.
LicenseSpecification []LicenseSpecificationInitParameters `json:"licenseSpecification,omitempty" tf:"license_specification,omitempty"`
// The maintenance options for the instance. See Maintenance Options below for more details.
MaintenanceOptions *LaunchTemplateMaintenanceOptionsInitParameters `json:"maintenanceOptions,omitempty" tf:"maintenance_options,omitempty"`
// Customize the metadata options for the instance. See Metadata Options below for more details.
MetadataOptions *LaunchTemplateMetadataOptionsInitParameters `json:"metadataOptions,omitempty" tf:"metadata_options,omitempty"`
// The monitoring option for the instance. See Monitoring below for more details.
Monitoring *MonitoringInitParameters `json:"monitoring,omitempty" tf:"monitoring,omitempty"`
// The name of the launch template.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Customize network interfaces to be attached at instance boot time. See Network
// Interfaces below for more details.
NetworkInterfaces []NetworkInterfacesInitParameters `json:"networkInterfaces,omitempty" tf:"network_interfaces,omitempty"`
// The placement of the instance. See Placement below for more details.
Placement *PlacementInitParameters `json:"placement,omitempty" tf:"placement,omitempty"`
// The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.
PrivateDNSNameOptions *LaunchTemplatePrivateDNSNameOptionsInitParameters `json:"privateDnsNameOptions,omitempty" tf:"private_dns_name_options,omitempty"`
// The ID of the RAM disk.
RAMDiskID *string `json:"ramDiskId,omitempty" tf:"ram_disk_id,omitempty"`
// References to SecurityGroup in ec2 to populate securityGroupNames.
// +kubebuilder:validation:Optional
SecurityGroupNameRefs []v1.Reference `json:"securityGroupNameRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in ec2 to populate securityGroupNames.
// +kubebuilder:validation:Optional
SecurityGroupNameSelector *v1.Selector `json:"securityGroupNameSelector,omitempty" tf:"-"`
// A list of security group names to associate with. If you are creating Instances in a VPC, use
// vpc_security_group_ids instead.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup
// +crossplane:generate:reference:refFieldName=SecurityGroupNameRefs
// +crossplane:generate:reference:selectorFieldName=SecurityGroupNameSelector
// +listType=set
SecurityGroupNames []*string `json:"securityGroupNames,omitempty" tf:"security_group_names,omitempty"`
// The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
TagSpecifications []TagSpecificationsInitParameters `json:"tagSpecifications,omitempty" tf:"tag_specifications,omitempty"`
// Key-value map of resource tags.