@aws-sdk/client-servicediscovery 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
|
@@ -30,16 +30,16 @@ using your favorite package manager:
|
|
|
30
30
|
|
|
31
31
|
The AWS SDK is modulized by clients and commands.
|
|
32
32
|
To send a request, you only need to import the `ServiceDiscoveryClient` and
|
|
33
|
-
the commands you need, for example `
|
|
33
|
+
the commands you need, for example `ListNamespacesCommand`:
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
36
|
// ES5 example
|
|
37
|
-
const { ServiceDiscoveryClient,
|
|
37
|
+
const { ServiceDiscoveryClient, ListNamespacesCommand } = require("@aws-sdk/client-servicediscovery");
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
```ts
|
|
41
41
|
// ES6+ example
|
|
42
|
-
import { ServiceDiscoveryClient,
|
|
42
|
+
import { ServiceDiscoveryClient, ListNamespacesCommand } from "@aws-sdk/client-servicediscovery";
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### Usage
|
|
@@ -58,7 +58,7 @@ const client = new ServiceDiscoveryClient({ region: "REGION" });
|
|
|
58
58
|
const params = {
|
|
59
59
|
/** input parameters */
|
|
60
60
|
};
|
|
61
|
-
const command = new
|
|
61
|
+
const command = new ListNamespacesCommand(params);
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
#### Async/await
|
|
@@ -137,7 +137,7 @@ const client = new AWS.ServiceDiscovery({ region: "REGION" });
|
|
|
137
137
|
|
|
138
138
|
// async/await.
|
|
139
139
|
try {
|
|
140
|
-
const data = await client.
|
|
140
|
+
const data = await client.listNamespaces(params);
|
|
141
141
|
// process data.
|
|
142
142
|
} catch (error) {
|
|
143
143
|
// error handling.
|
|
@@ -145,7 +145,7 @@ try {
|
|
|
145
145
|
|
|
146
146
|
// Promises.
|
|
147
147
|
client
|
|
148
|
-
.
|
|
148
|
+
.listNamespaces(params)
|
|
149
149
|
.then((data) => {
|
|
150
150
|
// process data.
|
|
151
151
|
})
|
|
@@ -154,7 +154,7 @@ client
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
// callbacks.
|
|
157
|
-
client.
|
|
157
|
+
client.listNamespaces(params, (err, data) => {
|
|
158
158
|
// process err and data.
|
|
159
159
|
});
|
|
160
160
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-servicediscovery",
|
|
3
3
|
"description": "AWS SDK for JavaScript Servicediscovery 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",
|