LaunchTemplateProps
Properties for defining a LaunchTemplate
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-launchtemplate
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.LaunchTemplateProps {
LaunchTemplateName: interface{},
AutoReleaseTime: interface{},
DeploymentSetId: interface{},
Description: interface{},
DiskMappings: interface{},
HostName: interface{},
ImageId: interface{},
ImageOwnerAlias: interface{},
InstanceChargeType: interface{},
InstanceName: interface{},
InstanceType: interface{},
InternetChargeType: interface{},
InternetMaxBandwidthOut: interface{},
IoOptimized: interface{},
Ipv6AddressCount: interface{},
KeyPairName: interface{},
NetworkInterfaces: interface{},
NetworkType: interface{},
PasswordInherit: interface{},
Period: interface{},
PrivateIpAddress: interface{},
RamRoleName: interface{},
ResourceGroupId: interface{},
SecurityEnhancementStrategy: interface{},
SecurityGroupId: interface{},
SecurityGroupIds: interface{},
SpotDuration: interface{},
SpotPriceLimit: interface{},
SpotStrategy: interface{},
SystemDiskCategory: interface{},
SystemDiskDeleteWithInstance: interface{},
SystemDiskDescription: interface{},
SystemDiskDiskName: interface{},
SystemDiskPerformanceLevel: interface{},
SystemDiskSize: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosLaunchTemplate.TagsProperty,
TemplateResourceGroupId: interface{},
TemplateTags: interface{},
UserData: interface{},
VersionDescription: interface{},
VSwitchId: interface{},
ZoneId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
LaunchTemplateName |
interface{} |
Property launchTemplateName: The name of launch template. |
AutoReleaseTime |
interface{} |
Property autoReleaseTime: Auto release time for created instance, Follow ISO8601 standard using UTC time. |
DeploymentSetId |
interface{} |
Property deploymentSetId: The ID of the deployment set. |
Description |
interface{} |
Property description: Description of the instance, [2, 256] characters. |
DiskMappings |
interface{} |
Property diskMappings: Disk mappings to attach to instance. |
HostName |
interface{} |
Property hostName: Host name of created ecs instance. |
ImageId |
interface{} |
Property imageId: Image ID to create ecs instance. |
ImageOwnerAlias |
interface{} |
Property imageOwnerAlias: The source of the image. |
InstanceChargeType |
interface{} |
Property instanceChargeType: The billing method of the instance. |
InstanceName |
interface{} |
Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'. |
InstanceType |
interface{} |
Property instanceType: Ecs instance supported instance type, make sure it should be correct. |
InternetChargeType |
interface{} |
Property internetChargeType: Instance internet access charge type.Support 'PayByBandwidth' and 'PayByTraffic' only. |
InternetMaxBandwidthOut |
interface{} |
Property internetMaxBandwidthOut: Max internet out bandwidth in Mbps(Mega bit per second). |
IoOptimized |
interface{} |
Property ioOptimized: The 'optimized' instance can provide better IO performance. |
Ipv6AddressCount |
interface{} |
Property ipv6AddressCount: The number of IPv6 addresses to be randomly generated for the primary ENI. |
KeyPairName |
interface{} |
Property keyPairName: SSH key pair name. |
NetworkInterfaces |
interface{} |
Property networkInterfaces: Elastic network interfaces to be attached to instance. |
NetworkType |
interface{} |
Property networkType: Instance network type. |
PasswordInherit |
interface{} |
Property passwordInherit: Specifies whether to use the password preset in the image. |
Period |
interface{} |
Property period: The subscription period of the instance. |
PrivateIpAddress |
interface{} |
Property privateIpAddress: The private IP address of the instance. |
RamRoleName |
interface{} |
Property ramRoleName: Instance RAM role name. |
ResourceGroupId |
interface{} |
Property resourceGroupId: The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and elastic network interface (ENI). |
SecurityEnhancementStrategy |
interface{} |
Property securityEnhancementStrategy: Activate or deactivate security enhancement,Value range: "Active" and "Deactive". |
SecurityGroupId |
interface{} |
Property securityGroupId: Security group to create ecs instance. |
SecurityGroupIds |
interface{} |
Property securityGroupIds: The ID of security group list to which to assign the instance. |
SpotDuration |
interface{} |
Property spotDuration: The protection period of the preemptible instance. |
SpotPriceLimit |
interface{} |
Property spotPriceLimit: The hourly price threshold of a instance, and it takes effect only when parameter InstanceChargeType is PostPaid. |
SpotStrategy |
interface{} |
Property spotStrategy: The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter InstanceChargeType is PostPaid. |
SystemDiskCategory |
interface{} |
Property systemDiskCategory: Category of system disk. |
SystemDiskDeleteWithInstance |
interface{} |
Property systemDiskDeleteWithInstance: Specifies whether to release the system disk when the instance is released. |
SystemDiskDescription |
interface{} |
Property systemDiskDescription: Description of created system disk. |
SystemDiskDiskName |
interface{} |
Property systemDiskDiskName: Name of created system disk. |
SystemDiskPerformanceLevel |
interface{} |
Property systemDiskPerformanceLevel: The performance level of the ESSD that is used as the system disk. |
SystemDiskSize |
interface{} |
Property systemDiskSize: Disk size of the system disk, range from 20 to 500 GB. |
Tags |
*[]TagsProperty |
Property tags: Tags to attach to instance, security group, disk and network interface. |
TemplateResourceGroupId |
interface{} |
Property templateResourceGroupId: The ID of the resource group to which to assign the launch template. |
TemplateTags |
interface{} |
Property templateTags: Template tags to attach to launch template. |
UserData |
interface{} |
Property userData: User data to pass to instance. |
VersionDescription |
interface{} |
Property versionDescription: Description for version 1 of launch template. |
VSwitchId |
interface{} |
Property vSwitchId: The vSwitch Id to create ecs instance. |
ZoneId |
interface{} |
Property zoneId: Current zone to create the instance. |
LaunchTemplateName
Required
LaunchTemplateName interface{}
- Type: interface{}
Property launchTemplateName: The name of launch template.
AutoReleaseTime
Optional
AutoReleaseTime interface{}
- Type: interface{}
Property autoReleaseTime: Auto release time for created instance, Follow ISO8601 standard using UTC time.
format is 'yyyy-MM-ddTHH:mm:ssZ'. Not bigger than 3 years from this day onwards
DeploymentSetId
Optional
DeploymentSetId interface{}
- Type: interface{}
Property deploymentSetId: The ID of the deployment set.
Description
Optional
Description interface{}
- Type: interface{}
Property description: Description of the instance, [2, 256] characters.
DiskMappings
Optional
DiskMappings interface{}
- Type: interface{}
Property diskMappings: Disk mappings to attach to instance.
Max support 16 disks.
HostName
Optional
HostName interface{}
- Type: interface{}
Property hostName: Host name of created ecs instance.
at least 2 characters, and '.' '-' Is not the first and last characters as hostname, not continuous use. Windows platform can be up to 15 characters, allowing letters (without limiting case), numbers and '-', and does not support the number of points, not all is digital ('.').Other (Linux, etc.) platform up to 30 characters, allowing support number multiple points for the period between the points, each permit letters (without limiting case), numbers and '-' components.
ImageId
Optional
ImageId interface{}
- Type: interface{}
Property imageId: Image ID to create ecs instance.
ImageOwnerAlias
Optional
ImageOwnerAlias interface{}
- Type: interface{}
Property imageOwnerAlias: The source of the image.
Valid values: system: public images provided by Alibaba Cloud. self: your custom images. others: shared images from other Alibaba Cloud accounts. marketplace: Alibaba Cloud Marketplace images. If Alibaba Cloud Marketplace images are found, you can use these images without prior subscription. You must pay attention to the billing details of Alibaba Cloud Marketplace images.
InstanceChargeType
Optional
InstanceChargeType interface{}
- Type: interface{}
Property instanceChargeType: The billing method of the instance.
Valid values: PrePaid: subscription. If you set this parameter to PrePaid, make sure that your account supports payment by credit. Otherwise, an InvalidPayMethod error is returned. PostPaid: pay-as-you-go.
InstanceName
Optional
InstanceName interface{}
- Type: interface{}
Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
InstanceType
Optional
InstanceType interface{}
- Type: interface{}
Property instanceType: Ecs instance supported instance type, make sure it should be correct.
InternetChargeType
Optional
InternetChargeType interface{}
- Type: interface{}
Property internetChargeType: Instance internet access charge type.Support 'PayByBandwidth' and 'PayByTraffic' only.
InternetMaxBandwidthOut
Optional
InternetMaxBandwidthOut interface{}
- Type: interface{}
Property internetMaxBandwidthOut: Max internet out bandwidth in Mbps(Mega bit per second).
Range is [0,200].While the property is not 0, public ip will be assigned for instance.
IoOptimized
Optional
IoOptimized interface{}
- Type: interface{}
Property ioOptimized: The 'optimized' instance can provide better IO performance.
Support 'none' and 'optimized' only.
Ipv6AddressCount
Optional
Ipv6AddressCount interface{}
- Type: interface{}
Property ipv6AddressCount: The number of IPv6 addresses to be randomly generated for the primary ENI.
Valid values: 1 to 10.
KeyPairName
Optional
KeyPairName interface{}
- Type: interface{}
Property keyPairName: SSH key pair name.
NetworkInterfaces
Optional
NetworkInterfaces interface{}
- Type: interface{}
Property networkInterfaces: Elastic network interfaces to be attached to instance.
NetworkType
Optional
NetworkType interface{}
- Type: interface{}
Property networkType: Instance network type.
Support 'vpc' and 'classic'
PasswordInherit
Optional
PasswordInherit interface{}
- Type: interface{}
Property passwordInherit: Specifies whether to use the password preset in the image.
Note When you use this parameter, leave Password empty and make sure that the selected image has a password preset.
Period
Optional
Period interface{}
- Type: interface{}
Property period: The subscription period of the instance.
Unit: months. This parameter is valid and required only when InstanceChargeType is set to PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.
PrivateIpAddress
Optional
PrivateIpAddress interface{}
- Type: interface{}
Property privateIpAddress: The private IP address of the instance.
To assign a private IP address to an instance of the VPC type, make sure that the IP address is an idle IP address within the CIDR block of the vSwitch specified by the VSwitchId parameter.
RamRoleName
Optional
RamRoleName interface{}
- Type: interface{}
Property ramRoleName: Instance RAM role name.
The name is provided and maintained by Resource Access Management (RAM) and can be queried using ListRoles. For more information, see RAM API CreateRole and ListRoles.
ResourceGroupId
Optional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group to which to assign the instance, Elastic Block Storage (EBS) device, and elastic network interface (ENI).
SecurityEnhancementStrategy
Optional
SecurityEnhancementStrategy interface{}
- Type: interface{}
Property securityEnhancementStrategy: Activate or deactivate security enhancement,Value range: "Active" and "Deactive".
SecurityGroupId
Optional
SecurityGroupId interface{}
- Type: interface{}
Property securityGroupId: Security group to create ecs instance.
For classic instance need the security group not belong to VPC, for VPC instance, please make sure the security group belong to specified VPC.
SecurityGroupIds
Optional
SecurityGroupIds interface{}
- Type: interface{}
Property securityGroupIds: The ID of security group list to which to assign the instance.
SpotDuration
Optional
SpotDuration interface{}
- Type: interface{}
Property spotDuration: The protection period of the preemptible instance.
Unit: hours. Valid values: 0, 1, 2, 3, 4, 5, and 6. Protection periods of 2, 3, 4, 5, and 6 hours are in invitational preview. If you want to set this parameter to one of these values, submit a ticket. If this parameter is set to 0, no protection period is configured for the preemptible instance. Default value: 1.
SpotPriceLimit
Optional
SpotPriceLimit interface{}
- Type: interface{}
Property spotPriceLimit: The hourly price threshold of a instance, and it takes effect only when parameter InstanceChargeType is PostPaid.
Three decimals is allowed at most.
SpotStrategy
Optional
SpotStrategy interface{}
- Type: interface{}
Property spotStrategy: The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter InstanceChargeType is PostPaid.
Value range: "NoSpot: A regular Pay-As-You-Go instance", "SpotWithPriceLimit: A price threshold for a spot instance, ""SpotAsPriceGo: A price that is based on the highest Pay-As-You-Go instance. "
SystemDiskCategory
Optional
SystemDiskCategory interface{}
- Type: interface{}
Property systemDiskCategory: Category of system disk.
support cloud|cloud_efficiency|cloud_ssd|cloud_essd|ephemeral_ssd
SystemDiskDeleteWithInstance
Optional
SystemDiskDeleteWithInstance interface{}
- Type: interface{}
Property systemDiskDeleteWithInstance: Specifies whether to release the system disk when the instance is released.
Valid values: true: releases the system disk when the instance is released. false: does not release the system disk when the instance is released. Default value: true.
SystemDiskDescription
Optional
SystemDiskDescription interface{}
- Type: interface{}
Property systemDiskDescription: Description of created system disk.
SystemDiskDiskName
Optional
SystemDiskDiskName interface{}
- Type: interface{}
Property systemDiskDiskName: Name of created system disk.
SystemDiskPerformanceLevel
Optional
SystemDiskPerformanceLevel interface{}
- Type: interface{}
Property systemDiskPerformanceLevel: The performance level of the ESSD that is used as the system disk.
Valid values: PL0: A single ESSD can deliver up to 10,000 random read/write IOPS. PL1: A single ESSD can deliver up to 50,000 random read/write IOPS. PL2: A single ESSD can deliver up to 100,000 random read/write IOPS. PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
SystemDiskSize
Optional
SystemDiskSize interface{}
- Type: interface{}
Property systemDiskSize: Disk size of the system disk, range from 20 to 500 GB.
If you specify with your own image, make sure the system disk size bigger than image size.
Tags
Optional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags: Tags to attach to instance, security group, disk and network interface.
TemplateResourceGroupId
Optional
TemplateResourceGroupId interface{}
- Type: interface{}
Property templateResourceGroupId: The ID of the resource group to which to assign the launch template.
TemplateTags
Optional
TemplateTags interface{}
- Type: interface{}
Property templateTags: Template tags to attach to launch template.
UserData
Optional
UserData interface{}
- Type: interface{}
Property userData: User data to pass to instance.
[1, 16KB] characters.
VersionDescription
Optional
VersionDescription interface{}
- Type: interface{}
Property versionDescription: Description for version 1 of launch template.
VSwitchId
Optional
VSwitchId interface{}
- Type: interface{}
Property vSwitchId: The vSwitch Id to create ecs instance.
ZoneId
Optional
ZoneId interface{}
- Type: interface{}
Property zoneId: Current zone to create the instance.