@aws-sdk/client-mq 3.180.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +28 -22
- package/dist-es/Mq.js +90 -97
- package/dist-es/MqClient.js +22 -28
- package/dist-es/commands/CreateBrokerCommand.js +21 -28
- package/dist-es/commands/CreateConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateTagsCommand.js +22 -29
- package/dist-es/commands/CreateUserCommand.js +21 -28
- package/dist-es/commands/DeleteBrokerCommand.js +21 -28
- package/dist-es/commands/DeleteTagsCommand.js +22 -29
- package/dist-es/commands/DeleteUserCommand.js +21 -28
- package/dist-es/commands/DescribeBrokerCommand.js +21 -28
- package/dist-es/commands/DescribeBrokerEngineTypesCommand.js +21 -28
- package/dist-es/commands/DescribeBrokerInstanceOptionsCommand.js +21 -28
- package/dist-es/commands/DescribeConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeConfigurationRevisionCommand.js +21 -28
- package/dist-es/commands/DescribeUserCommand.js +21 -28
- package/dist-es/commands/ListBrokersCommand.js +21 -28
- package/dist-es/commands/ListConfigurationRevisionsCommand.js +21 -28
- package/dist-es/commands/ListConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/ListUsersCommand.js +21 -28
- package/dist-es/commands/RebootBrokerCommand.js +21 -28
- package/dist-es/commands/UpdateBrokerCommand.js +21 -28
- package/dist-es/commands/UpdateConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateUserCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MqServiceException.js +5 -10
- package/dist-es/models/models_0.js +270 -143
- package/dist-es/pagination/ListBrokersPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1824 -2443
- 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/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-mq
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-mq
|
|
@@ -528,7 +528,7 @@ exports.deserializeAws_restJson1CreateBrokerCommand = deserializeAws_restJson1Cr
|
|
|
528
528
|
const deserializeAws_restJson1CreateBrokerCommandError = async (output, context) => {
|
|
529
529
|
const parsedOutput = {
|
|
530
530
|
...output,
|
|
531
|
-
body: await
|
|
531
|
+
body: await parseErrorBody(output.body, context),
|
|
532
532
|
};
|
|
533
533
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
534
|
switch (errorCode) {
|
|
@@ -589,7 +589,7 @@ exports.deserializeAws_restJson1CreateConfigurationCommand = deserializeAws_rest
|
|
|
589
589
|
const deserializeAws_restJson1CreateConfigurationCommandError = async (output, context) => {
|
|
590
590
|
const parsedOutput = {
|
|
591
591
|
...output,
|
|
592
|
-
body: await
|
|
592
|
+
body: await parseErrorBody(output.body, context),
|
|
593
593
|
};
|
|
594
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
595
|
switch (errorCode) {
|
|
@@ -629,7 +629,7 @@ exports.deserializeAws_restJson1CreateTagsCommand = deserializeAws_restJson1Crea
|
|
|
629
629
|
const deserializeAws_restJson1CreateTagsCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
|
-
body: await
|
|
632
|
+
body: await parseErrorBody(output.body, context),
|
|
633
633
|
};
|
|
634
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
635
|
switch (errorCode) {
|
|
@@ -669,7 +669,7 @@ exports.deserializeAws_restJson1CreateUserCommand = deserializeAws_restJson1Crea
|
|
|
669
669
|
const deserializeAws_restJson1CreateUserCommandError = async (output, context) => {
|
|
670
670
|
const parsedOutput = {
|
|
671
671
|
...output,
|
|
672
|
-
body: await
|
|
672
|
+
body: await parseErrorBody(output.body, context),
|
|
673
673
|
};
|
|
674
674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
675
|
switch (errorCode) {
|
|
@@ -715,7 +715,7 @@ exports.deserializeAws_restJson1DeleteBrokerCommand = deserializeAws_restJson1De
|
|
|
715
715
|
const deserializeAws_restJson1DeleteBrokerCommandError = async (output, context) => {
|
|
716
716
|
const parsedOutput = {
|
|
717
717
|
...output,
|
|
718
|
-
body: await
|
|
718
|
+
body: await parseErrorBody(output.body, context),
|
|
719
719
|
};
|
|
720
720
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
721
|
switch (errorCode) {
|
|
@@ -755,7 +755,7 @@ exports.deserializeAws_restJson1DeleteTagsCommand = deserializeAws_restJson1Dele
|
|
|
755
755
|
const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) => {
|
|
756
756
|
const parsedOutput = {
|
|
757
757
|
...output,
|
|
758
|
-
body: await
|
|
758
|
+
body: await parseErrorBody(output.body, context),
|
|
759
759
|
};
|
|
760
760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
761
|
switch (errorCode) {
|
|
@@ -795,7 +795,7 @@ exports.deserializeAws_restJson1DeleteUserCommand = deserializeAws_restJson1Dele
|
|
|
795
795
|
const deserializeAws_restJson1DeleteUserCommandError = async (output, context) => {
|
|
796
796
|
const parsedOutput = {
|
|
797
797
|
...output,
|
|
798
|
-
body: await
|
|
798
|
+
body: await parseErrorBody(output.body, context),
|
|
799
799
|
};
|
|
800
800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
801
|
switch (errorCode) {
|
|
@@ -922,7 +922,7 @@ exports.deserializeAws_restJson1DescribeBrokerCommand = deserializeAws_restJson1
|
|
|
922
922
|
const deserializeAws_restJson1DescribeBrokerCommandError = async (output, context) => {
|
|
923
923
|
const parsedOutput = {
|
|
924
924
|
...output,
|
|
925
|
-
body: await
|
|
925
|
+
body: await parseErrorBody(output.body, context),
|
|
926
926
|
};
|
|
927
927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
928
|
switch (errorCode) {
|
|
@@ -971,7 +971,7 @@ exports.deserializeAws_restJson1DescribeBrokerEngineTypesCommand = deserializeAw
|
|
|
971
971
|
const deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = async (output, context) => {
|
|
972
972
|
const parsedOutput = {
|
|
973
973
|
...output,
|
|
974
|
-
body: await
|
|
974
|
+
body: await parseErrorBody(output.body, context),
|
|
975
975
|
};
|
|
976
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
977
977
|
switch (errorCode) {
|
|
@@ -1017,7 +1017,7 @@ exports.deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = deseriali
|
|
|
1017
1017
|
const deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = async (output, context) => {
|
|
1018
1018
|
const parsedOutput = {
|
|
1019
1019
|
...output,
|
|
1020
|
-
body: await
|
|
1020
|
+
body: await parseErrorBody(output.body, context),
|
|
1021
1021
|
};
|
|
1022
1022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
1023
|
switch (errorCode) {
|
|
@@ -1084,7 +1084,7 @@ exports.deserializeAws_restJson1DescribeConfigurationCommand = deserializeAws_re
|
|
|
1084
1084
|
const deserializeAws_restJson1DescribeConfigurationCommandError = async (output, context) => {
|
|
1085
1085
|
const parsedOutput = {
|
|
1086
1086
|
...output,
|
|
1087
|
-
body: await
|
|
1087
|
+
body: await parseErrorBody(output.body, context),
|
|
1088
1088
|
};
|
|
1089
1089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
1090
|
switch (errorCode) {
|
|
@@ -1136,7 +1136,7 @@ exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = deseriali
|
|
|
1136
1136
|
const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
1137
1137
|
const parsedOutput = {
|
|
1138
1138
|
...output,
|
|
1139
|
-
body: await
|
|
1139
|
+
body: await parseErrorBody(output.body, context),
|
|
1140
1140
|
};
|
|
1141
1141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
1142
|
switch (errorCode) {
|
|
@@ -1191,7 +1191,7 @@ exports.deserializeAws_restJson1DescribeUserCommand = deserializeAws_restJson1De
|
|
|
1191
1191
|
const deserializeAws_restJson1DescribeUserCommandError = async (output, context) => {
|
|
1192
1192
|
const parsedOutput = {
|
|
1193
1193
|
...output,
|
|
1194
|
-
body: await
|
|
1194
|
+
body: await parseErrorBody(output.body, context),
|
|
1195
1195
|
};
|
|
1196
1196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1197
|
switch (errorCode) {
|
|
@@ -1237,7 +1237,7 @@ exports.deserializeAws_restJson1ListBrokersCommand = deserializeAws_restJson1Lis
|
|
|
1237
1237
|
const deserializeAws_restJson1ListBrokersCommandError = async (output, context) => {
|
|
1238
1238
|
const parsedOutput = {
|
|
1239
1239
|
...output,
|
|
1240
|
-
body: await
|
|
1240
|
+
body: await parseErrorBody(output.body, context),
|
|
1241
1241
|
};
|
|
1242
1242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1243
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = deserializeA
|
|
|
1286
1286
|
const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1335,7 +1335,7 @@ exports.deserializeAws_restJson1ListConfigurationsCommand = deserializeAws_restJ
|
|
|
1335
1335
|
const deserializeAws_restJson1ListConfigurationsCommandError = async (output, context) => {
|
|
1336
1336
|
const parsedOutput = {
|
|
1337
1337
|
...output,
|
|
1338
|
-
body: await
|
|
1338
|
+
body: await parseErrorBody(output.body, context),
|
|
1339
1339
|
};
|
|
1340
1340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1341
|
switch (errorCode) {
|
|
@@ -1375,7 +1375,7 @@ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTa
|
|
|
1375
1375
|
const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
|
|
1376
1376
|
const parsedOutput = {
|
|
1377
1377
|
...output,
|
|
1378
|
-
body: await
|
|
1378
|
+
body: await parseErrorBody(output.body, context),
|
|
1379
1379
|
};
|
|
1380
1380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1381
|
switch (errorCode) {
|
|
@@ -1427,7 +1427,7 @@ exports.deserializeAws_restJson1ListUsersCommand = deserializeAws_restJson1ListU
|
|
|
1427
1427
|
const deserializeAws_restJson1ListUsersCommandError = async (output, context) => {
|
|
1428
1428
|
const parsedOutput = {
|
|
1429
1429
|
...output,
|
|
1430
|
-
body: await
|
|
1430
|
+
body: await parseErrorBody(output.body, context),
|
|
1431
1431
|
};
|
|
1432
1432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1433
|
switch (errorCode) {
|
|
@@ -1467,7 +1467,7 @@ exports.deserializeAws_restJson1RebootBrokerCommand = deserializeAws_restJson1Re
|
|
|
1467
1467
|
const deserializeAws_restJson1RebootBrokerCommandError = async (output, context) => {
|
|
1468
1468
|
const parsedOutput = {
|
|
1469
1469
|
...output,
|
|
1470
|
-
body: await
|
|
1470
|
+
body: await parseErrorBody(output.body, context),
|
|
1471
1471
|
};
|
|
1472
1472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
1473
|
switch (errorCode) {
|
|
@@ -1537,7 +1537,7 @@ exports.deserializeAws_restJson1UpdateBrokerCommand = deserializeAws_restJson1Up
|
|
|
1537
1537
|
const deserializeAws_restJson1UpdateBrokerCommandError = async (output, context) => {
|
|
1538
1538
|
const parsedOutput = {
|
|
1539
1539
|
...output,
|
|
1540
|
-
body: await
|
|
1540
|
+
body: await parseErrorBody(output.body, context),
|
|
1541
1541
|
};
|
|
1542
1542
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
1543
|
switch (errorCode) {
|
|
@@ -1598,7 +1598,7 @@ exports.deserializeAws_restJson1UpdateConfigurationCommand = deserializeAws_rest
|
|
|
1598
1598
|
const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, context) => {
|
|
1599
1599
|
const parsedOutput = {
|
|
1600
1600
|
...output,
|
|
1601
|
-
body: await
|
|
1601
|
+
body: await parseErrorBody(output.body, context),
|
|
1602
1602
|
};
|
|
1603
1603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
1604
|
switch (errorCode) {
|
|
@@ -1641,7 +1641,7 @@ exports.deserializeAws_restJson1UpdateUserCommand = deserializeAws_restJson1Upda
|
|
|
1641
1641
|
const deserializeAws_restJson1UpdateUserCommandError = async (output, context) => {
|
|
1642
1642
|
const parsedOutput = {
|
|
1643
1643
|
...output,
|
|
1644
|
-
body: await
|
|
1644
|
+
body: await parseErrorBody(output.body, context),
|
|
1645
1645
|
};
|
|
1646
1646
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
1647
|
switch (errorCode) {
|
|
@@ -2189,6 +2189,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2189
2189
|
}
|
|
2190
2190
|
return {};
|
|
2191
2191
|
});
|
|
2192
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2193
|
+
var _a;
|
|
2194
|
+
const value = await parseBody(errorBody, context);
|
|
2195
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2196
|
+
return value;
|
|
2197
|
+
};
|
|
2192
2198
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2193
2199
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2194
2200
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/Mq.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateBrokerCommand, } from "./commands/CreateBrokerCommand";
|
|
3
2
|
import { CreateConfigurationCommand, } from "./commands/CreateConfigurationCommand";
|
|
4
3
|
import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
@@ -22,319 +21,313 @@ import { UpdateBrokerCommand, } from "./commands/UpdateBrokerCommand";
|
|
|
22
21
|
import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
|
|
23
22
|
import { UpdateUserCommand } from "./commands/UpdateUserCommand";
|
|
24
23
|
import { MqClient } from "./MqClient";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
-
}
|
|
30
|
-
Mq.prototype.createBroker = function (args, optionsOrCb, cb) {
|
|
31
|
-
var command = new CreateBrokerCommand(args);
|
|
24
|
+
export class Mq extends MqClient {
|
|
25
|
+
createBroker(args, optionsOrCb, cb) {
|
|
26
|
+
const command = new CreateBrokerCommand(args);
|
|
32
27
|
if (typeof optionsOrCb === "function") {
|
|
33
28
|
this.send(command, optionsOrCb);
|
|
34
29
|
}
|
|
35
30
|
else if (typeof cb === "function") {
|
|
36
31
|
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(
|
|
32
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
33
|
this.send(command, optionsOrCb || {}, cb);
|
|
39
34
|
}
|
|
40
35
|
else {
|
|
41
36
|
return this.send(command, optionsOrCb);
|
|
42
37
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
}
|
|
39
|
+
createConfiguration(args, optionsOrCb, cb) {
|
|
40
|
+
const command = new CreateConfigurationCommand(args);
|
|
46
41
|
if (typeof optionsOrCb === "function") {
|
|
47
42
|
this.send(command, optionsOrCb);
|
|
48
43
|
}
|
|
49
44
|
else if (typeof cb === "function") {
|
|
50
45
|
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(
|
|
46
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
53
48
|
}
|
|
54
49
|
else {
|
|
55
50
|
return this.send(command, optionsOrCb);
|
|
56
51
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
}
|
|
53
|
+
createTags(args, optionsOrCb, cb) {
|
|
54
|
+
const command = new CreateTagsCommand(args);
|
|
60
55
|
if (typeof optionsOrCb === "function") {
|
|
61
56
|
this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
58
|
else if (typeof cb === "function") {
|
|
64
59
|
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(
|
|
60
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
67
62
|
}
|
|
68
63
|
else {
|
|
69
64
|
return this.send(command, optionsOrCb);
|
|
70
65
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
}
|
|
67
|
+
createUser(args, optionsOrCb, cb) {
|
|
68
|
+
const command = new CreateUserCommand(args);
|
|
74
69
|
if (typeof optionsOrCb === "function") {
|
|
75
70
|
this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
72
|
else if (typeof cb === "function") {
|
|
78
73
|
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(
|
|
74
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
81
76
|
}
|
|
82
77
|
else {
|
|
83
78
|
return this.send(command, optionsOrCb);
|
|
84
79
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}
|
|
81
|
+
deleteBroker(args, optionsOrCb, cb) {
|
|
82
|
+
const command = new DeleteBrokerCommand(args);
|
|
88
83
|
if (typeof optionsOrCb === "function") {
|
|
89
84
|
this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
86
|
else if (typeof cb === "function") {
|
|
92
87
|
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(
|
|
88
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
95
90
|
}
|
|
96
91
|
else {
|
|
97
92
|
return this.send(command, optionsOrCb);
|
|
98
93
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
}
|
|
95
|
+
deleteTags(args, optionsOrCb, cb) {
|
|
96
|
+
const command = new DeleteTagsCommand(args);
|
|
102
97
|
if (typeof optionsOrCb === "function") {
|
|
103
98
|
this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
100
|
else if (typeof cb === "function") {
|
|
106
101
|
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(
|
|
102
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
109
104
|
}
|
|
110
105
|
else {
|
|
111
106
|
return this.send(command, optionsOrCb);
|
|
112
107
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
}
|
|
109
|
+
deleteUser(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new DeleteUserCommand(args);
|
|
116
111
|
if (typeof optionsOrCb === "function") {
|
|
117
112
|
this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
114
|
else if (typeof cb === "function") {
|
|
120
115
|
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
123
118
|
}
|
|
124
119
|
else {
|
|
125
120
|
return this.send(command, optionsOrCb);
|
|
126
121
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
}
|
|
123
|
+
describeBroker(args, optionsOrCb, cb) {
|
|
124
|
+
const command = new DescribeBrokerCommand(args);
|
|
130
125
|
if (typeof optionsOrCb === "function") {
|
|
131
126
|
this.send(command, optionsOrCb);
|
|
132
127
|
}
|
|
133
128
|
else if (typeof cb === "function") {
|
|
134
129
|
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(
|
|
130
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
131
|
this.send(command, optionsOrCb || {}, cb);
|
|
137
132
|
}
|
|
138
133
|
else {
|
|
139
134
|
return this.send(command, optionsOrCb);
|
|
140
135
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
}
|
|
137
|
+
describeBrokerEngineTypes(args, optionsOrCb, cb) {
|
|
138
|
+
const command = new DescribeBrokerEngineTypesCommand(args);
|
|
144
139
|
if (typeof optionsOrCb === "function") {
|
|
145
140
|
this.send(command, optionsOrCb);
|
|
146
141
|
}
|
|
147
142
|
else if (typeof cb === "function") {
|
|
148
143
|
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(
|
|
144
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
145
|
this.send(command, optionsOrCb || {}, cb);
|
|
151
146
|
}
|
|
152
147
|
else {
|
|
153
148
|
return this.send(command, optionsOrCb);
|
|
154
149
|
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
150
|
+
}
|
|
151
|
+
describeBrokerInstanceOptions(args, optionsOrCb, cb) {
|
|
152
|
+
const command = new DescribeBrokerInstanceOptionsCommand(args);
|
|
158
153
|
if (typeof optionsOrCb === "function") {
|
|
159
154
|
this.send(command, optionsOrCb);
|
|
160
155
|
}
|
|
161
156
|
else if (typeof cb === "function") {
|
|
162
157
|
if (typeof optionsOrCb !== "object")
|
|
163
|
-
throw new Error(
|
|
158
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
164
159
|
this.send(command, optionsOrCb || {}, cb);
|
|
165
160
|
}
|
|
166
161
|
else {
|
|
167
162
|
return this.send(command, optionsOrCb);
|
|
168
163
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
164
|
+
}
|
|
165
|
+
describeConfiguration(args, optionsOrCb, cb) {
|
|
166
|
+
const command = new DescribeConfigurationCommand(args);
|
|
172
167
|
if (typeof optionsOrCb === "function") {
|
|
173
168
|
this.send(command, optionsOrCb);
|
|
174
169
|
}
|
|
175
170
|
else if (typeof cb === "function") {
|
|
176
171
|
if (typeof optionsOrCb !== "object")
|
|
177
|
-
throw new Error(
|
|
172
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
173
|
this.send(command, optionsOrCb || {}, cb);
|
|
179
174
|
}
|
|
180
175
|
else {
|
|
181
176
|
return this.send(command, optionsOrCb);
|
|
182
177
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
178
|
+
}
|
|
179
|
+
describeConfigurationRevision(args, optionsOrCb, cb) {
|
|
180
|
+
const command = new DescribeConfigurationRevisionCommand(args);
|
|
186
181
|
if (typeof optionsOrCb === "function") {
|
|
187
182
|
this.send(command, optionsOrCb);
|
|
188
183
|
}
|
|
189
184
|
else if (typeof cb === "function") {
|
|
190
185
|
if (typeof optionsOrCb !== "object")
|
|
191
|
-
throw new Error(
|
|
186
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
187
|
this.send(command, optionsOrCb || {}, cb);
|
|
193
188
|
}
|
|
194
189
|
else {
|
|
195
190
|
return this.send(command, optionsOrCb);
|
|
196
191
|
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
192
|
+
}
|
|
193
|
+
describeUser(args, optionsOrCb, cb) {
|
|
194
|
+
const command = new DescribeUserCommand(args);
|
|
200
195
|
if (typeof optionsOrCb === "function") {
|
|
201
196
|
this.send(command, optionsOrCb);
|
|
202
197
|
}
|
|
203
198
|
else if (typeof cb === "function") {
|
|
204
199
|
if (typeof optionsOrCb !== "object")
|
|
205
|
-
throw new Error(
|
|
200
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
201
|
this.send(command, optionsOrCb || {}, cb);
|
|
207
202
|
}
|
|
208
203
|
else {
|
|
209
204
|
return this.send(command, optionsOrCb);
|
|
210
205
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
206
|
+
}
|
|
207
|
+
listBrokers(args, optionsOrCb, cb) {
|
|
208
|
+
const command = new ListBrokersCommand(args);
|
|
214
209
|
if (typeof optionsOrCb === "function") {
|
|
215
210
|
this.send(command, optionsOrCb);
|
|
216
211
|
}
|
|
217
212
|
else if (typeof cb === "function") {
|
|
218
213
|
if (typeof optionsOrCb !== "object")
|
|
219
|
-
throw new Error(
|
|
214
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
220
215
|
this.send(command, optionsOrCb || {}, cb);
|
|
221
216
|
}
|
|
222
217
|
else {
|
|
223
218
|
return this.send(command, optionsOrCb);
|
|
224
219
|
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
220
|
+
}
|
|
221
|
+
listConfigurationRevisions(args, optionsOrCb, cb) {
|
|
222
|
+
const command = new ListConfigurationRevisionsCommand(args);
|
|
228
223
|
if (typeof optionsOrCb === "function") {
|
|
229
224
|
this.send(command, optionsOrCb);
|
|
230
225
|
}
|
|
231
226
|
else if (typeof cb === "function") {
|
|
232
227
|
if (typeof optionsOrCb !== "object")
|
|
233
|
-
throw new Error(
|
|
228
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
234
229
|
this.send(command, optionsOrCb || {}, cb);
|
|
235
230
|
}
|
|
236
231
|
else {
|
|
237
232
|
return this.send(command, optionsOrCb);
|
|
238
233
|
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
}
|
|
235
|
+
listConfigurations(args, optionsOrCb, cb) {
|
|
236
|
+
const command = new ListConfigurationsCommand(args);
|
|
242
237
|
if (typeof optionsOrCb === "function") {
|
|
243
238
|
this.send(command, optionsOrCb);
|
|
244
239
|
}
|
|
245
240
|
else if (typeof cb === "function") {
|
|
246
241
|
if (typeof optionsOrCb !== "object")
|
|
247
|
-
throw new Error(
|
|
242
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
248
243
|
this.send(command, optionsOrCb || {}, cb);
|
|
249
244
|
}
|
|
250
245
|
else {
|
|
251
246
|
return this.send(command, optionsOrCb);
|
|
252
247
|
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
}
|
|
249
|
+
listTags(args, optionsOrCb, cb) {
|
|
250
|
+
const command = new ListTagsCommand(args);
|
|
256
251
|
if (typeof optionsOrCb === "function") {
|
|
257
252
|
this.send(command, optionsOrCb);
|
|
258
253
|
}
|
|
259
254
|
else if (typeof cb === "function") {
|
|
260
255
|
if (typeof optionsOrCb !== "object")
|
|
261
|
-
throw new Error(
|
|
256
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
262
257
|
this.send(command, optionsOrCb || {}, cb);
|
|
263
258
|
}
|
|
264
259
|
else {
|
|
265
260
|
return this.send(command, optionsOrCb);
|
|
266
261
|
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
}
|
|
263
|
+
listUsers(args, optionsOrCb, cb) {
|
|
264
|
+
const command = new ListUsersCommand(args);
|
|
270
265
|
if (typeof optionsOrCb === "function") {
|
|
271
266
|
this.send(command, optionsOrCb);
|
|
272
267
|
}
|
|
273
268
|
else if (typeof cb === "function") {
|
|
274
269
|
if (typeof optionsOrCb !== "object")
|
|
275
|
-
throw new Error(
|
|
270
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
271
|
this.send(command, optionsOrCb || {}, cb);
|
|
277
272
|
}
|
|
278
273
|
else {
|
|
279
274
|
return this.send(command, optionsOrCb);
|
|
280
275
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
}
|
|
277
|
+
rebootBroker(args, optionsOrCb, cb) {
|
|
278
|
+
const command = new RebootBrokerCommand(args);
|
|
284
279
|
if (typeof optionsOrCb === "function") {
|
|
285
280
|
this.send(command, optionsOrCb);
|
|
286
281
|
}
|
|
287
282
|
else if (typeof cb === "function") {
|
|
288
283
|
if (typeof optionsOrCb !== "object")
|
|
289
|
-
throw new Error(
|
|
284
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
285
|
this.send(command, optionsOrCb || {}, cb);
|
|
291
286
|
}
|
|
292
287
|
else {
|
|
293
288
|
return this.send(command, optionsOrCb);
|
|
294
289
|
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
290
|
+
}
|
|
291
|
+
updateBroker(args, optionsOrCb, cb) {
|
|
292
|
+
const command = new UpdateBrokerCommand(args);
|
|
298
293
|
if (typeof optionsOrCb === "function") {
|
|
299
294
|
this.send(command, optionsOrCb);
|
|
300
295
|
}
|
|
301
296
|
else if (typeof cb === "function") {
|
|
302
297
|
if (typeof optionsOrCb !== "object")
|
|
303
|
-
throw new Error(
|
|
298
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
304
299
|
this.send(command, optionsOrCb || {}, cb);
|
|
305
300
|
}
|
|
306
301
|
else {
|
|
307
302
|
return this.send(command, optionsOrCb);
|
|
308
303
|
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
304
|
+
}
|
|
305
|
+
updateConfiguration(args, optionsOrCb, cb) {
|
|
306
|
+
const command = new UpdateConfigurationCommand(args);
|
|
312
307
|
if (typeof optionsOrCb === "function") {
|
|
313
308
|
this.send(command, optionsOrCb);
|
|
314
309
|
}
|
|
315
310
|
else if (typeof cb === "function") {
|
|
316
311
|
if (typeof optionsOrCb !== "object")
|
|
317
|
-
throw new Error(
|
|
312
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
318
313
|
this.send(command, optionsOrCb || {}, cb);
|
|
319
314
|
}
|
|
320
315
|
else {
|
|
321
316
|
return this.send(command, optionsOrCb);
|
|
322
317
|
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
318
|
+
}
|
|
319
|
+
updateUser(args, optionsOrCb, cb) {
|
|
320
|
+
const command = new UpdateUserCommand(args);
|
|
326
321
|
if (typeof optionsOrCb === "function") {
|
|
327
322
|
this.send(command, optionsOrCb);
|
|
328
323
|
}
|
|
329
324
|
else if (typeof cb === "function") {
|
|
330
325
|
if (typeof optionsOrCb !== "object")
|
|
331
|
-
throw new Error(
|
|
326
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
332
327
|
this.send(command, optionsOrCb || {}, cb);
|
|
333
328
|
}
|
|
334
329
|
else {
|
|
335
330
|
return this.send(command, optionsOrCb);
|
|
336
331
|
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
}(MqClient));
|
|
340
|
-
export { Mq };
|
|
332
|
+
}
|
|
333
|
+
}
|