public class CreateLaunchTemplateVersionRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
autoReleaseTime
The automatic release time of the instance.
|
Boolean |
autoRenew
Specifies whether to enable auto-renewal for the instance.
|
Integer |
autoRenewPeriod
The auto-renewal period of the instance.
|
String |
creditSpecification
The performance mode of the burstable instance.
|
List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> |
dataDisk
The data disks.
|
Boolean |
deletionProtection
Specifies whether to enable release protection for the instance.
|
String |
deploymentSetId
The ID of the deployment set to which to deploy the instance.
|
String |
description
The description of the instance.
|
Boolean |
enableVmOsConfig
Specifies whether to enable the operating system configuration of the instance.
|
String |
hostName
The hostname of the instance.
|
String |
httpEndpoint
example:
enabled
|
Integer |
httpPutResponseHopLimit
example:
3
|
String |
httpTokens
example:
optional
|
String |
imageId
The ID of the image to use to create the Elastic Compute Service (ECS) instance.
|
String |
imageOwnerAlias
The source of the image.
|
String |
instanceChargeType
The billing method of the instance.
|
String |
instanceName
The instance name.
|
String |
instanceType
The instance type.
|
String |
internetChargeType
The billing method for network usage.
|
Integer |
internetMaxBandwidthIn
The maximum inbound public bandwidth.
|
Integer |
internetMaxBandwidthOut
The maximum outbound public bandwidth.
|
String |
ioOptimized
Specifies whether to create an I/O optimized instance.
|
Integer |
ipv6AddressCount
The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI).
|
String |
keyPairName
The name of the key pair to bind to the instance.
|
String |
launchTemplateId
The ID of the launch template.
|
String |
launchTemplateName
The name of the launch template.
|
List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> |
networkInterface
The information of the elastic network interfaces (ENIs).
|
String |
networkType
The network type of the instance.
|
String |
ownerAccount |
Long |
ownerId |
Boolean |
passwordInherit
Specifies whether to use the password that is preconfigured in the image.
|
Integer |
period
The subscription period of the instance.
|
String |
periodUnit
The unit of the subscription period.
|
String |
privateIpAddress
The private IP address to assign to the instance.
|
String |
ramRoleName
The name of the instance Resource Access Management (RAM) role.
|
String |
regionId
The region ID of the command.
|
String |
resourceGroupId
The ID of the resource group to which to assign the instance.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
securityEnhancementStrategy
Specifies whether to enable security hardening for the operating system.
|
String |
securityGroupId
The ID of the security group to which to assign the ECS instance created based on the launch template version.
|
List<String> |
securityGroupIds
The ID of security group N to which to assign the instance.
|
Integer |
spotDuration
The protection period of the preemptible instance.
|
Float |
spotPriceLimit
The maximum hourly price of the preemptible instance.
|
String |
spotStrategy
The preemption policy for the pay-as-you-go instance.
|
CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk |
systemDisk |
List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> |
tag
The tags to add to the ECS instance, disks, and primary elastic network interface (ENI) created based on the launch template version.
|
String |
userData
The user data of the instance.
|
String |
versionDescription
The description of the launch template version.
|
String |
vpcId
The ID of the virtual private cloud (VPC) in which to create the ECS instance.
|
String |
vSwitchId
The ID of the vSwitch to which to connect the instance.
|
String |
zoneId
The ID of the zone to which the instance belongs.
|
构造器和说明 |
---|
CreateLaunchTemplateVersionRequest() |
@NameInMap(value="SystemDisk") public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk systemDisk
@NameInMap(value="AutoReleaseTime") public String autoReleaseTime
The automatic release time of the instance. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
ss
is not 00
, the time is automatically rounded down to the nearest minute based on the value of mm
.2018-01-01T12:05:00Z
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal for the instance. This parameter is valid only if InstanceChargeType
is set to PrePaid
. Valid values:
Default value: false.
example:true
@NameInMap(value="AutoRenewPeriod") public Integer autoRenewPeriod
The auto-renewal period of the instance. Valid values:
Valid values when PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.
Default value: 1.
example:1
@NameInMap(value="CreditSpecification") public String creditSpecification
The performance mode of the burstable instance. Valid values:
Standard
@NameInMap(value="DataDisk") public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> dataDisk
The data disks.
@NameInMap(value="DeletionProtection") public Boolean deletionProtection
Specifies whether to enable release protection for the instance. This parameter specifies whether you can use the ECS console or call the DeleteInstance operation to release the instance. Valid values:
Default value: false.
example:This parameter is applicable only to pay-as-you-go instances. The release protection feature can protect instances against manual releases, but not against automatic releases.
false
@NameInMap(value="DeploymentSetId") public String deploymentSetId
The ID of the deployment set to which to deploy the instance.
example:ds-bp1brhwhoqinyjd6****
@NameInMap(value="Description") public String description
The description of the instance. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
testDescription
@NameInMap(value="EnableVmOsConfig") public Boolean enableVmOsConfig
Specifies whether to enable the operating system configuration of the instance.
example:false
@NameInMap(value="HostName") public String hostName
The hostname of the instance.
testHostName
@NameInMap(value="HttpEndpoint") public String httpEndpoint
enabled
@NameInMap(value="HttpPutResponseHopLimit") public Integer httpPutResponseHopLimit
3
@NameInMap(value="HttpTokens") public String httpTokens
optional
@NameInMap(value="ImageId") public String imageId
The ID of the image to use to create the Elastic Compute Service (ECS) instance. You can call the DescribeImages operation to query available images.
example:win2008r2_64_ent_sp1_en-us_40G_alibase_20170915.vhd
@NameInMap(value="ImageOwnerAlias") public String imageOwnerAlias
The source of the image.
example:This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
system
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the instance. Valid values:
InvalidPayMethod
error is returned.PrePaid
@NameInMap(value="InstanceName") public String instanceName
The instance name. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-). The default value of this parameter is the InstanceId
value.
When you create multiple ECS instances at a time, you can batch configure sequential names for the instances. The instance names can contain square brackets ([]) and commas (,). For more information, see Batch configure sequential names or hostnames for multiple instances.
example:k8s-node-[1,4]-alibabacloud
@NameInMap(value="InstanceType") public String instanceType
The instance type. For more information, see Overview of instance families. You can also call the DescribeInstanceTypes operation to query the most recent list of instance types.
example:ecs.g5.large
@NameInMap(value="InternetChargeType") public String internetChargeType
The billing method for network usage. Default value: PayByTraffic. Valid values:
example:When the pay-by-traffic billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the pay-by-bandwidth billing method for network usage.
PayByTraffic
@NameInMap(value="InternetMaxBandwidthIn") public Integer internetMaxBandwidthIn
The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:
InternetMaxBandwidthOut
value and the default value is the InternetMaxBandwidthOut
value.50
@NameInMap(value="InternetMaxBandwidthOut") public Integer internetMaxBandwidthOut
The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.
example:5
@NameInMap(value="IoOptimized") public String ioOptimized
Specifies whether to create an I/O optimized instance. Valid values:
optimized
@NameInMap(value="Ipv6AddressCount") public Integer ipv6AddressCount
The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI). Valid values: 1 to 10.
example:1
@NameInMap(value="KeyPairName") public String keyPairName
The name of the key pair to bind to the instance.
Password
parameter is valid even if the KeyPairName parameter is specified.testKeyPairName
@NameInMap(value="LaunchTemplateId") public String launchTemplateId
The ID of the launch template. For more information, call the DescribeLaunchTemplates operation. You must specify LaunchTemplateId
or LaunchTemplateName
to specify a launch template.
lt-m5eiaupmvm2op9d****
@NameInMap(value="LaunchTemplateName") public String launchTemplateName
The name of the launch template. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http://
or https://
. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
testLaunchTemplateName
@NameInMap(value="NetworkInterface") public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> networkInterface
The information of the elastic network interfaces (ENIs).
@NameInMap(value="NetworkType") public String networkType
The network type of the instance. Valid values:
vpc
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PasswordInherit") public Boolean passwordInherit
Specifies whether to use the password that is preconfigured in the image. Valid values:
Default value: false.
example:If you specify PasswordInherit, you must leave Password empty and make sure that a password is preconfigured for the image.
false
@NameInMap(value="Period") public Integer 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.
1
@NameInMap(value="PeriodUnit") public String periodUnit
The unit of the subscription period. Valid values:
Month (default)
example:Month
@NameInMap(value="PrivateIpAddress") public String privateIpAddress
The private IP address to assign to 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.
10.1.**.**
@NameInMap(value="RamRoleName") public String ramRoleName
The name of the instance Resource Access Management (RAM) role. You can call the ListRoles operation provided by RAM to query the instance RAM roles that you created.
example:testRamRoleName
@NameInMap(value="RegionId") public String regionId
The region ID of the command. You can call the DescribeRegions operation to query the most recent list of regions.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the instance.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SecurityEnhancementStrategy") public String securityEnhancementStrategy
Specifies whether to enable security hardening for the operating system. Valid values:
Active
@NameInMap(value="SecurityGroupId") public String securityGroupId
The ID of the security group to which to assign the ECS instance created based on the launch template version. Instances in the same security group can access each other.
example:You cannot specify
SecurityGroupId
andSecurityGroupIds.N
in the same request.
sg-bp15ed6xe1yxeycg****
@NameInMap(value="SecurityGroupIds") public List<String> securityGroupIds
The ID of security group N to which to assign the instance. The valid values of N depend on the maximum number of security groups to which the instance can belong. For more information, see Quantity limits.
example:The
SecurityGroupId
parameter and theSecurityGroupIds.N
parameter are mutually exclusive.
sg-bp15ed6xe1yxeycg7****
@NameInMap(value="SpotDuration") public Integer spotDuration
The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values:
Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify a protection period based on your business requirements.
example:This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
1
@NameInMap(value="SpotPriceLimit") public Float spotPriceLimit
The maximum hourly price of the preemptible instance. A maximum of three decimal places are allowed.
example:0.97
@NameInMap(value="SpotStrategy") public String spotStrategy
The preemption policy for the pay-as-you-go instance. This parameter is valid only when the InstanceChargeType
parameter is set to PostPaid
. Default value: NoSpot. Valid values:
NoSpot
@NameInMap(value="Tag") public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> tag
The tags to add to the ECS instance, disks, and primary elastic network interface (ENI) created based on the launch template version.
@NameInMap(value="UserData") public String userData
The user data of the instance. The user data must be encoded in Base64. The maximum size of raw data is 32 KB.
example:ZWNobyBoZWxsbyBl****
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch to which to connect the instance. This parameter is required if you specify the VpcId parameter.
example:vsw-bp1s5fnvk4gn2tws0****
@NameInMap(value="VersionDescription") public String versionDescription
The description of the launch template version. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
testVersionDescription
@NameInMap(value="VpcId") public String vpcId
The ID of the virtual private cloud (VPC) in which to create the ECS instance.
example:vpc-bp12433upq1y5scen****
@NameInMap(value="ZoneId") public String zoneId
The ID of the zone to which the instance belongs.
example:cn-hangzhou-g
public static CreateLaunchTemplateVersionRequest build(Map<String,?> map) throws Exception
Exception
public CreateLaunchTemplateVersionRequest setSystemDisk(CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk systemDisk)
public CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestSystemDisk getSystemDisk()
public CreateLaunchTemplateVersionRequest setAutoReleaseTime(String autoReleaseTime)
public String getAutoReleaseTime()
public CreateLaunchTemplateVersionRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public CreateLaunchTemplateVersionRequest setAutoRenewPeriod(Integer autoRenewPeriod)
public Integer getAutoRenewPeriod()
public CreateLaunchTemplateVersionRequest setCreditSpecification(String creditSpecification)
public String getCreditSpecification()
public CreateLaunchTemplateVersionRequest setDataDisk(List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> dataDisk)
public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestDataDisk> getDataDisk()
public CreateLaunchTemplateVersionRequest setDeletionProtection(Boolean deletionProtection)
public Boolean getDeletionProtection()
public CreateLaunchTemplateVersionRequest setDeploymentSetId(String deploymentSetId)
public String getDeploymentSetId()
public CreateLaunchTemplateVersionRequest setDescription(String description)
public String getDescription()
public CreateLaunchTemplateVersionRequest setEnableVmOsConfig(Boolean enableVmOsConfig)
public Boolean getEnableVmOsConfig()
public CreateLaunchTemplateVersionRequest setHostName(String hostName)
public String getHostName()
public CreateLaunchTemplateVersionRequest setHttpEndpoint(String httpEndpoint)
public String getHttpEndpoint()
public CreateLaunchTemplateVersionRequest setHttpPutResponseHopLimit(Integer httpPutResponseHopLimit)
public Integer getHttpPutResponseHopLimit()
public CreateLaunchTemplateVersionRequest setHttpTokens(String httpTokens)
public String getHttpTokens()
public CreateLaunchTemplateVersionRequest setImageId(String imageId)
public String getImageId()
public CreateLaunchTemplateVersionRequest setImageOwnerAlias(String imageOwnerAlias)
public String getImageOwnerAlias()
public CreateLaunchTemplateVersionRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateLaunchTemplateVersionRequest setInstanceName(String instanceName)
public String getInstanceName()
public CreateLaunchTemplateVersionRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateLaunchTemplateVersionRequest setInternetChargeType(String internetChargeType)
public String getInternetChargeType()
public CreateLaunchTemplateVersionRequest setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn)
public Integer getInternetMaxBandwidthIn()
public CreateLaunchTemplateVersionRequest setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut)
public Integer getInternetMaxBandwidthOut()
public CreateLaunchTemplateVersionRequest setIoOptimized(String ioOptimized)
public String getIoOptimized()
public CreateLaunchTemplateVersionRequest setIpv6AddressCount(Integer ipv6AddressCount)
public Integer getIpv6AddressCount()
public CreateLaunchTemplateVersionRequest setKeyPairName(String keyPairName)
public String getKeyPairName()
public CreateLaunchTemplateVersionRequest setLaunchTemplateId(String launchTemplateId)
public String getLaunchTemplateId()
public CreateLaunchTemplateVersionRequest setLaunchTemplateName(String launchTemplateName)
public String getLaunchTemplateName()
public CreateLaunchTemplateVersionRequest setNetworkInterface(List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> networkInterface)
public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestNetworkInterface> getNetworkInterface()
public CreateLaunchTemplateVersionRequest setNetworkType(String networkType)
public String getNetworkType()
public CreateLaunchTemplateVersionRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateLaunchTemplateVersionRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateLaunchTemplateVersionRequest setPasswordInherit(Boolean passwordInherit)
public Boolean getPasswordInherit()
public CreateLaunchTemplateVersionRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateLaunchTemplateVersionRequest setPeriodUnit(String periodUnit)
public String getPeriodUnit()
public CreateLaunchTemplateVersionRequest setPrivateIpAddress(String privateIpAddress)
public String getPrivateIpAddress()
public CreateLaunchTemplateVersionRequest setRamRoleName(String ramRoleName)
public String getRamRoleName()
public CreateLaunchTemplateVersionRequest setRegionId(String regionId)
public String getRegionId()
public CreateLaunchTemplateVersionRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateLaunchTemplateVersionRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateLaunchTemplateVersionRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateLaunchTemplateVersionRequest setSecurityEnhancementStrategy(String securityEnhancementStrategy)
public String getSecurityEnhancementStrategy()
public CreateLaunchTemplateVersionRequest setSecurityGroupId(String securityGroupId)
public String getSecurityGroupId()
public CreateLaunchTemplateVersionRequest setSecurityGroupIds(List<String> securityGroupIds)
public CreateLaunchTemplateVersionRequest setSpotDuration(Integer spotDuration)
public Integer getSpotDuration()
public CreateLaunchTemplateVersionRequest setSpotPriceLimit(Float spotPriceLimit)
public Float getSpotPriceLimit()
public CreateLaunchTemplateVersionRequest setSpotStrategy(String spotStrategy)
public String getSpotStrategy()
public CreateLaunchTemplateVersionRequest setTag(List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> tag)
public List<CreateLaunchTemplateVersionRequest.CreateLaunchTemplateVersionRequestTag> getTag()
public CreateLaunchTemplateVersionRequest setUserData(String userData)
public String getUserData()
public CreateLaunchTemplateVersionRequest setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateLaunchTemplateVersionRequest setVersionDescription(String versionDescription)
public String getVersionDescription()
public CreateLaunchTemplateVersionRequest setVpcId(String vpcId)
public String getVpcId()
public CreateLaunchTemplateVersionRequest setZoneId(String zoneId)
public String getZoneId()
Copyright © 2024. All rights reserved.