@aws-sdk/client-controltower 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.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -93,16 +93,16 @@ using your favorite package manager:
|
|
|
93
93
|
|
|
94
94
|
The AWS SDK is modulized by clients and commands.
|
|
95
95
|
To send a request, you only need to import the `ControlTowerClient` and
|
|
96
|
-
the commands you need, for example `
|
|
96
|
+
the commands you need, for example `ListEnabledControlsCommand`:
|
|
97
97
|
|
|
98
98
|
```js
|
|
99
99
|
// ES5 example
|
|
100
|
-
const { ControlTowerClient,
|
|
100
|
+
const { ControlTowerClient, ListEnabledControlsCommand } = require("@aws-sdk/client-controltower");
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
```ts
|
|
104
104
|
// ES6+ example
|
|
105
|
-
import { ControlTowerClient,
|
|
105
|
+
import { ControlTowerClient, ListEnabledControlsCommand } from "@aws-sdk/client-controltower";
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
### Usage
|
|
@@ -121,7 +121,7 @@ const client = new ControlTowerClient({ region: "REGION" });
|
|
|
121
121
|
const params = {
|
|
122
122
|
/** input parameters */
|
|
123
123
|
};
|
|
124
|
-
const command = new
|
|
124
|
+
const command = new ListEnabledControlsCommand(params);
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
#### Async/await
|
|
@@ -200,7 +200,7 @@ const client = new AWS.ControlTower({ region: "REGION" });
|
|
|
200
200
|
|
|
201
201
|
// async/await.
|
|
202
202
|
try {
|
|
203
|
-
const data = await client.
|
|
203
|
+
const data = await client.listEnabledControls(params);
|
|
204
204
|
// process data.
|
|
205
205
|
} catch (error) {
|
|
206
206
|
// error handling.
|
|
@@ -208,7 +208,7 @@ try {
|
|
|
208
208
|
|
|
209
209
|
// Promises.
|
|
210
210
|
client
|
|
211
|
-
.
|
|
211
|
+
.listEnabledControls(params)
|
|
212
212
|
.then((data) => {
|
|
213
213
|
// process data.
|
|
214
214
|
})
|
|
@@ -217,7 +217,7 @@ client
|
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
// callbacks.
|
|
220
|
-
client.
|
|
220
|
+
client.listEnabledControls(params, (err, data) => {
|
|
221
221
|
// process err and data.
|
|
222
222
|
});
|
|
223
223
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-controltower",
|
|
3
3
|
"description": "AWS SDK for JavaScript Controltower Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|