@aws-sdk/client-application-auto-scaling 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
@@ -96,19 +96,19 @@ using your favorite package manager:
96
96
 
97
97
  The AWS SDK is modulized by clients and commands.
98
98
  To send a request, you only need to import the `ApplicationAutoScalingClient` and
99
- the commands you need, for example `DeleteScalingPolicyCommand`:
99
+ the commands you need, for example `ListTagsForResourceCommand`:
100
100
 
101
101
  ```js
102
102
  // ES5 example
103
103
  const {
104
104
  ApplicationAutoScalingClient,
105
- DeleteScalingPolicyCommand,
105
+ ListTagsForResourceCommand,
106
106
  } = require("@aws-sdk/client-application-auto-scaling");
107
107
  ```
108
108
 
109
109
  ```ts
110
110
  // ES6+ example
111
- import { ApplicationAutoScalingClient, DeleteScalingPolicyCommand } from "@aws-sdk/client-application-auto-scaling";
111
+ import { ApplicationAutoScalingClient, ListTagsForResourceCommand } from "@aws-sdk/client-application-auto-scaling";
112
112
  ```
113
113
 
114
114
  ### Usage
@@ -127,7 +127,7 @@ const client = new ApplicationAutoScalingClient({ region: "REGION" });
127
127
  const params = {
128
128
  /** input parameters */
129
129
  };
130
- const command = new DeleteScalingPolicyCommand(params);
130
+ const command = new ListTagsForResourceCommand(params);
131
131
  ```
132
132
 
133
133
  #### Async/await
@@ -206,7 +206,7 @@ const client = new AWS.ApplicationAutoScaling({ region: "REGION" });
206
206
 
207
207
  // async/await.
208
208
  try {
209
- const data = await client.deleteScalingPolicy(params);
209
+ const data = await client.listTagsForResource(params);
210
210
  // process data.
211
211
  } catch (error) {
212
212
  // error handling.
@@ -214,7 +214,7 @@ try {
214
214
 
215
215
  // Promises.
216
216
  client
217
- .deleteScalingPolicy(params)
217
+ .listTagsForResource(params)
218
218
  .then((data) => {
219
219
  // process data.
220
220
  })
@@ -223,7 +223,7 @@ client
223
223
  });
224
224
 
225
225
  // callbacks.
226
- client.deleteScalingPolicy(params, (err, data) => {
226
+ client.listTagsForResource(params, (err, data) => {
227
227
  // process err and data.
228
228
  });
229
229
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Application Auto Scaling 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",