@aws-sdk/client-mwaa 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
@@ -107,16 +107,16 @@ using your favorite package manager:
107
107
 
108
108
  The AWS SDK is modulized by clients and commands.
109
109
  To send a request, you only need to import the `MWAAClient` and
110
- the commands you need, for example `CreateCliTokenCommand`:
110
+ the commands you need, for example `ListEnvironmentsCommand`:
111
111
 
112
112
  ```js
113
113
  // ES5 example
114
- const { MWAAClient, CreateCliTokenCommand } = require("@aws-sdk/client-mwaa");
114
+ const { MWAAClient, ListEnvironmentsCommand } = require("@aws-sdk/client-mwaa");
115
115
  ```
116
116
 
117
117
  ```ts
118
118
  // ES6+ example
119
- import { MWAAClient, CreateCliTokenCommand } from "@aws-sdk/client-mwaa";
119
+ import { MWAAClient, ListEnvironmentsCommand } from "@aws-sdk/client-mwaa";
120
120
  ```
121
121
 
122
122
  ### Usage
@@ -135,7 +135,7 @@ const client = new MWAAClient({ region: "REGION" });
135
135
  const params = {
136
136
  /** input parameters */
137
137
  };
138
- const command = new CreateCliTokenCommand(params);
138
+ const command = new ListEnvironmentsCommand(params);
139
139
  ```
140
140
 
141
141
  #### Async/await
@@ -214,7 +214,7 @@ const client = new AWS.MWAA({ region: "REGION" });
214
214
 
215
215
  // async/await.
216
216
  try {
217
- const data = await client.createCliToken(params);
217
+ const data = await client.listEnvironments(params);
218
218
  // process data.
219
219
  } catch (error) {
220
220
  // error handling.
@@ -222,7 +222,7 @@ try {
222
222
 
223
223
  // Promises.
224
224
  client
225
- .createCliToken(params)
225
+ .listEnvironments(params)
226
226
  .then((data) => {
227
227
  // process data.
228
228
  })
@@ -231,7 +231,7 @@ client
231
231
  });
232
232
 
233
233
  // callbacks.
234
- client.createCliToken(params, (err, data) => {
234
+ client.listEnvironments(params, (err, data) => {
235
235
  // process err and data.
236
236
  });
237
237
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mwaa",
3
3
  "description": "AWS SDK for JavaScript Mwaa 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",