generated from hashicorp/terraform-provider-scaffolding
/
instance_singular_data_source_gen.go
1360 lines (1347 loc) · 55.9 KB
/
instance_singular_data_source_gen.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
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by generators/singular-data-source/main.go; DO NOT EDIT.
package ec2
import (
"context"
"github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-provider-awscc/internal/generic"
"github.com/hashicorp/terraform-provider-awscc/internal/registry"
)
func init() {
registry.AddDataSourceFactory("awscc_ec2_instance", instanceDataSource)
}
// instanceDataSource returns the Terraform awscc_ec2_instance data source.
// This Terraform data source corresponds to the CloudFormation AWS::EC2::Instance resource.
func instanceDataSource(ctx context.Context) (datasource.DataSource, error) {
attributes := map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AdditionalInfo
// CloudFormation resource type schema:
//
// {
// "description": "This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).",
// "type": "string"
// }
"additional_info": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "This property is reserved for internal use. If you use it, the stack fails with this error: Bad property set: [Testing this property] (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 0XXXXXX-49c7-4b40-8bcc-76885dcXXXXX).",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Affinity
// CloudFormation resource type schema:
//
// {
// "description": "Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.",
// "enum": [
// "default",
// "host"
// ],
// "type": "string"
// }
"affinity": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: AvailabilityZone
// CloudFormation resource type schema:
//
// {
// "description": "The Availability Zone of the instance.",
// "type": "string"
// }
"availability_zone": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The Availability Zone of the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: BlockDeviceMappings
// CloudFormation resource type schema:
//
// {
// "description": "The block device mapping entries that defines the block devices to attach to the instance at launch.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "DeviceName": {
// "description": "The device name (for example, /dev/sdh or xvdh).",
// "type": "string"
// },
// "Ebs": {
// "additionalProperties": false,
// "description": "Parameters used to automatically set up EBS volumes when the instance is launched.",
// "properties": {
// "DeleteOnTermination": {
// "description": "Indicates whether the EBS volume is deleted on instance termination.",
// "type": "boolean"
// },
// "Encrypted": {
// "description": "Indicates whether the volume should be encrypted.",
// "type": "boolean"
// },
// "Iops": {
// "description": "The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.",
// "type": "integer"
// },
// "KmsKeyId": {
// "description": "The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.",
// "type": "string"
// },
// "SnapshotId": {
// "description": "The ID of the snapshot.",
// "type": "string"
// },
// "VolumeSize": {
// "description": "The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.",
// "type": "integer"
// },
// "VolumeType": {
// "description": "The volume type.",
// "type": "string"
// }
// },
// "type": "object"
// },
// "NoDevice": {
// "additionalProperties": false,
// "type": "object"
// },
// "VirtualName": {
// "type": "string"
// }
// },
// "required": [
// "DeviceName"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// }
"block_device_mappings": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: DeviceName
"device_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The device name (for example, /dev/sdh or xvdh).",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Ebs
"ebs": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: DeleteOnTermination
"delete_on_termination": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether the EBS volume is deleted on instance termination.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Encrypted
"encrypted": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether the volume should be encrypted.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Iops
"iops": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: KmsKeyId
"kms_key_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: SnapshotId
"snapshot_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the snapshot.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: VolumeSize
"volume_size": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: VolumeType
"volume_type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The volume type.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Parameters used to automatically set up EBS volumes when the instance is launched.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: NoDevice
"no_device": schema.StringAttribute{ /*START ATTRIBUTE*/
CustomType: jsontypes.NormalizedType{},
Computed: true,
}, /*END ATTRIBUTE*/
// Property: VirtualName
"virtual_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "The block device mapping entries that defines the block devices to attach to the instance at launch.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: CpuOptions
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "The CPU options for the instance.",
// "properties": {
// "CoreCount": {
// "type": "integer"
// },
// "ThreadsPerCore": {
// "type": "integer"
// }
// },
// "type": "object"
// }
"cpu_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: CoreCount
"core_count": schema.Int64Attribute{ /*START ATTRIBUTE*/
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ThreadsPerCore
"threads_per_core": schema.Int64Attribute{ /*START ATTRIBUTE*/
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The CPU options for the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: CreditSpecification
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.",
// "properties": {
// "CPUCredits": {
// "type": "string"
// }
// },
// "type": "object"
// }
"credit_specification": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: CPUCredits
"cpu_credits": schema.StringAttribute{ /*START ATTRIBUTE*/
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: DisableApiTermination
// CloudFormation resource type schema:
//
// {
// "description": "If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.",
// "type": "boolean"
// }
"disable_api_termination": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: EbsOptimized
// CloudFormation resource type schema:
//
// {
// "description": "Indicates whether the instance is optimized for Amazon EBS I/O.",
// "type": "boolean"
// }
"ebs_optimized": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether the instance is optimized for Amazon EBS I/O.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ElasticGpuSpecifications
// CloudFormation resource type schema:
//
// {
// "description": "An elastic GPU to associate with the instance.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "Type": {
// "description": "The type of Elastic Graphics accelerator.",
// "type": "string"
// }
// },
// "required": [
// "Type"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// }
"elastic_gpu_specifications": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Type
"type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The type of Elastic Graphics accelerator.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "An elastic GPU to associate with the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ElasticInferenceAccelerators
// CloudFormation resource type schema:
//
// {
// "description": "An elastic inference accelerator to associate with the instance.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "Count": {
// "description": "The number of elastic inference accelerators to attach to the instance.",
// "minimum": 0,
// "type": "integer"
// },
// "Type": {
// "description": "The type of elastic inference accelerator.",
// "type": "string"
// }
// },
// "required": [
// "Type"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// }
"elastic_inference_accelerators": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Count
"count": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "The number of elastic inference accelerators to attach to the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Type
"type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The type of elastic inference accelerator.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "An elastic inference accelerator to associate with the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: EnclaveOptions
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Indicates whether the instance is enabled for AWS Nitro Enclaves.",
// "properties": {
// "Enabled": {
// "description": "If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.",
// "type": "boolean"
// }
// },
// "type": "object"
// }
"enclave_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Enabled
"enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "If this parameter is set to true, the instance is enabled for AWS Nitro Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Indicates whether the instance is enabled for AWS Nitro Enclaves.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: HibernationOptions
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Indicates whether an instance is enabled for hibernation.",
// "properties": {
// "Configured": {
// "default": false,
// "description": "If you set this parameter to true, your instance is enabled for hibernation.",
// "type": "boolean"
// }
// },
// "type": "object"
// }
"hibernation_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Configured
"configured": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "If you set this parameter to true, your instance is enabled for hibernation.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Indicates whether an instance is enabled for hibernation.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: HostId
// CloudFormation resource type schema:
//
// {
// "description": "If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.",
// "type": "string"
// }
"host_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: HostResourceGroupArn
// CloudFormation resource type schema:
//
// {
// "description": "The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.",
// "type": "string"
// }
"host_resource_group_arn": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ARN of the host resource group in which to launch the instances. If you specify a host resource group ARN, omit the Tenancy parameter or set it to host.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: IamInstanceProfile
// CloudFormation resource type schema:
//
// {
// "description": "The IAM instance profile.",
// "type": "string"
// }
"iam_instance_profile": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The IAM instance profile.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: ImageId
// CloudFormation resource type schema:
//
// {
// "description": "The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.",
// "type": "string"
// }
"image_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the AMI. An AMI ID is required to launch an instance and must be specified here or in a launch template.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: InstanceId
// CloudFormation resource type schema:
//
// {
// "description": "The EC2 Instance ID.",
// "type": "string"
// }
"instance_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The EC2 Instance ID.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: InstanceInitiatedShutdownBehavior
// CloudFormation resource type schema:
//
// {
// "description": "Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).",
// "type": "string"
// }
"instance_initiated_shutdown_behavior": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: InstanceType
// CloudFormation resource type schema:
//
// {
// "description": "The instance type.",
// "type": "string"
// }
"instance_type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The instance type.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Ipv6AddressCount
// CloudFormation resource type schema:
//
// {
// "description": "[EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.",
// "type": "integer"
// }
"ipv_6_address_count": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "[EC2-VPC] The number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Ipv6Addresses
// CloudFormation resource type schema:
//
// {
// "description": "[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with the primary network interface.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "Ipv6Address": {
// "description": "The IPv6 address.",
// "type": "string"
// }
// },
// "required": [
// "Ipv6Address"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// }
"ipv_6_addresses": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Ipv6Address
"ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The IPv6 address.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "[EC2-VPC] The IPv6 addresses from the range of the subnet to associate with the primary network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: KernelId
// CloudFormation resource type schema:
//
// {
// "description": "The ID of the kernel.",
// "type": "string"
// }
"kernel_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the kernel.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: KeyName
// CloudFormation resource type schema:
//
// {
// "description": "The name of the key pair.",
// "type": "string"
// }
"key_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The name of the key pair.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: LaunchTemplate
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "The launch template to use to launch the instances.",
// "oneOf": [
// {
// "required": [
// "LaunchTemplateName",
// "Version"
// ]
// },
// {
// "required": [
// "LaunchTemplateId",
// "Version"
// ]
// }
// ],
// "properties": {
// "LaunchTemplateId": {
// "description": "The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
// "type": "string"
// },
// "LaunchTemplateName": {
// "description": "The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
// "type": "string"
// },
// "Version": {
// "description": "The version number of the launch template.",
// "type": "string"
// }
// },
// "type": "object"
// }
"launch_template": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: LaunchTemplateId
"launch_template_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: LaunchTemplateName
"launch_template_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The name of the launch template. You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Version
"version": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The version number of the launch template.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The launch template to use to launch the instances.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: LicenseSpecifications
// CloudFormation resource type schema:
//
// {
// "description": "The license configurations.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "LicenseConfigurationArn": {
// "description": "The Amazon Resource Name (ARN) of the license configuration.",
// "type": "string"
// }
// },
// "required": [
// "LicenseConfigurationArn"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// }
"license_specifications": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: LicenseConfigurationArn
"license_configuration_arn": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The Amazon Resource Name (ARN) of the license configuration.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "The license configurations.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Monitoring
// CloudFormation resource type schema:
//
// {
// "description": "Specifies whether detailed monitoring is enabled for the instance.",
// "type": "boolean"
// }
"monitoring": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Specifies whether detailed monitoring is enabled for the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: NetworkInterfaces
// CloudFormation resource type schema:
//
// {
// "description": "The network interfaces to associate with the instance.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "AssociateCarrierIpAddress": {
// "description": "Not currently supported by AWS CloudFormation.",
// "type": "boolean"
// },
// "AssociatePublicIpAddress": {
// "description": "Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.",
// "type": "boolean"
// },
// "DeleteOnTermination": {
// "description": "If set to true, the interface is deleted when the instance is terminated.",
// "type": "boolean"
// },
// "Description": {
// "description": "The description of the network interface.",
// "type": "string"
// },
// "DeviceIndex": {
// "description": "The position of the network interface in the attachment order. A primary network interface has a device index of 0.",
// "type": "string"
// },
// "GroupSet": {
// "description": "The IDs of the security groups for the network interface.",
// "insertionOrder": false,
// "items": {
// "type": "string"
// },
// "type": "array",
// "uniqueItems": false
// },
// "Ipv6AddressCount": {
// "description": "A number of IPv6 addresses to assign to the network interface.",
// "type": "integer"
// },
// "Ipv6Addresses": {
// "description": "The IPv6 addresses associated with the network interface.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "Ipv6Address": {
// "description": "The IPv6 address.",
// "type": "string"
// }
// },
// "required": [
// "Ipv6Address"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// },
// "NetworkInterfaceId": {
// "description": "The ID of the network interface.",
// "type": "string"
// },
// "PrivateIpAddress": {
// "description": "The private IPv4 address of the network interface.",
// "type": "string"
// },
// "PrivateIpAddresses": {
// "description": "One or more private IPv4 addresses to assign to the network interface.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "properties": {
// "Primary": {
// "description": "Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.",
// "type": "boolean"
// },
// "PrivateIpAddress": {
// "description": "The private IPv4 addresses.",
// "type": "string"
// }
// },
// "required": [
// "PrivateIpAddress",
// "Primary"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// },
// "SecondaryPrivateIpAddressCount": {
// "description": "The number of secondary private IPv4 addresses.",
// "type": "integer"
// },
// "SubnetId": {
// "description": "The ID of the subnet.",
// "type": "string"
// }
// },
// "required": [
// "DeviceIndex"
// ],
// "type": "object"
// },
// "type": "array",
// "uniqueItems": false
// }
"network_interfaces": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AssociateCarrierIpAddress
"associate_carrier_ip_address": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Not currently supported by AWS CloudFormation.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: AssociatePublicIpAddress
"associate_public_ip_address": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether to assign a public IPv4 address to an instance you launch in a VPC.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: DeleteOnTermination
"delete_on_termination": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "If set to true, the interface is deleted when the instance is terminated.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Description
"description": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The description of the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: DeviceIndex
"device_index": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The position of the network interface in the attachment order. A primary network interface has a device index of 0.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: GroupSet
"group_set": schema.ListAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "The IDs of the security groups for the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Ipv6AddressCount
"ipv_6_address_count": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "A number of IPv6 addresses to assign to the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: Ipv6Addresses
"ipv_6_addresses": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Ipv6Address
"ipv_6_address": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The IPv6 address.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "The IPv6 addresses associated with the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: NetworkInterfaceId
"network_interface_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateIpAddress
"private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The private IPv4 address of the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateIpAddresses
"private_ip_addresses": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: Primary
"primary": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateIpAddress
"private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The private IPv4 addresses.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "One or more private IPv4 addresses to assign to the network interface.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: SecondaryPrivateIpAddressCount
"secondary_private_ip_address_count": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "The number of secondary private IPv4 addresses.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: SubnetId
"subnet_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the subnet.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "The network interfaces to associate with the instance.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PlacementGroupName
// CloudFormation resource type schema:
//
// {
// "description": "The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).",
// "type": "string"
// }
"placement_group_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateDnsName
// CloudFormation resource type schema:
//
// {
// "description": "The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.",
// "type": "string"
// }
"private_dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateDnsNameOptions
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "The options for the instance hostname.",
// "properties": {
// "EnableResourceNameDnsAAAARecord": {
// "description": "Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
// "type": "boolean"
// },
// "EnableResourceNameDnsARecord": {
// "description": "Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
// "type": "boolean"
// },
// "HostnameType": {
// "description": "The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
// "enum": [
// "ip-name",
// "resource-name"
// ],
// "type": "string"
// }
// },
// "type": "object"
// }
"private_dns_name_options": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: EnableResourceNameDnsAAAARecord
"enable_resource_name_dns_aaaa_record": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: EnableResourceNameDnsARecord
"enable_resource_name_dns_a_record": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: HostnameType
"hostname_type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.",
Computed: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The options for the instance hostname.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateIp
// CloudFormation resource type schema:
//
// {
// "description": "The private IP address of the specified instance. For example: 10.24.34.0.",
// "type": "string"
// }
"private_ip": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The private IP address of the specified instance. For example: 10.24.34.0.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PrivateIpAddress
// CloudFormation resource type schema:
//
// {
// "description": "[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.",
// "type": "string"
// }
"private_ip_address": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PropagateTagsToVolumeOnCreation
// CloudFormation resource type schema:
//
// {
// "description": "Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.",
// "type": "boolean"
// }
"propagate_tags_to_volume_on_creation": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch. If you specify true and you assign tags to the instance, those tags are automatically assigned to all of the volumes that you attach to the instance at launch. If you specify false, those tags are not assigned to the attached volumes.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PublicDnsName
// CloudFormation resource type schema:
//
// {
// "description": "The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.",
// "type": "string"
// }
"public_dns_name": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: PublicIp
// CloudFormation resource type schema:
//
// {
// "description": "The public IP address of the specified instance. For example: 192.0.2.0.",
// "type": "string"
// }
"public_ip": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The public IP address of the specified instance. For example: 192.0.2.0.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: RamdiskId
// CloudFormation resource type schema:
//
// {
// "description": "The ID of the RAM disk to select.",
// "type": "string"
// }
"ramdisk_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The ID of the RAM disk to select.",
Computed: true,
}, /*END ATTRIBUTE*/
// Property: SecurityGroupIds
// CloudFormation resource type schema:
//
// {
// "description": "The IDs of the security groups.",
// "insertionOrder": false,
// "items": {
// "type": "string"
// },
// "type": "array",
// "uniqueItems": false
// }
"security_group_ids": schema.ListAttribute{ /*START ATTRIBUTE*/