public class CreateAutoScalingGroupRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateAutoScalingGroupRequest() |
CreateAutoScalingGroupRequest(CreateAutoScalingGroupRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAutoScalingGroupName()
Get Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account.
|
Boolean |
getCapacityRebalance()
Get Capacity rebalancing feature, which is applicable only to spot instances within the scaling group.
|
Long |
getDefaultCooldown()
Get Default cooldown period in seconds.
|
Long |
getDesiredCapacity()
Get The expected number of instances, in the range of [0,2000], default value equals current MinSize, and must meet MaxSize >= DesiredCapacity >= MinSize.
|
ForwardLoadBalancer[] |
getForwardLoadBalancers()
Get Specifies the list of load balancers with a current maximum length of 100.
|
String |
getHealthCheckType()
Get Health check type for scaling group instances.
|
String |
getInstanceAllocationPolicy()
Get Instance assignment policy.
|
InstanceNameIndexSettings |
getInstanceNameIndexSettings()
Get Instance name sequencing settings.
|
Long |
getIpv6AddressCount()
Get The number of IPv6 addresses that an instance has.
|
String |
getLaunchConfigurationId()
Get Launch configuration ID.
|
Long |
getLoadBalancerHealthCheckGracePeriod()
Get Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.
Valid range: 0-7200, in seconds. |
String[] |
getLoadBalancerIds()
Get A list of classic load balancer ids with a current maximum length of 20.
|
Long |
getMaxSize()
Get Maximum instance count.
|
Long |
getMinSize()
Get Minimum number of instances.
|
String |
getMultiZoneSubnetPolicy()
Get Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
|
Long |
getProjectId()
Get Project ID of the instance within the scaling group.
|
String |
getRetryPolicy()
Get Retry policy.
|
ServiceSettings |
getServiceSettings()
Get Service settings such as unhealthy instance replacement.
|
SpotMixedAllocationPolicy |
getSpotMixedAllocationPolicy()
Get Specifies how to assign pay-as-you-go instances and spot instances.
|
String[] |
getSubnetIds()
Get The subnet ID list must specify a subnet in VPC scenarios.
|
Tag[] |
getTags()
Get List of Tag descriptions.
|
String[] |
getTerminationPolicies()
Get Termination policy, whose maximum length is currently 1.
|
String |
getVpcId()
Get vpc ID.
|
String[] |
getZones()
Get List of availability zones.
|
String |
getZonesCheckPolicy()
Get AZ verification policy.
|
void |
setAutoScalingGroupName(String AutoScalingGroupName)
Set Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account.
|
void |
setCapacityRebalance(Boolean CapacityRebalance)
Set Capacity rebalancing feature, which is applicable only to spot instances within the scaling group.
|
void |
setDefaultCooldown(Long DefaultCooldown)
Set Default cooldown period in seconds.
|
void |
setDesiredCapacity(Long DesiredCapacity)
Set The expected number of instances, in the range of [0,2000], default value equals current MinSize, and must meet MaxSize >= DesiredCapacity >= MinSize.
|
void |
setForwardLoadBalancers(ForwardLoadBalancer[] ForwardLoadBalancers)
Set Specifies the list of load balancers with a current maximum length of 100.
|
void |
setHealthCheckType(String HealthCheckType)
Set Health check type for scaling group instances.
|
void |
setInstanceAllocationPolicy(String InstanceAllocationPolicy)
Set Instance assignment policy.
|
void |
setInstanceNameIndexSettings(InstanceNameIndexSettings InstanceNameIndexSettings)
Set Instance name sequencing settings.
|
void |
setIpv6AddressCount(Long Ipv6AddressCount)
Set The number of IPv6 addresses that an instance has.
|
void |
setLaunchConfigurationId(String LaunchConfigurationId)
Set Launch configuration ID.
|
void |
setLoadBalancerHealthCheckGracePeriod(Long LoadBalancerHealthCheckGracePeriod)
Set Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.
Valid range: 0-7200, in seconds. |
void |
setLoadBalancerIds(String[] LoadBalancerIds)
Set A list of classic load balancer ids with a current maximum length of 20.
|
void |
setMaxSize(Long MaxSize)
Set Maximum instance count.
|
void |
setMinSize(Long MinSize)
Set Minimum number of instances.
|
void |
setMultiZoneSubnetPolicy(String MultiZoneSubnetPolicy)
Set Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
|
void |
setProjectId(Long ProjectId)
Set Project ID of the instance within the scaling group.
|
void |
setRetryPolicy(String RetryPolicy)
Set Retry policy.
|
void |
setServiceSettings(ServiceSettings ServiceSettings)
Set Service settings such as unhealthy instance replacement.
|
void |
setSpotMixedAllocationPolicy(SpotMixedAllocationPolicy SpotMixedAllocationPolicy)
Set Specifies how to assign pay-as-you-go instances and spot instances.
|
void |
setSubnetIds(String[] SubnetIds)
Set The subnet ID list must specify a subnet in VPC scenarios.
|
void |
setTags(Tag[] Tags)
Set List of Tag descriptions.
|
void |
setTerminationPolicies(String[] TerminationPolicies)
Set Termination policy, whose maximum length is currently 1.
|
void |
setVpcId(String VpcId)
Set vpc ID.
|
void |
setZones(String[] Zones)
Set List of availability zones.
|
void |
setZonesCheckPolicy(String ZonesCheckPolicy)
Set AZ verification policy.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateAutoScalingGroupRequest()
public CreateAutoScalingGroupRequest(CreateAutoScalingGroupRequest source)
public String getAutoScalingGroupName()
public void setAutoScalingGroupName(String AutoScalingGroupName)
AutoScalingGroupName
- Auto scaling group name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 55 bytes and must be unique under your account.public String getLaunchConfigurationId()
public void setLaunchConfigurationId(String LaunchConfigurationId)
LaunchConfigurationId
- Launch configuration ID. you can obtain the launch configuration ID by logging in to the [console](https://console.cloud.tencent.com/autoscaling/config) or making an api call to [DescribeLaunchConfigurations](https://intl.cloud.tencent.com/document/api/377/20445?from_cn_redirect=1) and retrieving the LaunchConfigurationId from the returned information.public Long getMaxSize()
public void setMaxSize(Long MaxSize)
MaxSize
- Maximum instance count. value range [0,2000]. to meet MaxSize >= DesiredCapacity >= MinSize.public Long getMinSize()
public void setMinSize(Long MinSize)
MinSize
- Minimum number of instances. value range: [0,2000]. to meet MaxSize >= DesiredCapacity >= MinSize at the same time.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- vpc ID. a valid vpc ID can be queried by logging in to the console (https://console.cloud.tencent.com/vpc/vpc). you can also call the api DescribeVpc (https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) and obtain it from the VpcId field in the api response.public Long getDefaultCooldown()
public void setDefaultCooldown(Long DefaultCooldown)
DefaultCooldown
- Default cooldown period in seconds. default value: 300. value range: [0,3600].public Long getDesiredCapacity()
public void setDesiredCapacity(Long DesiredCapacity)
DesiredCapacity
- The expected number of instances, in the range of [0,2000], default value equals current MinSize, and must meet MaxSize >= DesiredCapacity >= MinSize.public String[] getLoadBalancerIds()
public void setLoadBalancerIds(String[] LoadBalancerIds)
LoadBalancerIds
- A list of classic load balancer ids with a current maximum length of 20. either LoadBalancerIds or ForwardLoadBalancers can be specified at the same time. can be obtained through the [DescribeLoadBalancers](https://intl.cloud.tencent.com/document/product/214/30685?from_cn_redirect=1) api.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID of the instance within the scaling group. default value is 0, indicates usage of the default project. obtain this parameter by calling [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1), `projectId` field in the return value.public ForwardLoadBalancer[] getForwardLoadBalancers()
public void setForwardLoadBalancers(ForwardLoadBalancer[] ForwardLoadBalancers)
ForwardLoadBalancers
- Specifies the list of load balancers with a current maximum length of 100. either LoadBalancerIds or ForwardLoadBalancers can be specified at the same time.public String[] getSubnetIds()
public void setSubnetIds(String[] SubnetIds)
SubnetIds
- The subnet ID list must specify a subnet in VPC scenarios. multiple subnets are attempted sequentially based on the fill-in order as priority until successful instance creation. effective VPC subnet ids can be queried by logging in to the console (https://console.cloud.tencent.com/VPC/subnet) or obtained from the SubnetId field in the API response by calling the DescribeSubnets API (https://intl.cloud.tencent.com/document/product/215/15784?from_cn_redirect=1).public String[] getTerminationPolicies()
public void setTerminationPolicies(String[] TerminationPolicies)
TerminationPolicies
- Termination policy, whose maximum length is currently 1. Valid values: OLDEST_INSTANCE and NEWEST_INSTANCE. Default value: OLDEST_INSTANCE.
public String[] getZones()
public void setZones(String[] Zones)
Zones
- List of availability zones. An availability zone must be specified in the basic network scenario. If multiple availability zones are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created.public String getRetryPolicy()
public void setRetryPolicy(String RetryPolicy)
RetryPolicy
- Retry policy. Valid values: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. A partially successful scaling activity is considered a failed activity.
public String getZonesCheckPolicy()
public void setZonesCheckPolicy(String ZonesCheckPolicy)
ZonesCheckPolicy
- AZ verification policy. Valid values: ALL and ANY. Default value: ANY.
public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of Tag descriptions. by specifying this parameter, you can bind tags to a scaling group and corresponding resource instances. each scaling group supports up to 30 tags. you can call the [GetTags](https://intl.cloud.tencent.com/document/product/651/72275?from_cn_redirect=1) API to retrieve existing Tag key-value pairs based on the response.public ServiceSettings getServiceSettings()
public void setServiceSettings(ServiceSettings ServiceSettings)
ServiceSettings
- Service settings such as unhealthy instance replacement.public Long getIpv6AddressCount()
public void setIpv6AddressCount(Long Ipv6AddressCount)
Ipv6AddressCount
- The number of IPv6 addresses that an instance has. valid values: 0 and 1. default value: 0, which means the instance does not allocate an IPv6 address. use a private network that supports IPv6 and enable IPv6 CIDR in the subnet. for other usage restrictions, see [IPv6 usage limits](https://intl.cloud.tencent.com/document/product/1142/38369?from_cn_redirect=1).public String getMultiZoneSubnetPolicy()
public void setMultiZoneSubnetPolicy(String MultiZoneSubnetPolicy)
MultiZoneSubnetPolicy
- Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
public String getHealthCheckType()
public void setHealthCheckType(String HealthCheckType)
HealthCheckType
- Health check type for scaling group instances. Valid values:
public Long getLoadBalancerHealthCheckGracePeriod()
public void setLoadBalancerHealthCheckGracePeriod(Long LoadBalancerHealthCheckGracePeriod)
LoadBalancerHealthCheckGracePeriod
- Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.public String getInstanceAllocationPolicy()
public void setInstanceAllocationPolicy(String InstanceAllocationPolicy)
InstanceAllocationPolicy
- Instance assignment policy. Valid values: LAUNCH_CONFIGURATION and SPOT_MIXED. Default value: LAUNCH_CONFIGURATION.
public SpotMixedAllocationPolicy getSpotMixedAllocationPolicy()
public void setSpotMixedAllocationPolicy(SpotMixedAllocationPolicy SpotMixedAllocationPolicy)
SpotMixedAllocationPolicy
- Specifies how to assign pay-as-you-go instances and spot instances.
This parameter is valid only when `InstanceAllocationPolicy ` is set to `SPOT_MIXED`.public Boolean getCapacityRebalance()
public void setCapacityRebalance(Boolean CapacityRebalance)
CapacityRebalance
- Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
public InstanceNameIndexSettings getInstanceNameIndexSettings()
public void setInstanceNameIndexSettings(InstanceNameIndexSettings InstanceNameIndexSettings)
InstanceNameIndexSettings
- Instance name sequencing settings. If this parameter is not specified, the default is not enabled. When enabled, an incremental numeric sequence will be appended to the names of instances automatically created within the scaling group.Copyright © 2025. All rights reserved.