@alicloud/ess20220222 1.0.3 → 1.0.5

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.
package/dist/client.d.ts CHANGED
@@ -151,6 +151,7 @@ export declare class AttachLoadBalancersRequest extends $tea.Model {
151
151
  async?: boolean;
152
152
  clientToken?: string;
153
153
  forceAttach?: boolean;
154
+ loadBalancerConfigs?: AttachLoadBalancersRequestLoadBalancerConfigs[];
154
155
  loadBalancers?: string[];
155
156
  ownerId?: number;
156
157
  resourceOwnerAccount?: string;
@@ -618,6 +619,7 @@ export declare class CreateNotificationConfigurationResponse extends $tea.Model
618
619
  });
619
620
  }
620
621
  export declare class CreateScalingConfigurationRequest extends $tea.Model {
622
+ imageOptions?: CreateScalingConfigurationRequestImageOptions;
621
623
  privatePoolOptions?: CreateScalingConfigurationRequestPrivatePoolOptions;
622
624
  systemDisk?: CreateScalingConfigurationRequestSystemDisk;
623
625
  affinity?: string;
@@ -681,6 +683,7 @@ export declare class CreateScalingConfigurationRequest extends $tea.Model {
681
683
  });
682
684
  }
683
685
  export declare class CreateScalingConfigurationShrinkRequest extends $tea.Model {
686
+ imageOptions?: CreateScalingConfigurationShrinkRequestImageOptions;
684
687
  privatePoolOptions?: CreateScalingConfigurationShrinkRequestPrivatePoolOptions;
685
688
  systemDisk?: CreateScalingConfigurationShrinkRequestSystemDisk;
686
689
  affinity?: string;
@@ -789,6 +792,7 @@ export declare class CreateScalingGroupRequest extends $tea.Model {
789
792
  launchTemplateOverrides?: CreateScalingGroupRequestLaunchTemplateOverrides[];
790
793
  launchTemplateVersion?: string;
791
794
  lifecycleHooks?: CreateScalingGroupRequestLifecycleHooks[];
795
+ loadBalancerConfigs?: CreateScalingGroupRequestLoadBalancerConfigs[];
792
796
  loadBalancerIds?: string;
793
797
  maxInstanceLifetime?: number;
794
798
  maxSize?: number;
@@ -855,6 +859,7 @@ export declare class CreateScalingGroupResponse extends $tea.Model {
855
859
  export declare class CreateScalingRuleRequest extends $tea.Model {
856
860
  adjustmentType?: string;
857
861
  adjustmentValue?: number;
862
+ alarmDimensions?: CreateScalingRuleRequestAlarmDimensions[];
858
863
  cooldown?: number;
859
864
  disableScaleIn?: boolean;
860
865
  estimatedInstanceWarmup?: number;
@@ -1599,6 +1604,7 @@ export declare class DescribeLimitationResponseBody extends $tea.Model {
1599
1604
  maxNumberOfLoadBalancers?: number;
1600
1605
  maxNumberOfMaxSize?: number;
1601
1606
  maxNumberOfMinSize?: number;
1607
+ maxNumberOfNlbServerGroup?: number;
1602
1608
  maxNumberOfNotificationConfigurations?: number;
1603
1609
  maxNumberOfScalingConfigurations?: number;
1604
1610
  maxNumberOfScalingGroups?: number;
@@ -1971,6 +1977,7 @@ export declare class DescribeScalingGroupsResponse extends $tea.Model {
1971
1977
  }
1972
1978
  export declare class DescribeScalingInstancesRequest extends $tea.Model {
1973
1979
  creationType?: string;
1980
+ creationTypes?: string[];
1974
1981
  healthStatus?: string;
1975
1982
  instanceIds?: string[];
1976
1983
  lifecycleState?: string;
@@ -3129,6 +3136,7 @@ export declare class ModifyNotificationConfigurationResponse extends $tea.Model
3129
3136
  });
3130
3137
  }
3131
3138
  export declare class ModifyScalingConfigurationRequest extends $tea.Model {
3139
+ imageOptions?: ModifyScalingConfigurationRequestImageOptions;
3132
3140
  privatePoolOptions?: ModifyScalingConfigurationRequestPrivatePoolOptions;
3133
3141
  systemDisk?: ModifyScalingConfigurationRequestSystemDisk;
3134
3142
  affinity?: string;
@@ -3188,6 +3196,7 @@ export declare class ModifyScalingConfigurationRequest extends $tea.Model {
3188
3196
  });
3189
3197
  }
3190
3198
  export declare class ModifyScalingConfigurationShrinkRequest extends $tea.Model {
3199
+ imageOptions?: ModifyScalingConfigurationShrinkRequestImageOptions;
3191
3200
  privatePoolOptions?: ModifyScalingConfigurationShrinkRequestPrivatePoolOptions;
3192
3201
  systemDisk?: ModifyScalingConfigurationShrinkRequestSystemDisk;
3193
3202
  affinity?: string;
@@ -3343,6 +3352,7 @@ export declare class ModifyScalingGroupResponse extends $tea.Model {
3343
3352
  export declare class ModifyScalingRuleRequest extends $tea.Model {
3344
3353
  adjustmentType?: string;
3345
3354
  adjustmentValue?: number;
3355
+ alarmDimensions?: ModifyScalingRuleRequestAlarmDimensions[];
3346
3356
  cooldown?: number;
3347
3357
  disableScaleIn?: boolean;
3348
3358
  estimatedInstanceWarmup?: number;
@@ -4006,6 +4016,7 @@ export declare class VerifyAuthenticationResponse extends $tea.Model {
4006
4016
  }
4007
4017
  export declare class VerifyUserRequest extends $tea.Model {
4008
4018
  ownerId?: number;
4019
+ regionId?: string;
4009
4020
  resourceOwnerAccount?: string;
4010
4021
  resourceOwnerId?: number;
4011
4022
  static names(): {
@@ -4060,6 +4071,19 @@ export declare class AttachAlbServerGroupsRequestAlbServerGroups extends $tea.Mo
4060
4071
  [key: string]: any;
4061
4072
  });
4062
4073
  }
4074
+ export declare class AttachLoadBalancersRequestLoadBalancerConfigs extends $tea.Model {
4075
+ loadBalancerId?: string;
4076
+ weight?: number;
4077
+ static names(): {
4078
+ [key: string]: string;
4079
+ };
4080
+ static types(): {
4081
+ [key: string]: any;
4082
+ };
4083
+ constructor(map?: {
4084
+ [key: string]: any;
4085
+ });
4086
+ }
4063
4087
  export declare class AttachServerGroupsRequestServerGroups extends $tea.Model {
4064
4088
  port?: number;
4065
4089
  serverGroupId?: string;
@@ -4185,13 +4209,13 @@ export declare class CreateEciScalingConfigurationRequestContainersLivenessProbe
4185
4209
  });
4186
4210
  }
4187
4211
  export declare class CreateEciScalingConfigurationRequestContainersLivenessProbe extends $tea.Model {
4188
- exec: CreateEciScalingConfigurationRequestContainersLivenessProbeExec;
4212
+ exec?: CreateEciScalingConfigurationRequestContainersLivenessProbeExec;
4189
4213
  failureThreshold?: number;
4190
- httpGet: CreateEciScalingConfigurationRequestContainersLivenessProbeHttpGet;
4214
+ httpGet?: CreateEciScalingConfigurationRequestContainersLivenessProbeHttpGet;
4191
4215
  initialDelaySeconds?: number;
4192
4216
  periodSeconds?: number;
4193
4217
  successThreshold?: number;
4194
- tcpSocket: CreateEciScalingConfigurationRequestContainersLivenessProbeTcpSocket;
4218
+ tcpSocket?: CreateEciScalingConfigurationRequestContainersLivenessProbeTcpSocket;
4195
4219
  timeoutSeconds?: number;
4196
4220
  static names(): {
4197
4221
  [key: string]: string;
@@ -4242,13 +4266,13 @@ export declare class CreateEciScalingConfigurationRequestContainersReadinessProb
4242
4266
  });
4243
4267
  }
4244
4268
  export declare class CreateEciScalingConfigurationRequestContainersReadinessProbe extends $tea.Model {
4245
- exec: CreateEciScalingConfigurationRequestContainersReadinessProbeExec;
4269
+ exec?: CreateEciScalingConfigurationRequestContainersReadinessProbeExec;
4246
4270
  failureThreshold?: number;
4247
- httpGet: CreateEciScalingConfigurationRequestContainersReadinessProbeHttpGet;
4271
+ httpGet?: CreateEciScalingConfigurationRequestContainersReadinessProbeHttpGet;
4248
4272
  initialDelaySeconds?: number;
4249
4273
  periodSeconds?: number;
4250
4274
  successThreshold?: number;
4251
- tcpSocket: CreateEciScalingConfigurationRequestContainersReadinessProbeTcpSocket;
4275
+ tcpSocket?: CreateEciScalingConfigurationRequestContainersReadinessProbeTcpSocket;
4252
4276
  timeoutSeconds?: number;
4253
4277
  static names(): {
4254
4278
  [key: string]: string;
@@ -4273,7 +4297,7 @@ export declare class CreateEciScalingConfigurationRequestContainersSecurityConte
4273
4297
  });
4274
4298
  }
4275
4299
  export declare class CreateEciScalingConfigurationRequestContainersSecurityContext extends $tea.Model {
4276
- capability: CreateEciScalingConfigurationRequestContainersSecurityContextCapability;
4300
+ capability?: CreateEciScalingConfigurationRequestContainersSecurityContextCapability;
4277
4301
  readOnlyRootFilesystem?: boolean;
4278
4302
  runAsUser?: number;
4279
4303
  static names(): {
@@ -4330,9 +4354,9 @@ export declare class CreateEciScalingConfigurationRequestContainersVolumeMounts
4330
4354
  });
4331
4355
  }
4332
4356
  export declare class CreateEciScalingConfigurationRequestContainers extends $tea.Model {
4333
- livenessProbe: CreateEciScalingConfigurationRequestContainersLivenessProbe;
4334
- readinessProbe: CreateEciScalingConfigurationRequestContainersReadinessProbe;
4335
- securityContext: CreateEciScalingConfigurationRequestContainersSecurityContext;
4357
+ livenessProbe?: CreateEciScalingConfigurationRequestContainersLivenessProbe;
4358
+ readinessProbe?: CreateEciScalingConfigurationRequestContainersReadinessProbe;
4359
+ securityContext?: CreateEciScalingConfigurationRequestContainersSecurityContext;
4336
4360
  args?: string[];
4337
4361
  commands?: string[];
4338
4362
  cpu?: number;
@@ -4411,7 +4435,7 @@ export declare class CreateEciScalingConfigurationRequestInitContainersSecurityC
4411
4435
  });
4412
4436
  }
4413
4437
  export declare class CreateEciScalingConfigurationRequestInitContainersSecurityContext extends $tea.Model {
4414
- capability: CreateEciScalingConfigurationRequestInitContainersSecurityContextCapability;
4438
+ capability?: CreateEciScalingConfigurationRequestInitContainersSecurityContextCapability;
4415
4439
  readOnlyRootFilesystem?: boolean;
4416
4440
  runAsUser?: number;
4417
4441
  static names(): {
@@ -4468,7 +4492,7 @@ export declare class CreateEciScalingConfigurationRequestInitContainersInitConta
4468
4492
  });
4469
4493
  }
4470
4494
  export declare class CreateEciScalingConfigurationRequestInitContainers extends $tea.Model {
4471
- securityContext: CreateEciScalingConfigurationRequestInitContainersSecurityContext;
4495
+ securityContext?: CreateEciScalingConfigurationRequestInitContainersSecurityContext;
4472
4496
  args?: string[];
4473
4497
  commands?: string[];
4474
4498
  cpu?: number;
@@ -4533,6 +4557,7 @@ export declare class CreateEciScalingConfigurationRequestVolumesDiskVolume exten
4533
4557
  }
4534
4558
  export declare class CreateEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
4535
4559
  medium?: string;
4560
+ sizeLimit?: string;
4536
4561
  static names(): {
4537
4562
  [key: string]: string;
4538
4563
  };
@@ -4599,11 +4624,11 @@ export declare class CreateEciScalingConfigurationRequestVolumesConfigFileVolume
4599
4624
  });
4600
4625
  }
4601
4626
  export declare class CreateEciScalingConfigurationRequestVolumes extends $tea.Model {
4602
- diskVolume: CreateEciScalingConfigurationRequestVolumesDiskVolume;
4603
- emptyDirVolume: CreateEciScalingConfigurationRequestVolumesEmptyDirVolume;
4604
- flexVolume: CreateEciScalingConfigurationRequestVolumesFlexVolume;
4605
- hostPathVolume: CreateEciScalingConfigurationRequestVolumesHostPathVolume;
4606
- NFSVolume: CreateEciScalingConfigurationRequestVolumesNFSVolume;
4627
+ diskVolume?: CreateEciScalingConfigurationRequestVolumesDiskVolume;
4628
+ emptyDirVolume?: CreateEciScalingConfigurationRequestVolumesEmptyDirVolume;
4629
+ flexVolume?: CreateEciScalingConfigurationRequestVolumesFlexVolume;
4630
+ hostPathVolume?: CreateEciScalingConfigurationRequestVolumesHostPathVolume;
4631
+ NFSVolume?: CreateEciScalingConfigurationRequestVolumesNFSVolume;
4607
4632
  configFileVolumeConfigFileToPaths?: CreateEciScalingConfigurationRequestVolumesConfigFileVolumeConfigFileToPaths[];
4608
4633
  configFileVolumeDefaultMode?: number;
4609
4634
  name?: string;
@@ -4618,6 +4643,18 @@ export declare class CreateEciScalingConfigurationRequestVolumes extends $tea.Mo
4618
4643
  [key: string]: any;
4619
4644
  });
4620
4645
  }
4646
+ export declare class CreateScalingConfigurationRequestImageOptions extends $tea.Model {
4647
+ loginAsNonRoot?: boolean;
4648
+ static names(): {
4649
+ [key: string]: string;
4650
+ };
4651
+ static types(): {
4652
+ [key: string]: any;
4653
+ };
4654
+ constructor(map?: {
4655
+ [key: string]: any;
4656
+ });
4657
+ }
4621
4658
  export declare class CreateScalingConfigurationRequestPrivatePoolOptions extends $tea.Model {
4622
4659
  id?: string;
4623
4660
  matchCriteria?: string;
@@ -4722,6 +4759,18 @@ export declare class CreateScalingConfigurationRequestSpotPriceLimits extends $t
4722
4759
  [key: string]: any;
4723
4760
  });
4724
4761
  }
4762
+ export declare class CreateScalingConfigurationShrinkRequestImageOptions extends $tea.Model {
4763
+ loginAsNonRoot?: boolean;
4764
+ static names(): {
4765
+ [key: string]: string;
4766
+ };
4767
+ static types(): {
4768
+ [key: string]: any;
4769
+ };
4770
+ constructor(map?: {
4771
+ [key: string]: any;
4772
+ });
4773
+ }
4725
4774
  export declare class CreateScalingConfigurationShrinkRequestPrivatePoolOptions extends $tea.Model {
4726
4775
  id?: string;
4727
4776
  matchCriteria?: string;
@@ -4871,6 +4920,19 @@ export declare class CreateScalingGroupRequestLifecycleHooks extends $tea.Model
4871
4920
  [key: string]: any;
4872
4921
  });
4873
4922
  }
4923
+ export declare class CreateScalingGroupRequestLoadBalancerConfigs extends $tea.Model {
4924
+ loadBalancerId?: string;
4925
+ weight?: number;
4926
+ static names(): {
4927
+ [key: string]: string;
4928
+ };
4929
+ static types(): {
4930
+ [key: string]: any;
4931
+ };
4932
+ constructor(map?: {
4933
+ [key: string]: any;
4934
+ });
4935
+ }
4874
4936
  export declare class CreateScalingGroupRequestServerGroups extends $tea.Model {
4875
4937
  port?: number;
4876
4938
  serverGroupId?: string;
@@ -4926,6 +4988,19 @@ export declare class CreateScalingGroupRequestVServerGroups extends $tea.Model {
4926
4988
  [key: string]: any;
4927
4989
  });
4928
4990
  }
4991
+ export declare class CreateScalingRuleRequestAlarmDimensions extends $tea.Model {
4992
+ dimensionKey?: string;
4993
+ dimensionValue?: string;
4994
+ static names(): {
4995
+ [key: string]: string;
4996
+ };
4997
+ static types(): {
4998
+ [key: string]: any;
4999
+ };
5000
+ constructor(map?: {
5001
+ [key: string]: any;
5002
+ });
5003
+ }
4929
5004
  export declare class CreateScalingRuleRequestStepAdjustments extends $tea.Model {
4930
5005
  metricIntervalLowerBound?: number;
4931
5006
  metricIntervalUpperBound?: number;
@@ -5261,6 +5336,7 @@ export declare class DescribeEciScalingConfigurationsResponseBodyScalingConfigur
5261
5336
  diskVolumeDiskSize?: number;
5262
5337
  diskVolumeFsType?: string;
5263
5338
  emptyDirVolumeMedium?: string;
5339
+ emptyDirVolumeSizeLimit?: string;
5264
5340
  flexVolumeDriver?: string;
5265
5341
  flexVolumeFsType?: string;
5266
5342
  flexVolumeOptions?: string;
@@ -5532,7 +5608,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
5532
5608
  });
5533
5609
  }
5534
5610
  export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurations extends $tea.Model {
5535
- privatePoolOptions: DescribeScalingConfigurationsResponseBodyScalingConfigurationsPrivatePoolOptions;
5611
+ privatePoolOptions?: DescribeScalingConfigurationsResponseBodyScalingConfigurationsPrivatePoolOptions;
5536
5612
  affinity?: string;
5537
5613
  cpu?: number;
5538
5614
  creationTime?: string;
@@ -5545,6 +5621,7 @@ export declare class DescribeScalingConfigurationsResponseBodyScalingConfigurati
5545
5621
  imageFamily?: string;
5546
5622
  imageId?: string;
5547
5623
  imageName?: string;
5624
+ imageOptionsLoginAsNonRoot?: boolean;
5548
5625
  imageOwnerAlias?: string;
5549
5626
  instanceDescription?: string;
5550
5627
  instanceGeneration?: string;
@@ -5630,6 +5707,19 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplat
5630
5707
  [key: string]: any;
5631
5708
  });
5632
5709
  }
5710
+ export declare class DescribeScalingGroupsResponseBodyScalingGroupsLoadBalancerConfigs extends $tea.Model {
5711
+ loadBalancerId?: string;
5712
+ weight?: number;
5713
+ static names(): {
5714
+ [key: string]: string;
5715
+ };
5716
+ static types(): {
5717
+ [key: string]: any;
5718
+ };
5719
+ constructor(map?: {
5720
+ [key: string]: any;
5721
+ });
5722
+ }
5633
5723
  export declare class DescribeScalingGroupsResponseBodyScalingGroupsServerGroups extends $tea.Model {
5634
5724
  port?: number;
5635
5725
  serverGroupId?: string;
@@ -5685,6 +5775,7 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroups extends $tea
5685
5775
  DBInstanceIds?: string[];
5686
5776
  defaultCooldown?: number;
5687
5777
  desiredCapacity?: number;
5778
+ enableDesiredCapacity?: boolean;
5688
5779
  groupDeletionProtection?: boolean;
5689
5780
  groupType?: string;
5690
5781
  healthCheckType?: string;
@@ -5694,6 +5785,7 @@ export declare class DescribeScalingGroupsResponseBodyScalingGroups extends $tea
5694
5785
  launchTemplateOverrides?: DescribeScalingGroupsResponseBodyScalingGroupsLaunchTemplateOverrides[];
5695
5786
  launchTemplateVersion?: string;
5696
5787
  lifecycleState?: string;
5788
+ loadBalancerConfigs?: DescribeScalingGroupsResponseBodyScalingGroupsLoadBalancerConfigs[];
5697
5789
  loadBalancerIds?: string[];
5698
5790
  maxInstanceLifetime?: number;
5699
5791
  maxSize?: number;
@@ -5766,6 +5858,19 @@ export declare class DescribeScalingInstancesResponseBodyScalingInstances extend
5766
5858
  [key: string]: any;
5767
5859
  });
5768
5860
  }
5861
+ export declare class DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions extends $tea.Model {
5862
+ dimensionKey?: string;
5863
+ dimensionValue?: string;
5864
+ static names(): {
5865
+ [key: string]: string;
5866
+ };
5867
+ static types(): {
5868
+ [key: string]: any;
5869
+ };
5870
+ constructor(map?: {
5871
+ [key: string]: any;
5872
+ });
5873
+ }
5769
5874
  export declare class DescribeScalingRulesResponseBodyScalingRulesAlarmsDimensions extends $tea.Model {
5770
5875
  dimensionKey?: string;
5771
5876
  dimensionValue?: string;
@@ -5816,6 +5921,7 @@ export declare class DescribeScalingRulesResponseBodyScalingRulesStepAdjustments
5816
5921
  export declare class DescribeScalingRulesResponseBodyScalingRules extends $tea.Model {
5817
5922
  adjustmentType?: string;
5818
5923
  adjustmentValue?: number;
5924
+ alarmDimensions?: DescribeScalingRulesResponseBodyScalingRulesAlarmDimensions[];
5819
5925
  alarms?: DescribeScalingRulesResponseBodyScalingRulesAlarms[];
5820
5926
  cooldown?: number;
5821
5927
  disableScaleIn?: boolean;
@@ -6051,13 +6157,13 @@ export declare class ModifyEciScalingConfigurationRequestContainersLivenessProbe
6051
6157
  });
6052
6158
  }
6053
6159
  export declare class ModifyEciScalingConfigurationRequestContainersLivenessProbe extends $tea.Model {
6054
- exec: ModifyEciScalingConfigurationRequestContainersLivenessProbeExec;
6160
+ exec?: ModifyEciScalingConfigurationRequestContainersLivenessProbeExec;
6055
6161
  failureThreshold?: number;
6056
- httpGet: ModifyEciScalingConfigurationRequestContainersLivenessProbeHttpGet;
6162
+ httpGet?: ModifyEciScalingConfigurationRequestContainersLivenessProbeHttpGet;
6057
6163
  initialDelaySeconds?: number;
6058
6164
  periodSeconds?: number;
6059
6165
  successThreshold?: number;
6060
- tcpSocket: ModifyEciScalingConfigurationRequestContainersLivenessProbeTcpSocket;
6166
+ tcpSocket?: ModifyEciScalingConfigurationRequestContainersLivenessProbeTcpSocket;
6061
6167
  timeoutSeconds?: number;
6062
6168
  static names(): {
6063
6169
  [key: string]: string;
@@ -6108,13 +6214,13 @@ export declare class ModifyEciScalingConfigurationRequestContainersReadinessProb
6108
6214
  });
6109
6215
  }
6110
6216
  export declare class ModifyEciScalingConfigurationRequestContainersReadinessProbe extends $tea.Model {
6111
- exec: ModifyEciScalingConfigurationRequestContainersReadinessProbeExec;
6217
+ exec?: ModifyEciScalingConfigurationRequestContainersReadinessProbeExec;
6112
6218
  failureThreshold?: number;
6113
- httpGet: ModifyEciScalingConfigurationRequestContainersReadinessProbeHttpGet;
6219
+ httpGet?: ModifyEciScalingConfigurationRequestContainersReadinessProbeHttpGet;
6114
6220
  initialDelaySeconds?: number;
6115
6221
  periodSeconds?: number;
6116
6222
  successThreshold?: number;
6117
- tcpSocket: ModifyEciScalingConfigurationRequestContainersReadinessProbeTcpSocket;
6223
+ tcpSocket?: ModifyEciScalingConfigurationRequestContainersReadinessProbeTcpSocket;
6118
6224
  timeoutSeconds?: number;
6119
6225
  static names(): {
6120
6226
  [key: string]: string;
@@ -6139,7 +6245,7 @@ export declare class ModifyEciScalingConfigurationRequestContainersSecurityConte
6139
6245
  });
6140
6246
  }
6141
6247
  export declare class ModifyEciScalingConfigurationRequestContainersSecurityContext extends $tea.Model {
6142
- capability: ModifyEciScalingConfigurationRequestContainersSecurityContextCapability;
6248
+ capability?: ModifyEciScalingConfigurationRequestContainersSecurityContextCapability;
6143
6249
  readOnlyRootFilesystem?: boolean;
6144
6250
  runAsUser?: number;
6145
6251
  static names(): {
@@ -6165,7 +6271,7 @@ export declare class ModifyEciScalingConfigurationRequestContainersEnvironmentVa
6165
6271
  });
6166
6272
  }
6167
6273
  export declare class ModifyEciScalingConfigurationRequestContainersEnvironmentVars extends $tea.Model {
6168
- fieldRef: ModifyEciScalingConfigurationRequestContainersEnvironmentVarsFieldRef;
6274
+ fieldRef?: ModifyEciScalingConfigurationRequestContainersEnvironmentVarsFieldRef;
6169
6275
  key?: string;
6170
6276
  value?: string;
6171
6277
  static names(): {
@@ -6208,9 +6314,9 @@ export declare class ModifyEciScalingConfigurationRequestContainersVolumeMounts
6208
6314
  });
6209
6315
  }
6210
6316
  export declare class ModifyEciScalingConfigurationRequestContainers extends $tea.Model {
6211
- livenessProbe: ModifyEciScalingConfigurationRequestContainersLivenessProbe;
6212
- readinessProbe: ModifyEciScalingConfigurationRequestContainersReadinessProbe;
6213
- securityContext: ModifyEciScalingConfigurationRequestContainersSecurityContext;
6317
+ livenessProbe?: ModifyEciScalingConfigurationRequestContainersLivenessProbe;
6318
+ readinessProbe?: ModifyEciScalingConfigurationRequestContainersReadinessProbe;
6319
+ securityContext?: ModifyEciScalingConfigurationRequestContainersSecurityContext;
6214
6320
  args?: string[];
6215
6321
  commands?: string[];
6216
6322
  cpu?: number;
@@ -6289,7 +6395,7 @@ export declare class ModifyEciScalingConfigurationRequestInitContainersSecurityC
6289
6395
  });
6290
6396
  }
6291
6397
  export declare class ModifyEciScalingConfigurationRequestInitContainersSecurityContext extends $tea.Model {
6292
- capability: ModifyEciScalingConfigurationRequestInitContainersSecurityContextCapability;
6398
+ capability?: ModifyEciScalingConfigurationRequestInitContainersSecurityContextCapability;
6293
6399
  readOnlyRootFilesystem?: boolean;
6294
6400
  runAsUser?: number;
6295
6401
  static names(): {
@@ -6315,7 +6421,7 @@ export declare class ModifyEciScalingConfigurationRequestInitContainersInitConta
6315
6421
  });
6316
6422
  }
6317
6423
  export declare class ModifyEciScalingConfigurationRequestInitContainersInitContainerEnvironmentVars extends $tea.Model {
6318
- fieldRef: ModifyEciScalingConfigurationRequestInitContainersInitContainerEnvironmentVarsFieldRef;
6424
+ fieldRef?: ModifyEciScalingConfigurationRequestInitContainersInitContainerEnvironmentVarsFieldRef;
6319
6425
  key?: string;
6320
6426
  value?: string;
6321
6427
  static names(): {
@@ -6358,7 +6464,7 @@ export declare class ModifyEciScalingConfigurationRequestInitContainersInitConta
6358
6464
  });
6359
6465
  }
6360
6466
  export declare class ModifyEciScalingConfigurationRequestInitContainers extends $tea.Model {
6361
- securityContext: ModifyEciScalingConfigurationRequestInitContainersSecurityContext;
6467
+ securityContext?: ModifyEciScalingConfigurationRequestInitContainersSecurityContext;
6362
6468
  args?: string[];
6363
6469
  commands?: string[];
6364
6470
  cpu?: number;
@@ -6423,6 +6529,7 @@ export declare class ModifyEciScalingConfigurationRequestVolumesDiskVolume exten
6423
6529
  }
6424
6530
  export declare class ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume extends $tea.Model {
6425
6531
  medium?: string;
6532
+ sizeLimit?: string;
6426
6533
  static names(): {
6427
6534
  [key: string]: string;
6428
6535
  };
@@ -6489,11 +6596,11 @@ export declare class ModifyEciScalingConfigurationRequestVolumesConfigFileVolume
6489
6596
  });
6490
6597
  }
6491
6598
  export declare class ModifyEciScalingConfigurationRequestVolumes extends $tea.Model {
6492
- diskVolume: ModifyEciScalingConfigurationRequestVolumesDiskVolume;
6493
- emptyDirVolume: ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume;
6494
- flexVolume: ModifyEciScalingConfigurationRequestVolumesFlexVolume;
6495
- hostPathVolume: ModifyEciScalingConfigurationRequestVolumesHostPathVolume;
6496
- NFSVolume: ModifyEciScalingConfigurationRequestVolumesNFSVolume;
6599
+ diskVolume?: ModifyEciScalingConfigurationRequestVolumesDiskVolume;
6600
+ emptyDirVolume?: ModifyEciScalingConfigurationRequestVolumesEmptyDirVolume;
6601
+ flexVolume?: ModifyEciScalingConfigurationRequestVolumesFlexVolume;
6602
+ hostPathVolume?: ModifyEciScalingConfigurationRequestVolumesHostPathVolume;
6603
+ NFSVolume?: ModifyEciScalingConfigurationRequestVolumesNFSVolume;
6497
6604
  configFileVolumeConfigFileToPath?: ModifyEciScalingConfigurationRequestVolumesConfigFileVolumeConfigFileToPath[];
6498
6605
  configFileVolumeDefaultMode?: number;
6499
6606
  name?: string;
@@ -6508,6 +6615,18 @@ export declare class ModifyEciScalingConfigurationRequestVolumes extends $tea.Mo
6508
6615
  [key: string]: any;
6509
6616
  });
6510
6617
  }
6618
+ export declare class ModifyScalingConfigurationRequestImageOptions extends $tea.Model {
6619
+ loginAsNonRoot?: boolean;
6620
+ static names(): {
6621
+ [key: string]: string;
6622
+ };
6623
+ static types(): {
6624
+ [key: string]: any;
6625
+ };
6626
+ constructor(map?: {
6627
+ [key: string]: any;
6628
+ });
6629
+ }
6511
6630
  export declare class ModifyScalingConfigurationRequestPrivatePoolOptions extends $tea.Model {
6512
6631
  id?: string;
6513
6632
  matchCriteria?: string;
@@ -6612,6 +6731,18 @@ export declare class ModifyScalingConfigurationRequestSpotPriceLimits extends $t
6612
6731
  [key: string]: any;
6613
6732
  });
6614
6733
  }
6734
+ export declare class ModifyScalingConfigurationShrinkRequestImageOptions extends $tea.Model {
6735
+ loginAsNonRoot?: boolean;
6736
+ static names(): {
6737
+ [key: string]: string;
6738
+ };
6739
+ static types(): {
6740
+ [key: string]: any;
6741
+ };
6742
+ constructor(map?: {
6743
+ [key: string]: any;
6744
+ });
6745
+ }
6615
6746
  export declare class ModifyScalingConfigurationShrinkRequestPrivatePoolOptions extends $tea.Model {
6616
6747
  id?: string;
6617
6748
  matchCriteria?: string;
@@ -6730,6 +6861,19 @@ export declare class ModifyScalingGroupRequestLaunchTemplateOverrides extends $t
6730
6861
  [key: string]: any;
6731
6862
  });
6732
6863
  }
6864
+ export declare class ModifyScalingRuleRequestAlarmDimensions extends $tea.Model {
6865
+ dimensionKey?: string;
6866
+ dimensionValue?: string;
6867
+ static names(): {
6868
+ [key: string]: string;
6869
+ };
6870
+ static types(): {
6871
+ [key: string]: any;
6872
+ };
6873
+ constructor(map?: {
6874
+ [key: string]: any;
6875
+ });
6876
+ }
6733
6877
  export declare class ModifyScalingRuleRequestStepAdjustments extends $tea.Model {
6734
6878
  metricIntervalLowerBound?: number;
6735
6879
  metricIntervalUpperBound?: number;
@@ -6763,100 +6907,22 @@ export default class Client extends OpenApi {
6763
6907
  getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
6764
6908
  [key: string]: string;
6765
6909
  }, endpoint: string): string;
6766
- /**
6767
- * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
6768
- *
6769
- * @param request AttachAlbServerGroupsRequest
6770
- * @param runtime runtime options for this request RuntimeOptions
6771
- * @return AttachAlbServerGroupsResponse
6772
- */
6773
6910
  attachAlbServerGroupsWithOptions(request: AttachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachAlbServerGroupsResponse>;
6774
- /**
6775
- * Associates one or more Application Load Balancer (ALB) server groups with a scaling group.
6776
- *
6777
- * @param request AttachAlbServerGroupsRequest
6778
- * @return AttachAlbServerGroupsResponse
6779
- */
6780
6911
  attachAlbServerGroups(request: AttachAlbServerGroupsRequest): Promise<AttachAlbServerGroupsResponse>;
6781
- /**
6782
- * Associates one or more ApsaraDB RDS instances with a scaling group.
6783
- *
6784
- * @param request AttachDBInstancesRequest
6785
- * @param runtime runtime options for this request RuntimeOptions
6786
- * @return AttachDBInstancesResponse
6787
- */
6788
6912
  attachDBInstancesWithOptions(request: AttachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachDBInstancesResponse>;
6789
- /**
6790
- * Associates one or more ApsaraDB RDS instances with a scaling group.
6791
- *
6792
- * @param request AttachDBInstancesRequest
6793
- * @return AttachDBInstancesResponse
6794
- */
6795
6913
  attachDBInstances(request: AttachDBInstancesRequest): Promise<AttachDBInstancesResponse>;
6796
- /**
6797
- * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
6798
- *
6799
- * @param request AttachInstancesRequest
6800
- * @param runtime runtime options for this request RuntimeOptions
6801
- * @return AttachInstancesResponse
6802
- */
6803
6914
  attachInstancesWithOptions(request: AttachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse>;
6804
- /**
6805
- * Manually adds Elastic Compute Service (ECS) instances or elastic container instances to a scaling group.
6806
- *
6807
- * @param request AttachInstancesRequest
6808
- * @return AttachInstancesResponse
6809
- */
6810
6915
  attachInstances(request: AttachInstancesRequest): Promise<AttachInstancesResponse>;
6811
- /**
6812
- * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
6813
- *
6814
- * @param request AttachLoadBalancersRequest
6815
- * @param runtime runtime options for this request RuntimeOptions
6816
- * @return AttachLoadBalancersResponse
6817
- */
6818
6916
  attachLoadBalancersWithOptions(request: AttachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<AttachLoadBalancersResponse>;
6819
- /**
6820
- * Attaches one or more Classic Load Balancer (CLB) instances to a scaling group.
6821
- *
6822
- * @param request AttachLoadBalancersRequest
6823
- * @return AttachLoadBalancersResponse
6824
- */
6825
6917
  attachLoadBalancers(request: AttachLoadBalancersRequest): Promise<AttachLoadBalancersResponse>;
6826
6918
  attachServerGroupsWithOptions(request: AttachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachServerGroupsResponse>;
6827
6919
  attachServerGroups(request: AttachServerGroupsRequest): Promise<AttachServerGroupsResponse>;
6828
- /**
6829
- * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
6830
- *
6831
- * @param request AttachVServerGroupsRequest
6832
- * @param runtime runtime options for this request RuntimeOptions
6833
- * @return AttachVServerGroupsResponse
6834
- */
6835
6920
  attachVServerGroupsWithOptions(request: AttachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<AttachVServerGroupsResponse>;
6836
- /**
6837
- * Attaches one or more vServer groups of a Classic Load Balancer (CLB) instance to a scaling group.
6838
- *
6839
- * @param request AttachVServerGroupsRequest
6840
- * @return AttachVServerGroupsResponse
6841
- */
6842
6921
  attachVServerGroups(request: AttachVServerGroupsRequest): Promise<AttachVServerGroupsResponse>;
6843
- /**
6844
- * A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
6845
- *
6846
- * @param request ChangeResourceGroupRequest
6847
- * @param runtime runtime options for this request RuntimeOptions
6848
- * @return ChangeResourceGroupResponse
6849
- */
6850
6922
  changeResourceGroupWithOptions(request: ChangeResourceGroupRequest, runtime: $Util.RuntimeOptions): Promise<ChangeResourceGroupResponse>;
6851
- /**
6852
- * A resource is an entity of cloud services that you create on Alibaba Cloud. For example, a scaling group is a resource. A resource group is a collection of infrastructure for projects, environments, or stacks. In a resource group, you can manage resources, monitor resources, and perform operations in a centralized manner. This way, you do not need to view and check your Alibaba Cloud resources in each Alibaba Cloud service.
6853
- *
6854
- * @param request ChangeResourceGroupRequest
6855
- * @return ChangeResourceGroupResponse
6856
- */
6857
6923
  changeResourceGroup(request: ChangeResourceGroupRequest): Promise<ChangeResourceGroupResponse>;
6858
6924
  /**
6859
- * When you call this operation to end a lifecycle hook ahead of schedule, you can use the LifecycleActionResult parameter to specify the action that you want Auto Scaling to perform after the lifecycle hook ends. You can set the LifecycleActionResult parameter to CONTINUE or ABANDON.
6925
+ * If you set the LifecycleActionResult parameter for a lifecycle hook of a scaling group to CONTINUE in the operation, Auto Scaling continues to complete the scaling activity in the scaling group after the lifecycle hook times out. If you set the LifecycleActionResult parameter to ABANDON, Auto Scaling stops the scaling activity in the scaling group after the lifecycle hook times out.
6860
6926
  *
6861
6927
  * @param request CompleteLifecycleActionRequest
6862
6928
  * @param runtime runtime options for this request RuntimeOptions
@@ -6864,34 +6930,13 @@ export default class Client extends OpenApi {
6864
6930
  */
6865
6931
  completeLifecycleActionWithOptions(request: CompleteLifecycleActionRequest, runtime: $Util.RuntimeOptions): Promise<CompleteLifecycleActionResponse>;
6866
6932
  /**
6867
- * When you call this operation to end a lifecycle hook ahead of schedule, you can use the LifecycleActionResult parameter to specify the action that you want Auto Scaling to perform after the lifecycle hook ends. You can set the LifecycleActionResult parameter to CONTINUE or ABANDON.
6933
+ * If you set the LifecycleActionResult parameter for a lifecycle hook of a scaling group to CONTINUE in the operation, Auto Scaling continues to complete the scaling activity in the scaling group after the lifecycle hook times out. If you set the LifecycleActionResult parameter to ABANDON, Auto Scaling stops the scaling activity in the scaling group after the lifecycle hook times out.
6868
6934
  *
6869
6935
  * @param request CompleteLifecycleActionRequest
6870
6936
  * @return CompleteLifecycleActionResponse
6871
6937
  */
6872
6938
  completeLifecycleAction(request: CompleteLifecycleActionRequest): Promise<CompleteLifecycleActionResponse>;
6873
- /**
6874
- * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
6875
- * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
6876
- * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
6877
- * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
6878
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
6879
- *
6880
- * @param request CreateAlarmRequest
6881
- * @param runtime runtime options for this request RuntimeOptions
6882
- * @return CreateAlarmResponse
6883
- */
6884
6939
  createAlarmWithOptions(request: CreateAlarmRequest, runtime: $Util.RuntimeOptions): Promise<CreateAlarmResponse>;
6885
- /**
6886
- * * If you set the MetricType parameter to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
6887
- * * When you create an event-triggered task, you must specify the MetricName, DimensionKey, and DimensionValue parameters to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances or elastic container instances in a scaling group within an Alibaba Cloud account.
6888
- * * If you set the MetricType parameter to custom, the valid values are your custom metrics.
6889
- * * For information about the supported metrics when you set the MetricType parameter to system, see [Event-triggered task for system monitoring](~~74854~~).
6890
- * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see the `DimensionKey` and `DimensionValue` parameters in the "Request parameters" section of this topic.
6891
- *
6892
- * @param request CreateAlarmRequest
6893
- * @return CreateAlarmResponse
6894
- */
6895
6940
  createAlarm(request: CreateAlarmRequest): Promise<CreateAlarmResponse>;
6896
6941
  /**
6897
6942
  * A scaling configuration is a template that is used to create elastic container instances during scale-out activities.
@@ -6911,10 +6956,10 @@ export default class Client extends OpenApi {
6911
6956
  */
6912
6957
  createEciScalingConfiguration(request: CreateEciScalingConfigurationRequest): Promise<CreateEciScalingConfigurationResponse>;
6913
6958
  /**
6914
- * You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
6915
- * During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
6916
- * You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
6917
- * > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
6959
+ * You can create up to six lifecycle hooks for each scaling group. Elastic Compute Service (ECS) instances are not immediately added to or removed from scaling groups that have effective lifecycle hooks during scaling activities. The ECS instances are added to or removed from the scaling groups only after the lifecycle hooks time out. The period of time before the lifecycle hooks time out is specified by the HeartbeatTimeout parameter. Before lifecycle hooks time out, you can initialize the configurations of ECS instances and query data on the ECS instances.
6960
+ * If lifecycle hooks take effect for scale-out activities, the private IP addresses of ECS instances are added to the IP address whitelists of the associated ApsaraDB RDS instances and the ECS instances are added to the backend server groups of the associated Server Load Balancer (SLB) instances only after the lifecycle hooks time out. If lifecycle hooks take effect for scale-in activities, the private IP addresses of ECS instances are removed from the IP address whitelists of the disassociated ApsaraDB RDS instances and the ECS instances are removed from the backend server groups of the disassociated SLB instances only after the lifecycle hooks time out.
6961
+ * You can configure a notification method for a lifecycle hook. When the lifecycle hook takes effect, a notification can be sent by using a Message Service (MNS) topic, an MNS queue, or an Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a RAM role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
6962
+ * > If your scaling group contains ECS instances and you configure an OOS template to add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the IP address whitelists of cloud databases other than ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to the IP address whitelists of the cloud databases.
6918
6963
  *
6919
6964
  * @param request CreateLifecycleHookRequest
6920
6965
  * @param runtime runtime options for this request RuntimeOptions
@@ -6922,38 +6967,25 @@ export default class Client extends OpenApi {
6922
6967
  */
6923
6968
  createLifecycleHookWithOptions(request: CreateLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<CreateLifecycleHookResponse>;
6924
6969
  /**
6925
- * You can create up to six lifecycle hooks for each scaling group. After a lifecycle hook is created for a scaling group, Elastic Compute Service (ECS) instances in the scaling group waits to be added to or removed from the scaling group during scaling activities. You can use the HeartbeatTimeout parameter to specify the timeout period of the lifecycle hook. During the timeout period of a lifecycle hook, you can perform custom operations such as initialize ECS instance configurations and download ECS instance data on the ECS instances for which the lifecycle hook is applied.
6926
- * During a scale-out activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be added to the associated whitelist that manages access to the ApsaraDB RDS instance. The ECS instances also wait to be added to the backend server group of the associated Classic Load Balancer (CLB) instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are added to the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also added to the backend server group of the associated CLB instance. During a scale-in activity and the timeout period of a lifecycle hook, the private IP addresses of ECS instances wait to be removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances also wait to be removed from the backend server group of the associated CLB instance. After the lifecycle hook times out, the private IP addresses of the ECS instances are removed from the whitelist that manages access to the associated ApsaraDB RDS instance. The ECS instances are also removed from the backend server group of the associated CLB instance.
6927
- * You can configure a notification method for a lifecycle hook. When the lifecycle hook is triggered, a notification can be sent to the specified Message Service (MNS) topic or queue, or an operation can be performed based on the specified Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a Resource Access Management (RAM) role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
6928
- * > If your scaling group has existing ECS instances and you configured an OOS template that is used to add the private IP addresses of ECS instances to or remove the private IP addresses of ECS instances from the whitelists that manage access to cloud databases that are not ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the whitelists that manage access to the cloud databases.
6970
+ * You can create up to six lifecycle hooks for each scaling group. Elastic Compute Service (ECS) instances are not immediately added to or removed from scaling groups that have effective lifecycle hooks during scaling activities. The ECS instances are added to or removed from the scaling groups only after the lifecycle hooks time out. The period of time before the lifecycle hooks time out is specified by the HeartbeatTimeout parameter. Before lifecycle hooks time out, you can initialize the configurations of ECS instances and query data on the ECS instances.
6971
+ * If lifecycle hooks take effect for scale-out activities, the private IP addresses of ECS instances are added to the IP address whitelists of the associated ApsaraDB RDS instances and the ECS instances are added to the backend server groups of the associated Server Load Balancer (SLB) instances only after the lifecycle hooks time out. If lifecycle hooks take effect for scale-in activities, the private IP addresses of ECS instances are removed from the IP address whitelists of the disassociated ApsaraDB RDS instances and the ECS instances are removed from the backend server groups of the disassociated SLB instances only after the lifecycle hooks time out.
6972
+ * You can configure a notification method for a lifecycle hook. When the lifecycle hook takes effect, a notification can be sent by using a Message Service (MNS) topic, an MNS queue, or an Operation Orchestration Service (OOS) template. If you want to configure an OOS template, you must create a RAM role for OOS. For more information, see [Grant RAM permissions to OOS](~~120810~~).
6973
+ * > If your scaling group contains ECS instances and you configure an OOS template to add the private IP addresses of the ECS instances to or remove the private IP addresses of the ECS instances from the IP address whitelists of cloud databases other than ApsaraDB RDS databases, you must manually add the private IP addresses of the ECS instances to the IP address whitelists of the cloud databases.
6929
6974
  *
6930
6975
  * @param request CreateLifecycleHookRequest
6931
6976
  * @return CreateLifecycleHookResponse
6932
6977
  */
6933
6978
  createLifecycleHook(request: CreateLifecycleHookRequest): Promise<CreateLifecycleHookResponse>;
6934
- /**
6935
- * Creates a notification.
6936
- *
6937
- * @param request CreateNotificationConfigurationRequest
6938
- * @param runtime runtime options for this request RuntimeOptions
6939
- * @return CreateNotificationConfigurationResponse
6940
- */
6941
6979
  createNotificationConfigurationWithOptions(request: CreateNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateNotificationConfigurationResponse>;
6942
- /**
6943
- * Creates a notification.
6944
- *
6945
- * @param request CreateNotificationConfigurationRequest
6946
- * @return CreateNotificationConfigurationResponse
6947
- */
6948
6980
  createNotificationConfiguration(request: CreateNotificationConfigurationRequest): Promise<CreateNotificationConfigurationResponse>;
6949
6981
  /**
6950
- * Auto Scaling automatically scales out Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be configured in the following modes:
6951
- * * InstancePatternInfo.N: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types.
6982
+ * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
6983
+ * * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
6952
6984
  * * InstanceType: In this mode, you must specify one instance type.
6953
- * * InstanceTypes.N: In this mode, you must specify multiple instance types.
6954
- * * InstanceTypeOverride.N: In this mode, you must specify multiple instance types and specify weights for the instance types.
6955
- * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines a set of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates ECS instances of the instance type that is provided at the lowest price. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
6956
- * > You cannot use InstanceType, InstanceTypes, InstanceTypeOverride, and Cpu and Memory at the same time. You can use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time. If you use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-out activities. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-out activities.
6985
+ * * InstanceTypes: In this mode, you can specify more than one instance type.
6986
+ * * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
6987
+ * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
6988
+ * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
6957
6989
  *
6958
6990
  * @param tmpReq CreateScalingConfigurationRequest
6959
6991
  * @param runtime runtime options for this request RuntimeOptions
@@ -6961,13 +6993,13 @@ export default class Client extends OpenApi {
6961
6993
  */
6962
6994
  createScalingConfigurationWithOptions(tmpReq: CreateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingConfigurationResponse>;
6963
6995
  /**
6964
- * Auto Scaling automatically scales out Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be configured in the following modes:
6965
- * * InstancePatternInfo.N: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. The system selects an instance type that is provided at the lowest price based on your configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode helps reduce the failures of scale-out activities caused by insufficient inventory of instance types.
6996
+ * Auto Scaling automatically creates Elastic Compute Service (ECS) instances based on the specified scaling configuration. ECS instances can be created in the following modes:
6997
+ * * InstancePatternInfos: intelligent configuration mode. In this mode, you need to only specify the number of vCPUs, memory size, instance family, and maximum price. Auto Scaling selects the instance type that has the lowest price based on the configurations to create ECS instances. This mode is available only for scaling groups that reside in virtual private clouds (VPCs). This mode reduces scale-out failures caused by insufficient inventory of instance types.
6966
6998
  * * InstanceType: In this mode, you must specify one instance type.
6967
- * * InstanceTypes.N: In this mode, you must specify multiple instance types.
6968
- * * InstanceTypeOverride.N: In this mode, you must specify multiple instance types and specify weights for the instance types.
6969
- * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines a set of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling preferentially creates ECS instances of the instance type that is provided at the lowest price. This mode is available only if the Scaling Policy parameter is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
6970
- * > You cannot use InstanceType, InstanceTypes, InstanceTypeOverride, and Cpu and Memory at the same time. You can use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time. If you use InstanceType and InstancePatternInfos or use InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-out activities. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-out activities.
6999
+ * * InstanceTypes: In this mode, you can specify more than one instance type.
7000
+ * * InstanceTypeOverrides: In this mode, you can specify multiple instance types and weights for the instance types.
7001
+ * * Cpu and Memory: In this mode, you must specify the number of vCPUs and the memory size. Auto Scaling determines the range of available instance types based on factors such as I/O optimization requirements and zones. Then, Auto Scaling creates ECS instances by using the lowest-priced instance type. This mode is available only if Scaling Policy is set to Cost Optimization Policy and no instance type is specified in the scaling configuration.
7002
+ * > You cannot specify InstanceType, InstanceTypes, InstanceTypeOverrides, and Cpu and Memory at the same time. You can specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfo at the same time. If you specify InstanceType and InstancePatternInfos or specify InstanceTypes and InstancePatternInfos at the same time, Auto Scaling preferentially uses the instance types that are specified by InstanceType or InstanceTypes for scale-outs. If the instance types that are specified by InstanceType or InstanceTypes do not have sufficient inventory, Auto Scaling uses the instance types that are specified by InstancePatternInfos for scale-outs.
6971
7003
  *
6972
7004
  * @param request CreateScalingConfigurationRequest
6973
7005
  * @return CreateScalingConfigurationResponse
@@ -6976,26 +7008,26 @@ export default class Client extends OpenApi {
6976
7008
  /**
6977
7009
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
6978
7010
  * You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
6979
- * A scaling group does not immediately take effect after you create it. You must call the EnableScalingGroup operation to enable a scaling group. After you enable a scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
6980
- * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic in ECS Product Introduction.
6981
- * If you associate a CLB instance with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
7011
+ * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
7012
+ * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
7013
+ * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
6982
7014
  * * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
6983
7015
  * * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
6984
7016
  * > If you specify the default server group and multiple vServer groups at the same time, ECS instances are added to all specified server groups.
6985
7017
  * The default weight of an ECS instance that is added as a backend server of a CLB instance is 50. The CLB instance that you want to associate with your scaling group must meet the following requirements:
6986
7018
  * * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
6987
7019
  * * The health check feature must be enabled on all listener ports that are configured for the CLB instance. Otherwise, the scaling group fails to be created.
6988
- * If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
7020
+ * If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances that are in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
6989
7021
  * If you associate an ApsaraDB RDS instance with a scaling group, Auto Scaling automatically adds the private IP addresses of the ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance. The ApsaraDB RDS instance that you want to associate with your scaling group must meet the following requirements:
6990
7022
  * * The ApsaraDB RDS instance must be in the Running state. You can call the DescribeDBInstances operation to query the state of the ApsaraDB RDS instance.
6991
- * * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic in ApsaraDB RDS User Guide.
7023
+ * * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic.
6992
7024
  * If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
6993
7025
  * * You can use the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools parameters to specify the instance allocation method based on the cost optimization policy. This instance allocation method is prioritized during scaling.
6994
7026
  * * If you do not specify the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools parameter, the instance types that are provided at the lowest price are used to create instances based on the cost optimization policy.
6995
- * If you set the `Tags.Propagate` parameter for the scaling group to true, the following rules apply:
7027
+ * If you set the `Tags.Propagate` parameter of the scaling group to true, the following rules apply:
6996
7028
  * * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
6997
- * * If you specify instance tags in the scaling configuration that is used to create instances, and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
6998
- * * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group that uses the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
7029
+ * * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
7030
+ * * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
6999
7031
  *
7000
7032
  * @param request CreateScalingGroupRequest
7001
7033
  * @param runtime runtime options for this request RuntimeOptions
@@ -7005,33 +7037,44 @@ export default class Client extends OpenApi {
7005
7037
  /**
7006
7038
  * A scaling group is a group of Elastic Compute Service (ECS) instances that can be used in similar business scenarios.
7007
7039
  * You can create only a limited number of scaling groups in a region. Go to Quota Center to check the quota of the scaling groups.
7008
- * A scaling group does not immediately take effect after you create it. You must call the EnableScalingGroup operation to enable a scaling group. After you enable a scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
7009
- * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic in ECS Product Introduction.
7010
- * If you associate a CLB instance with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
7040
+ * A scaling group does not immediately take effect after you create the scaling group. You must call the EnableScalingGroup operation to enable the scaling group. After you enable the scaling group, Auto Scaling can execute scaling rules to trigger scaling activities in the scaling group.
7041
+ * The Classic Load Balancer (CLB) instances and ApsaraDB RDS instances that you want to associate with a scaling group must reside in the same region as the scaling group. CLB instances are formerly known as Server Load Balancer (SLB) instances. For more information, see the "Regions and zones" topic.
7042
+ * If you associate a CLB instance when you create a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the backend server group of the associated CLB instance. You can specify a server group to which ECS instances can be added. You can add ECS instances to the following types of server groups:
7011
7043
  * * Default server group: a group of ECS instances that are used to receive requests. If you do not specify a vServer group or a primary/secondary server group for a listener, requests are forwarded to the ECS instances in the default server group.
7012
7044
  * * vServer group: If you want to forward requests to backend servers that are not in the default server group or configure domain name-based or URL-based forwarding rules, you can use vServer groups.
7013
7045
  * > If you specify the default server group and multiple vServer groups at the same time, ECS instances are added to all specified server groups.
7014
7046
  * The default weight of an ECS instance that is added as a backend server of a CLB instance is 50. The CLB instance that you want to associate with your scaling group must meet the following requirements:
7015
7047
  * * The CLB instance must be in the Active state. You can call the DescribeLoadBalancers operation to query the state of the CLB instance.
7016
7048
  * * The health check feature must be enabled on all listener ports that are configured for the CLB instance. Otherwise, the scaling group fails to be created.
7017
- * If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
7049
+ * If you associate an Application Load Balancer (ALB) server group with a scaling group, Auto Scaling automatically adds ECS instances that are in the scaling group to the ALB server group to process requests distributed by the ALB instance to which the ALB server group belongs. You can specify multiple ALB server groups. The server groups must reside in the same virtual private cloud (VPC) as the scaling group. For more information, see the "AttachAlbServerGroups" topic.
7018
7050
  * If you associate an ApsaraDB RDS instance with a scaling group, Auto Scaling automatically adds the private IP addresses of the ECS instances in the scaling group to the IP address whitelist of the ApsaraDB RDS instance. The ApsaraDB RDS instance that you want to associate with your scaling group must meet the following requirements:
7019
7051
  * * The ApsaraDB RDS instance must be in the Running state. You can call the DescribeDBInstances operation to query the state of the ApsaraDB RDS instance.
7020
- * * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic in ApsaraDB RDS User Guide.
7052
+ * * The number of IP addresses in the IP address whitelist of the ApsaraDB RDS instance cannot exceed the upper limit. For more information, see the "Configure whitelists" topic.
7021
7053
  * If you set the MultiAZPolicy parameter of the scaling group to COST_OPTIMIZED, take note of the following items:
7022
7054
  * * You can use the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, and SpotInstancePools parameters to specify the instance allocation method based on the cost optimization policy. This instance allocation method is prioritized during scaling.
7023
7055
  * * If you do not specify the OnDemandBaseCapacity, OnDemandPercentageAboveBaseCapacity, or SpotInstancePools parameter, the instance types that are provided at the lowest price are used to create instances based on the cost optimization policy.
7024
- * If you set the `Tags.Propagate` parameter for the scaling group to true, the following rules apply:
7056
+ * If you set the `Tags.Propagate` parameter of the scaling group to true, the following rules apply:
7025
7057
  * * Tags that you add to the scaling group cannot be propagated to existing instances in the scaling group. Tags that you add to the scaling group are propagated to only new instances.
7026
- * * If you specify instance tags in the scaling configuration that is used to create instances, and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
7027
- * * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group that uses the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
7058
+ * * If you specify instance tags in the scaling configuration that is used to create instances and propagate the tags that you add to the scaling group to the instances, all tags exist at the same time.
7059
+ * * If the tag key that you specify in a scaling configuration and the tag key that you add to the scaling group of the scaling configuration are the same, the tag value that you specify in the scaling configuration is preferentially used.
7028
7060
  *
7029
7061
  * @param request CreateScalingGroupRequest
7030
7062
  * @return CreateScalingGroupResponse
7031
7063
  */
7032
7064
  createScalingGroup(request: CreateScalingGroupRequest): Promise<CreateScalingGroupResponse>;
7033
7065
  /**
7034
- * Creates a scaling rule.
7066
+ * A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling calculates the number of ECS instances that need to be added or removed. This ensures that the number of ECS instances can be maintained within the valid range after the scaling rule is executed. Examples:
7067
+ * * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified.
7068
+ * * If your scaling group contains three ECS instances and requires at least two ECS instances, only one ECS instance is removed from your scaling group after you execute a scale-in rule in which five ECS instances are specified.
7069
+ * Before you call this operation, take note of the following items:
7070
+ * * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
7071
+ * * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
7072
+ * * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
7073
+ * * If you specify a cooldown period for the scaling rule, the specified cooldown period takes effect after the rule is executed. Otherwise, the value of DefaultCooldown of the scaling group takes effect.
7074
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
7075
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
7076
+ * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
7077
+ * * CreateScheduledTask: You can call this operation to create a scheduled task. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to associate with the scheduled task.
7035
7078
  *
7036
7079
  * @param request CreateScalingRuleRequest
7037
7080
  * @param runtime runtime options for this request RuntimeOptions
@@ -7039,96 +7082,38 @@ export default class Client extends OpenApi {
7039
7082
  */
7040
7083
  createScalingRuleWithOptions(request: CreateScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateScalingRuleResponse>;
7041
7084
  /**
7042
- * Creates a scaling rule.
7085
+ * A scaling rule defines a specific scaling activity, such as adding or removing N instances. If the number of Elastic Compute Service (ECS) instances in a scaling group is less than the minimum number allowed or greater than the maximum number allowed after a scaling rule is executed, Auto Scaling calculates the number of ECS instances that need to be added or removed. This ensures that the number of ECS instances can be maintained within the valid range after the scaling rule is executed. Examples:
7086
+ * * If your scaling group contains two ECS instances and allows up to three ECS instances, only one ECS instance is added to your scaling group after you execute a scale-out rule in which three ECS instances are specified.
7087
+ * * If your scaling group contains three ECS instances and requires at least two ECS instances, only one ECS instance is removed from your scaling group after you execute a scale-in rule in which five ECS instances are specified.
7088
+ * Before you call this operation, take note of the following items:
7089
+ * * If you set AdjustmentType to TotalCapacity, the number of ECS instances in the scaling group is adjusted to the specified value. The value of AdjustmentValue must be greater than or equal to 0.
7090
+ * * If you set AdjustmentType to QuantityChangeInCapacity, a positive value of AdjustmentValue specifies the number of ECS instances that are added to the scaling group, and a negative value of AdjustmentValue specifies the number of ECS instances that are removed from the scaling group.
7091
+ * * If you set AdjustmentType to PercentChangeInCapacity, Auto Scaling uses the following formula to calculate a value, and then rounds the value to the nearest integer to obtain the number of ECS instances that need to be scaled: Value of TotalCapacity × Value of AdjustmentValue/100.
7092
+ * * If you specify a cooldown period for the scaling rule, the specified cooldown period takes effect after the rule is executed. Otherwise, the value of DefaultCooldown of the scaling group takes effect.
7093
+ * * You can create only a limited number of scaling rules for a scaling group. For more information, see the "Limits" topic.
7094
+ * * The unique identifier (ScalingRuleAri) of a scaling rule can be used by the following operations:
7095
+ * * ExecuteScalingRule: You can call this operation to manually execute a specific scaling rule. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to execute.
7096
+ * * CreateScheduledTask: You can call this operation to create a scheduled task. In this operation, you can set ScalingRuleAri to the unique identifier of the scaling rule that you want to associate with the scheduled task.
7043
7097
  *
7044
7098
  * @param request CreateScalingRuleRequest
7045
7099
  * @return CreateScalingRuleResponse
7046
7100
  */
7047
7101
  createScalingRule(request: CreateScalingRuleRequest): Promise<CreateScalingRuleResponse>;
7048
- /**
7049
- * Creates a scheduled task.
7050
- *
7051
- * @param request CreateScheduledTaskRequest
7052
- * @param runtime runtime options for this request RuntimeOptions
7053
- * @return CreateScheduledTaskResponse
7054
- */
7055
7102
  createScheduledTaskWithOptions(request: CreateScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<CreateScheduledTaskResponse>;
7056
- /**
7057
- * Creates a scheduled task.
7058
- *
7059
- * @param request CreateScheduledTaskRequest
7060
- * @return CreateScheduledTaskResponse
7061
- */
7062
7103
  createScheduledTask(request: CreateScheduledTaskRequest): Promise<CreateScheduledTaskResponse>;
7063
7104
  deactivateScalingConfigurationWithOptions(request: DeactivateScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeactivateScalingConfigurationResponse>;
7064
7105
  deactivateScalingConfiguration(request: DeactivateScalingConfigurationRequest): Promise<DeactivateScalingConfigurationResponse>;
7065
7106
  deleteAlarmWithOptions(request: DeleteAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAlarmResponse>;
7066
7107
  deleteAlarm(request: DeleteAlarmRequest): Promise<DeleteAlarmResponse>;
7067
- /**
7068
- * Deletes a scaling configuration that is used to create elastic container instances.
7069
- *
7070
- * @param request DeleteEciScalingConfigurationRequest
7071
- * @param runtime runtime options for this request RuntimeOptions
7072
- * @return DeleteEciScalingConfigurationResponse
7073
- */
7074
7108
  deleteEciScalingConfigurationWithOptions(request: DeleteEciScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteEciScalingConfigurationResponse>;
7075
- /**
7076
- * Deletes a scaling configuration that is used to create elastic container instances.
7077
- *
7078
- * @param request DeleteEciScalingConfigurationRequest
7079
- * @return DeleteEciScalingConfigurationResponse
7080
- */
7081
7109
  deleteEciScalingConfiguration(request: DeleteEciScalingConfigurationRequest): Promise<DeleteEciScalingConfigurationResponse>;
7082
- /**
7083
- * If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
7084
- * * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
7085
- * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
7086
- *
7087
- * @param request DeleteLifecycleHookRequest
7088
- * @param runtime runtime options for this request RuntimeOptions
7089
- * @return DeleteLifecycleHookResponse
7090
- */
7091
7110
  deleteLifecycleHookWithOptions(request: DeleteLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<DeleteLifecycleHookResponse>;
7092
- /**
7093
- * If you delete a lifecycle hook that is in effect in a scaling group, instances exit the Pending state in advance. You can use one of the following methods to specify the lifecycle hooks that you want to delete:
7094
- * * Specify the scaling group ID of the lifecycle hook that you want to delete by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter.
7095
- * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. In this case, the ScalingGroupId parameter and the LifecycleHookName parameter are ignored.
7096
- *
7097
- * @param request DeleteLifecycleHookRequest
7098
- * @return DeleteLifecycleHookResponse
7099
- */
7100
7111
  deleteLifecycleHook(request: DeleteLifecycleHookRequest): Promise<DeleteLifecycleHookResponse>;
7101
7112
  deleteNotificationConfigurationWithOptions(request: DeleteNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNotificationConfigurationResponse>;
7102
7113
  deleteNotificationConfiguration(request: DeleteNotificationConfigurationRequest): Promise<DeleteNotificationConfigurationResponse>;
7103
- /**
7104
- * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
7105
- *
7106
- * @param request DeleteScalingConfigurationRequest
7107
- * @param runtime runtime options for this request RuntimeOptions
7108
- * @return DeleteScalingConfigurationResponse
7109
- */
7110
7114
  deleteScalingConfigurationWithOptions(request: DeleteScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingConfigurationResponse>;
7111
- /**
7112
- * Deletes a scaling configuration that is used to create Elastic Compute Service (ECS) instances.
7113
- *
7114
- * @param request DeleteScalingConfigurationRequest
7115
- * @return DeleteScalingConfigurationResponse
7116
- */
7117
7115
  deleteScalingConfiguration(request: DeleteScalingConfigurationRequest): Promise<DeleteScalingConfigurationResponse>;
7118
- /**
7119
- * Deletes a scaling group.
7120
- *
7121
- * @param request DeleteScalingGroupRequest
7122
- * @param runtime runtime options for this request RuntimeOptions
7123
- * @return DeleteScalingGroupResponse
7124
- */
7125
7116
  deleteScalingGroupWithOptions(request: DeleteScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingGroupResponse>;
7126
- /**
7127
- * Deletes a scaling group.
7128
- *
7129
- * @param request DeleteScalingGroupRequest
7130
- * @return DeleteScalingGroupResponse
7131
- */
7132
7117
  deleteScalingGroup(request: DeleteScalingGroupRequest): Promise<DeleteScalingGroupResponse>;
7133
7118
  deleteScalingRuleWithOptions(request: DeleteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<DeleteScalingRuleResponse>;
7134
7119
  deleteScalingRule(request: DeleteScalingRuleRequest): Promise<DeleteScalingRuleResponse>;
@@ -7138,41 +7123,9 @@ export default class Client extends OpenApi {
7138
7123
  describeAlarms(request: DescribeAlarmsRequest): Promise<DescribeAlarmsResponse>;
7139
7124
  describeEciScalingConfigurationsWithOptions(request: DescribeEciScalingConfigurationsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeEciScalingConfigurationsResponse>;
7140
7125
  describeEciScalingConfigurations(request: DescribeEciScalingConfigurationsRequest): Promise<DescribeEciScalingConfigurationsResponse>;
7141
- /**
7142
- * Queries lifecycle actions.
7143
- *
7144
- * @param request DescribeLifecycleActionsRequest
7145
- * @param runtime runtime options for this request RuntimeOptions
7146
- * @return DescribeLifecycleActionsResponse
7147
- */
7148
7126
  describeLifecycleActionsWithOptions(request: DescribeLifecycleActionsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleActionsResponse>;
7149
- /**
7150
- * Queries lifecycle actions.
7151
- *
7152
- * @param request DescribeLifecycleActionsRequest
7153
- * @return DescribeLifecycleActionsResponse
7154
- */
7155
7127
  describeLifecycleActions(request: DescribeLifecycleActionsRequest): Promise<DescribeLifecycleActionsResponse>;
7156
- /**
7157
- * You can use one of the following methods to query lifecycle hooks:
7158
- * * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
7159
- * * Specify the scaling group ID by using the ScalingGroupId parameter.
7160
- * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
7161
- *
7162
- * @param request DescribeLifecycleHooksRequest
7163
- * @param runtime runtime options for this request RuntimeOptions
7164
- * @return DescribeLifecycleHooksResponse
7165
- */
7166
7128
  describeLifecycleHooksWithOptions(request: DescribeLifecycleHooksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLifecycleHooksResponse>;
7167
- /**
7168
- * You can use one of the following methods to query lifecycle hooks:
7169
- * * Specify a list of lifecycle hook IDs by using the LifecycleHookIds parameter. In this case, you do not need to specify the ScalingGroupId and LifecycleHookName parameters.
7170
- * * Specify the scaling group ID by using the ScalingGroupId parameter.
7171
- * * Specify the scaling group ID by using the ScalingGroupId parameter and the lifecycle hook name by using the LifecycleHookName parameter at the same time.
7172
- *
7173
- * @param request DescribeLifecycleHooksRequest
7174
- * @return DescribeLifecycleHooksResponse
7175
- */
7176
7129
  describeLifecycleHooks(request: DescribeLifecycleHooksRequest): Promise<DescribeLifecycleHooksResponse>;
7177
7130
  describeLimitationWithOptions(request: DescribeLimitationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeLimitationResponse>;
7178
7131
  describeLimitation(request: DescribeLimitationRequest): Promise<DescribeLimitationResponse>;
@@ -7207,23 +7160,10 @@ export default class Client extends OpenApi {
7207
7160
  describeScalingConfigurations(request: DescribeScalingConfigurationsRequest): Promise<DescribeScalingConfigurationsResponse>;
7208
7161
  describeScalingGroupsWithOptions(request: DescribeScalingGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingGroupsResponse>;
7209
7162
  describeScalingGroups(request: DescribeScalingGroupsRequest): Promise<DescribeScalingGroupsResponse>;
7210
- /**
7211
- * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
7212
- *
7213
- * @param request DescribeScalingInstancesRequest
7214
- * @param runtime runtime options for this request RuntimeOptions
7215
- * @return DescribeScalingInstancesResponse
7216
- */
7217
7163
  describeScalingInstancesWithOptions(request: DescribeScalingInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingInstancesResponse>;
7218
- /**
7219
- * You can query ECS instances by scaling group ID, scaling configuration ID, health status, lifecycle status, and instance creation method.
7220
- *
7221
- * @param request DescribeScalingInstancesRequest
7222
- * @return DescribeScalingInstancesResponse
7223
- */
7224
7164
  describeScalingInstances(request: DescribeScalingInstancesRequest): Promise<DescribeScalingInstancesResponse>;
7225
7165
  /**
7226
- * Queries all scaling rules in a scaling group.
7166
+ * You can specify a scaling group ID to query the information about all scaling rules in a scaling group. You can also specify the scaling rule ID, name, unique identifier, or type in the request parameters as filter conditions.
7227
7167
  *
7228
7168
  * @param request DescribeScalingRulesRequest
7229
7169
  * @param runtime runtime options for this request RuntimeOptions
@@ -7231,90 +7171,38 @@ export default class Client extends OpenApi {
7231
7171
  */
7232
7172
  describeScalingRulesWithOptions(request: DescribeScalingRulesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScalingRulesResponse>;
7233
7173
  /**
7234
- * Queries all scaling rules in a scaling group.
7174
+ * You can specify a scaling group ID to query the information about all scaling rules in a scaling group. You can also specify the scaling rule ID, name, unique identifier, or type in the request parameters as filter conditions.
7235
7175
  *
7236
7176
  * @param request DescribeScalingRulesRequest
7237
7177
  * @return DescribeScalingRulesResponse
7238
7178
  */
7239
7179
  describeScalingRules(request: DescribeScalingRulesRequest): Promise<DescribeScalingRulesResponse>;
7240
- /**
7241
- * You can query scheduled tasks by scaling rule, task ID, or task name.
7242
- *
7243
- * @param request DescribeScheduledTasksRequest
7244
- * @param runtime runtime options for this request RuntimeOptions
7245
- * @return DescribeScheduledTasksResponse
7246
- */
7247
7180
  describeScheduledTasksWithOptions(request: DescribeScheduledTasksRequest, runtime: $Util.RuntimeOptions): Promise<DescribeScheduledTasksResponse>;
7248
- /**
7249
- * You can query scheduled tasks by scaling rule, task ID, or task name.
7250
- *
7251
- * @param request DescribeScheduledTasksRequest
7252
- * @return DescribeScheduledTasksResponse
7253
- */
7254
7181
  describeScheduledTasks(request: DescribeScheduledTasksRequest): Promise<DescribeScheduledTasksResponse>;
7255
7182
  detachAlbServerGroupsWithOptions(request: DetachAlbServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachAlbServerGroupsResponse>;
7256
7183
  detachAlbServerGroups(request: DetachAlbServerGroupsRequest): Promise<DetachAlbServerGroupsResponse>;
7257
7184
  detachDBInstancesWithOptions(request: DetachDBInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachDBInstancesResponse>;
7258
7185
  detachDBInstances(request: DetachDBInstancesRequest): Promise<DetachDBInstancesResponse>;
7259
- /**
7260
- * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
7261
- *
7262
- * @param request DetachInstancesRequest
7263
- * @param runtime runtime options for this request RuntimeOptions
7264
- * @return DetachInstancesResponse
7265
- */
7266
7186
  detachInstancesWithOptions(request: DetachInstancesRequest, runtime: $Util.RuntimeOptions): Promise<DetachInstancesResponse>;
7267
- /**
7268
- * Removes one or more Elastic Compute Service (ECS) instances or elastic container instances from a scaling group.
7269
- *
7270
- * @param request DetachInstancesRequest
7271
- * @return DetachInstancesResponse
7272
- */
7273
7187
  detachInstances(request: DetachInstancesRequest): Promise<DetachInstancesResponse>;
7274
7188
  detachLoadBalancersWithOptions(request: DetachLoadBalancersRequest, runtime: $Util.RuntimeOptions): Promise<DetachLoadBalancersResponse>;
7275
7189
  detachLoadBalancers(request: DetachLoadBalancersRequest): Promise<DetachLoadBalancersResponse>;
7276
7190
  detachServerGroupsWithOptions(request: DetachServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachServerGroupsResponse>;
7277
7191
  detachServerGroups(request: DetachServerGroupsRequest): Promise<DetachServerGroupsResponse>;
7278
- /**
7279
- * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
7280
- *
7281
- * @param request DetachVServerGroupsRequest
7282
- * @param runtime runtime options for this request RuntimeOptions
7283
- * @return DetachVServerGroupsResponse
7284
- */
7285
7192
  detachVServerGroupsWithOptions(request: DetachVServerGroupsRequest, runtime: $Util.RuntimeOptions): Promise<DetachVServerGroupsResponse>;
7286
- /**
7287
- * Detaches one or more vServer groups of a Classic Load Balancer (CLB) instance from a scaling group.
7288
- *
7289
- * @param request DetachVServerGroupsRequest
7290
- * @return DetachVServerGroupsResponse
7291
- */
7292
7193
  detachVServerGroups(request: DetachVServerGroupsRequest): Promise<DetachVServerGroupsResponse>;
7293
7194
  disableAlarmWithOptions(request: DisableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<DisableAlarmResponse>;
7294
7195
  disableAlarm(request: DisableAlarmRequest): Promise<DisableAlarmResponse>;
7295
- /**
7296
- * Disables a scaling group.
7297
- *
7298
- * @param request DisableScalingGroupRequest
7299
- * @param runtime runtime options for this request RuntimeOptions
7300
- * @return DisableScalingGroupResponse
7301
- */
7302
7196
  disableScalingGroupWithOptions(request: DisableScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<DisableScalingGroupResponse>;
7303
- /**
7304
- * Disables a scaling group.
7305
- *
7306
- * @param request DisableScalingGroupRequest
7307
- * @return DisableScalingGroupResponse
7308
- */
7309
7197
  disableScalingGroup(request: DisableScalingGroupRequest): Promise<DisableScalingGroupResponse>;
7310
7198
  enableAlarmWithOptions(request: EnableAlarmRequest, runtime: $Util.RuntimeOptions): Promise<EnableAlarmResponse>;
7311
7199
  enableAlarm(request: EnableAlarmRequest): Promise<EnableAlarmResponse>;
7312
7200
  /**
7313
7201
  * You can call this operation to enable a scaling group that is in the Inactive state and has an instance configuration source. The instance configuration source can be a scaling configuration, a launch template, or an Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If a scaling group is not in the Inactive state or does not have an active instance configuration source, you cannot call this operation to enable the scaling group.
7314
7202
  * > A scaling group can have only one active instance configuration source. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If an instance configuration source has been configured for the scaling group before you call this operation, the scaling configuration or launch template that you specify in the request overwrites the original scaling configuration or launch template.
7315
- * If you specify a value for the InstanceId parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
7316
- * * If the total number of ECS instances is less than the minimum number of instances allowed in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances allowed in your scaling group is five, and you specify the InstanceId parameter to add two created ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
7317
- * * If the value of the TotalCapactiy parameter is greater than the value of the MaxSize parameter, the call fails.
7203
+ * If you specify a value for the InstanceIds parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
7204
+ * * If the total number of ECS instances is less than the minimum number of instances required in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances required in your scaling group is five, and you specify the InstanceIds parameter to add two ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
7205
+ * * If the value of the TotalCapacity parameter is greater than the value of the MaxSize parameter, the call fails.
7318
7206
  *
7319
7207
  * @param request EnableScalingGroupRequest
7320
7208
  * @param runtime runtime options for this request RuntimeOptions
@@ -7324,52 +7212,20 @@ export default class Client extends OpenApi {
7324
7212
  /**
7325
7213
  * You can call this operation to enable a scaling group that is in the Inactive state and has an instance configuration source. The instance configuration source can be a scaling configuration, a launch template, or an Elastic Compute Service (ECS) instance that you specified when you created the scaling group. If a scaling group is not in the Inactive state or does not have an active instance configuration source, you cannot call this operation to enable the scaling group.
7326
7214
  * > A scaling group can have only one active instance configuration source. When you call this operation to enable a scaling group, you can specify a scaling configuration or a launch template for the scaling group. If an instance configuration source has been configured for the scaling group before you call this operation, the scaling configuration or launch template that you specify in the request overwrites the original scaling configuration or launch template.
7327
- * If you specify a value for the InstanceId parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
7328
- * * If the total number of ECS instances is less than the minimum number of instances allowed in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances allowed in your scaling group is five, and you specify the InstanceId parameter to add two created ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
7329
- * * If the value of the TotalCapactiy parameter is greater than the value of the MaxSize parameter, the call fails.
7215
+ * If you specify a value for the InstanceIds parameter when you call the operation, Auto Scaling checks whether the total number of ECS instances is within the range allowed in the scaling group after you call the operation.
7216
+ * * If the total number of ECS instances is less than the minimum number of instances required in the scaling group after you call the operation, Auto Scaling automatically creates the required number of pay-as-you-go ECS instances and adds the instances to the scaling group to reach the minimum number. For example, if the minimum number of instances required in your scaling group is five, and you specify the InstanceIds parameter to add two ECS instances to the scaling group, Auto Scaling automatically creates three instances in the scaling group after the two instances are added.
7217
+ * * If the value of the TotalCapacity parameter is greater than the value of the MaxSize parameter, the call fails.
7330
7218
  *
7331
7219
  * @param request EnableScalingGroupRequest
7332
7220
  * @return EnableScalingGroupResponse
7333
7221
  */
7334
7222
  enableScalingGroup(request: EnableScalingGroupRequest): Promise<EnableScalingGroupResponse>;
7335
- /**
7336
- * * If you call the operation to set an Elastic Compute Service (ECS) instance in a scaling group that is associated with a Server Load Balancer (SLB) instance to the Standby state, the weight of the ECS instance as a backend server of the SLB instance is set to 0.
7337
- * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
7338
- * * When scale-in activities are triggered by changes in the number of scaling groups or by event-triggered tasks, the ECS instances that are in the Standby state are not removed from the scaling groups.
7339
- * * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, such as in the Stopping or Restarting state, Auto Scaling does not update the health check status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health check status of the ECS instance only when the ECS instance is no longer in the Standby state.
7340
- *
7341
- * @param request EnterStandbyRequest
7342
- * @param runtime runtime options for this request RuntimeOptions
7343
- * @return EnterStandbyResponse
7344
- */
7345
7223
  enterStandbyWithOptions(request: EnterStandbyRequest, runtime: $Util.RuntimeOptions): Promise<EnterStandbyResponse>;
7346
- /**
7347
- * * If you call the operation to set an Elastic Compute Service (ECS) instance in a scaling group that is associated with a Server Load Balancer (SLB) instance to the Standby state, the weight of the ECS instance as a backend server of the SLB instance is set to 0.
7348
- * * You can remove an ECS instance that is in the Standby state from a scaling group and release the instance.
7349
- * * When scale-in activities are triggered by changes in the number of scaling groups or by event-triggered tasks, the ECS instances that are in the Standby state are not removed from the scaling groups.
7350
- * * If Auto Scaling considers an ECS instance that is in the Standby state unhealthy, such as in the Stopping or Restarting state, Auto Scaling does not update the health check status of the ECS instance or trigger scale-in activities to remove the ECS instance from the scaling group. Auto Scaling updates the health check status of the ECS instance only when the ECS instance is no longer in the Standby state.
7351
- *
7352
- * @param request EnterStandbyRequest
7353
- * @return EnterStandbyResponse
7354
- */
7355
7224
  enterStandby(request: EnterStandbyRequest): Promise<EnterStandbyResponse>;
7356
- /**
7357
- * Executes a scaling rule.
7358
- *
7359
- * @param request ExecuteScalingRuleRequest
7360
- * @param runtime runtime options for this request RuntimeOptions
7361
- * @return ExecuteScalingRuleResponse
7362
- */
7363
7225
  executeScalingRuleWithOptions(request: ExecuteScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ExecuteScalingRuleResponse>;
7364
- /**
7365
- * Executes a scaling rule.
7366
- *
7367
- * @param request ExecuteScalingRuleRequest
7368
- * @return ExecuteScalingRuleResponse
7369
- */
7370
7226
  executeScalingRule(request: ExecuteScalingRuleRequest): Promise<ExecuteScalingRuleResponse>;
7371
7227
  /**
7372
- * If the scaling group is associated with a load balancing instance, the ECS instance weight will be set to the weight value defined in the scaling configuration.
7228
+ * The IDs of the ECS instances. The value of this parameter can be a JSON array that consists of up to 20 instance IDs. Separate multiple instance IDs with commas (,).
7373
7229
  *
7374
7230
  * @param request ExitStandbyRequest
7375
7231
  * @param runtime runtime options for this request RuntimeOptions
@@ -7377,7 +7233,7 @@ export default class Client extends OpenApi {
7377
7233
  */
7378
7234
  exitStandbyWithOptions(request: ExitStandbyRequest, runtime: $Util.RuntimeOptions): Promise<ExitStandbyResponse>;
7379
7235
  /**
7380
- * If the scaling group is associated with a load balancing instance, the ECS instance weight will be set to the weight value defined in the scaling configuration.
7236
+ * The IDs of the ECS instances. The value of this parameter can be a JSON array that consists of up to 20 instance IDs. Separate multiple instance IDs with commas (,).
7381
7237
  *
7382
7238
  * @param request ExitStandbyRequest
7383
7239
  * @return ExitStandbyResponse
@@ -7390,7 +7246,11 @@ export default class Client extends OpenApi {
7390
7246
  listTagValuesWithOptions(request: ListTagValuesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagValuesResponse>;
7391
7247
  listTagValues(request: ListTagValuesRequest): Promise<ListTagValuesResponse>;
7392
7248
  /**
7393
- * Modifies an event-triggered task.
7249
+ * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
7250
+ * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
7251
+ * * If you set MetricType to custom, the valid values are your custom metrics.
7252
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
7253
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
7394
7254
  *
7395
7255
  * @param request ModifyAlarmRequest
7396
7256
  * @param runtime runtime options for this request RuntimeOptions
@@ -7398,7 +7258,11 @@ export default class Client extends OpenApi {
7398
7258
  */
7399
7259
  modifyAlarmWithOptions(request: ModifyAlarmRequest, runtime: $Util.RuntimeOptions): Promise<ModifyAlarmResponse>;
7400
7260
  /**
7401
- * Modifies an event-triggered task.
7261
+ * * If you set MetricType to custom, you must report your custom metrics to CloudMonitor before you can create event-triggered tasks by using the custom metrics. For more information, see [Custom monitoring event-triggered tasks](~~74861~~).
7262
+ * * When you create an event-triggered task, you must specify MetricName, DimensionKey, and DimensionValue to determine the range of statistics that you want to aggregate for the metrics of the scaling group. For example, you can specify the user_id and scaling_group dimensions for an event-triggered task to aggregate monitoring data of all Elastic Compute Service (ECS) instances in a scaling group within an Alibaba Cloud account.
7263
+ * * If you set MetricType to custom, the valid values are your custom metrics.
7264
+ * * For information about the metrics that are supported if you set MetricType to system, see [Event-triggered task for system monitoring](~~74854~~).
7265
+ * > The user_id and scaling_group dimensions are automatically populated. You need to only specify the device and state dimensions. For more information, see `DimensionKey` and `DimensionValue` in the "Request parameters" section of this topic.
7402
7266
  *
7403
7267
  * @param request ModifyAlarmRequest
7404
7268
  * @return ModifyAlarmResponse
@@ -7420,7 +7284,9 @@ export default class Client extends OpenApi {
7420
7284
  */
7421
7285
  modifyEciScalingConfiguration(request: ModifyEciScalingConfigurationRequest): Promise<ModifyEciScalingConfigurationResponse>;
7422
7286
  /**
7423
- * Modifies a lifecycle hook.
7287
+ * You can use one of the following methods to specify the lifecycle hook that you want to modify:
7288
+ * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. When you use this method, the ScalingGroupId and LifecycleHookName parameters are ignored.
7289
+ * * Specify the scaling group ID by using the ScalingGroupId parameter and specify the lifecycle hook name by using the LifecycleHookName parameter.
7424
7290
  *
7425
7291
  * @param request ModifyLifecycleHookRequest
7426
7292
  * @param runtime runtime options for this request RuntimeOptions
@@ -7428,7 +7294,9 @@ export default class Client extends OpenApi {
7428
7294
  */
7429
7295
  modifyLifecycleHookWithOptions(request: ModifyLifecycleHookRequest, runtime: $Util.RuntimeOptions): Promise<ModifyLifecycleHookResponse>;
7430
7296
  /**
7431
- * Modifies a lifecycle hook.
7297
+ * You can use one of the following methods to specify the lifecycle hook that you want to modify:
7298
+ * * Specify the lifecycle hook ID by using the LifecycleHookId parameter. When you use this method, the ScalingGroupId and LifecycleHookName parameters are ignored.
7299
+ * * Specify the scaling group ID by using the ScalingGroupId parameter and specify the lifecycle hook name by using the LifecycleHookName parameter.
7432
7300
  *
7433
7301
  * @param request ModifyLifecycleHookRequest
7434
7302
  * @return ModifyLifecycleHookResponse
@@ -7437,7 +7305,7 @@ export default class Client extends OpenApi {
7437
7305
  modifyNotificationConfigurationWithOptions(request: ModifyNotificationConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNotificationConfigurationResponse>;
7438
7306
  modifyNotificationConfiguration(request: ModifyNotificationConfigurationRequest): Promise<ModifyNotificationConfigurationResponse>;
7439
7307
  /**
7440
- * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
7308
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
7441
7309
  *
7442
7310
  * @param tmpReq ModifyScalingConfigurationRequest
7443
7311
  * @param runtime runtime options for this request RuntimeOptions
@@ -7445,114 +7313,28 @@ export default class Client extends OpenApi {
7445
7313
  */
7446
7314
  modifyScalingConfigurationWithOptions(tmpReq: ModifyScalingConfigurationRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingConfigurationResponse>;
7447
7315
  /**
7448
- * If you want to change the name of a scaling configuration in a scaling group, make sure that the new name is unique within the scaling group.
7316
+ * You can change the name of a scaling configuration in a scaling group. The name must be unique within the scaling group.
7449
7317
  *
7450
7318
  * @param request ModifyScalingConfigurationRequest
7451
7319
  * @return ModifyScalingConfigurationResponse
7452
7320
  */
7453
7321
  modifyScalingConfiguration(request: ModifyScalingConfigurationRequest): Promise<ModifyScalingConfigurationResponse>;
7454
- /**
7455
- * Modifies a scaling group.
7456
- *
7457
- * @param request ModifyScalingGroupRequest
7458
- * @param runtime runtime options for this request RuntimeOptions
7459
- * @return ModifyScalingGroupResponse
7460
- */
7461
7322
  modifyScalingGroupWithOptions(request: ModifyScalingGroupRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingGroupResponse>;
7462
- /**
7463
- * Modifies a scaling group.
7464
- *
7465
- * @param request ModifyScalingGroupRequest
7466
- * @return ModifyScalingGroupResponse
7467
- */
7468
7323
  modifyScalingGroup(request: ModifyScalingGroupRequest): Promise<ModifyScalingGroupResponse>;
7469
7324
  modifyScalingRuleWithOptions(request: ModifyScalingRuleRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScalingRuleResponse>;
7470
7325
  modifyScalingRule(request: ModifyScalingRuleRequest): Promise<ModifyScalingRuleResponse>;
7471
- /**
7472
- * Modifies a scheduled task.
7473
- *
7474
- * @param request ModifyScheduledTaskRequest
7475
- * @param runtime runtime options for this request RuntimeOptions
7476
- * @return ModifyScheduledTaskResponse
7477
- */
7478
7326
  modifyScheduledTaskWithOptions(request: ModifyScheduledTaskRequest, runtime: $Util.RuntimeOptions): Promise<ModifyScheduledTaskResponse>;
7479
- /**
7480
- * Modifies a scheduled task.
7481
- *
7482
- * @param request ModifyScheduledTaskRequest
7483
- * @return ModifyScheduledTaskResponse
7484
- */
7485
7327
  modifyScheduledTask(request: ModifyScheduledTaskRequest): Promise<ModifyScheduledTaskResponse>;
7486
- /**
7487
- * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
7488
- *
7489
- * @param request RebalanceInstancesRequest
7490
- * @param runtime runtime options for this request RuntimeOptions
7491
- * @return RebalanceInstancesResponse
7492
- */
7493
7328
  rebalanceInstancesWithOptions(request: RebalanceInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RebalanceInstancesResponse>;
7494
- /**
7495
- * Rebalances Elastic Compute Service (ECS) instances in a multi-zone scaling group across zones.
7496
- *
7497
- * @param request RebalanceInstancesRequest
7498
- * @return RebalanceInstancesResponse
7499
- */
7500
7329
  rebalanceInstances(request: RebalanceInstancesRequest): Promise<RebalanceInstancesResponse>;
7501
- /**
7502
- * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
7503
- *
7504
- * @param request RecordLifecycleActionHeartbeatRequest
7505
- * @param runtime runtime options for this request RuntimeOptions
7506
- * @return RecordLifecycleActionHeartbeatResponse
7507
- */
7508
7330
  recordLifecycleActionHeartbeatWithOptions(request: RecordLifecycleActionHeartbeatRequest, runtime: $Util.RuntimeOptions): Promise<RecordLifecycleActionHeartbeatResponse>;
7509
- /**
7510
- * Prolongs a lifecycle hook for Elastic Compute Service (ECS) instances.
7511
- *
7512
- * @param request RecordLifecycleActionHeartbeatRequest
7513
- * @return RecordLifecycleActionHeartbeatResponse
7514
- */
7515
7331
  recordLifecycleActionHeartbeat(request: RecordLifecycleActionHeartbeatRequest): Promise<RecordLifecycleActionHeartbeatResponse>;
7516
- /**
7517
- * * Before you call this operation, make sure that the following requirements are met:
7518
- * * The scaling group is in the Active state.
7519
- * * No scaling activity is in progress within the scaling group.
7520
- * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
7521
- * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
7522
- * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
7523
- * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
7524
- * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
7525
- *
7526
- * @param request RemoveInstancesRequest
7527
- * @param runtime runtime options for this request RuntimeOptions
7528
- * @return RemoveInstancesResponse
7529
- */
7530
7332
  removeInstancesWithOptions(request: RemoveInstancesRequest, runtime: $Util.RuntimeOptions): Promise<RemoveInstancesResponse>;
7531
- /**
7532
- * * Before you call this operation, make sure that the following requirements are met:
7533
- * * The scaling group is in the Active state.
7534
- * * No scaling activity is in progress within the scaling group.
7535
- * > If no scaling activity is in progress within the scaling group, you can call the operation even within the cooldown period.
7536
- * * If an ECS instance is automatically created by Auto Scaling, or if an ECS instance is manually added to a scaling group and managed by the scaling group, the ECS instance is stopped in economical mode or is released after the instance is removed from the scaling group.
7537
- * * If an ECS instance is manually added to a scaling group and is not managed by the scaling group, the ECS instance is not stopped or released after the instance is removed from the scaling group.
7538
- * * If the difference between the number of existing ECS instances specified by the TotalCapacity parameter and the number of ECS instances that you call this operation to remove is less than the value of the MinSize parameter, the call fails.
7539
- * A successful call only means that Auto Scaling accepts the request. The scaling activity may still fail. You can obtain the status of a scaling activity based on the value of the ScalingActivityId parameter in the response.
7540
- *
7541
- * @param request RemoveInstancesRequest
7542
- * @return RemoveInstancesResponse
7543
- */
7544
7333
  removeInstances(request: RemoveInstancesRequest): Promise<RemoveInstancesResponse>;
7545
7334
  resumeProcessesWithOptions(request: ResumeProcessesRequest, runtime: $Util.RuntimeOptions): Promise<ResumeProcessesResponse>;
7546
7335
  resumeProcesses(request: ResumeProcessesRequest): Promise<ResumeProcessesResponse>;
7547
7336
  /**
7548
- * Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
7549
- * * The following conditions must be met:
7550
- * * The scaling group is in the Active state.
7551
- * * No scaling activities in the scaling group are in progress.
7552
- * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7553
- * * If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
7554
- * * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
7555
- * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
7337
+ * The ID of the scaling activity.
7556
7338
  *
7557
7339
  * @param request ScaleWithAdjustmentRequest
7558
7340
  * @param runtime runtime options for this request RuntimeOptions
@@ -7560,14 +7342,7 @@ export default class Client extends OpenApi {
7560
7342
  */
7561
7343
  scaleWithAdjustmentWithOptions(request: ScaleWithAdjustmentRequest, runtime: $Util.RuntimeOptions): Promise<ScaleWithAdjustmentResponse>;
7562
7344
  /**
7563
- * Compared with the ExecuteScalingRule operation, the ScaleWithAdjustment operation does not require a scaling rule to be created in advance. Before you call the ScaleWithAdjustment operation, take note of the following items:
7564
- * * The following conditions must be met:
7565
- * * The scaling group is in the Active state.
7566
- * * No scaling activities in the scaling group are in progress.
7567
- * * If no scaling activities in the scaling group are in progress, the operation can trigger scaling activities even before the cooldown time expires.
7568
- * * If the addition of a specified number of Elastic Compute Service (ECS) instances to a scaling group causes the total number of ECS instances in the scaling group to exceed the maximum number of instances allowed, Auto Scaling adds only a specific number of ECS instances to ensure that the total number of instances is equal to the maximum number of instances.
7569
- * * If the removal of a specified number of ECS instances from a scaling group causes the total number of ECS instances in the scaling group to drop below the minimum number of instances allowed, Auto Scaling removes only a specific number of ECS instances to ensure that the total number of instances is equal to the minimum number of instances.
7570
- * A successful call indicates that Auto Scaling accepts the request. However, the scaling activity may still fail. You can obtain the status of a scaling activity by using the value of the `ScalingActivityId` parameter in the response.
7345
+ * The ID of the scaling activity.
7571
7346
  *
7572
7347
  * @param request ScaleWithAdjustmentRequest
7573
7348
  * @return ScaleWithAdjustmentResponse
@@ -7575,35 +7350,9 @@ export default class Client extends OpenApi {
7575
7350
  scaleWithAdjustment(request: ScaleWithAdjustmentRequest): Promise<ScaleWithAdjustmentResponse>;
7576
7351
  setGroupDeletionProtectionWithOptions(request: SetGroupDeletionProtectionRequest, runtime: $Util.RuntimeOptions): Promise<SetGroupDeletionProtectionResponse>;
7577
7352
  setGroupDeletionProtection(request: SetGroupDeletionProtectionRequest): Promise<SetGroupDeletionProtectionResponse>;
7578
- /**
7579
- * Configures the health check feature for Elastic Compute Service (ECS) instances.
7580
- *
7581
- * @param request SetInstanceHealthRequest
7582
- * @param runtime runtime options for this request RuntimeOptions
7583
- * @return SetInstanceHealthResponse
7584
- */
7585
7353
  setInstanceHealthWithOptions(request: SetInstanceHealthRequest, runtime: $Util.RuntimeOptions): Promise<SetInstanceHealthResponse>;
7586
- /**
7587
- * Configures the health check feature for Elastic Compute Service (ECS) instances.
7588
- *
7589
- * @param request SetInstanceHealthRequest
7590
- * @return SetInstanceHealthResponse
7591
- */
7592
7354
  setInstanceHealth(request: SetInstanceHealthRequest): Promise<SetInstanceHealthResponse>;
7593
- /**
7594
- * Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
7595
- *
7596
- * @param request SetInstancesProtectionRequest
7597
- * @param runtime runtime options for this request RuntimeOptions
7598
- * @return SetInstancesProtectionResponse
7599
- */
7600
7355
  setInstancesProtectionWithOptions(request: SetInstancesProtectionRequest, runtime: $Util.RuntimeOptions): Promise<SetInstancesProtectionResponse>;
7601
- /**
7602
- * Puts one or more Elastic Compute Service (ECS) instances into the Protected state.
7603
- *
7604
- * @param request SetInstancesProtectionRequest
7605
- * @return SetInstancesProtectionResponse
7606
- */
7607
7356
  setInstancesProtection(request: SetInstancesProtectionRequest): Promise<SetInstancesProtectionResponse>;
7608
7357
  suspendProcessesWithOptions(request: SuspendProcessesRequest, runtime: $Util.RuntimeOptions): Promise<SuspendProcessesResponse>;
7609
7358
  suspendProcesses(request: SuspendProcessesRequest): Promise<SuspendProcessesResponse>;