@aws-sdk/client-amp 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
@@ -23,16 +23,16 @@ using your favorite package manager:
23
23
 
24
24
  The AWS SDK is modulized by clients and commands.
25
25
  To send a request, you only need to import the `AmpClient` and
26
- the commands you need, for example `CreateAlertManagerDefinitionCommand`:
26
+ the commands you need, for example `ListWorkspacesCommand`:
27
27
 
28
28
  ```js
29
29
  // ES5 example
30
- const { AmpClient, CreateAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp");
30
+ const { AmpClient, ListWorkspacesCommand } = require("@aws-sdk/client-amp");
31
31
  ```
32
32
 
33
33
  ```ts
34
34
  // ES6+ example
35
- import { AmpClient, CreateAlertManagerDefinitionCommand } from "@aws-sdk/client-amp";
35
+ import { AmpClient, ListWorkspacesCommand } from "@aws-sdk/client-amp";
36
36
  ```
37
37
 
38
38
  ### Usage
@@ -51,7 +51,7 @@ const client = new AmpClient({ region: "REGION" });
51
51
  const params = {
52
52
  /** input parameters */
53
53
  };
54
- const command = new CreateAlertManagerDefinitionCommand(params);
54
+ const command = new ListWorkspacesCommand(params);
55
55
  ```
56
56
 
57
57
  #### Async/await
@@ -130,7 +130,7 @@ const client = new AWS.Amp({ region: "REGION" });
130
130
 
131
131
  // async/await.
132
132
  try {
133
- const data = await client.createAlertManagerDefinition(params);
133
+ const data = await client.listWorkspaces(params);
134
134
  // process data.
135
135
  } catch (error) {
136
136
  // error handling.
@@ -138,7 +138,7 @@ try {
138
138
 
139
139
  // Promises.
140
140
  client
141
- .createAlertManagerDefinition(params)
141
+ .listWorkspaces(params)
142
142
  .then((data) => {
143
143
  // process data.
144
144
  })
@@ -147,7 +147,7 @@ client
147
147
  });
148
148
 
149
149
  // callbacks.
150
- client.createAlertManagerDefinition(params, (err, data) => {
150
+ client.listWorkspaces(params, (err, data) => {
151
151
  // process err and data.
152
152
  });
153
153
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amp",
3
3
  "description": "AWS SDK for JavaScript Amp 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",