@aws-sdk/client-cloud9 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
@@ -90,16 +90,16 @@ using your favorite package manager:
90
90
 
91
91
  The AWS SDK is modulized by clients and commands.
92
92
  To send a request, you only need to import the `Cloud9Client` and
93
- the commands you need, for example `CreateEnvironmentEC2Command`:
93
+ the commands you need, for example `ListEnvironmentsCommand`:
94
94
 
95
95
  ```js
96
96
  // ES5 example
97
- const { Cloud9Client, CreateEnvironmentEC2Command } = require("@aws-sdk/client-cloud9");
97
+ const { Cloud9Client, ListEnvironmentsCommand } = require("@aws-sdk/client-cloud9");
98
98
  ```
99
99
 
100
100
  ```ts
101
101
  // ES6+ example
102
- import { Cloud9Client, CreateEnvironmentEC2Command } from "@aws-sdk/client-cloud9";
102
+ import { Cloud9Client, ListEnvironmentsCommand } from "@aws-sdk/client-cloud9";
103
103
  ```
104
104
 
105
105
  ### Usage
@@ -118,7 +118,7 @@ const client = new Cloud9Client({ region: "REGION" });
118
118
  const params = {
119
119
  /** input parameters */
120
120
  };
121
- const command = new CreateEnvironmentEC2Command(params);
121
+ const command = new ListEnvironmentsCommand(params);
122
122
  ```
123
123
 
124
124
  #### Async/await
@@ -197,7 +197,7 @@ const client = new AWS.Cloud9({ region: "REGION" });
197
197
 
198
198
  // async/await.
199
199
  try {
200
- const data = await client.createEnvironmentEC2(params);
200
+ const data = await client.listEnvironments(params);
201
201
  // process data.
202
202
  } catch (error) {
203
203
  // error handling.
@@ -205,7 +205,7 @@ try {
205
205
 
206
206
  // Promises.
207
207
  client
208
- .createEnvironmentEC2(params)
208
+ .listEnvironments(params)
209
209
  .then((data) => {
210
210
  // process data.
211
211
  })
@@ -214,7 +214,7 @@ client
214
214
  });
215
215
 
216
216
  // callbacks.
217
- client.createEnvironmentEC2(params, (err, data) => {
217
+ client.listEnvironments(params, (err, data) => {
218
218
  // process err and data.
219
219
  });
220
220
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloud9",
3
3
  "description": "AWS SDK for JavaScript Cloud9 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",