@aws-sdk/client-auto-scaling 3.384.0 → 3.386.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.
|
@@ -319,6 +319,93 @@ export interface CreateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
319
319
|
* // example id: to-create-an-auto-scaling-group-with-a-mixed-instances-policy-1617815269039
|
|
320
320
|
* ```
|
|
321
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
|
+
*
|
|
322
409
|
*/
|
|
323
410
|
export declare class CreateAutoScalingGroupCommand extends $Command<CreateAutoScalingGroupCommandInput, CreateAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig> {
|
|
324
411
|
readonly input: CreateAutoScalingGroupCommandInput;
|
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.386.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,15 +21,15 @@
|
|
|
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.386.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.386.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",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.379.1",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.386.0",
|
|
31
31
|
"@aws-sdk/types": "3.378.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.386.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.378.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.1",
|