/
launchTemplate.go
769 lines (709 loc) · 43.7 KB
/
launchTemplate.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package ecs
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// ## Import
//
// Launch Template can be imported using the id, e.g.
//
// ```sh
// $ pulumi import alicloud:ecs/launchTemplate:LaunchTemplate lt lt-abc1234567890000
// ```
type LaunchTemplate struct {
pulumi.CustomResourceState
// Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
AutoReleaseTime pulumi.StringPtrOutput `pulumi:"autoReleaseTime"`
// The list of data disks created with instance.
DataDisks LaunchTemplateDataDiskArrayOutput `pulumi:"dataDisks"`
DeploymentSetId pulumi.StringPtrOutput `pulumi:"deploymentSetId"`
// The description of the data disk.
Description pulumi.StringPtrOutput `pulumi:"description"`
EnableVmOsConfig pulumi.BoolPtrOutput `pulumi:"enableVmOsConfig"`
// Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
HostName pulumi.StringPtrOutput `pulumi:"hostName"`
// Image ID.
ImageId pulumi.StringPtrOutput `pulumi:"imageId"`
ImageOwnerAlias pulumi.StringPtrOutput `pulumi:"imageOwnerAlias"`
// Billing methods. Optional values:
// - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur.
// - PostPaid: Pay-As-You-Go.
InstanceChargeType pulumi.StringPtrOutput `pulumi:"instanceChargeType"`
// The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"`
// Instance type. For more information, call resourceAlicloudInstances to obtain the latest instance type list.
InstanceType pulumi.StringPtrOutput `pulumi:"instanceType"`
// Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
InternetChargeType pulumi.StringPtrOutput `pulumi:"internetChargeType"`
// The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
InternetMaxBandwidthIn pulumi.IntOutput `pulumi:"internetMaxBandwidthIn"`
// Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
InternetMaxBandwidthOut pulumi.IntPtrOutput `pulumi:"internetMaxBandwidthOut"`
// Whether it is an I/O-optimized instance or not. Optional values:
// - none
// - optimized
IoOptimized pulumi.StringPtrOutput `pulumi:"ioOptimized"`
// The name of the key pair.
// - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used.
// - The password logon method for Linux instances is set to forbidden upon initialization.
KeyPairName pulumi.StringPtrOutput `pulumi:"keyPairName"`
LaunchTemplateName pulumi.StringOutput `pulumi:"launchTemplateName"`
// The name of the data disk.
//
// Deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
Name pulumi.StringOutput `pulumi:"name"`
// The list of network interfaces created with instance.
NetworkInterfaces LaunchTemplateNetworkInterfacesPtrOutput `pulumi:"networkInterfaces"`
// Network type of the instance. Value options: `classic` | `vpc`.
NetworkType pulumi.StringPtrOutput `pulumi:"networkType"`
PasswordInherit pulumi.BoolPtrOutput `pulumi:"passwordInherit"`
Period pulumi.IntPtrOutput `pulumi:"period"`
PrivateIpAddress pulumi.StringPtrOutput `pulumi:"privateIpAddress"`
// The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
RamRoleName pulumi.StringPtrOutput `pulumi:"ramRoleName"`
ResourceGroupId pulumi.StringPtrOutput `pulumi:"resourceGroupId"`
// Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
SecurityEnhancementStrategy pulumi.StringPtrOutput `pulumi:"securityEnhancementStrategy"`
// The security group ID must be one in the same VPC.
SecurityGroupId pulumi.StringPtrOutput `pulumi:"securityGroupId"`
SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"`
SpotDuration pulumi.StringPtrOutput `pulumi:"spotDuration"`
// -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
SpotPriceLimit pulumi.Float64PtrOutput `pulumi:"spotPriceLimit"`
// The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range:
// - NoSpot: Normal Pay-As-You-Go instance.
// - SpotWithPriceLimit: Sets the maximum price for a spot instance.
// - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
SpotStrategy pulumi.StringPtrOutput `pulumi:"spotStrategy"`
SystemDisk LaunchTemplateSystemDiskOutput `pulumi:"systemDisk"`
// The category of the system disk. System disk type. Optional values:
// - cloud: Basic cloud disk.
// - cloud_efficiency: Ultra cloud disk.
// - cloud_ssd: SSD cloud Disks.
// - ephemeral_ssd: local SSD Disks
// - cloud_essd: ESSD cloud Disks.
//
// Deprecated: Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskCategory pulumi.StringOutput `pulumi:"systemDiskCategory"`
// System disk description. It cannot begin with http:// or https://.
//
// Deprecated: Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskDescription pulumi.StringOutput `pulumi:"systemDiskDescription"`
// System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
//
// Deprecated: Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskName pulumi.StringOutput `pulumi:"systemDiskName"`
// Size of the system disk, measured in GB. Value range: [20, 500].
//
// Deprecated: Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskSize pulumi.IntOutput `pulumi:"systemDiskSize"`
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags pulumi.MapOutput `pulumi:"tags"`
TemplateResourceGroupId pulumi.StringPtrOutput `pulumi:"templateResourceGroupId"`
TemplateTags pulumi.MapOutput `pulumi:"templateTags"`
UserData pulumi.StringOutput `pulumi:"userData"`
// User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
//
// Deprecated: Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
Userdata pulumi.StringOutput `pulumi:"userdata"`
VersionDescription pulumi.StringPtrOutput `pulumi:"versionDescription"`
VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
// The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
// The zone ID of the instance.
ZoneId pulumi.StringPtrOutput `pulumi:"zoneId"`
}
// NewLaunchTemplate registers a new resource with the given unique name, arguments, and options.
func NewLaunchTemplate(ctx *pulumi.Context,
name string, args *LaunchTemplateArgs, opts ...pulumi.ResourceOption) (*LaunchTemplate, error) {
if args == nil {
args = &LaunchTemplateArgs{}
}
var resource LaunchTemplate
err := ctx.RegisterResource("alicloud:ecs/launchTemplate:LaunchTemplate", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLaunchTemplate gets an existing LaunchTemplate resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetLaunchTemplate(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LaunchTemplateState, opts ...pulumi.ResourceOption) (*LaunchTemplate, error) {
var resource LaunchTemplate
err := ctx.ReadResource("alicloud:ecs/launchTemplate:LaunchTemplate", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LaunchTemplate resources.
type launchTemplateState struct {
// Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
AutoReleaseTime *string `pulumi:"autoReleaseTime"`
// The list of data disks created with instance.
DataDisks []LaunchTemplateDataDisk `pulumi:"dataDisks"`
DeploymentSetId *string `pulumi:"deploymentSetId"`
// The description of the data disk.
Description *string `pulumi:"description"`
EnableVmOsConfig *bool `pulumi:"enableVmOsConfig"`
// Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
HostName *string `pulumi:"hostName"`
// Image ID.
ImageId *string `pulumi:"imageId"`
ImageOwnerAlias *string `pulumi:"imageOwnerAlias"`
// Billing methods. Optional values:
// - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur.
// - PostPaid: Pay-As-You-Go.
InstanceChargeType *string `pulumi:"instanceChargeType"`
// The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
InstanceName *string `pulumi:"instanceName"`
// Instance type. For more information, call resourceAlicloudInstances to obtain the latest instance type list.
InstanceType *string `pulumi:"instanceType"`
// Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
InternetChargeType *string `pulumi:"internetChargeType"`
// The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
InternetMaxBandwidthIn *int `pulumi:"internetMaxBandwidthIn"`
// Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
InternetMaxBandwidthOut *int `pulumi:"internetMaxBandwidthOut"`
// Whether it is an I/O-optimized instance or not. Optional values:
// - none
// - optimized
IoOptimized *string `pulumi:"ioOptimized"`
// The name of the key pair.
// - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used.
// - The password logon method for Linux instances is set to forbidden upon initialization.
KeyPairName *string `pulumi:"keyPairName"`
LaunchTemplateName *string `pulumi:"launchTemplateName"`
// The name of the data disk.
//
// Deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
Name *string `pulumi:"name"`
// The list of network interfaces created with instance.
NetworkInterfaces *LaunchTemplateNetworkInterfaces `pulumi:"networkInterfaces"`
// Network type of the instance. Value options: `classic` | `vpc`.
NetworkType *string `pulumi:"networkType"`
PasswordInherit *bool `pulumi:"passwordInherit"`
Period *int `pulumi:"period"`
PrivateIpAddress *string `pulumi:"privateIpAddress"`
// The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
RamRoleName *string `pulumi:"ramRoleName"`
ResourceGroupId *string `pulumi:"resourceGroupId"`
// Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
SecurityEnhancementStrategy *string `pulumi:"securityEnhancementStrategy"`
// The security group ID must be one in the same VPC.
SecurityGroupId *string `pulumi:"securityGroupId"`
SecurityGroupIds []string `pulumi:"securityGroupIds"`
SpotDuration *string `pulumi:"spotDuration"`
// -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
SpotPriceLimit *float64 `pulumi:"spotPriceLimit"`
// The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range:
// - NoSpot: Normal Pay-As-You-Go instance.
// - SpotWithPriceLimit: Sets the maximum price for a spot instance.
// - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
SpotStrategy *string `pulumi:"spotStrategy"`
SystemDisk *LaunchTemplateSystemDisk `pulumi:"systemDisk"`
// The category of the system disk. System disk type. Optional values:
// - cloud: Basic cloud disk.
// - cloud_efficiency: Ultra cloud disk.
// - cloud_ssd: SSD cloud Disks.
// - ephemeral_ssd: local SSD Disks
// - cloud_essd: ESSD cloud Disks.
//
// Deprecated: Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskCategory *string `pulumi:"systemDiskCategory"`
// System disk description. It cannot begin with http:// or https://.
//
// Deprecated: Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskDescription *string `pulumi:"systemDiskDescription"`
// System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
//
// Deprecated: Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskName *string `pulumi:"systemDiskName"`
// Size of the system disk, measured in GB. Value range: [20, 500].
//
// Deprecated: Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskSize *int `pulumi:"systemDiskSize"`
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags map[string]interface{} `pulumi:"tags"`
TemplateResourceGroupId *string `pulumi:"templateResourceGroupId"`
TemplateTags map[string]interface{} `pulumi:"templateTags"`
UserData *string `pulumi:"userData"`
// User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
//
// Deprecated: Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
Userdata *string `pulumi:"userdata"`
VersionDescription *string `pulumi:"versionDescription"`
VpcId *string `pulumi:"vpcId"`
// The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
VswitchId *string `pulumi:"vswitchId"`
// The zone ID of the instance.
ZoneId *string `pulumi:"zoneId"`
}
type LaunchTemplateState struct {
// Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
AutoReleaseTime pulumi.StringPtrInput
// The list of data disks created with instance.
DataDisks LaunchTemplateDataDiskArrayInput
DeploymentSetId pulumi.StringPtrInput
// The description of the data disk.
Description pulumi.StringPtrInput
EnableVmOsConfig pulumi.BoolPtrInput
// Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
HostName pulumi.StringPtrInput
// Image ID.
ImageId pulumi.StringPtrInput
ImageOwnerAlias pulumi.StringPtrInput
// Billing methods. Optional values:
// - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur.
// - PostPaid: Pay-As-You-Go.
InstanceChargeType pulumi.StringPtrInput
// The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
InstanceName pulumi.StringPtrInput
// Instance type. For more information, call resourceAlicloudInstances to obtain the latest instance type list.
InstanceType pulumi.StringPtrInput
// Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
InternetChargeType pulumi.StringPtrInput
// The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
InternetMaxBandwidthIn pulumi.IntPtrInput
// Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
InternetMaxBandwidthOut pulumi.IntPtrInput
// Whether it is an I/O-optimized instance or not. Optional values:
// - none
// - optimized
IoOptimized pulumi.StringPtrInput
// The name of the key pair.
// - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used.
// - The password logon method for Linux instances is set to forbidden upon initialization.
KeyPairName pulumi.StringPtrInput
LaunchTemplateName pulumi.StringPtrInput
// The name of the data disk.
//
// Deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
Name pulumi.StringPtrInput
// The list of network interfaces created with instance.
NetworkInterfaces LaunchTemplateNetworkInterfacesPtrInput
// Network type of the instance. Value options: `classic` | `vpc`.
NetworkType pulumi.StringPtrInput
PasswordInherit pulumi.BoolPtrInput
Period pulumi.IntPtrInput
PrivateIpAddress pulumi.StringPtrInput
// The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
RamRoleName pulumi.StringPtrInput
ResourceGroupId pulumi.StringPtrInput
// Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
SecurityEnhancementStrategy pulumi.StringPtrInput
// The security group ID must be one in the same VPC.
SecurityGroupId pulumi.StringPtrInput
SecurityGroupIds pulumi.StringArrayInput
SpotDuration pulumi.StringPtrInput
// -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
SpotPriceLimit pulumi.Float64PtrInput
// The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range:
// - NoSpot: Normal Pay-As-You-Go instance.
// - SpotWithPriceLimit: Sets the maximum price for a spot instance.
// - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
SpotStrategy pulumi.StringPtrInput
SystemDisk LaunchTemplateSystemDiskPtrInput
// The category of the system disk. System disk type. Optional values:
// - cloud: Basic cloud disk.
// - cloud_efficiency: Ultra cloud disk.
// - cloud_ssd: SSD cloud Disks.
// - ephemeral_ssd: local SSD Disks
// - cloud_essd: ESSD cloud Disks.
//
// Deprecated: Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskCategory pulumi.StringPtrInput
// System disk description. It cannot begin with http:// or https://.
//
// Deprecated: Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskDescription pulumi.StringPtrInput
// System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
//
// Deprecated: Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskName pulumi.StringPtrInput
// Size of the system disk, measured in GB. Value range: [20, 500].
//
// Deprecated: Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskSize pulumi.IntPtrInput
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags pulumi.MapInput
TemplateResourceGroupId pulumi.StringPtrInput
TemplateTags pulumi.MapInput
UserData pulumi.StringPtrInput
// User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
//
// Deprecated: Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
Userdata pulumi.StringPtrInput
VersionDescription pulumi.StringPtrInput
VpcId pulumi.StringPtrInput
// The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
VswitchId pulumi.StringPtrInput
// The zone ID of the instance.
ZoneId pulumi.StringPtrInput
}
func (LaunchTemplateState) ElementType() reflect.Type {
return reflect.TypeOf((*launchTemplateState)(nil)).Elem()
}
type launchTemplateArgs struct {
// Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
AutoReleaseTime *string `pulumi:"autoReleaseTime"`
// The list of data disks created with instance.
DataDisks []LaunchTemplateDataDisk `pulumi:"dataDisks"`
DeploymentSetId *string `pulumi:"deploymentSetId"`
// The description of the data disk.
Description *string `pulumi:"description"`
EnableVmOsConfig *bool `pulumi:"enableVmOsConfig"`
// Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
HostName *string `pulumi:"hostName"`
// Image ID.
ImageId *string `pulumi:"imageId"`
ImageOwnerAlias *string `pulumi:"imageOwnerAlias"`
// Billing methods. Optional values:
// - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur.
// - PostPaid: Pay-As-You-Go.
InstanceChargeType *string `pulumi:"instanceChargeType"`
// The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
InstanceName *string `pulumi:"instanceName"`
// Instance type. For more information, call resourceAlicloudInstances to obtain the latest instance type list.
InstanceType *string `pulumi:"instanceType"`
// Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
InternetChargeType *string `pulumi:"internetChargeType"`
// The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
InternetMaxBandwidthIn *int `pulumi:"internetMaxBandwidthIn"`
// Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
InternetMaxBandwidthOut *int `pulumi:"internetMaxBandwidthOut"`
// Whether it is an I/O-optimized instance or not. Optional values:
// - none
// - optimized
IoOptimized *string `pulumi:"ioOptimized"`
// The name of the key pair.
// - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used.
// - The password logon method for Linux instances is set to forbidden upon initialization.
KeyPairName *string `pulumi:"keyPairName"`
LaunchTemplateName *string `pulumi:"launchTemplateName"`
// The name of the data disk.
//
// Deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
Name *string `pulumi:"name"`
// The list of network interfaces created with instance.
NetworkInterfaces *LaunchTemplateNetworkInterfaces `pulumi:"networkInterfaces"`
// Network type of the instance. Value options: `classic` | `vpc`.
NetworkType *string `pulumi:"networkType"`
PasswordInherit *bool `pulumi:"passwordInherit"`
Period *int `pulumi:"period"`
PrivateIpAddress *string `pulumi:"privateIpAddress"`
// The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
RamRoleName *string `pulumi:"ramRoleName"`
ResourceGroupId *string `pulumi:"resourceGroupId"`
// Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
SecurityEnhancementStrategy *string `pulumi:"securityEnhancementStrategy"`
// The security group ID must be one in the same VPC.
SecurityGroupId *string `pulumi:"securityGroupId"`
SecurityGroupIds []string `pulumi:"securityGroupIds"`
SpotDuration *string `pulumi:"spotDuration"`
// -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
SpotPriceLimit *float64 `pulumi:"spotPriceLimit"`
// The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range:
// - NoSpot: Normal Pay-As-You-Go instance.
// - SpotWithPriceLimit: Sets the maximum price for a spot instance.
// - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
SpotStrategy *string `pulumi:"spotStrategy"`
SystemDisk *LaunchTemplateSystemDisk `pulumi:"systemDisk"`
// The category of the system disk. System disk type. Optional values:
// - cloud: Basic cloud disk.
// - cloud_efficiency: Ultra cloud disk.
// - cloud_ssd: SSD cloud Disks.
// - ephemeral_ssd: local SSD Disks
// - cloud_essd: ESSD cloud Disks.
//
// Deprecated: Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskCategory *string `pulumi:"systemDiskCategory"`
// System disk description. It cannot begin with http:// or https://.
//
// Deprecated: Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskDescription *string `pulumi:"systemDiskDescription"`
// System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
//
// Deprecated: Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskName *string `pulumi:"systemDiskName"`
// Size of the system disk, measured in GB. Value range: [20, 500].
//
// Deprecated: Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskSize *int `pulumi:"systemDiskSize"`
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags map[string]interface{} `pulumi:"tags"`
TemplateResourceGroupId *string `pulumi:"templateResourceGroupId"`
TemplateTags map[string]interface{} `pulumi:"templateTags"`
UserData *string `pulumi:"userData"`
// User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
//
// Deprecated: Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
Userdata *string `pulumi:"userdata"`
VersionDescription *string `pulumi:"versionDescription"`
VpcId *string `pulumi:"vpcId"`
// The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
VswitchId *string `pulumi:"vswitchId"`
// The zone ID of the instance.
ZoneId *string `pulumi:"zoneId"`
}
// The set of arguments for constructing a LaunchTemplate resource.
type LaunchTemplateArgs struct {
// Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
AutoReleaseTime pulumi.StringPtrInput
// The list of data disks created with instance.
DataDisks LaunchTemplateDataDiskArrayInput
DeploymentSetId pulumi.StringPtrInput
// The description of the data disk.
Description pulumi.StringPtrInput
EnableVmOsConfig pulumi.BoolPtrInput
// Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
HostName pulumi.StringPtrInput
// Image ID.
ImageId pulumi.StringPtrInput
ImageOwnerAlias pulumi.StringPtrInput
// Billing methods. Optional values:
// - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur.
// - PostPaid: Pay-As-You-Go.
InstanceChargeType pulumi.StringPtrInput
// The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
InstanceName pulumi.StringPtrInput
// Instance type. For more information, call resourceAlicloudInstances to obtain the latest instance type list.
InstanceType pulumi.StringPtrInput
// Internet bandwidth billing method. Optional values: `PayByTraffic` | `PayByBandwidth`.
InternetChargeType pulumi.StringPtrInput
// The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
InternetMaxBandwidthIn pulumi.IntPtrInput
// Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
InternetMaxBandwidthOut pulumi.IntPtrInput
// Whether it is an I/O-optimized instance or not. Optional values:
// - none
// - optimized
IoOptimized pulumi.StringPtrInput
// The name of the key pair.
// - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used.
// - The password logon method for Linux instances is set to forbidden upon initialization.
KeyPairName pulumi.StringPtrInput
LaunchTemplateName pulumi.StringPtrInput
// The name of the data disk.
//
// Deprecated: Field 'name' has been deprecated from provider version 1.120.0. New field 'launch_template_name' instead.
Name pulumi.StringPtrInput
// The list of network interfaces created with instance.
NetworkInterfaces LaunchTemplateNetworkInterfacesPtrInput
// Network type of the instance. Value options: `classic` | `vpc`.
NetworkType pulumi.StringPtrInput
PasswordInherit pulumi.BoolPtrInput
Period pulumi.IntPtrInput
PrivateIpAddress pulumi.StringPtrInput
// The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
RamRoleName pulumi.StringPtrInput
ResourceGroupId pulumi.StringPtrInput
// Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
SecurityEnhancementStrategy pulumi.StringPtrInput
// The security group ID must be one in the same VPC.
SecurityGroupId pulumi.StringPtrInput
SecurityGroupIds pulumi.StringArrayInput
SpotDuration pulumi.StringPtrInput
// -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
SpotPriceLimit pulumi.Float64PtrInput
// The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range:
// - NoSpot: Normal Pay-As-You-Go instance.
// - SpotWithPriceLimit: Sets the maximum price for a spot instance.
// - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
SpotStrategy pulumi.StringPtrInput
SystemDisk LaunchTemplateSystemDiskPtrInput
// The category of the system disk. System disk type. Optional values:
// - cloud: Basic cloud disk.
// - cloud_efficiency: Ultra cloud disk.
// - cloud_ssd: SSD cloud Disks.
// - ephemeral_ssd: local SSD Disks
// - cloud_essd: ESSD cloud Disks.
//
// Deprecated: Field 'system_disk_category' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskCategory pulumi.StringPtrInput
// System disk description. It cannot begin with http:// or https://.
//
// Deprecated: Field 'system_disk_description' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskDescription pulumi.StringPtrInput
// System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
//
// Deprecated: Field 'system_disk_name' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskName pulumi.StringPtrInput
// Size of the system disk, measured in GB. Value range: [20, 500].
//
// Deprecated: Field 'system_disk_size' has been deprecated from provider version 1.120.0. New field 'system_disk' instead.
SystemDiskSize pulumi.IntPtrInput
// A mapping of tags to assign to the resource.
// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
Tags pulumi.MapInput
TemplateResourceGroupId pulumi.StringPtrInput
TemplateTags pulumi.MapInput
UserData pulumi.StringPtrInput
// User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
//
// Deprecated: Field 'userdata' has been deprecated from provider version 1.120.0. New field 'user_data' instead.
Userdata pulumi.StringPtrInput
VersionDescription pulumi.StringPtrInput
VpcId pulumi.StringPtrInput
// The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
VswitchId pulumi.StringPtrInput
// The zone ID of the instance.
ZoneId pulumi.StringPtrInput
}
func (LaunchTemplateArgs) ElementType() reflect.Type {
return reflect.TypeOf((*launchTemplateArgs)(nil)).Elem()
}
type LaunchTemplateInput interface {
pulumi.Input
ToLaunchTemplateOutput() LaunchTemplateOutput
ToLaunchTemplateOutputWithContext(ctx context.Context) LaunchTemplateOutput
}
func (*LaunchTemplate) ElementType() reflect.Type {
return reflect.TypeOf((*LaunchTemplate)(nil))
}
func (i *LaunchTemplate) ToLaunchTemplateOutput() LaunchTemplateOutput {
return i.ToLaunchTemplateOutputWithContext(context.Background())
}
func (i *LaunchTemplate) ToLaunchTemplateOutputWithContext(ctx context.Context) LaunchTemplateOutput {
return pulumi.ToOutputWithContext(ctx, i).(LaunchTemplateOutput)
}
func (i *LaunchTemplate) ToLaunchTemplatePtrOutput() LaunchTemplatePtrOutput {
return i.ToLaunchTemplatePtrOutputWithContext(context.Background())
}
func (i *LaunchTemplate) ToLaunchTemplatePtrOutputWithContext(ctx context.Context) LaunchTemplatePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LaunchTemplatePtrOutput)
}
type LaunchTemplatePtrInput interface {
pulumi.Input
ToLaunchTemplatePtrOutput() LaunchTemplatePtrOutput
ToLaunchTemplatePtrOutputWithContext(ctx context.Context) LaunchTemplatePtrOutput
}
type launchTemplatePtrType LaunchTemplateArgs
func (*launchTemplatePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**LaunchTemplate)(nil))
}
func (i *launchTemplatePtrType) ToLaunchTemplatePtrOutput() LaunchTemplatePtrOutput {
return i.ToLaunchTemplatePtrOutputWithContext(context.Background())
}
func (i *launchTemplatePtrType) ToLaunchTemplatePtrOutputWithContext(ctx context.Context) LaunchTemplatePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LaunchTemplatePtrOutput)
}
// LaunchTemplateArrayInput is an input type that accepts LaunchTemplateArray and LaunchTemplateArrayOutput values.
// You can construct a concrete instance of `LaunchTemplateArrayInput` via:
//
// LaunchTemplateArray{ LaunchTemplateArgs{...} }
type LaunchTemplateArrayInput interface {
pulumi.Input
ToLaunchTemplateArrayOutput() LaunchTemplateArrayOutput
ToLaunchTemplateArrayOutputWithContext(context.Context) LaunchTemplateArrayOutput
}
type LaunchTemplateArray []LaunchTemplateInput
func (LaunchTemplateArray) ElementType() reflect.Type {
return reflect.TypeOf(([]*LaunchTemplate)(nil))
}
func (i LaunchTemplateArray) ToLaunchTemplateArrayOutput() LaunchTemplateArrayOutput {
return i.ToLaunchTemplateArrayOutputWithContext(context.Background())
}
func (i LaunchTemplateArray) ToLaunchTemplateArrayOutputWithContext(ctx context.Context) LaunchTemplateArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LaunchTemplateArrayOutput)
}
// LaunchTemplateMapInput is an input type that accepts LaunchTemplateMap and LaunchTemplateMapOutput values.
// You can construct a concrete instance of `LaunchTemplateMapInput` via:
//
// LaunchTemplateMap{ "key": LaunchTemplateArgs{...} }
type LaunchTemplateMapInput interface {
pulumi.Input
ToLaunchTemplateMapOutput() LaunchTemplateMapOutput
ToLaunchTemplateMapOutputWithContext(context.Context) LaunchTemplateMapOutput
}
type LaunchTemplateMap map[string]LaunchTemplateInput
func (LaunchTemplateMap) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*LaunchTemplate)(nil))
}
func (i LaunchTemplateMap) ToLaunchTemplateMapOutput() LaunchTemplateMapOutput {
return i.ToLaunchTemplateMapOutputWithContext(context.Background())
}
func (i LaunchTemplateMap) ToLaunchTemplateMapOutputWithContext(ctx context.Context) LaunchTemplateMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LaunchTemplateMapOutput)
}
type LaunchTemplateOutput struct {
*pulumi.OutputState
}
func (LaunchTemplateOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LaunchTemplate)(nil))
}
func (o LaunchTemplateOutput) ToLaunchTemplateOutput() LaunchTemplateOutput {
return o
}
func (o LaunchTemplateOutput) ToLaunchTemplateOutputWithContext(ctx context.Context) LaunchTemplateOutput {
return o
}
func (o LaunchTemplateOutput) ToLaunchTemplatePtrOutput() LaunchTemplatePtrOutput {
return o.ToLaunchTemplatePtrOutputWithContext(context.Background())
}
func (o LaunchTemplateOutput) ToLaunchTemplatePtrOutputWithContext(ctx context.Context) LaunchTemplatePtrOutput {
return o.ApplyT(func(v LaunchTemplate) *LaunchTemplate {
return &v
}).(LaunchTemplatePtrOutput)
}
type LaunchTemplatePtrOutput struct {
*pulumi.OutputState
}
func (LaunchTemplatePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LaunchTemplate)(nil))
}
func (o LaunchTemplatePtrOutput) ToLaunchTemplatePtrOutput() LaunchTemplatePtrOutput {
return o
}
func (o LaunchTemplatePtrOutput) ToLaunchTemplatePtrOutputWithContext(ctx context.Context) LaunchTemplatePtrOutput {
return o
}
type LaunchTemplateArrayOutput struct{ *pulumi.OutputState }
func (LaunchTemplateArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]LaunchTemplate)(nil))
}
func (o LaunchTemplateArrayOutput) ToLaunchTemplateArrayOutput() LaunchTemplateArrayOutput {
return o
}
func (o LaunchTemplateArrayOutput) ToLaunchTemplateArrayOutputWithContext(ctx context.Context) LaunchTemplateArrayOutput {
return o
}
func (o LaunchTemplateArrayOutput) Index(i pulumi.IntInput) LaunchTemplateOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) LaunchTemplate {
return vs[0].([]LaunchTemplate)[vs[1].(int)]
}).(LaunchTemplateOutput)
}
type LaunchTemplateMapOutput struct{ *pulumi.OutputState }
func (LaunchTemplateMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]LaunchTemplate)(nil))
}
func (o LaunchTemplateMapOutput) ToLaunchTemplateMapOutput() LaunchTemplateMapOutput {
return o
}
func (o LaunchTemplateMapOutput) ToLaunchTemplateMapOutputWithContext(ctx context.Context) LaunchTemplateMapOutput {
return o
}
func (o LaunchTemplateMapOutput) MapIndex(k pulumi.StringInput) LaunchTemplateOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) LaunchTemplate {
return vs[0].(map[string]LaunchTemplate)[vs[1].(string)]
}).(LaunchTemplateOutput)
}
func init() {
pulumi.RegisterOutputType(LaunchTemplateOutput{})
pulumi.RegisterOutputType(LaunchTemplatePtrOutput{})
pulumi.RegisterOutputType(LaunchTemplateArrayOutput{})
pulumi.RegisterOutputType(LaunchTemplateMapOutput{})
}