@aws-sdk/client-elastic-load-balancing-v2 3.181.0 → 3.183.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/CHANGELOG.md +8 -0
- package/dist-es/ElasticLoadBalancingV2.js +138 -145
- package/dist-es/ElasticLoadBalancingV2Client.js +22 -28
- package/dist-es/commands/AddListenerCertificatesCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +21 -28
- package/dist-es/commands/CreateListenerCommand.js +21 -28
- package/dist-es/commands/CreateLoadBalancerCommand.js +21 -28
- package/dist-es/commands/CreateRuleCommand.js +21 -28
- package/dist-es/commands/CreateTargetGroupCommand.js +21 -28
- package/dist-es/commands/DeleteListenerCommand.js +21 -28
- package/dist-es/commands/DeleteLoadBalancerCommand.js +21 -28
- package/dist-es/commands/DeleteRuleCommand.js +21 -28
- package/dist-es/commands/DeleteTargetGroupCommand.js +21 -28
- package/dist-es/commands/DeregisterTargetsCommand.js +21 -28
- package/dist-es/commands/DescribeAccountLimitsCommand.js +21 -28
- package/dist-es/commands/DescribeListenerCertificatesCommand.js +21 -28
- package/dist-es/commands/DescribeListenersCommand.js +21 -28
- package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +21 -28
- package/dist-es/commands/DescribeLoadBalancersCommand.js +21 -28
- package/dist-es/commands/DescribeRulesCommand.js +21 -28
- package/dist-es/commands/DescribeSSLPoliciesCommand.js +21 -28
- package/dist-es/commands/DescribeTagsCommand.js +21 -28
- package/dist-es/commands/DescribeTargetGroupAttributesCommand.js +21 -28
- package/dist-es/commands/DescribeTargetGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeTargetHealthCommand.js +21 -28
- package/dist-es/commands/ModifyListenerCommand.js +21 -28
- package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +21 -28
- package/dist-es/commands/ModifyRuleCommand.js +21 -28
- package/dist-es/commands/ModifyTargetGroupAttributesCommand.js +21 -28
- package/dist-es/commands/ModifyTargetGroupCommand.js +21 -28
- package/dist-es/commands/RegisterTargetsCommand.js +21 -28
- package/dist-es/commands/RemoveListenerCertificatesCommand.js +21 -28
- package/dist-es/commands/RemoveTagsCommand.js +21 -28
- package/dist-es/commands/SetIpAddressTypeCommand.js +21 -28
- package/dist-es/commands/SetRulePrioritiesCommand.js +21 -28
- package/dist-es/commands/SetSecurityGroupsCommand.js +21 -28
- package/dist-es/commands/SetSubnetsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ElasticLoadBalancingV2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +796 -587
- package/dist-es/pagination/DescribeListenersPaginator.js +24 -67
- package/dist-es/pagination/DescribeLoadBalancersPaginator.js +24 -67
- package/dist-es/pagination/DescribeTargetGroupsPaginator.js +24 -67
- package/dist-es/protocols/Aws_query.js +3070 -4090
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForLoadBalancerAvailable.js +52 -93
- package/dist-es/waiters/waitForLoadBalancerExists.js +23 -42
- package/dist-es/waiters/waitForLoadBalancersDeleted.js +38 -69
- package/dist-es/waiters/waitForTargetDeregistered.js +38 -69
- package/dist-es/waiters/waitForTargetInService.js +38 -69
- package/package.json +34 -34
|
@@ -1,73 +1,42 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeTargetHealthCommand } from "../commands/DescribeTargetHealthCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
26
|
-
element_4 = _b.value;
|
|
27
|
-
allStringEq_5 = allStringEq_5 && element_4 == "healthy";
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
31
|
-
finally {
|
|
32
|
-
try {
|
|
33
|
-
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
34
|
-
}
|
|
35
|
-
finally { if (e_1) throw e_1.error; }
|
|
36
|
-
}
|
|
37
|
-
if (allStringEq_5) {
|
|
38
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
catch (e) { }
|
|
42
|
-
return [3, 3];
|
|
43
|
-
case 2:
|
|
44
|
-
exception_1 = _d.sent();
|
|
45
|
-
reason = exception_1;
|
|
46
|
-
if (exception_1.name && exception_1.name == "InvalidInstance") {
|
|
47
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
48
|
-
}
|
|
49
|
-
return [3, 3];
|
|
50
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeTargetHealthCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
const flat_1 = [].concat(...result.TargetHealthDescriptions);
|
|
11
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.TargetHealth.State;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
+
for (const element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && element_4 == "healthy";
|
|
19
|
+
}
|
|
20
|
+
if (allStringEq_5) {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
51
23
|
}
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
59
|
-
});
|
|
60
|
-
}); };
|
|
61
|
-
export var waitUntilTargetInService = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
-
var serviceDefaults, result;
|
|
63
|
-
return __generator(this, function (_a) {
|
|
64
|
-
switch (_a.label) {
|
|
65
|
-
case 0:
|
|
66
|
-
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
67
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
68
|
-
case 1:
|
|
69
|
-
result = _a.sent();
|
|
70
|
-
return [2, checkExceptions(result)];
|
|
24
|
+
catch (e) { }
|
|
25
|
+
}
|
|
26
|
+
catch (exception) {
|
|
27
|
+
reason = exception;
|
|
28
|
+
if (exception.name && exception.name == "InvalidInstance") {
|
|
29
|
+
return { state: WaiterState.RETRY, reason };
|
|
71
30
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
31
|
+
}
|
|
32
|
+
return { state: WaiterState.RETRY, reason };
|
|
33
|
+
};
|
|
34
|
+
export const waitForTargetInService = async (params, input) => {
|
|
35
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
36
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
37
|
+
};
|
|
38
|
+
export const waitUntilTargetInService = async (params, input) => {
|
|
39
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
40
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
41
|
+
return checkExceptions(result);
|
|
42
|
+
};
|
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.183.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",
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
53
|
-
"@aws-sdk/util-waiter": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.183.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.183.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.183.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.183.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.183.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.183.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
|
+
"@aws-sdk/types": "3.183.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.183.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.183.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.183.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.183.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.183.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.183.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.183.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.183.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.183.0",
|
|
51
|
+
"@aws-sdk/util-utf8-browser": "3.183.0",
|
|
52
|
+
"@aws-sdk/util-utf8-node": "3.183.0",
|
|
53
|
+
"@aws-sdk/util-waiter": "3.183.0",
|
|
54
54
|
"entities": "2.2.0",
|
|
55
55
|
"fast-xml-parser": "3.19.0",
|
|
56
56
|
"tslib": "^2.3.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.183.0",
|
|
60
60
|
"@tsconfig/recommended": "1.0.1",
|
|
61
61
|
"@types/node": "^12.7.5",
|
|
62
62
|
"concurrently": "7.0.0",
|