tencentcloud-sdk-python-intl-en 3.0.1068__py2.py3-none-any.whl → 3.0.1070__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/models.py +3 -3
  3. tencentcloud/antiddos/v20200309/antiddos_client.py +23 -0
  4. tencentcloud/antiddos/v20200309/models.py +141 -0
  5. tencentcloud/apigateway/v20180808/apigateway_client.py +0 -1
  6. tencentcloud/apigateway/v20180808/models.py +5 -5
  7. tencentcloud/autoscaling/v20180419/errorcodes.py +9 -0
  8. tencentcloud/autoscaling/v20180419/models.py +216 -70
  9. tencentcloud/billing/v20180709/billing_client.py +23 -0
  10. tencentcloud/billing/v20180709/errorcodes.py +6 -0
  11. tencentcloud/billing/v20180709/models.py +227 -0
  12. tencentcloud/captcha/v20190722/models.py +17 -5
  13. tencentcloud/ciam/v20220331/models.py +15 -15
  14. tencentcloud/cvm/v20170312/models.py +0 -1
  15. tencentcloud/mdl/v20200326/models.py +12 -0
  16. tencentcloud/ocr/v20181119/models.py +56 -0
  17. tencentcloud/ocr/v20181119/ocr_client.py +1 -0
  18. tencentcloud/tcss/v20201101/models.py +433 -1
  19. tencentcloud/tmt/v20180321/errorcodes.py +21 -0
  20. tencentcloud/tmt/v20180321/models.py +1 -1
  21. tencentcloud/trtc/v20190722/models.py +58 -0
  22. tencentcloud/trtc/v20190722/trtc_client.py +23 -0
  23. tencentcloud/vod/v20180717/models.py +896 -9
  24. tencentcloud/vpc/v20170312/errorcodes.py +1 -1
  25. tencentcloud/vpc/v20170312/models.py +76 -0
  26. tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  27. {tencentcloud_sdk_python_intl_en-3.0.1068.dist-info → tencentcloud_sdk_python_intl_en-3.0.1070.dist-info}/METADATA +1 -1
  28. {tencentcloud_sdk_python_intl_en-3.0.1068.dist-info → tencentcloud_sdk_python_intl_en-3.0.1070.dist-info}/RECORD +30 -30
  29. {tencentcloud_sdk_python_intl_en-3.0.1068.dist-info → tencentcloud_sdk_python_intl_en-3.0.1070.dist-info}/WHEEL +0 -0
  30. {tencentcloud_sdk_python_intl_en-3.0.1068.dist-info → tencentcloud_sdk_python_intl_en-3.0.1070.dist-info}/top_level.txt +0 -0
@@ -1316,12 +1316,16 @@ Setting it to `true` will clear the instance name settings, which means that CVM
1316
1316
  :param _ClearDisasterRecoverGroupIds: Whether to clear placement group information. This parameter is optional. Default value: `false`.
1317
1317
  `True` means clearing placement group information. After that, no placement groups are specified for CVMs created based on the information.
1318
1318
  :type ClearDisasterRecoverGroupIds: bool
1319
+ :param _ClearInstanceTags: Whether to clear the instance tag list. This parameter is optional, and its default value is false.
1320
+ If true is filled in, it indicates that the instance tag list should be cleared. After the list is cleared, the CVMs created based on this will not be bound to the tags in the list.
1321
+ :type ClearInstanceTags: bool
1319
1322
  """
1320
1323
  self._LaunchConfigurationId = None
1321
1324
  self._ClearDataDisks = None
1322
1325
  self._ClearHostNameSettings = None
1323
1326
  self._ClearInstanceNameSettings = None
1324
1327
  self._ClearDisasterRecoverGroupIds = None
1328
+ self._ClearInstanceTags = None
1325
1329
 
1326
1330
  @property
1327
1331
  def LaunchConfigurationId(self):
@@ -1363,6 +1367,14 @@ Setting it to `true` will clear the instance name settings, which means that CVM
1363
1367
  def ClearDisasterRecoverGroupIds(self, ClearDisasterRecoverGroupIds):
1364
1368
  self._ClearDisasterRecoverGroupIds = ClearDisasterRecoverGroupIds
1365
1369
 
1370
+ @property
1371
+ def ClearInstanceTags(self):
1372
+ return self._ClearInstanceTags
1373
+
1374
+ @ClearInstanceTags.setter
1375
+ def ClearInstanceTags(self, ClearInstanceTags):
1376
+ self._ClearInstanceTags = ClearInstanceTags
1377
+
1366
1378
 
1367
1379
  def _deserialize(self, params):
1368
1380
  self._LaunchConfigurationId = params.get("LaunchConfigurationId")
@@ -1370,6 +1382,7 @@ Setting it to `true` will clear the instance name settings, which means that CVM
1370
1382
  self._ClearHostNameSettings = params.get("ClearHostNameSettings")
1371
1383
  self._ClearInstanceNameSettings = params.get("ClearInstanceNameSettings")
1372
1384
  self._ClearDisasterRecoverGroupIds = params.get("ClearDisasterRecoverGroupIds")
1385
+ self._ClearInstanceTags = params.get("ClearInstanceTags")
1373
1386
  memeber_set = set(params.keys())
1374
1387
  for name, value in vars(self).items():
1375
1388
  property_name = name[1:]
@@ -2069,12 +2082,12 @@ Note that this project ID is not the same as the project ID of the scaling group
2069
2082
  :type InstanceTypes: list of str
2070
2083
  :param _CamRoleName: CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API.
2071
2084
  :type CamRoleName: str
2072
- :param _InstanceTypesCheckPolicy: Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
2073
- <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
2074
- <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported.
2085
+ :param _InstanceTypesCheckPolicy: InstanceType verification policy, whose valid values include ALL and ANY, with the default value being ANY.
2086
+ <li>ALL: Verification passes if all InstanceTypes are available; otherwise, a verification error will be reported.</li>
2087
+ <li>ANY: Verification passes if any InstanceType is available; otherwise, a verification error will be reported.</li>
2075
2088
 
2076
- Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk.
2077
- If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy.
2089
+ Common reasons for unavailable InstanceTypes include the InstanceType being sold out, and the corresponding cloud disk being sold out.
2090
+ If a model in InstanceTypes does not exist or has been abolished, a verification error will be reported regardless of the valid values set for InstanceTypesCheckPolicy.
2078
2091
  :type InstanceTypesCheckPolicy: str
2079
2092
  :param _InstanceTags: List of tags. This parameter is used to bind up to 10 tags to newly added instances.
2080
2093
  :type InstanceTags: list of InstanceTag
@@ -2087,9 +2100,9 @@ If this field is configured in a launch configuration, the `InstanceName` of a C
2087
2100
  :type InstanceNameSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameSettings`
2088
2101
  :param _InstanceChargePrepaid: Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
2089
2102
  :type InstanceChargePrepaid: :class:`tencentcloud.autoscaling.v20180419.models.InstanceChargePrepaid`
2090
- :param _DiskTypePolicy: Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
2091
- <br><li>ORIGINAL: uses the configured cloud disk type
2092
- <br><li>AUTOMATIC: automatically chooses an available cloud disk type
2103
+ :param _DiskTypePolicy: Cloud disk type selection policy, whose default value is ORIGINAL. Valid values:
2104
+ <li>ORIGINAL: Use the set cloud disk type.</li>
2105
+ <li>AUTOMATIC: Automatically select the currently available cloud disk type.</li>
2093
2106
  :type DiskTypePolicy: str
2094
2107
  :param _HpcClusterId: HPC ID<br>
2095
2108
  Note: This field is default to empty
@@ -2098,6 +2111,8 @@ Note: This field is default to empty
2098
2111
  :type IPv6InternetAccessible: :class:`tencentcloud.autoscaling.v20180419.models.IPv6InternetAccessible`
2099
2112
  :param _DisasterRecoverGroupIds: Placement group ID. Only one is allowed.
2100
2113
  :type DisasterRecoverGroupIds: list of str
2114
+ :param _ImageFamily: Image family name. Either image ID or image family name should be filled in, and only one of which can be filled.
2115
+ :type ImageFamily: str
2101
2116
  """
2102
2117
  self._LaunchConfigurationName = None
2103
2118
  self._ImageId = None
@@ -2124,6 +2139,7 @@ Note: This field is default to empty
2124
2139
  self._HpcClusterId = None
2125
2140
  self._IPv6InternetAccessible = None
2126
2141
  self._DisasterRecoverGroupIds = None
2142
+ self._ImageFamily = None
2127
2143
 
2128
2144
  @property
2129
2145
  def LaunchConfigurationName(self):
@@ -2325,6 +2341,14 @@ Note: This field is default to empty
2325
2341
  def DisasterRecoverGroupIds(self, DisasterRecoverGroupIds):
2326
2342
  self._DisasterRecoverGroupIds = DisasterRecoverGroupIds
2327
2343
 
2344
+ @property
2345
+ def ImageFamily(self):
2346
+ return self._ImageFamily
2347
+
2348
+ @ImageFamily.setter
2349
+ def ImageFamily(self, ImageFamily):
2350
+ self._ImageFamily = ImageFamily
2351
+
2328
2352
 
2329
2353
  def _deserialize(self, params):
2330
2354
  self._LaunchConfigurationName = params.get("LaunchConfigurationName")
@@ -2385,6 +2409,7 @@ Note: This field is default to empty
2385
2409
  self._IPv6InternetAccessible = IPv6InternetAccessible()
2386
2410
  self._IPv6InternetAccessible._deserialize(params.get("IPv6InternetAccessible"))
2387
2411
  self._DisasterRecoverGroupIds = params.get("DisasterRecoverGroupIds")
2412
+ self._ImageFamily = params.get("ImageFamily")
2388
2413
  memeber_set = set(params.keys())
2389
2414
  for name, value in vars(self).items():
2390
2415
  property_name = name[1:]
@@ -3111,8 +3136,16 @@ class DataDisk(AbstractModel):
3111
3136
 
3112
3137
  def __init__(self):
3113
3138
  r"""
3114
- :param _DiskType: Data disk type. See [Cloud Disk Types](https://intl.cloud.tencent.com/document/product/362/31636). Valid values:<br><li>`LOCAL_BASIC`: Local disk<br><li>`LOCAL_SSD`: Local SSD disk<br><li>`CLOUD_BASIC`: HDD cloud disk<br><li>`CLOUD_PREMIUM`: Premium cloud storage<br><li>`CLOUD_SSD`: SSD cloud disk<br><li>`CLOUD_HSSD`: Enhanced SSD<br><li>`CLOUD_TSSD`: Tremendous SSD<br><br>The default value should be the same as the `DiskType` field under `SystemDisk`.
3115
- Note: This field may return `null`, indicating that no valid value can be obtained.
3139
+ :param _DiskType: Data disk type. For restrictions on data disk type, see [Cloud Block Storage Types](https://intl.cloud.tencent.com/document/product/362/2353?from_cn_redirect=1). Valid values:
3140
+ <li>LOCAL_BASIC: Local hard disk.</li>
3141
+ <li>LOCAL_SSD: Local SSD.</li>
3142
+ <li>CLOUD_BASIC: General cloud disk.</li>
3143
+ <li>CLOUD_PREMIUM: Premium cloud disk.</li>
3144
+ <li>CLOUD_SSD: Cloud SSD.</li>
3145
+ <li>CLOUD_HSSD: Enhanced SSD.</li>
3146
+ <li>CLOUD_TSSD: Ultra SSD.</li>
3147
+ The default value is consistent with the system disk type (SystemDisk.DiskType).
3148
+ Note: This field may return null, indicating that no valid values can be obtained.
3116
3149
  :type DiskType: str
3117
3150
  :param _DiskSize: Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [CVM Instance Configuration](https://intl.cloud.tencent.com/document/product/213/2177?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.
3118
3151
  Note: This field may return null, indicating that no valid values can be obtained.
@@ -3120,16 +3153,25 @@ Note: This field may return null, indicating that no valid values can be obtaine
3120
3153
  :param _SnapshotId: Data disk snapshot ID, such as `snap-l8psqwnt`.
3121
3154
  Note: This field may return null, indicating that no valid values can be obtained.
3122
3155
  :type SnapshotId: str
3123
- :param _DeleteWithInstance: Specifies whether the data disk is terminated along with the termination of the associated CVM instance. Values: <br><li>`TRUE` (only available for pay-as-you-go cloud disks that are billed by hour) and `FALSE`.
3124
- Note: this field may return `null`, indicating that no valid value can be obtained.
3156
+ :param _DeleteWithInstance: Whether the data disk is terminated along with the instance. Valid values:
3157
+ <li>TRUE: When the instance is terminated, the data disk is also terminated. This option is only supported for hourly postpaid cloud disks.</li>
3158
+ <li>FALSE: When the instance is terminated, the data disk is retained.</li>
3159
+ Note: This field may return null, indicating that no valid values can be obtained.
3125
3160
  :type DeleteWithInstance: bool
3126
- :param _Encrypt: Data disk encryption. Valid values: <br><li>`TRUE`: Encrypted<br><li>`FALSE`: Not encrypted
3127
- Note: This field may return `null`, indicating that no valid value can be obtained.
3161
+ :param _Encrypt: Whether the data disk is encrypted. Valid values:
3162
+ <li>TRUE: Encrypted.</li>
3163
+ <li>FALSE: Not encrypted.</li>
3164
+ Note: This field may return null, indicating that no valid values can be obtained.
3128
3165
  :type Encrypt: bool
3129
3166
  :param _ThroughputPerformance: Cloud disk performance (MB/s). This parameter is used to purchase extra performance for the cloud disk. For details on the feature and limits, see [Enhanced SSD Performance](https://intl.cloud.tencent.com/document/product/362/51896?from_cn_redirect=1#. E5.A2.9E.E5.BC.BA.E5.9E.8B-ssd-.E4.BA.91.E7.A1.AC.E7.9B.98.E9.A2.9D.E5.A4.96 .E6.80.A7.E8.83.BD).
3130
3167
  This feature is only available to enhanced SSD (`CLOUD_HSSD`) and tremendous SSD (`CLOUD_TSSD`) disks with a capacity greater than 460 GB.
3131
3168
  Note: This field may return `null`, indicating that no valid value can be obtained.
3132
3169
  :type ThroughputPerformance: int
3170
+ :param _BurstPerformance: Burst performance: Whether to enable burst performance. The default value is false.
3171
+
3172
+ Note: This feature is in beta test and requires a ticket to be submitted for usage.
3173
+ Note: This field may return null, indicating that no valid values can be obtained.
3174
+ :type BurstPerformance: bool
3133
3175
  """
3134
3176
  self._DiskType = None
3135
3177
  self._DiskSize = None
@@ -3137,6 +3179,7 @@ Note: This field may return `null`, indicating that no valid value can be obtain
3137
3179
  self._DeleteWithInstance = None
3138
3180
  self._Encrypt = None
3139
3181
  self._ThroughputPerformance = None
3182
+ self._BurstPerformance = None
3140
3183
 
3141
3184
  @property
3142
3185
  def DiskType(self):
@@ -3186,6 +3229,14 @@ Note: This field may return `null`, indicating that no valid value can be obtain
3186
3229
  def ThroughputPerformance(self, ThroughputPerformance):
3187
3230
  self._ThroughputPerformance = ThroughputPerformance
3188
3231
 
3232
+ @property
3233
+ def BurstPerformance(self):
3234
+ return self._BurstPerformance
3235
+
3236
+ @BurstPerformance.setter
3237
+ def BurstPerformance(self, BurstPerformance):
3238
+ self._BurstPerformance = BurstPerformance
3239
+
3189
3240
 
3190
3241
  def _deserialize(self, params):
3191
3242
  self._DiskType = params.get("DiskType")
@@ -3194,6 +3245,7 @@ Note: This field may return `null`, indicating that no valid value can be obtain
3194
3245
  self._DeleteWithInstance = params.get("DeleteWithInstance")
3195
3246
  self._Encrypt = params.get("Encrypt")
3196
3247
  self._ThroughputPerformance = params.get("ThroughputPerformance")
3248
+ self._BurstPerformance = params.get("BurstPerformance")
3197
3249
  memeber_set = set(params.keys())
3198
3250
  for name, value in vars(self).items():
3199
3251
  property_name = name[1:]
@@ -4214,15 +4266,15 @@ class DescribeLaunchConfigurationsRequest(AbstractModel):
4214
4266
  r"""
4215
4267
  :param _LaunchConfigurationIds: Queries by one or more launch configuration IDs in the format of `asc-ouy1ax38`. The maximum quantity per request is 100. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time.
4216
4268
  :type LaunchConfigurationIds: list of str
4217
- :param _Filters: Filters
4218
- <li> `launch-configuration-id` - String - Required: No - Filter by launch configuration ID.</li>
4219
- <li> `launch-configuration-name` - String - Required: No - Filter by launch configuration name.</li>
4220
- <li> `launch-configuration-name` - String - Required: No - Fuzzy search by launch configuration name.</li>
4221
- <li> `tag-key` - String - Required: No - Filter by the tag key.</li>
4222
- <li> `tag-value` - String - Required: No - Filter by the tag value.</li>
4223
- <li>tag:tag-key - String - Optional - Filter by tag key pair. Use a specific tag key to replace `tag-key`. See Example 3 for the detailed usage.</li>
4224
- </li>
4225
- The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time.
4269
+ :param _Filters: Filter criteria
4270
+
4271
+ <li>launch-configuration-id - String - required: no - (filter condition) filter by launch configuration ID.</li>
4272
+ <li>launch-configuration-name - String - required: no - (filter condition) filter by launch configuration name.</li>
4273
+ <li>vague-launch-configuration-name - String - required: no - (filter condition) fuzzy search by launch configuration name.</li>
4274
+ <li>tag-key - String - required: no - (filter condition) filter by tag key.</li>
4275
+ <li>tag-value - String - required: no - (filter condition) filter by tag value.</li>
4276
+ <li>tag:tag-key - String - required: no - (filter condition) filter by Tag key-value pair. Replace tag-key with a specific tag key. See Example 3 for usage.</li>
4277
+ The maximum number of `Filters` per request is 10, and the maximum number of `Filter.Values` is 5. The parameter does not support specifying both `LaunchConfigurationIds` and `Filters`.
4226
4278
  :type Filters: list of Filter
4227
4279
  :param _Limit: The number of returned results. Default value: `20`. Maximum value: `100`. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
4228
4280
  :type Limit: int
@@ -5442,10 +5494,14 @@ class EnhancedService(AbstractModel):
5442
5494
 
5443
5495
  @property
5444
5496
  def AutomationService(self):
5497
+ warnings.warn("parameter `AutomationService` is deprecated", DeprecationWarning)
5498
+
5445
5499
  return self._AutomationService
5446
5500
 
5447
5501
  @AutomationService.setter
5448
5502
  def AutomationService(self, AutomationService):
5503
+ warnings.warn("parameter `AutomationService` is deprecated", DeprecationWarning)
5504
+
5449
5505
  self._AutomationService = AutomationService
5450
5506
 
5451
5507
  @property
@@ -5857,20 +5913,28 @@ class HostNameSettings(AbstractModel):
5857
5913
 
5858
5914
  def __init__(self):
5859
5915
  r"""
5860
- :param _HostName: Hostname of a CVM
5861
- <br><li>The `HostName` cannot start or end with a period (.) or hyphen (-), and cannot contain consecutive periods and hyphens.
5862
- <br><li>This field is unavailable to CVM instances.
5863
- <br><li>Other types of instances (such as Linux): the name contains 2 to 40 characters, and supports multiple periods (.). The string between two periods can consist of letters (case insensitive), numbers, and hyphens (-), and cannot be all numbers.
5864
- Note: this field may return `null`, indicating that no valid value is obtained.
5916
+ :param _HostName: CVM HostName.
5917
+ <li>Dots (.) and hyphens (-) cannot be used as the first or last character of HostName, and cannot be used consecutively.</li>
5918
+ <li>Windows instances are not supported.</li>
5919
+ <li>Instances of other types (e.g., Linux): The length of the character should be within the range of [2, 40]. Multiple dots (.) are allowed. Each segment between dot marks can consist of letters (case-insensitive), digits, and hyphens (-). Using only digits is not allowed.</li>
5920
+ Note: This field may return null, indicating that no valid values can be obtained.
5865
5921
  :type HostName: str
5866
- :param _HostNameStyle: Type of CVM host name. Valid values: "ORIGINAL" and "UNIQUE". Default value: "ORIGINAL"
5867
- <br><li> ORIGINAL. Auto Scaling transfers the HostName set in input parameters to the CVM directly. CVM may adds serial numbers for the HostName. The HostName of instances within the auto scaling group may conflict.
5868
- <br><li> UNIQUE. The HostName set in input parameters is the prefix of a host name. Auto Scaling and CVM expand it. The HostName of an instance in the auto scaling group is unique.
5922
+ :param _HostNameStyle: The style of the CVM HostName. Valid values include ORIGINAL and UNIQUE, and the default value is ORIGINAL.
5923
+ <li>ORIGINAL: AS passes HostName filled in the input parameters to CVM. CVM may append serial numbers to HostName, which can result in conflicts with HostName of instances in the scaling group.</li>
5924
+ <li> UNIQUE: HostName filled in the input parameters acts as a prefix for the HostName. AS and CVM will expand this prefix to ensure that HostName of the instance in the scaling group is unique.</li>
5869
5925
  Note: This field may return null, indicating that no valid values can be obtained.
5870
5926
  :type HostNameStyle: str
5927
+ :param _HostNameSuffix: HostName suffix for CVM.
5928
+ <li>Dots (.) and hyphens (-) cannot be used as the first or last character of HostNameSuffix, and cannot be used consecutively.</li>
5929
+ <li>Windows instances are not supported.</li>
5930
+ <li>Instances of other types (e.g., Linux): The length of the character should be within the range of [1, 37], and the combined length with HostName should not exceed 39. Multiple dots (.) are allowed. Each segment between dots can consist of letters (case-insensitive), digits, and hyphens (-).</li>
5931
+ Assume the suffix name is suffix and the original HostName is test.0, then the final HostName is test.0.suffix.
5932
+ Note: This field may return null, indicating that no valid values can be obtained.
5933
+ :type HostNameSuffix: str
5871
5934
  """
5872
5935
  self._HostName = None
5873
5936
  self._HostNameStyle = None
5937
+ self._HostNameSuffix = None
5874
5938
 
5875
5939
  @property
5876
5940
  def HostName(self):
@@ -5888,10 +5952,19 @@ Note: This field may return null, indicating that no valid values can be obtaine
5888
5952
  def HostNameStyle(self, HostNameStyle):
5889
5953
  self._HostNameStyle = HostNameStyle
5890
5954
 
5955
+ @property
5956
+ def HostNameSuffix(self):
5957
+ return self._HostNameSuffix
5958
+
5959
+ @HostNameSuffix.setter
5960
+ def HostNameSuffix(self, HostNameSuffix):
5961
+ self._HostNameSuffix = HostNameSuffix
5962
+
5891
5963
 
5892
5964
  def _deserialize(self, params):
5893
5965
  self._HostName = params.get("HostName")
5894
5966
  self._HostNameStyle = params.get("HostNameStyle")
5967
+ self._HostNameSuffix = params.get("HostNameSuffix")
5895
5968
  memeber_set = set(params.keys())
5896
5969
  for name, value in vars(self).items():
5897
5970
  property_name = name[1:]
@@ -6344,9 +6417,15 @@ class InstanceNameSettings(AbstractModel):
6344
6417
 
6345
6418
  `UNIQUE`: the input parameter `InstanceName` is the prefix of an instance name. Auto Scaling and CVM expand it. The `InstanceName` of an instance in the scaling group is unique.
6346
6419
  :type InstanceNameStyle: str
6420
+ :param _InstanceNameSuffix: CVM instance name suffix. The length of the character is within the range of [1, 105], and the combined length with InstanceName should not exceed 107.
6421
+
6422
+ Assume the suffix name is suffix and the original instance name is test.0, then the final instance name is test.0.suffix.
6423
+ Note: This field may return null, indicating that no valid values can be obtained.
6424
+ :type InstanceNameSuffix: str
6347
6425
  """
6348
6426
  self._InstanceName = None
6349
6427
  self._InstanceNameStyle = None
6428
+ self._InstanceNameSuffix = None
6350
6429
 
6351
6430
  @property
6352
6431
  def InstanceName(self):
@@ -6364,10 +6443,19 @@ class InstanceNameSettings(AbstractModel):
6364
6443
  def InstanceNameStyle(self, InstanceNameStyle):
6365
6444
  self._InstanceNameStyle = InstanceNameStyle
6366
6445
 
6446
+ @property
6447
+ def InstanceNameSuffix(self):
6448
+ return self._InstanceNameSuffix
6449
+
6450
+ @InstanceNameSuffix.setter
6451
+ def InstanceNameSuffix(self, InstanceNameSuffix):
6452
+ self._InstanceNameSuffix = InstanceNameSuffix
6453
+
6367
6454
 
6368
6455
  def _deserialize(self, params):
6369
6456
  self._InstanceName = params.get("InstanceName")
6370
6457
  self._InstanceNameStyle = params.get("InstanceNameStyle")
6458
+ self._InstanceNameSuffix = params.get("InstanceNameSuffix")
6371
6459
  memeber_set = set(params.keys())
6372
6460
  for name, value in vars(self).items():
6373
6461
  property_name = name[1:]
@@ -6668,6 +6756,9 @@ Note: This field is default to empty
6668
6756
  :type IPv6InternetAccessible: :class:`tencentcloud.autoscaling.v20180419.models.IPv6InternetAccessible`
6669
6757
  :param _DisasterRecoverGroupIds: Placement group ID, supporting specification of only one.
6670
6758
  :type DisasterRecoverGroupIds: list of str
6759
+ :param _ImageFamily: Image family name.
6760
+ Note: This field may return null, indicating that no valid values can be obtained.
6761
+ :type ImageFamily: str
6671
6762
  """
6672
6763
  self._ProjectId = None
6673
6764
  self._LaunchConfigurationId = None
@@ -6700,6 +6791,7 @@ Note: This field is default to empty
6700
6791
  self._HpcClusterId = None
6701
6792
  self._IPv6InternetAccessible = None
6702
6793
  self._DisasterRecoverGroupIds = None
6794
+ self._ImageFamily = None
6703
6795
 
6704
6796
  @property
6705
6797
  def ProjectId(self):
@@ -6949,6 +7041,14 @@ Note: This field is default to empty
6949
7041
  def DisasterRecoverGroupIds(self, DisasterRecoverGroupIds):
6950
7042
  self._DisasterRecoverGroupIds = DisasterRecoverGroupIds
6951
7043
 
7044
+ @property
7045
+ def ImageFamily(self):
7046
+ return self._ImageFamily
7047
+
7048
+ @ImageFamily.setter
7049
+ def ImageFamily(self, ImageFamily):
7050
+ self._ImageFamily = ImageFamily
7051
+
6952
7052
 
6953
7053
  def _deserialize(self, params):
6954
7054
  self._ProjectId = params.get("ProjectId")
@@ -7020,6 +7120,7 @@ Note: This field is default to empty
7020
7120
  self._IPv6InternetAccessible = IPv6InternetAccessible()
7021
7121
  self._IPv6InternetAccessible._deserialize(params.get("IPv6InternetAccessible"))
7022
7122
  self._DisasterRecoverGroupIds = params.get("DisasterRecoverGroupIds")
7123
+ self._ImageFamily = params.get("ImageFamily")
7023
7124
  memeber_set = set(params.keys())
7024
7125
  for name, value in vars(self).items():
7025
7126
  property_name = name[1:]
@@ -7577,55 +7678,55 @@ class ModifyAutoScalingGroupRequest(AbstractModel):
7577
7678
  :type ProjectId: int
7578
7679
  :param _SubnetIds: List of subnet IDs
7579
7680
  :type SubnetIds: list of str
7580
- :param _TerminationPolicies: Termination policy. Currently, the maximum length is 1. Value range: OLDEST_INSTANCE, NEWEST_INSTANCE.
7581
- <br><li> OLDEST_INSTANCE: The oldest instance in the auto scaling group will be terminated first.
7582
- <br><li> NEWEST_INSTANCE: The newest instance in the auto scaling group will be terminated first.
7681
+ :param _TerminationPolicies: Termination policy, whose maximum length is currently 1. Valid values include OLDEST_INSTANCE and NEWEST_INSTANCE.
7682
+ <li>OLDEST_INSTANCE: Terminate the oldest instance in the scaling group first.</li>
7683
+ <li>NEWEST_INSTANCE: Terminate the newest instance in the scaling group first.</li>
7583
7684
  :type TerminationPolicies: list of str
7584
7685
  :param _VpcId: VPC ID. This field is left empty for basic networks. You need to specify SubnetIds when modifying the network of the auto scaling group to a VPC with a specified VPC ID. Specify Zones when modifying the network to a basic network.
7585
7686
  :type VpcId: str
7586
7687
  :param _Zones: List of availability zones
7587
7688
  :type Zones: list of str
7588
- :param _RetryPolicy: Retry policy. Valid values: `IMMEDIATE_RETRY` (default), `INCREMENTAL_INTERVALS`, `NO_RETRY`. A partially successful scaling is judged as a failed one.
7589
- <br><li>
7590
- `IMMEDIATE_RETRY`: Retrying immediately in a short period of time and stopping after five consecutive failures.
7591
- <br><li>
7592
- `INCREMENTAL_INTERVALS`: Retrying at incremental intervals. As the number of consecutive failures increases, the retry interval gradually increases, ranging from seconds to one day.
7593
- <br><li>`NO_RETRY`: Do not retry. Actions are taken when the next call or alarm message comes.
7689
+ :param _RetryPolicy: Retry policy, whose valid values include IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY, with the default value being IMMEDIATE_RETRY. A partially successful scaling activity is considered a failed activity.
7690
+ <li>IMMEDIATE_RETRY: Immediately retry, and quickly retry in a short period. There will be no retry anymore after a certain number of consecutive failures (5).</li>
7691
+ <li>INCREMENTAL_INTERVALS: Retry with incremental intervals. As the number of consecutive failures increases, the retry intervals gradually become longer, ranging from seconds to one day.</li>
7692
+ <li>NO_RETRY: There will be no retry until another user call or alarm information is received.</li>
7594
7693
  :type RetryPolicy: str
7595
- :param _ZonesCheckPolicy: Availability zone verification policy. Value range: ALL, ANY. Default value: ANY. This will work when the resource-related fields (launch configuration, availability zone, or subnet) of the auto scaling group are actually modified.
7596
- <br><li> ALL: The verification will succeed only if all availability zones (Zone) or subnets (SubnetId) are available; otherwise, an error will be reported.
7597
- <br><li> ANY: The verification will success if any availability zone (Zone) or subnet (SubnetId) is available; otherwise, an error will be reported.
7694
+ :param _ZonesCheckPolicy: AZ verification policy, whose valid values include ALL and ANY, with the default value being ANY. This policy comes into effect when actual changes are made to resource-related fields in the scaling group (such as launch configuration, AZ, or subnet).
7695
+ <li>ALL: Verification passes if all AZs or subnets are available; otherwise, a verification error will be reported.<li>
7696
+ <li>ANY: Verification passes if any AZ or subnet is available; otherwise, a verification error will be reported.</li>
7598
7697
 
7599
- Common reasons why an availability zone or subnet is unavailable include stock-out of CVM instances or CBS cloud disks in the availability zone, insufficient quota in the availability zone, or insufficient IPs in the subnet.
7600
- If an availability zone or subnet in Zones/SubnetIds does not exist, a verification error will be reported regardless of the value of ZonesCheckPolicy.
7698
+ Common reasons for unavailable AZs or subnets include the CVM InstanceType in the AZ being sold out, the CBS cloud disk in the AZ being sold out, insufficient quota in the AZ, and insufficient IP addresses in the subnet.
7699
+ If there is no AZ or subnet in Zones/SubnetIds, a verification error will be reported regardless of the values of ZonesCheckPolicy.
7601
7700
  :type ZonesCheckPolicy: str
7602
7701
  :param _ServiceSettings: Service settings such as unhealthy instance replacement.
7603
7702
  :type ServiceSettings: :class:`tencentcloud.autoscaling.v20180419.models.ServiceSettings`
7604
7703
  :param _Ipv6AddressCount: The number of IPv6 addresses that an instance has. Valid values: 0 and 1.
7605
7704
  :type Ipv6AddressCount: int
7606
- :param _MultiZoneSubnetPolicy: Multi-availability zone/subnet policy. Valid values: `PRIORITY` and `EQUALITY`. Default value: `PRIORITY`.
7607
- <br><li>`PRIORITY`: When an instance is being created, the availability zone/subnet is chosen from top to bottom in the list. The first availability zone/subnet is always used as long as instances can be created.
7608
- <br><li>`EQUALITY`: Instances created for scaling out are distributed to multiple availability zones/subnets, so as to keep the number of instances in different availability zone/subnet in balance.
7609
-
7610
- Notes:
7611
- <br><li> When the scaling group is based on the classic network, this policy applies to multiple availability zones. When the scaling group is based on a VPC, this policy applies to multiple subnets, and you do not need to consider availability zones. For example, if you have four subnets (A, B, C, and D) and A, B, and C are in availability zone 1 and D is in availability zone 2, you only need to decide the order of the four subnets, without worrying about the issue of availability zones.
7612
- <br><li> This policy is applicable to multiple availability zones/subnets, but is not applicable to multiple models with launch configurations. Specify the models according to the model priority.
7613
- <br><li> When `PRIORITY` policy is used, the multi-model policy prevails the multi-availability zones/subnet policy. For example, if you have Model A/B, and Subnet 1/2/3, the model-subnet combinations are tried in the following order: A1 -> A2 -> A3 -> B1 -> B2 -> B3. If A1 is sold out, A2 (not B1) is tried next.
7705
+ :param _MultiZoneSubnetPolicy: Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
7706
+ <li>PRIORITY: Instances are attempted to be created taking the order of the AZ/subnet list as the priority. If the highest-priority AZ/subnet can create instances successfully, instances can always be created in that AZ/subnet.</li>
7707
+ <li>EQUALITY: The instances added through scale-out will be distributed across multiple AZs/subnets to ensure a relatively balanced number of instances in each AZ/subnet after scaling out.</li>
7708
+
7709
+ Points to consider regarding this policy:
7710
+ <li>When the scaling group is based on a classic network, this policy applies to the multi-AZ; when the scaling group is based on a VPC network, this policy applies to the multi-subnet, in this case, the AZs are no longer considered. For example, if there are four subnets labeled A, B, C, and D, where A, B, and C are in AZ 1 and D is in AZ 2, the subnets A, B, C, and D are considered for sorting without regard to AZs 1 and 2.</li>
7711
+ <li>This policy applies to the multi-AZ/multi-subnet and not to the InstanceTypes parameter of the launch configuration, which is selected according to the priority policy.</li>
7712
+ <li>When instances are created according to the PRIORITY policy, ensure the policy for multiple models first, followed by the policy for the multi-AZ/subnet. For example, with models A and B and subnets 1, 2, and 3, attempts will be made in the order of A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 will be attempted (instead of B1).</li>
7614
7713
  :type MultiZoneSubnetPolicy: str
7615
- :param _HealthCheckType: Health check type of instances in a scaling group.<br><li>CVM: confirm whether an instance is healthy based on the network status. If the pinged instance is unreachable, the instance will be considered unhealthy. For more information, see [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1)<br><li>CLB: confirm whether an instance is healthy based on the CLB health check status. For more information, see [Health Check Overview](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).
7714
+ :param _HealthCheckType: Scaling group instance health check type, whose valid values include:
7715
+ <li>CVM: Determines whether an instance is unhealthy based on its network status. An unhealthy network status is indicated by an event where instances become unreachable via PING. Detailed criteria of judgment can be found in [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1).</li>
7716
+ <li>CLB: Determines whether an instance is unhealthy based on the health check status of CLB. For principles behind CLB health checks, see [Health Check](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).</li>
7616
7717
  :type HealthCheckType: str
7617
7718
  :param _LoadBalancerHealthCheckGracePeriod: Grace period of the CLB health check
7618
7719
  :type LoadBalancerHealthCheckGracePeriod: int
7619
- :param _InstanceAllocationPolicy: Specifies how to assign instances. Valid values: `LAUNCH_CONFIGURATION` and `SPOT_MIXED`.
7620
- <br><li>`LAUNCH_CONFIGURATION`: the launch configuration mode.
7621
- <br><li>`SPOT_MIXED`: a mixed instance mode. Currently, this mode is supported only when the launch configuration takes the pay-as-you-go billing mode. With this mode, the scaling group can provision a combination of pay-as-you-go instances and spot instances to meet the configured capacity. Note that the billing mode of the associated launch configuration cannot be modified when this mode is used.
7720
+ :param _InstanceAllocationPolicy: Instance assignment policy, whose valid values include LAUNCH_CONFIGURATION and SPOT_MIXED.
7721
+ <li>LAUNCH_CONFIGURATION: Represent the traditional mode of assigning instances according to the launch configuration.</li>
7722
+ <li>SPOT_MIXED: Represent the spot mixed mode. Currently, this mode is supported only when the launch configuration is set to the pay-as-you-go billing mode. In the mixed mode, the scaling group will scale out pay-as-you-go models or spot models based on the predefined settings. When the mixed mode is used, the billing type of the associated launch configuration cannot be modified.</li>
7622
7723
  :type InstanceAllocationPolicy: str
7623
7724
  :param _SpotMixedAllocationPolicy: Specifies how to assign pay-as-you-go instances and spot instances.
7624
7725
  This parameter is valid only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`.
7625
7726
  :type SpotMixedAllocationPolicy: :class:`tencentcloud.autoscaling.v20180419.models.SpotMixedAllocationPolicy`
7626
- :param _CapacityRebalance: Indicates whether the capacity rebalancing feature is enabled. This parameter is only valid for spot instances in the scaling group. Valid values:
7627
- <br><li>`TRUE`: yes. Before the spot instances in the scaling group are about to be automatically repossessed, AS will terminate them. The scale-in hook (if configured) will take effect before the termination. After the termination process starts, AS will asynchronously initiate a scaling activity to meet the desired capacity.
7628
- <br><li>`FALSE`: no. In this case, AS will add instances to meet the desired capacity only after the spot instances are terminated.
7727
+ :param _CapacityRebalance: Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
7728
+ <li>TRUE: Enable this feature. When spot instances in the scaling group are about to be automatically recycled by the spot instance service, AS proactively initiates the termination process of the spot instances. If there is a configured scale-in hook, it will be triggered before termination. After the termination process starts, AS asynchronously initiates the scale-out to reach the expected number of instances.</li>
7729
+ <li>FALSE: Disable this feature. AS waits for the spot instance to be terminated before scaling out to reach the number of instances expected by the scaling group.</li>
7629
7730
  :type CapacityRebalance: bool
7630
7731
  :param _InstanceNameIndexSettings: Instance name sequencing settings. When enabled, an incremental numeric sequence will be appended to the names of instances automatically created within the scaling group.
7631
7732
  :type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
@@ -8012,12 +8113,11 @@ class ModifyLaunchConfigurationAttributesRequest(AbstractModel):
8012
8113
  :param _InstanceTypes: List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types.
8013
8114
  The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. Specifying the `InstanceTypes` field will invalidate the original `InstanceType`.
8014
8115
  :type InstanceTypes: list of str
8015
- :param _InstanceTypesCheckPolicy: Instance type verification policy which works when InstanceTypes is actually modified. Value range: ALL, ANY. Default value: ANY.
8016
- <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
8017
- <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported.
8018
-
8019
- Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk.
8020
- If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy.
8116
+ :param _InstanceTypesCheckPolicy: InstanceType verification policy, which is effective when actual modification is made to InstanceTypes. Valid values include ALL and ANY and the default value is ANY.
8117
+ <li>ALL: Verification passes if all InstanceTypes are available; otherwise, a verification error will be reported.</li>
8118
+ <li>ANY: Verification passes if any InstanceType is available; otherwise, a verification error will be reported.</li>
8119
+ Common reasons for unavailable InstanceTypes include the InstanceType being sold out, and the corresponding cloud disk being sold out.
8120
+ If a model in InstanceTypes does not exist or has been abolished, a verification error will be reported regardless of the valid values set for InstanceTypesCheckPolicy.
8021
8121
  :type InstanceTypesCheckPolicy: str
8022
8122
  :param _LaunchConfigurationName: Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes.
8023
8123
  :type LaunchConfigurationName: str
@@ -8043,9 +8143,9 @@ This parameter is required when changing the instance billing mode to spot insta
8043
8143
  This field requires passing in the `MaxPrice` field under the `SpotOptions`. Other fields that are not passed in will use their default values.
8044
8144
  This field can be modified only when the current billing mode is spot instance.
8045
8145
  :type InstanceMarketOptions: :class:`tencentcloud.autoscaling.v20180419.models.InstanceMarketOptionsRequest`
8046
- :param _DiskTypePolicy: Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
8047
- <br><li>ORIGINAL: uses the configured cloud disk type
8048
- <br><li>AUTOMATIC: automatically chooses an available cloud disk type
8146
+ :param _DiskTypePolicy: Cloud disk type selection policy. Valid values:
8147
+ <li>ORIGINAL: Use the set cloud disk type.</li>
8148
+ <li>AUTOMATIC: Automatically select the currently available cloud disk type.</li>
8049
8149
  :type DiskTypePolicy: str
8050
8150
  :param _SystemDisk: Instance system disk configurations
8051
8151
  :type SystemDisk: :class:`tencentcloud.autoscaling.v20180419.models.SystemDisk`
@@ -8074,6 +8174,11 @@ Note: This field is default to empty
8074
8174
  :type DisasterRecoverGroupIds: list of str
8075
8175
  :param _LoginSettings: Instance login settings, which include passwords, keys, or the original login settings inherited from the image. <br>Please note that specifying new login settings will overwrite the existing ones. For instance, if you previously used a password for login and then use this parameter to switch the login settings to a key, the original password will be removed.
8076
8176
  :type LoginSettings: :class:`tencentcloud.autoscaling.v20180419.models.LoginSettings`
8177
+ :param _InstanceTags: Instance tag list. By specifying this parameter, the instances added through scale-out can be bound to the tag. Up to 10 Tags can be specified.
8178
+ This parameter will overwrite the original instance tag list. To add new tags, you need to pass the new tags along with the original tags.
8179
+ :type InstanceTags: list of InstanceTag
8180
+ :param _ImageFamily: Image family name.
8181
+ :type ImageFamily: str
8077
8182
  """
8078
8183
  self._LaunchConfigurationId = None
8079
8184
  self._ImageId = None
@@ -8097,6 +8202,8 @@ Note: This field is default to empty
8097
8202
  self._IPv6InternetAccessible = None
8098
8203
  self._DisasterRecoverGroupIds = None
8099
8204
  self._LoginSettings = None
8205
+ self._InstanceTags = None
8206
+ self._ImageFamily = None
8100
8207
 
8101
8208
  @property
8102
8209
  def LaunchConfigurationId(self):
@@ -8274,6 +8381,22 @@ Note: This field is default to empty
8274
8381
  def LoginSettings(self, LoginSettings):
8275
8382
  self._LoginSettings = LoginSettings
8276
8383
 
8384
+ @property
8385
+ def InstanceTags(self):
8386
+ return self._InstanceTags
8387
+
8388
+ @InstanceTags.setter
8389
+ def InstanceTags(self, InstanceTags):
8390
+ self._InstanceTags = InstanceTags
8391
+
8392
+ @property
8393
+ def ImageFamily(self):
8394
+ return self._ImageFamily
8395
+
8396
+ @ImageFamily.setter
8397
+ def ImageFamily(self, ImageFamily):
8398
+ self._ImageFamily = ImageFamily
8399
+
8277
8400
 
8278
8401
  def _deserialize(self, params):
8279
8402
  self._LaunchConfigurationId = params.get("LaunchConfigurationId")
@@ -8321,6 +8444,13 @@ Note: This field is default to empty
8321
8444
  if params.get("LoginSettings") is not None:
8322
8445
  self._LoginSettings = LoginSettings()
8323
8446
  self._LoginSettings._deserialize(params.get("LoginSettings"))
8447
+ if params.get("InstanceTags") is not None:
8448
+ self._InstanceTags = []
8449
+ for item in params.get("InstanceTags"):
8450
+ obj = InstanceTag()
8451
+ obj._deserialize(item)
8452
+ self._InstanceTags.append(obj)
8453
+ self._ImageFamily = params.get("ImageFamily")
8324
8454
  memeber_set = set(params.keys())
8325
8455
  for name, value in vars(self).items():
8326
8456
  property_name = name[1:]
@@ -8843,7 +8973,7 @@ class ModifyScalingPolicyRequest(AbstractModel):
8843
8973
  :type ScalingPolicyName: str
8844
8974
  :param _AdjustmentType: The method to adjust the desired capacity after the alarm is triggered. It’s only available when `ScalingPolicyType` is `Simple`. Valid values: <br><li>`CHANGE_IN_CAPACITY`: Increase or decrease the desired capacity </li><li>`EXACT_CAPACITY`: Adjust to the specified desired capacity </li> <li>`PERCENT_CHANGE_IN_CAPACITY`: Adjust the desired capacity by percentage </li>
8845
8975
  :type AdjustmentType: str
8846
- :param _AdjustmentValue: Specifies how to adjust the number of desired capacity when the alarm is triggered. It’s only available when `ScalingPolicyType` is `Simple`. Values: <br><li>`AdjustmentType`=`CHANGE_IN_CAPACITY`: Number of instances to add (positive number) or remove (negative number). </li> <li>`AdjustmentType`=`EXACT_CAPACITY`: Set the desired capacity to the specified number. It must be 0. </li> <li>`AdjustmentType`=`PERCENT_CHANGE_IN_CAPACITY`: Percentage of instance number. Add instances (positive value) or remove instances (negative value) accordingly.
8976
+ :param _AdjustmentValue: The adjustment value for the expected number of instances after an alarm is triggered. It applies only to simple policies. <li>When AdjustmentType is CHANGE_IN_CAPACITY, a positive AdjustmentValue indicates an increase in the number of instances after the alarm is triggered, and a negative AdjustmentValue indicates a decrease in the number of instances after the alarm is triggered.</li> <li>When AdjustmentType is EXACT_CAPACITY, the value of AdjustmentValue represents the expected number of instances after the alarm is triggered, which should be greater than or equal to 0.</li> <li>When AdjustmentType is PERCENT_CHANGE_IN_CAPACITY, a positive AdjustmentValue indicates an increase in the number of instances by percentage after the alarm is triggered, and a negative AdjustmentValue indicates a decrease in the number of instances by percentage after the alarm is triggered. The unit is: %.</li>
8847
8977
  :type AdjustmentValue: int
8848
8978
  :param _Cooldown: Cooldown period (in seconds). It’s only available when `ScalingPolicyType` is `Simple`.
8849
8979
  :type Cooldown: int
@@ -10602,10 +10732,17 @@ Default value: CLASSIC_SCALING
10602
10732
  :type ScalingMode: str
10603
10733
  :param _ReplaceLoadBalancerUnhealthy: Enable unhealthy instance replacement. If this feature is enabled, AS will replace instances that are found unhealthy in the CLB health check. If this parameter is not specified, the default value `False` will be used.
10604
10734
  :type ReplaceLoadBalancerUnhealthy: bool
10735
+ :param _ReplaceMode: Replace mode of unhealthy replacement service. Valid values:
10736
+ RECREATE: Rebuild an instance to replace the original unhealthy instance.
10737
+ RESET: Performing a system reinstallation on unhealthy instances to keep information such as data disks, private IP addresses, and instance IDs unchanged. The instance login settings, HostName, enhanced services, and UserData will remain consistent with the current launch configuration.
10738
+ Default value: RECREATE.
10739
+ Note: This field may return null, indicating that no valid values can be obtained.
10740
+ :type ReplaceMode: str
10605
10741
  """
10606
10742
  self._ReplaceMonitorUnhealthy = None
10607
10743
  self._ScalingMode = None
10608
10744
  self._ReplaceLoadBalancerUnhealthy = None
10745
+ self._ReplaceMode = None
10609
10746
 
10610
10747
  @property
10611
10748
  def ReplaceMonitorUnhealthy(self):
@@ -10631,11 +10768,20 @@ Default value: CLASSIC_SCALING
10631
10768
  def ReplaceLoadBalancerUnhealthy(self, ReplaceLoadBalancerUnhealthy):
10632
10769
  self._ReplaceLoadBalancerUnhealthy = ReplaceLoadBalancerUnhealthy
10633
10770
 
10771
+ @property
10772
+ def ReplaceMode(self):
10773
+ return self._ReplaceMode
10774
+
10775
+ @ReplaceMode.setter
10776
+ def ReplaceMode(self, ReplaceMode):
10777
+ self._ReplaceMode = ReplaceMode
10778
+
10634
10779
 
10635
10780
  def _deserialize(self, params):
10636
10781
  self._ReplaceMonitorUnhealthy = params.get("ReplaceMonitorUnhealthy")
10637
10782
  self._ScalingMode = params.get("ScalingMode")
10638
10783
  self._ReplaceLoadBalancerUnhealthy = params.get("ReplaceLoadBalancerUnhealthy")
10784
+ self._ReplaceMode = params.get("ReplaceMode")
10639
10785
  memeber_set = set(params.keys())
10640
10786
  for name, value in vars(self).items():
10641
10787
  property_name = name[1:]