@aws-sdk/client-support 3.418.0 → 3.421.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
@@ -67,16 +67,16 @@ using your favorite package manager:
67
67
 
68
68
  The AWS SDK is modulized by clients and commands.
69
69
  To send a request, you only need to import the `SupportClient` and
70
- the commands you need, for example `AddAttachmentsToSetCommand`:
70
+ the commands you need, for example `DescribeCasesCommand`:
71
71
 
72
72
  ```js
73
73
  // ES5 example
74
- const { SupportClient, AddAttachmentsToSetCommand } = require("@aws-sdk/client-support");
74
+ const { SupportClient, DescribeCasesCommand } = require("@aws-sdk/client-support");
75
75
  ```
76
76
 
77
77
  ```ts
78
78
  // ES6+ example
79
- import { SupportClient, AddAttachmentsToSetCommand } from "@aws-sdk/client-support";
79
+ import { SupportClient, DescribeCasesCommand } from "@aws-sdk/client-support";
80
80
  ```
81
81
 
82
82
  ### Usage
@@ -95,7 +95,7 @@ const client = new SupportClient({ region: "REGION" });
95
95
  const params = {
96
96
  /** input parameters */
97
97
  };
98
- const command = new AddAttachmentsToSetCommand(params);
98
+ const command = new DescribeCasesCommand(params);
99
99
  ```
100
100
 
101
101
  #### Async/await
@@ -174,7 +174,7 @@ const client = new AWS.Support({ region: "REGION" });
174
174
 
175
175
  // async/await.
176
176
  try {
177
- const data = await client.addAttachmentsToSet(params);
177
+ const data = await client.describeCases(params);
178
178
  // process data.
179
179
  } catch (error) {
180
180
  // error handling.
@@ -182,7 +182,7 @@ try {
182
182
 
183
183
  // Promises.
184
184
  client
185
- .addAttachmentsToSet(params)
185
+ .describeCases(params)
186
186
  .then((data) => {
187
187
  // process data.
188
188
  })
@@ -191,7 +191,7 @@ client
191
191
  });
192
192
 
193
193
  // callbacks.
194
- client.addAttachmentsToSet(params, (err, data) => {
194
+ client.describeCases(params, (err, data) => {
195
195
  // process err and data.
196
196
  });
197
197
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-support",
3
3
  "description": "AWS SDK for JavaScript Support Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
4
+ "version": "3.421.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.421.0",
25
+ "@aws-sdk/credential-provider-node": "3.421.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",