@aws-sdk/client-elastic-load-balancing-v2 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.
- package/README.md +7 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -52,22 +52,16 @@ using your favorite package manager:
|
|
|
52
52
|
|
|
53
53
|
The AWS SDK is modulized by clients and commands.
|
|
54
54
|
To send a request, you only need to import the `ElasticLoadBalancingV2Client` and
|
|
55
|
-
the commands you need, for example `
|
|
55
|
+
the commands you need, for example `DescribeListenersCommand`:
|
|
56
56
|
|
|
57
57
|
```js
|
|
58
58
|
// ES5 example
|
|
59
|
-
const {
|
|
60
|
-
ElasticLoadBalancingV2Client,
|
|
61
|
-
AddListenerCertificatesCommand,
|
|
62
|
-
} = require("@aws-sdk/client-elastic-load-balancing-v2");
|
|
59
|
+
const { ElasticLoadBalancingV2Client, DescribeListenersCommand } = require("@aws-sdk/client-elastic-load-balancing-v2");
|
|
63
60
|
```
|
|
64
61
|
|
|
65
62
|
```ts
|
|
66
63
|
// ES6+ example
|
|
67
|
-
import {
|
|
68
|
-
ElasticLoadBalancingV2Client,
|
|
69
|
-
AddListenerCertificatesCommand,
|
|
70
|
-
} from "@aws-sdk/client-elastic-load-balancing-v2";
|
|
64
|
+
import { ElasticLoadBalancingV2Client, DescribeListenersCommand } from "@aws-sdk/client-elastic-load-balancing-v2";
|
|
71
65
|
```
|
|
72
66
|
|
|
73
67
|
### Usage
|
|
@@ -86,7 +80,7 @@ const client = new ElasticLoadBalancingV2Client({ region: "REGION" });
|
|
|
86
80
|
const params = {
|
|
87
81
|
/** input parameters */
|
|
88
82
|
};
|
|
89
|
-
const command = new
|
|
83
|
+
const command = new DescribeListenersCommand(params);
|
|
90
84
|
```
|
|
91
85
|
|
|
92
86
|
#### Async/await
|
|
@@ -165,7 +159,7 @@ const client = new AWS.ElasticLoadBalancingV2({ region: "REGION" });
|
|
|
165
159
|
|
|
166
160
|
// async/await.
|
|
167
161
|
try {
|
|
168
|
-
const data = await client.
|
|
162
|
+
const data = await client.describeListeners(params);
|
|
169
163
|
// process data.
|
|
170
164
|
} catch (error) {
|
|
171
165
|
// error handling.
|
|
@@ -173,7 +167,7 @@ try {
|
|
|
173
167
|
|
|
174
168
|
// Promises.
|
|
175
169
|
client
|
|
176
|
-
.
|
|
170
|
+
.describeListeners(params)
|
|
177
171
|
.then((data) => {
|
|
178
172
|
// process data.
|
|
179
173
|
})
|
|
@@ -182,7 +176,7 @@ client
|
|
|
182
176
|
});
|
|
183
177
|
|
|
184
178
|
// callbacks.
|
|
185
|
-
client.
|
|
179
|
+
client.describeListeners(params, (err, data) => {
|
|
186
180
|
// process err and data.
|
|
187
181
|
});
|
|
188
182
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-elastic-load-balancing-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|