@aws-sdk/client-auto-scaling 3.50.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/AutoScalingServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +130 -4
  5. package/dist-cjs/protocols/Aws_query.js +416 -1351
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/AutoScalingServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +116 -1
  9. package/dist-es/protocols/Aws_query.js +1022 -1578
  10. package/dist-types/AutoScaling.d.ts +33 -20
  11. package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +9 -4
  12. package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +1 -2
  13. package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -1
  14. package/dist-types/commands/PutLifecycleHookCommand.d.ts +12 -7
  15. package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +9 -4
  16. package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +1 -2
  17. package/dist-types/index.d.ts +1 -0
  18. package/dist-types/models/AutoScalingServiceException.d.ts +10 -0
  19. package/dist-types/models/models_0.d.ts +129 -76
  20. package/dist-types/ts3.4/AutoScaling.d.ts +310 -0
  21. package/dist-types/ts3.4/AutoScalingClient.d.ts +134 -0
  22. package/dist-types/ts3.4/commands/AttachInstancesCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/AttachLoadBalancersCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/BatchDeleteScheduledActionCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/CancelInstanceRefreshCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/CompleteLifecycleActionCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/CreateAutoScalingGroupCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/CreateLaunchConfigurationCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/CreateOrUpdateTagsCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/DeleteAutoScalingGroupCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/DeleteLaunchConfigurationCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/DeleteLifecycleHookCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/DeleteWarmPoolCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/DescribeAdjustmentTypesCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/DescribeAutoScalingGroupsCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/DescribeAutoScalingInstancesCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/DescribeInstanceRefreshesCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/DescribeLaunchConfigurationsCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/DescribeLifecycleHookTypesCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/DescribeLifecycleHooksCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/DescribeMetricCollectionTypesCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/DescribeNotificationConfigurationsCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/DescribePoliciesCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/DescribeScalingProcessTypesCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/DescribeTerminationPolicyTypesCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/DescribeWarmPoolCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/DetachInstancesCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/DetachLoadBalancersCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/DisableMetricsCollectionCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/EnableMetricsCollectionCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/EnterStandbyCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ExecutePolicyCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/ExitStandbyCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/PutLifecycleHookCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/PutNotificationConfigurationCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/PutScheduledUpdateGroupActionCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/PutWarmPoolCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/RecordLifecycleActionHeartbeatCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/ResumeProcessesCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/SetDesiredCapacityCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/SetInstanceHealthCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/SetInstanceProtectionCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/StartInstanceRefreshCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/SuspendProcessesCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/UpdateAutoScalingGroupCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +61 -0
  84. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  85. package/dist-types/ts3.4/index.d.ts +7 -0
  86. package/dist-types/ts3.4/models/AutoScalingServiceException.d.ts +6 -0
  87. package/dist-types/ts3.4/models/index.d.ts +1 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +2453 -0
  89. package/dist-types/ts3.4/pagination/DescribeAutoScalingGroupsPaginator.d.ts +4 -0
  90. package/dist-types/ts3.4/pagination/DescribeAutoScalingInstancesPaginator.d.ts +4 -0
  91. package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationsPaginator.d.ts +4 -0
  92. package/dist-types/ts3.4/pagination/DescribeNotificationConfigurationsPaginator.d.ts +4 -0
  93. package/dist-types/ts3.4/pagination/DescribePoliciesPaginator.d.ts +4 -0
  94. package/dist-types/ts3.4/pagination/DescribeScalingActivitiesPaginator.d.ts +4 -0
  95. package/dist-types/ts3.4/pagination/DescribeScheduledActionsPaginator.d.ts +4 -0
  96. package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +4 -0
  97. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  98. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  99. package/dist-types/ts3.4/protocols/Aws_query.d.ts +185 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  103. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  104. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  105. package/dist-types/ts3.4/waiters/waitForGroupExists.d.ts +7 -0
  106. package/dist-types/ts3.4/waiters/waitForGroupInService.d.ts +7 -0
  107. package/dist-types/ts3.4/waiters/waitForGroupNotExists.d.ts +7 -0
  108. package/package.json +34 -34
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AutoScalingServiceException as __BaseException } from "./AutoScalingServiceException";
2
3
  /**
3
4
  * <p>Specifies the minimum and maximum for the <code>AcceleratorCount</code> object when
4
5
  * you specify <a>InstanceRequirements</a> for an Auto Scaling group.</p>
@@ -63,10 +64,13 @@ export declare enum AcceleratorType {
63
64
  * <p>The request failed because an active instance refresh for the specified Auto Scaling group was
64
65
  * not found. </p>
65
66
  */
66
- export interface ActiveInstanceRefreshNotFoundFault extends __SmithyException, $MetadataBearer {
67
- name: "ActiveInstanceRefreshNotFoundFault";
68
- $fault: "client";
69
- message?: string;
67
+ export declare class ActiveInstanceRefreshNotFoundFault extends __BaseException {
68
+ readonly name: "ActiveInstanceRefreshNotFoundFault";
69
+ readonly $fault: "client";
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<ActiveInstanceRefreshNotFoundFault, __BaseException>);
70
74
  }
71
75
  export declare enum ScalingActivityStatusCode {
72
76
  Cancelled = "Cancelled",
@@ -213,13 +217,13 @@ export declare namespace Alarm {
213
217
  /**
214
218
  * <p>You already have an Auto Scaling group or launch configuration with this name.</p>
215
219
  */
216
- export interface AlreadyExistsFault extends __SmithyException, $MetadataBearer {
217
- name: "AlreadyExistsFault";
218
- $fault: "client";
220
+ export declare class AlreadyExistsFault extends __BaseException {
221
+ readonly name: "AlreadyExistsFault";
222
+ readonly $fault: "client";
219
223
  /**
220
- * <p></p>
224
+ * @internal
221
225
  */
222
- message?: string;
226
+ constructor(opts: __ExceptionOptionType<AlreadyExistsFault, __BaseException>);
223
227
  }
224
228
  export interface AttachInstancesQuery {
225
229
  /**
@@ -241,21 +245,24 @@ export declare namespace AttachInstancesQuery {
241
245
  * <p>You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group,
242
246
  * instance, or load balancer).</p>
243
247
  */
244
- export interface ResourceContentionFault extends __SmithyException, $MetadataBearer {
245
- name: "ResourceContentionFault";
246
- $fault: "server";
248
+ export declare class ResourceContentionFault extends __BaseException {
249
+ readonly name: "ResourceContentionFault";
250
+ readonly $fault: "server";
247
251
  /**
248
- * <p></p>
252
+ * @internal
249
253
  */
250
- message?: string;
254
+ constructor(opts: __ExceptionOptionType<ResourceContentionFault, __BaseException>);
251
255
  }
252
256
  /**
253
257
  * <p>The service-linked role is not yet ready for use.</p>
254
258
  */
255
- export interface ServiceLinkedRoleFailure extends __SmithyException, $MetadataBearer {
256
- name: "ServiceLinkedRoleFailure";
257
- $fault: "server";
258
- message?: string;
259
+ export declare class ServiceLinkedRoleFailure extends __BaseException {
260
+ readonly name: "ServiceLinkedRoleFailure";
261
+ readonly $fault: "server";
262
+ /**
263
+ * @internal
264
+ */
265
+ constructor(opts: __ExceptionOptionType<ServiceLinkedRoleFailure, __BaseException>);
259
266
  }
260
267
  export interface AttachLoadBalancersResultType {
261
268
  }
@@ -455,13 +462,13 @@ export declare namespace BatchPutScheduledUpdateGroupActionType {
455
462
  * more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> in the <i>Amazon EC2 Auto Scaling API
456
463
  * Reference</i>.</p>
457
464
  */
458
- export interface LimitExceededFault extends __SmithyException, $MetadataBearer {
459
- name: "LimitExceededFault";
460
- $fault: "client";
465
+ export declare class LimitExceededFault extends __BaseException {
466
+ readonly name: "LimitExceededFault";
467
+ readonly $fault: "client";
461
468
  /**
462
- * <p></p>
469
+ * @internal
463
470
  */
464
- message?: string;
471
+ constructor(opts: __ExceptionOptionType<LimitExceededFault, __BaseException>);
465
472
  }
466
473
  export interface CancelInstanceRefreshAnswer {
467
474
  /**
@@ -616,7 +623,9 @@ export interface LifecycleHookSpecification {
616
623
  NotificationTargetARN?: string;
617
624
  /**
618
625
  * <p>The ARN of the IAM role that allows the Auto Scaling group to publish to the specified
619
- * notification target, for example, an Amazon SNS topic or an Amazon SQS queue.</p>
626
+ * notification target.</p>
627
+ * <p>Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required
628
+ * for new lifecycle hooks, but optional when updating existing hooks.</p>
620
629
  */
621
630
  RoleARN?: string;
622
631
  }
@@ -932,6 +941,9 @@ export interface InstanceRequirements {
932
941
  * attributes, we will exclude instance types whose price is higher than your threshold.
933
942
  * The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off
934
943
  * price protection, specify a high value, such as <code>999999</code>. </p>
944
+ * <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
945
+ * <code>memory-mib</code>, the price protection threshold is applied based on the per
946
+ * vCPU or per memory price instead of the per instance price. </p>
935
947
  * <p>Default: <code>100</code>
936
948
  * </p>
937
949
  */
@@ -943,6 +955,9 @@ export interface InstanceRequirements {
943
955
  * your attributes, we will exclude instance types whose price is higher than your
944
956
  * threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
945
957
  * To turn off price protection, specify a high value, such as <code>999999</code>. </p>
958
+ * <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
959
+ * <code>memory-mib</code>, the price protection threshold is applied based on the per
960
+ * vCPU or per memory price instead of the per instance price. </p>
946
961
  * <p>Default: <code>20</code>
947
962
  * </p>
948
963
  */
@@ -1118,17 +1133,15 @@ export interface LaunchTemplateOverrides {
1118
1133
  * overage. For example, if there are two units remaining to fulfill capacity, and Amazon EC2 Auto Scaling
1119
1134
  * can only launch an instance with a <code>WeightedCapacity</code> of five units, the
1120
1135
  * instance is launched, and the desired capacity is exceeded by three units. For more
1121
- * information, see <a href="https://docs.aws.amazon.com/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html">Instance weighting for
1122
- * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. Value must be in the
1123
- * range of 1–999.</p>
1136
+ * information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html">Configuring instance weighting for Amazon EC2 Auto Scaling</a> in the
1137
+ * <i>Amazon EC2 Auto Scaling User Guide</i>. Value must be in the range of 1–999.</p>
1124
1138
  */
1125
1139
  WeightedCapacity?: string;
1126
1140
  /**
1127
- * <p>Provides the launch template to be used when launching the instance type specified in
1128
- * <code>InstanceType</code>. For example, some instance types might require a launch
1129
- * template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's
1130
- * defined for your mixed instances policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html">Specifying a
1131
- * different launch template for an instance type</a> in the
1141
+ * <p>Provides a launch template for the specified instance type or instance requirements.
1142
+ * For example, some instance types might require a launch template with a different AMI.
1143
+ * If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed
1144
+ * instances policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html">Specifying a different launch template for an instance type</a> in the
1132
1145
  * <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
1133
1146
  */
1134
1147
  LaunchTemplateSpecification?: LaunchTemplateSpecification;
@@ -1258,9 +1271,9 @@ export interface CreateAutoScalingGroupType {
1258
1271
  *
1259
1272
  *
1260
1273
  *
1261
- * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling groups with multiple
1262
- * instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
1263
- * Guide</i>.</p>
1274
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
1275
+ * groups with multiple instance types and purchase options</a> in the
1276
+ * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
1264
1277
  */
1265
1278
  MixedInstancesPolicy?: MixedInstancesPolicy;
1266
1279
  /**
@@ -1335,7 +1348,7 @@ export interface CreateAutoScalingGroupType {
1335
1348
  * of an EC2 instance that has come into service and marking it unhealthy due to a failed
1336
1349
  * health check. The default value is <code>0</code>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period">Health
1337
1350
  * check grace period</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
1338
- * <p>Conditional: Required if you are adding an <code>ELB</code> health check.</p>
1351
+ * <p>Required if you are adding an <code>ELB</code> health check.</p>
1339
1352
  */
1340
1353
  HealthCheckGracePeriod?: number;
1341
1354
  /**
@@ -1832,13 +1845,13 @@ export declare namespace CreateOrUpdateTagsType {
1832
1845
  /**
1833
1846
  * <p>The operation can't be performed because the resource is in use.</p>
1834
1847
  */
1835
- export interface ResourceInUseFault extends __SmithyException, $MetadataBearer {
1836
- name: "ResourceInUseFault";
1837
- $fault: "client";
1848
+ export declare class ResourceInUseFault extends __BaseException {
1849
+ readonly name: "ResourceInUseFault";
1850
+ readonly $fault: "client";
1838
1851
  /**
1839
- * <p></p>
1852
+ * @internal
1840
1853
  */
1841
- message?: string;
1854
+ constructor(opts: __ExceptionOptionType<ResourceInUseFault, __BaseException>);
1842
1855
  }
1843
1856
  export interface DeleteAutoScalingGroupType {
1844
1857
  /**
@@ -1862,13 +1875,13 @@ export declare namespace DeleteAutoScalingGroupType {
1862
1875
  * <p>The operation can't be performed because there are scaling activities in
1863
1876
  * progress.</p>
1864
1877
  */
1865
- export interface ScalingActivityInProgressFault extends __SmithyException, $MetadataBearer {
1866
- name: "ScalingActivityInProgressFault";
1867
- $fault: "client";
1878
+ export declare class ScalingActivityInProgressFault extends __BaseException {
1879
+ readonly name: "ScalingActivityInProgressFault";
1880
+ readonly $fault: "client";
1868
1881
  /**
1869
- * <p></p>
1882
+ * @internal
1870
1883
  */
1871
- message?: string;
1884
+ constructor(opts: __ExceptionOptionType<ScalingActivityInProgressFault, __BaseException>);
1872
1885
  }
1873
1886
  export interface LaunchConfigurationNameType {
1874
1887
  /**
@@ -2278,6 +2291,7 @@ export declare enum LifecycleState {
2278
2291
  TERMINATING = "Terminating",
2279
2292
  TERMINATING_PROCEED = "Terminating:Proceed",
2280
2293
  TERMINATING_WAIT = "Terminating:Wait",
2294
+ WARMED_HIBERNATED = "Warmed:Hibernated",
2281
2295
  WARMED_PENDING = "Warmed:Pending",
2282
2296
  WARMED_PENDING_PROCEED = "Warmed:Pending:Proceed",
2283
2297
  WARMED_PENDING_WAIT = "Warmed:Pending:Wait",
@@ -2395,7 +2409,26 @@ export declare namespace TagDescription {
2395
2409
  */
2396
2410
  const filterSensitiveLog: (obj: TagDescription) => any;
2397
2411
  }
2412
+ /**
2413
+ * <p>Describes an instance reuse policy for a warm pool. </p>
2414
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm pools for
2415
+ * Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
2416
+ */
2417
+ export interface InstanceReusePolicy {
2418
+ /**
2419
+ * <p>Specifies whether instances in the Auto Scaling group can be returned to the warm pool on
2420
+ * scale in. </p>
2421
+ */
2422
+ ReuseOnScaleIn?: boolean;
2423
+ }
2424
+ export declare namespace InstanceReusePolicy {
2425
+ /**
2426
+ * @internal
2427
+ */
2428
+ const filterSensitiveLog: (obj: InstanceReusePolicy) => any;
2429
+ }
2398
2430
  export declare enum WarmPoolState {
2431
+ Hibernated = "Hibernated",
2399
2432
  Running = "Running",
2400
2433
  Stopped = "Stopped"
2401
2434
  }
@@ -2423,6 +2456,10 @@ export interface WarmPoolConfiguration {
2423
2456
  * <p>The status of a warm pool that is marked for deletion.</p>
2424
2457
  */
2425
2458
  Status?: WarmPoolStatus | string;
2459
+ /**
2460
+ * <p>The instance reuse policy.</p>
2461
+ */
2462
+ InstanceReusePolicy?: InstanceReusePolicy;
2426
2463
  }
2427
2464
  export declare namespace WarmPoolConfiguration {
2428
2465
  /**
@@ -2608,13 +2645,13 @@ export declare namespace AutoScalingGroupsType {
2608
2645
  /**
2609
2646
  * <p>The <code>NextToken</code> value is not valid.</p>
2610
2647
  */
2611
- export interface InvalidNextToken extends __SmithyException, $MetadataBearer {
2612
- name: "InvalidNextToken";
2613
- $fault: "client";
2648
+ export declare class InvalidNextToken extends __BaseException {
2649
+ readonly name: "InvalidNextToken";
2650
+ readonly $fault: "client";
2614
2651
  /**
2615
- * <p></p>
2652
+ * @internal
2616
2653
  */
2617
- message?: string;
2654
+ constructor(opts: __ExceptionOptionType<InvalidNextToken, __BaseException>);
2618
2655
  }
2619
2656
  /**
2620
2657
  * <p>Describes an EC2 instance associated with an Auto Scaling group.</p>
@@ -3211,9 +3248,10 @@ export declare namespace LaunchConfigurationsType {
3211
3248
  const filterSensitiveLog: (obj: LaunchConfigurationsType) => any;
3212
3249
  }
3213
3250
  /**
3214
- * <p>Describes a lifecycle hook, which enables an Auto Scaling group to be aware of events in the
3215
- * Auto Scaling instance lifecycle, and then perform a custom action when the corresponding
3216
- * lifecycle event occurs.</p>
3251
+ * <p>Describes a lifecycle hook. A lifecycle hook lets you create solutions that are aware
3252
+ * of events in the Auto Scaling instance lifecycle, and then perform a custom action on instances
3253
+ * when the corresponding lifecycle event
3254
+ * occurs.</p>
3217
3255
  */
3218
3256
  export interface LifecycleHook {
3219
3257
  /**
@@ -3245,7 +3283,7 @@ export interface LifecycleHook {
3245
3283
  NotificationTargetARN?: string;
3246
3284
  /**
3247
3285
  * <p>The ARN of the IAM role that allows the Auto Scaling group to publish to the specified
3248
- * notification target.</p>
3286
+ * notification target (an Amazon SNS topic or an Amazon SQS queue).</p>
3249
3287
  */
3250
3288
  RoleARN?: string;
3251
3289
  /**
@@ -4428,18 +4466,18 @@ export interface PredefinedMetricSpecification {
4428
4466
  * </li>
4429
4467
  * <li>
4430
4468
  * <p>
4431
- * <code>ASGAverageNetworkIn</code> - Average number of bytes received on all
4432
- * network interfaces by the Auto Scaling group.</p>
4469
+ * <code>ASGAverageNetworkIn</code> - Average number of bytes received (per
4470
+ * instance per minute) for the Auto Scaling group.</p>
4433
4471
  * </li>
4434
4472
  * <li>
4435
4473
  * <p>
4436
- * <code>ASGAverageNetworkOut</code> - Average number of bytes sent out on all
4437
- * network interfaces by the Auto Scaling group.</p>
4474
+ * <code>ASGAverageNetworkOut</code> - Average number of bytes sent out (per
4475
+ * instance per minute) for the Auto Scaling group.</p>
4438
4476
  * </li>
4439
4477
  * <li>
4440
4478
  * <p>
4441
- * <code>ALBRequestCountPerTarget</code> - Number of requests completed per
4442
- * target in an Application Load Balancer target group.</p>
4479
+ * <code>ALBRequestCountPerTarget</code> - Average Application Load Balancer request count (per
4480
+ * target per minute) for your Auto Scaling group.</p>
4443
4481
  * </li>
4444
4482
  * </ul>
4445
4483
  */
@@ -4491,6 +4529,13 @@ export interface TargetTrackingConfiguration {
4491
4529
  CustomizedMetricSpecification?: CustomizedMetricSpecification;
4492
4530
  /**
4493
4531
  * <p>The target value for the metric.</p>
4532
+ * <note>
4533
+ * <p>Some metrics are based on a count instead of a percentage, such as the request
4534
+ * count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy
4535
+ * specifies one of these metrics, specify the target utilization as the optimal
4536
+ * average request or message count per instance during any one-minute interval.
4537
+ * </p>
4538
+ * </note>
4494
4539
  */
4495
4540
  TargetValue: number | undefined;
4496
4541
  /**
@@ -4808,14 +4853,12 @@ export interface ScheduledUpdateGroupAction {
4808
4853
  Time?: Date;
4809
4854
  /**
4810
4855
  * <p>The date and time in UTC for this action to start. For example,
4811
- * <code>"2019-06-01T00:00:00Z"</code>.
4812
- * </p>
4856
+ * <code>"2019-06-01T00:00:00Z"</code>. </p>
4813
4857
  */
4814
4858
  StartTime?: Date;
4815
4859
  /**
4816
4860
  * <p>The date and time in UTC for the recurring schedule to end. For example,
4817
- * <code>"2019-06-01T00:00:00Z"</code>.
4818
- * </p>
4861
+ * <code>"2019-06-01T00:00:00Z"</code>. </p>
4819
4862
  */
4820
4863
  EndTime?: Date;
4821
4864
  /**
@@ -5532,8 +5575,9 @@ export interface PutLifecycleHookType {
5532
5575
  LifecycleTransition?: string;
5533
5576
  /**
5534
5577
  * <p>The ARN of the IAM role that allows the Auto Scaling group to publish to the specified
5535
- * notification target, for example, an Amazon SNS topic or an Amazon SQS queue.</p>
5536
- * <p>Required for new lifecycle hooks, but optional when updating existing hooks.</p>
5578
+ * notification target.</p>
5579
+ * <p>Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue. Required
5580
+ * for new lifecycle hooks, but optional when updating existing hooks.</p>
5537
5581
  */
5538
5582
  RoleARN?: string;
5539
5583
  /**
@@ -5891,6 +5935,12 @@ export interface PutWarmPoolType {
5891
5935
  * Default is <code>Stopped</code>.</p>
5892
5936
  */
5893
5937
  PoolState?: WarmPoolState | string;
5938
+ /**
5939
+ * <p>Indicates whether instances in the Auto Scaling group can be returned to the warm pool on
5940
+ * scale in. The default is to terminate instances in the Auto Scaling group when the group scales
5941
+ * in.</p>
5942
+ */
5943
+ InstanceReusePolicy?: InstanceReusePolicy;
5894
5944
  }
5895
5945
  export declare namespace PutWarmPoolType {
5896
5946
  /**
@@ -6081,10 +6131,13 @@ export declare namespace SetInstanceProtectionQuery {
6081
6131
  * <p>The request failed because an active instance refresh operation already exists for the
6082
6132
  * specified Auto Scaling group.</p>
6083
6133
  */
6084
- export interface InstanceRefreshInProgressFault extends __SmithyException, $MetadataBearer {
6085
- name: "InstanceRefreshInProgressFault";
6086
- $fault: "client";
6087
- message?: string;
6134
+ export declare class InstanceRefreshInProgressFault extends __BaseException {
6135
+ readonly name: "InstanceRefreshInProgressFault";
6136
+ readonly $fault: "client";
6137
+ /**
6138
+ * @internal
6139
+ */
6140
+ constructor(opts: __ExceptionOptionType<InstanceRefreshInProgressFault, __BaseException>);
6088
6141
  }
6089
6142
  export interface StartInstanceRefreshAnswer {
6090
6143
  /**
@@ -6178,9 +6231,9 @@ export interface UpdateAutoScalingGroupType {
6178
6231
  LaunchTemplate?: LaunchTemplateSpecification;
6179
6232
  /**
6180
6233
  * <p>An embedded object that specifies a mixed instances policy. For more information, see
6181
- * <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling groups with multiple
6182
- * instance types and purchase options</a> in the <i>Amazon EC2 Auto Scaling User
6183
- * Guide</i>.</p>
6234
+ * <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
6235
+ * groups with multiple instance types and purchase options</a> in the
6236
+ * <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
6184
6237
  */
6185
6238
  MixedInstancesPolicy?: MixedInstancesPolicy;
6186
6239
  /**
@@ -6229,7 +6282,7 @@ export interface UpdateAutoScalingGroupType {
6229
6282
  * of an EC2 instance that has come into service and marking it unhealthy due to a failed
6230
6283
  * health check. The default value is <code>0</code>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period">Health
6231
6284
  * check grace period</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
6232
- * <p>Conditional: Required if you are adding an <code>ELB</code> health check.</p>
6285
+ * <p>Required if you are adding an <code>ELB</code> health check.</p>
6233
6286
  */
6234
6287
  HealthCheckGracePeriod?: number;
6235
6288
  /**