@aws-sdk/client-auto-scaling 3.382.0 → 3.385.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.
|
@@ -238,9 +238,10 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
238
238
|
* // This example creates an Auto Scaling group.
|
|
239
239
|
* const input = {
|
|
240
240
|
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
241
|
+
* "DefaultInstanceWarmup": 120,
|
|
241
242
|
* "LaunchTemplate": {
|
|
242
243
|
* "LaunchTemplateName": "my-template-for-auto-scaling",
|
|
243
|
-
* "Version": "$
|
|
244
|
+
* "Version": "$Default"
|
|
244
245
|
* },
|
|
245
246
|
* "MaxInstanceLifetime": 2592000,
|
|
246
247
|
* "MaxSize": 3,
|
|
@@ -261,7 +262,7 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
261
262
|
* "HealthCheckType": "ELB",
|
|
262
263
|
* "LaunchTemplate": {
|
|
263
264
|
* "LaunchTemplateName": "my-template-for-auto-scaling",
|
|
264
|
-
* "Version": "$
|
|
265
|
+
* "Version": "$Default"
|
|
265
266
|
* },
|
|
266
267
|
* "MaxSize": 3,
|
|
267
268
|
* "MinSize": 1,
|
|
@@ -287,19 +288,19 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
287
288
|
* "InstancesDistribution": {
|
|
288
289
|
* "OnDemandBaseCapacity": 1,
|
|
289
290
|
* "OnDemandPercentageAboveBaseCapacity": 50,
|
|
290
|
-
* "SpotAllocationStrategy": "capacity-optimized"
|
|
291
|
+
* "SpotAllocationStrategy": "price-capacity-optimized"
|
|
291
292
|
* },
|
|
292
293
|
* "LaunchTemplate": {
|
|
293
294
|
* "LaunchTemplateSpecification": {
|
|
294
295
|
* "LaunchTemplateName": "my-launch-template-for-x86",
|
|
295
|
-
* "Version": "$
|
|
296
|
+
* "Version": "$Default"
|
|
296
297
|
* },
|
|
297
298
|
* "Overrides": [
|
|
298
299
|
* {
|
|
299
300
|
* "InstanceType": "c6g.large",
|
|
300
301
|
* "LaunchTemplateSpecification": {
|
|
301
302
|
* "LaunchTemplateName": "my-launch-template-for-arm",
|
|
302
|
-
* "Version": "$
|
|
303
|
+
* "Version": "$Default"
|
|
303
304
|
* }
|
|
304
305
|
* },
|
|
305
306
|
* {
|
|
@@ -318,6 +319,93 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
318
319
|
* // example id: to-create-an-auto-scaling-group-with-a-mixed-instances-policy-1617815269039
|
|
319
320
|
* ```
|
|
320
321
|
*
|
|
322
|
+
* @example To create an Auto Scaling group with a mixed instances policy
|
|
323
|
+
* ```javascript
|
|
324
|
+
* // This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and c6g.large instance types and defines a different launch template for the c6g.large instance type.
|
|
325
|
+
* const input = {
|
|
326
|
+
* "AutoScalingGroupName": "my-asg",
|
|
327
|
+
* "DesiredCapacity": 3,
|
|
328
|
+
* "MaxSize": 5,
|
|
329
|
+
* "MinSize": 1,
|
|
330
|
+
* "MixedInstancesPolicy": {
|
|
331
|
+
* "InstancesDistribution": {
|
|
332
|
+
* "OnDemandBaseCapacity": 1,
|
|
333
|
+
* "OnDemandPercentageAboveBaseCapacity": 50,
|
|
334
|
+
* "SpotAllocationStrategy": "price-capacity-optimized"
|
|
335
|
+
* },
|
|
336
|
+
* "LaunchTemplate": {
|
|
337
|
+
* "LaunchTemplateSpecification": {
|
|
338
|
+
* "LaunchTemplateName": "my-launch-template-for-x86",
|
|
339
|
+
* "Version": "$Default"
|
|
340
|
+
* },
|
|
341
|
+
* "Overrides": [
|
|
342
|
+
* {
|
|
343
|
+
* "InstanceType": "c6g.large",
|
|
344
|
+
* "LaunchTemplateSpecification": {
|
|
345
|
+
* "LaunchTemplateName": "my-launch-template-for-arm",
|
|
346
|
+
* "Version": "$Default"
|
|
347
|
+
* }
|
|
348
|
+
* },
|
|
349
|
+
* {
|
|
350
|
+
* "InstanceType": "c5.large"
|
|
351
|
+
* },
|
|
352
|
+
* {
|
|
353
|
+
* "InstanceType": "c5a.large"
|
|
354
|
+
* }
|
|
355
|
+
* ]
|
|
356
|
+
* }
|
|
357
|
+
* },
|
|
358
|
+
* "VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"
|
|
359
|
+
* };
|
|
360
|
+
* const command = new CreateAutoScalingGroupCommand(input);
|
|
361
|
+
* await client.send(command);
|
|
362
|
+
* // example id: autoscaling-create-auto-scaling-group-3
|
|
363
|
+
* ```
|
|
364
|
+
*
|
|
365
|
+
* @example To create an Auto Scaling group using attribute-based instance type selection
|
|
366
|
+
* ```javascript
|
|
367
|
+
* // This example creates an Auto Scaling group using attribute-based instance type selection. It requires the instance types to have a minimum of four vCPUs and a maximum of eight vCPUs, a minimum of 16,384 MiB of memory, and an Intel manufactured CPU.
|
|
368
|
+
* const input = {
|
|
369
|
+
* "AutoScalingGroupName": "my-asg",
|
|
370
|
+
* "DesiredCapacity": 4,
|
|
371
|
+
* "DesiredCapacityTypes": "units",
|
|
372
|
+
* "MaxSize": 100,
|
|
373
|
+
* "MinSize": 0,
|
|
374
|
+
* "MixedInstancesPolicy": {
|
|
375
|
+
* "InstancesDistribution": {
|
|
376
|
+
* "OnDemandPercentageAboveBaseCapacity": 50,
|
|
377
|
+
* "SpotAllocationStrategy": "price-capacity-optimized"
|
|
378
|
+
* },
|
|
379
|
+
* "LaunchTemplate": {
|
|
380
|
+
* "LaunchTemplateSpecification": {
|
|
381
|
+
* "LaunchTemplateName": "my-template-for-auto-scaling",
|
|
382
|
+
* "Version": "$Default"
|
|
383
|
+
* },
|
|
384
|
+
* "Overrides": [
|
|
385
|
+
* {
|
|
386
|
+
* "InstanceRequirements": {
|
|
387
|
+
* "CpuManufacturers": [
|
|
388
|
+
* "intel"
|
|
389
|
+
* ],
|
|
390
|
+
* "MemoryMiB": {
|
|
391
|
+
* "Min": 16384
|
|
392
|
+
* },
|
|
393
|
+
* "VCpuCount": {
|
|
394
|
+
* "Max": 8,
|
|
395
|
+
* "Min": 4
|
|
396
|
+
* }
|
|
397
|
+
* }
|
|
398
|
+
* }
|
|
399
|
+
* ]
|
|
400
|
+
* }
|
|
401
|
+
* },
|
|
402
|
+
* "VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"
|
|
403
|
+
* };
|
|
404
|
+
* const command = new CreateAutoScalingGroupCommand(input);
|
|
405
|
+
* await client.send(command);
|
|
406
|
+
* // example id: autoscaling-create-auto-scaling-group-4
|
|
407
|
+
* ```
|
|
408
|
+
*
|
|
321
409
|
*/
|
|
322
410
|
export declare class CreateAutoScalingGroupCommand extends $Command<CreateAutoScalingGroupCommandInput, CreateAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig> {
|
|
323
411
|
readonly input: CreateAutoScalingGroupCommandInput;
|
|
@@ -242,8 +242,13 @@ export interface DescribeInstanceRefreshesCommandOutput extends DescribeInstance
|
|
|
242
242
|
* "InstancesToUpdate": 0,
|
|
243
243
|
* "PercentageComplete": 50,
|
|
244
244
|
* "Preferences": {
|
|
245
|
+
* "AlarmSpecification": {
|
|
246
|
+
* "Alarms": [
|
|
247
|
+
* "my-alarm"
|
|
248
|
+
* ]
|
|
249
|
+
* },
|
|
245
250
|
* "AutoRollback": true,
|
|
246
|
-
* "InstanceWarmup":
|
|
251
|
+
* "InstanceWarmup": 200,
|
|
247
252
|
* "MinHealthyPercentage": 90,
|
|
248
253
|
* "ScaleInProtectedInstances": "Ignore",
|
|
249
254
|
* "SkipMatching": false,
|
|
@@ -260,8 +265,13 @@ export interface DescribeInstanceRefreshesCommandOutput extends DescribeInstance
|
|
|
260
265
|
* "InstancesToUpdate": 0,
|
|
261
266
|
* "PercentageComplete": 100,
|
|
262
267
|
* "Preferences": {
|
|
268
|
+
* "AlarmSpecification": {
|
|
269
|
+
* "Alarms": [
|
|
270
|
+
* "my-alarm"
|
|
271
|
+
* ]
|
|
272
|
+
* },
|
|
263
273
|
* "AutoRollback": true,
|
|
264
|
-
* "InstanceWarmup":
|
|
274
|
+
* "InstanceWarmup": 200,
|
|
265
275
|
* "MinHealthyPercentage": 90,
|
|
266
276
|
* "ScaleInProtectedInstances": "Ignore",
|
|
267
277
|
* "SkipMatching": false,
|
|
@@ -216,9 +216,14 @@ export interface StartInstanceRefreshCommandOutput extends StartInstanceRefreshA
|
|
|
216
216
|
* }
|
|
217
217
|
* },
|
|
218
218
|
* "Preferences": {
|
|
219
|
-
* "
|
|
220
|
-
*
|
|
221
|
-
*
|
|
219
|
+
* "AlarmSpecification": {
|
|
220
|
+
* "Alarms": [
|
|
221
|
+
* "my-alarm"
|
|
222
|
+
* ]
|
|
223
|
+
* },
|
|
224
|
+
* "AutoRollback": true,
|
|
225
|
+
* "InstanceWarmup": 200,
|
|
226
|
+
* "MinHealthyPercentage": 90
|
|
222
227
|
* }
|
|
223
228
|
* };
|
|
224
229
|
* const command = new StartInstanceRefreshCommand(input);
|
|
@@ -246,7 +246,7 @@ export interface Alarm {
|
|
|
246
246
|
export interface AlarmSpecification {
|
|
247
247
|
/**
|
|
248
248
|
* @public
|
|
249
|
-
* <p>The names of one or more CloudWatch alarms to monitor for the instance refresh.</p>
|
|
249
|
+
* <p>The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.</p>
|
|
250
250
|
*/
|
|
251
251
|
Alarms?: string[];
|
|
252
252
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-auto-scaling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.385.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.385.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.385.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.378.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|