@aws-sdk/client-auto-scaling-plans 3.418.0 → 3.423.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 (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -56,16 +56,16 @@ using your favorite package manager:
56
56
 
57
57
  The AWS SDK is modulized by clients and commands.
58
58
  To send a request, you only need to import the `AutoScalingPlansClient` and
59
- the commands you need, for example `CreateScalingPlanCommand`:
59
+ the commands you need, for example `DescribeScalingPlansCommand`:
60
60
 
61
61
  ```js
62
62
  // ES5 example
63
- const { AutoScalingPlansClient, CreateScalingPlanCommand } = require("@aws-sdk/client-auto-scaling-plans");
63
+ const { AutoScalingPlansClient, DescribeScalingPlansCommand } = require("@aws-sdk/client-auto-scaling-plans");
64
64
  ```
65
65
 
66
66
  ```ts
67
67
  // ES6+ example
68
- import { AutoScalingPlansClient, CreateScalingPlanCommand } from "@aws-sdk/client-auto-scaling-plans";
68
+ import { AutoScalingPlansClient, DescribeScalingPlansCommand } from "@aws-sdk/client-auto-scaling-plans";
69
69
  ```
70
70
 
71
71
  ### Usage
@@ -84,7 +84,7 @@ const client = new AutoScalingPlansClient({ region: "REGION" });
84
84
  const params = {
85
85
  /** input parameters */
86
86
  };
87
- const command = new CreateScalingPlanCommand(params);
87
+ const command = new DescribeScalingPlansCommand(params);
88
88
  ```
89
89
 
90
90
  #### Async/await
@@ -163,7 +163,7 @@ const client = new AWS.AutoScalingPlans({ region: "REGION" });
163
163
 
164
164
  // async/await.
165
165
  try {
166
- const data = await client.createScalingPlan(params);
166
+ const data = await client.describeScalingPlans(params);
167
167
  // process data.
168
168
  } catch (error) {
169
169
  // error handling.
@@ -171,7 +171,7 @@ try {
171
171
 
172
172
  // Promises.
173
173
  client
174
- .createScalingPlan(params)
174
+ .describeScalingPlans(params)
175
175
  .then((data) => {
176
176
  // process data.
177
177
  })
@@ -180,7 +180,7 @@ client
180
180
  });
181
181
 
182
182
  // callbacks.
183
- client.createScalingPlan(params, (err, data) => {
183
+ client.describeScalingPlans(params, (err, data) => {
184
184
  // process err and data.
185
185
  });
186
186
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling-plans",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Plans Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
4
+ "version": "3.423.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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
24
+ "@aws-sdk/client-sts": "3.423.0",
25
+ "@aws-sdk/credential-provider-node": "3.423.0",
26
26
  "@aws-sdk/middleware-host-header": "3.418.0",
27
27
  "@aws-sdk/middleware-logger": "3.418.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.418.0",