@aws-sdk/client-dax 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_json1_1.js +27 -21
- package/dist-es/DAX.js +86 -93
- package/dist-es/DAXClient.js +22 -28
- package/dist-es/commands/CreateClusterCommand.js +21 -28
- package/dist-es/commands/CreateParameterGroupCommand.js +21 -28
- package/dist-es/commands/CreateSubnetGroupCommand.js +21 -28
- package/dist-es/commands/DecreaseReplicationFactorCommand.js +21 -28
- package/dist-es/commands/DeleteClusterCommand.js +21 -28
- package/dist-es/commands/DeleteParameterGroupCommand.js +21 -28
- package/dist-es/commands/DeleteSubnetGroupCommand.js +21 -28
- package/dist-es/commands/DescribeClustersCommand.js +21 -28
- package/dist-es/commands/DescribeDefaultParametersCommand.js +21 -28
- package/dist-es/commands/DescribeEventsCommand.js +21 -28
- package/dist-es/commands/DescribeParameterGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeParametersCommand.js +21 -28
- package/dist-es/commands/DescribeSubnetGroupsCommand.js +21 -28
- package/dist-es/commands/IncreaseReplicationFactorCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/RebootNodeCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateClusterCommand.js +21 -28
- package/dist-es/commands/UpdateParameterGroupCommand.js +21 -28
- package/dist-es/commands/UpdateSubnetGroupCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DAXServiceException.js +5 -10
- package/dist-es/models/models_0.js +471 -356
- package/dist-es/protocols/Aws_json1_1.js +1776 -2203
- 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-dax
|
|
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-dax
|
|
@@ -232,7 +232,7 @@ exports.deserializeAws_json1_1CreateClusterCommand = deserializeAws_json1_1Creat
|
|
|
232
232
|
const deserializeAws_json1_1CreateClusterCommandError = async (output, context) => {
|
|
233
233
|
const parsedOutput = {
|
|
234
234
|
...output,
|
|
235
|
-
body: await
|
|
235
|
+
body: await parseErrorBody(output.body, context),
|
|
236
236
|
};
|
|
237
237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
238
|
switch (errorCode) {
|
|
@@ -308,7 +308,7 @@ exports.deserializeAws_json1_1CreateParameterGroupCommand = deserializeAws_json1
|
|
|
308
308
|
const deserializeAws_json1_1CreateParameterGroupCommandError = async (output, context) => {
|
|
309
309
|
const parsedOutput = {
|
|
310
310
|
...output,
|
|
311
|
-
body: await
|
|
311
|
+
body: await parseErrorBody(output.body, context),
|
|
312
312
|
};
|
|
313
313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
314
314
|
switch (errorCode) {
|
|
@@ -357,7 +357,7 @@ exports.deserializeAws_json1_1CreateSubnetGroupCommand = deserializeAws_json1_1C
|
|
|
357
357
|
const deserializeAws_json1_1CreateSubnetGroupCommandError = async (output, context) => {
|
|
358
358
|
const parsedOutput = {
|
|
359
359
|
...output,
|
|
360
|
-
body: await
|
|
360
|
+
body: await parseErrorBody(output.body, context),
|
|
361
361
|
};
|
|
362
362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
363
|
switch (errorCode) {
|
|
@@ -403,7 +403,7 @@ exports.deserializeAws_json1_1DecreaseReplicationFactorCommand = deserializeAws_
|
|
|
403
403
|
const deserializeAws_json1_1DecreaseReplicationFactorCommandError = async (output, context) => {
|
|
404
404
|
const parsedOutput = {
|
|
405
405
|
...output,
|
|
406
|
-
body: await
|
|
406
|
+
body: await parseErrorBody(output.body, context),
|
|
407
407
|
};
|
|
408
408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
409
|
switch (errorCode) {
|
|
@@ -452,7 +452,7 @@ exports.deserializeAws_json1_1DeleteClusterCommand = deserializeAws_json1_1Delet
|
|
|
452
452
|
const deserializeAws_json1_1DeleteClusterCommandError = async (output, context) => {
|
|
453
453
|
const parsedOutput = {
|
|
454
454
|
...output,
|
|
455
|
-
body: await
|
|
455
|
+
body: await parseErrorBody(output.body, context),
|
|
456
456
|
};
|
|
457
457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
458
458
|
switch (errorCode) {
|
|
@@ -498,7 +498,7 @@ exports.deserializeAws_json1_1DeleteParameterGroupCommand = deserializeAws_json1
|
|
|
498
498
|
const deserializeAws_json1_1DeleteParameterGroupCommandError = async (output, context) => {
|
|
499
499
|
const parsedOutput = {
|
|
500
500
|
...output,
|
|
501
|
-
body: await
|
|
501
|
+
body: await parseErrorBody(output.body, context),
|
|
502
502
|
};
|
|
503
503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
504
504
|
switch (errorCode) {
|
|
@@ -544,7 +544,7 @@ exports.deserializeAws_json1_1DeleteSubnetGroupCommand = deserializeAws_json1_1D
|
|
|
544
544
|
const deserializeAws_json1_1DeleteSubnetGroupCommandError = async (output, context) => {
|
|
545
545
|
const parsedOutput = {
|
|
546
546
|
...output,
|
|
547
|
-
body: await
|
|
547
|
+
body: await parseErrorBody(output.body, context),
|
|
548
548
|
};
|
|
549
549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
550
|
switch (errorCode) {
|
|
@@ -584,7 +584,7 @@ exports.deserializeAws_json1_1DescribeClustersCommand = deserializeAws_json1_1De
|
|
|
584
584
|
const deserializeAws_json1_1DescribeClustersCommandError = async (output, context) => {
|
|
585
585
|
const parsedOutput = {
|
|
586
586
|
...output,
|
|
587
|
-
body: await
|
|
587
|
+
body: await parseErrorBody(output.body, context),
|
|
588
588
|
};
|
|
589
589
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
590
|
switch (errorCode) {
|
|
@@ -627,7 +627,7 @@ exports.deserializeAws_json1_1DescribeDefaultParametersCommand = deserializeAws_
|
|
|
627
627
|
const deserializeAws_json1_1DescribeDefaultParametersCommandError = async (output, context) => {
|
|
628
628
|
const parsedOutput = {
|
|
629
629
|
...output,
|
|
630
|
-
body: await
|
|
630
|
+
body: await parseErrorBody(output.body, context),
|
|
631
631
|
};
|
|
632
632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
633
|
switch (errorCode) {
|
|
@@ -667,7 +667,7 @@ exports.deserializeAws_json1_1DescribeEventsCommand = deserializeAws_json1_1Desc
|
|
|
667
667
|
const deserializeAws_json1_1DescribeEventsCommandError = async (output, context) => {
|
|
668
668
|
const parsedOutput = {
|
|
669
669
|
...output,
|
|
670
|
-
body: await
|
|
670
|
+
body: await parseErrorBody(output.body, context),
|
|
671
671
|
};
|
|
672
672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
673
|
switch (errorCode) {
|
|
@@ -707,7 +707,7 @@ exports.deserializeAws_json1_1DescribeParameterGroupsCommand = deserializeAws_js
|
|
|
707
707
|
const deserializeAws_json1_1DescribeParameterGroupsCommandError = async (output, context) => {
|
|
708
708
|
const parsedOutput = {
|
|
709
709
|
...output,
|
|
710
|
-
body: await
|
|
710
|
+
body: await parseErrorBody(output.body, context),
|
|
711
711
|
};
|
|
712
712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
713
|
switch (errorCode) {
|
|
@@ -750,7 +750,7 @@ exports.deserializeAws_json1_1DescribeParametersCommand = deserializeAws_json1_1
|
|
|
750
750
|
const deserializeAws_json1_1DescribeParametersCommandError = async (output, context) => {
|
|
751
751
|
const parsedOutput = {
|
|
752
752
|
...output,
|
|
753
|
-
body: await
|
|
753
|
+
body: await parseErrorBody(output.body, context),
|
|
754
754
|
};
|
|
755
755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
756
|
switch (errorCode) {
|
|
@@ -793,7 +793,7 @@ exports.deserializeAws_json1_1DescribeSubnetGroupsCommand = deserializeAws_json1
|
|
|
793
793
|
const deserializeAws_json1_1DescribeSubnetGroupsCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
|
-
body: await
|
|
796
|
+
body: await parseErrorBody(output.body, context),
|
|
797
797
|
};
|
|
798
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
799
|
switch (errorCode) {
|
|
@@ -830,7 +830,7 @@ exports.deserializeAws_json1_1IncreaseReplicationFactorCommand = deserializeAws_
|
|
|
830
830
|
const deserializeAws_json1_1IncreaseReplicationFactorCommandError = async (output, context) => {
|
|
831
831
|
const parsedOutput = {
|
|
832
832
|
...output,
|
|
833
|
-
body: await
|
|
833
|
+
body: await parseErrorBody(output.body, context),
|
|
834
834
|
};
|
|
835
835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
836
836
|
switch (errorCode) {
|
|
@@ -888,7 +888,7 @@ exports.deserializeAws_json1_1ListTagsCommand = deserializeAws_json1_1ListTagsCo
|
|
|
888
888
|
const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
889
889
|
const parsedOutput = {
|
|
890
890
|
...output,
|
|
891
|
-
body: await
|
|
891
|
+
body: await parseErrorBody(output.body, context),
|
|
892
892
|
};
|
|
893
893
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
894
|
switch (errorCode) {
|
|
@@ -937,7 +937,7 @@ exports.deserializeAws_json1_1RebootNodeCommand = deserializeAws_json1_1RebootNo
|
|
|
937
937
|
const deserializeAws_json1_1RebootNodeCommandError = async (output, context) => {
|
|
938
938
|
const parsedOutput = {
|
|
939
939
|
...output,
|
|
940
|
-
body: await
|
|
940
|
+
body: await parseErrorBody(output.body, context),
|
|
941
941
|
};
|
|
942
942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
943
|
switch (errorCode) {
|
|
@@ -986,7 +986,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
986
986
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
|
-
body: await
|
|
989
|
+
body: await parseErrorBody(output.body, context),
|
|
990
990
|
};
|
|
991
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
992
|
switch (errorCode) {
|
|
@@ -1038,7 +1038,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1038
1038
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1039
1039
|
const parsedOutput = {
|
|
1040
1040
|
...output,
|
|
1041
|
-
body: await
|
|
1041
|
+
body: await parseErrorBody(output.body, context),
|
|
1042
1042
|
};
|
|
1043
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
1044
|
switch (errorCode) {
|
|
@@ -1090,7 +1090,7 @@ exports.deserializeAws_json1_1UpdateClusterCommand = deserializeAws_json1_1Updat
|
|
|
1090
1090
|
const deserializeAws_json1_1UpdateClusterCommandError = async (output, context) => {
|
|
1091
1091
|
const parsedOutput = {
|
|
1092
1092
|
...output,
|
|
1093
|
-
body: await
|
|
1093
|
+
body: await parseErrorBody(output.body, context),
|
|
1094
1094
|
};
|
|
1095
1095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
1096
|
switch (errorCode) {
|
|
@@ -1142,7 +1142,7 @@ exports.deserializeAws_json1_1UpdateParameterGroupCommand = deserializeAws_json1
|
|
|
1142
1142
|
const deserializeAws_json1_1UpdateParameterGroupCommandError = async (output, context) => {
|
|
1143
1143
|
const parsedOutput = {
|
|
1144
1144
|
...output,
|
|
1145
|
-
body: await
|
|
1145
|
+
body: await parseErrorBody(output.body, context),
|
|
1146
1146
|
};
|
|
1147
1147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1148
|
switch (errorCode) {
|
|
@@ -1188,7 +1188,7 @@ exports.deserializeAws_json1_1UpdateSubnetGroupCommand = deserializeAws_json1_1U
|
|
|
1188
1188
|
const deserializeAws_json1_1UpdateSubnetGroupCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
|
-
body: await
|
|
1191
|
+
body: await parseErrorBody(output.body, context),
|
|
1192
1192
|
};
|
|
1193
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1194
|
switch (errorCode) {
|
|
@@ -2267,6 +2267,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2267
2267
|
}
|
|
2268
2268
|
return {};
|
|
2269
2269
|
});
|
|
2270
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2271
|
+
var _a;
|
|
2272
|
+
const value = await parseBody(errorBody, context);
|
|
2273
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2274
|
+
return value;
|
|
2275
|
+
};
|
|
2270
2276
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2271
2277
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2272
2278
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/DAX.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
|
|
3
2
|
import { CreateParameterGroupCommand, } from "./commands/CreateParameterGroupCommand";
|
|
4
3
|
import { CreateSubnetGroupCommand, } from "./commands/CreateSubnetGroupCommand";
|
|
@@ -21,305 +20,299 @@ import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
|
|
|
21
20
|
import { UpdateParameterGroupCommand, } from "./commands/UpdateParameterGroupCommand";
|
|
22
21
|
import { UpdateSubnetGroupCommand, } from "./commands/UpdateSubnetGroupCommand";
|
|
23
22
|
import { DAXClient } from "./DAXClient";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
-
}
|
|
29
|
-
DAX.prototype.createCluster = function (args, optionsOrCb, cb) {
|
|
30
|
-
var command = new CreateClusterCommand(args);
|
|
23
|
+
export class DAX extends DAXClient {
|
|
24
|
+
createCluster(args, optionsOrCb, cb) {
|
|
25
|
+
const command = new CreateClusterCommand(args);
|
|
31
26
|
if (typeof optionsOrCb === "function") {
|
|
32
27
|
this.send(command, optionsOrCb);
|
|
33
28
|
}
|
|
34
29
|
else if (typeof cb === "function") {
|
|
35
30
|
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(
|
|
31
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
32
|
this.send(command, optionsOrCb || {}, cb);
|
|
38
33
|
}
|
|
39
34
|
else {
|
|
40
35
|
return this.send(command, optionsOrCb);
|
|
41
36
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
}
|
|
38
|
+
createParameterGroup(args, optionsOrCb, cb) {
|
|
39
|
+
const command = new CreateParameterGroupCommand(args);
|
|
45
40
|
if (typeof optionsOrCb === "function") {
|
|
46
41
|
this.send(command, optionsOrCb);
|
|
47
42
|
}
|
|
48
43
|
else if (typeof cb === "function") {
|
|
49
44
|
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(
|
|
45
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
46
|
this.send(command, optionsOrCb || {}, cb);
|
|
52
47
|
}
|
|
53
48
|
else {
|
|
54
49
|
return this.send(command, optionsOrCb);
|
|
55
50
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
}
|
|
52
|
+
createSubnetGroup(args, optionsOrCb, cb) {
|
|
53
|
+
const command = new CreateSubnetGroupCommand(args);
|
|
59
54
|
if (typeof optionsOrCb === "function") {
|
|
60
55
|
this.send(command, optionsOrCb);
|
|
61
56
|
}
|
|
62
57
|
else if (typeof cb === "function") {
|
|
63
58
|
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(
|
|
59
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
60
|
this.send(command, optionsOrCb || {}, cb);
|
|
66
61
|
}
|
|
67
62
|
else {
|
|
68
63
|
return this.send(command, optionsOrCb);
|
|
69
64
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
}
|
|
66
|
+
decreaseReplicationFactor(args, optionsOrCb, cb) {
|
|
67
|
+
const command = new DecreaseReplicationFactorCommand(args);
|
|
73
68
|
if (typeof optionsOrCb === "function") {
|
|
74
69
|
this.send(command, optionsOrCb);
|
|
75
70
|
}
|
|
76
71
|
else if (typeof cb === "function") {
|
|
77
72
|
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(
|
|
73
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
74
|
this.send(command, optionsOrCb || {}, cb);
|
|
80
75
|
}
|
|
81
76
|
else {
|
|
82
77
|
return this.send(command, optionsOrCb);
|
|
83
78
|
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
}
|
|
80
|
+
deleteCluster(args, optionsOrCb, cb) {
|
|
81
|
+
const command = new DeleteClusterCommand(args);
|
|
87
82
|
if (typeof optionsOrCb === "function") {
|
|
88
83
|
this.send(command, optionsOrCb);
|
|
89
84
|
}
|
|
90
85
|
else if (typeof cb === "function") {
|
|
91
86
|
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(
|
|
87
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
88
|
this.send(command, optionsOrCb || {}, cb);
|
|
94
89
|
}
|
|
95
90
|
else {
|
|
96
91
|
return this.send(command, optionsOrCb);
|
|
97
92
|
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
}
|
|
94
|
+
deleteParameterGroup(args, optionsOrCb, cb) {
|
|
95
|
+
const command = new DeleteParameterGroupCommand(args);
|
|
101
96
|
if (typeof optionsOrCb === "function") {
|
|
102
97
|
this.send(command, optionsOrCb);
|
|
103
98
|
}
|
|
104
99
|
else if (typeof cb === "function") {
|
|
105
100
|
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(
|
|
101
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
102
|
this.send(command, optionsOrCb || {}, cb);
|
|
108
103
|
}
|
|
109
104
|
else {
|
|
110
105
|
return this.send(command, optionsOrCb);
|
|
111
106
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
107
|
+
}
|
|
108
|
+
deleteSubnetGroup(args, optionsOrCb, cb) {
|
|
109
|
+
const command = new DeleteSubnetGroupCommand(args);
|
|
115
110
|
if (typeof optionsOrCb === "function") {
|
|
116
111
|
this.send(command, optionsOrCb);
|
|
117
112
|
}
|
|
118
113
|
else if (typeof cb === "function") {
|
|
119
114
|
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(
|
|
115
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
116
|
this.send(command, optionsOrCb || {}, cb);
|
|
122
117
|
}
|
|
123
118
|
else {
|
|
124
119
|
return this.send(command, optionsOrCb);
|
|
125
120
|
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
}
|
|
122
|
+
describeClusters(args, optionsOrCb, cb) {
|
|
123
|
+
const command = new DescribeClustersCommand(args);
|
|
129
124
|
if (typeof optionsOrCb === "function") {
|
|
130
125
|
this.send(command, optionsOrCb);
|
|
131
126
|
}
|
|
132
127
|
else if (typeof cb === "function") {
|
|
133
128
|
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(
|
|
129
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
130
|
this.send(command, optionsOrCb || {}, cb);
|
|
136
131
|
}
|
|
137
132
|
else {
|
|
138
133
|
return this.send(command, optionsOrCb);
|
|
139
134
|
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
}
|
|
136
|
+
describeDefaultParameters(args, optionsOrCb, cb) {
|
|
137
|
+
const command = new DescribeDefaultParametersCommand(args);
|
|
143
138
|
if (typeof optionsOrCb === "function") {
|
|
144
139
|
this.send(command, optionsOrCb);
|
|
145
140
|
}
|
|
146
141
|
else if (typeof cb === "function") {
|
|
147
142
|
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(
|
|
143
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
144
|
this.send(command, optionsOrCb || {}, cb);
|
|
150
145
|
}
|
|
151
146
|
else {
|
|
152
147
|
return this.send(command, optionsOrCb);
|
|
153
148
|
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
}
|
|
150
|
+
describeEvents(args, optionsOrCb, cb) {
|
|
151
|
+
const command = new DescribeEventsCommand(args);
|
|
157
152
|
if (typeof optionsOrCb === "function") {
|
|
158
153
|
this.send(command, optionsOrCb);
|
|
159
154
|
}
|
|
160
155
|
else if (typeof cb === "function") {
|
|
161
156
|
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(
|
|
157
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
158
|
this.send(command, optionsOrCb || {}, cb);
|
|
164
159
|
}
|
|
165
160
|
else {
|
|
166
161
|
return this.send(command, optionsOrCb);
|
|
167
162
|
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
163
|
+
}
|
|
164
|
+
describeParameterGroups(args, optionsOrCb, cb) {
|
|
165
|
+
const command = new DescribeParameterGroupsCommand(args);
|
|
171
166
|
if (typeof optionsOrCb === "function") {
|
|
172
167
|
this.send(command, optionsOrCb);
|
|
173
168
|
}
|
|
174
169
|
else if (typeof cb === "function") {
|
|
175
170
|
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(
|
|
171
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
172
|
this.send(command, optionsOrCb || {}, cb);
|
|
178
173
|
}
|
|
179
174
|
else {
|
|
180
175
|
return this.send(command, optionsOrCb);
|
|
181
176
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
177
|
+
}
|
|
178
|
+
describeParameters(args, optionsOrCb, cb) {
|
|
179
|
+
const command = new DescribeParametersCommand(args);
|
|
185
180
|
if (typeof optionsOrCb === "function") {
|
|
186
181
|
this.send(command, optionsOrCb);
|
|
187
182
|
}
|
|
188
183
|
else if (typeof cb === "function") {
|
|
189
184
|
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(
|
|
185
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
191
186
|
this.send(command, optionsOrCb || {}, cb);
|
|
192
187
|
}
|
|
193
188
|
else {
|
|
194
189
|
return this.send(command, optionsOrCb);
|
|
195
190
|
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
|
|
191
|
+
}
|
|
192
|
+
describeSubnetGroups(args, optionsOrCb, cb) {
|
|
193
|
+
const command = new DescribeSubnetGroupsCommand(args);
|
|
199
194
|
if (typeof optionsOrCb === "function") {
|
|
200
195
|
this.send(command, optionsOrCb);
|
|
201
196
|
}
|
|
202
197
|
else if (typeof cb === "function") {
|
|
203
198
|
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(
|
|
199
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
205
200
|
this.send(command, optionsOrCb || {}, cb);
|
|
206
201
|
}
|
|
207
202
|
else {
|
|
208
203
|
return this.send(command, optionsOrCb);
|
|
209
204
|
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
}
|
|
206
|
+
increaseReplicationFactor(args, optionsOrCb, cb) {
|
|
207
|
+
const command = new IncreaseReplicationFactorCommand(args);
|
|
213
208
|
if (typeof optionsOrCb === "function") {
|
|
214
209
|
this.send(command, optionsOrCb);
|
|
215
210
|
}
|
|
216
211
|
else if (typeof cb === "function") {
|
|
217
212
|
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(
|
|
213
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
214
|
this.send(command, optionsOrCb || {}, cb);
|
|
220
215
|
}
|
|
221
216
|
else {
|
|
222
217
|
return this.send(command, optionsOrCb);
|
|
223
218
|
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
219
|
+
}
|
|
220
|
+
listTags(args, optionsOrCb, cb) {
|
|
221
|
+
const command = new ListTagsCommand(args);
|
|
227
222
|
if (typeof optionsOrCb === "function") {
|
|
228
223
|
this.send(command, optionsOrCb);
|
|
229
224
|
}
|
|
230
225
|
else if (typeof cb === "function") {
|
|
231
226
|
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(
|
|
227
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
233
228
|
this.send(command, optionsOrCb || {}, cb);
|
|
234
229
|
}
|
|
235
230
|
else {
|
|
236
231
|
return this.send(command, optionsOrCb);
|
|
237
232
|
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
233
|
+
}
|
|
234
|
+
rebootNode(args, optionsOrCb, cb) {
|
|
235
|
+
const command = new RebootNodeCommand(args);
|
|
241
236
|
if (typeof optionsOrCb === "function") {
|
|
242
237
|
this.send(command, optionsOrCb);
|
|
243
238
|
}
|
|
244
239
|
else if (typeof cb === "function") {
|
|
245
240
|
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(
|
|
241
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
247
242
|
this.send(command, optionsOrCb || {}, cb);
|
|
248
243
|
}
|
|
249
244
|
else {
|
|
250
245
|
return this.send(command, optionsOrCb);
|
|
251
246
|
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
247
|
+
}
|
|
248
|
+
tagResource(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new TagResourceCommand(args);
|
|
255
250
|
if (typeof optionsOrCb === "function") {
|
|
256
251
|
this.send(command, optionsOrCb);
|
|
257
252
|
}
|
|
258
253
|
else if (typeof cb === "function") {
|
|
259
254
|
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(
|
|
255
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
261
256
|
this.send(command, optionsOrCb || {}, cb);
|
|
262
257
|
}
|
|
263
258
|
else {
|
|
264
259
|
return this.send(command, optionsOrCb);
|
|
265
260
|
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
|
|
261
|
+
}
|
|
262
|
+
untagResource(args, optionsOrCb, cb) {
|
|
263
|
+
const command = new UntagResourceCommand(args);
|
|
269
264
|
if (typeof optionsOrCb === "function") {
|
|
270
265
|
this.send(command, optionsOrCb);
|
|
271
266
|
}
|
|
272
267
|
else if (typeof cb === "function") {
|
|
273
268
|
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(
|
|
269
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
275
270
|
this.send(command, optionsOrCb || {}, cb);
|
|
276
271
|
}
|
|
277
272
|
else {
|
|
278
273
|
return this.send(command, optionsOrCb);
|
|
279
274
|
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
}
|
|
276
|
+
updateCluster(args, optionsOrCb, cb) {
|
|
277
|
+
const command = new UpdateClusterCommand(args);
|
|
283
278
|
if (typeof optionsOrCb === "function") {
|
|
284
279
|
this.send(command, optionsOrCb);
|
|
285
280
|
}
|
|
286
281
|
else if (typeof cb === "function") {
|
|
287
282
|
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(
|
|
283
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
289
284
|
this.send(command, optionsOrCb || {}, cb);
|
|
290
285
|
}
|
|
291
286
|
else {
|
|
292
287
|
return this.send(command, optionsOrCb);
|
|
293
288
|
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
289
|
+
}
|
|
290
|
+
updateParameterGroup(args, optionsOrCb, cb) {
|
|
291
|
+
const command = new UpdateParameterGroupCommand(args);
|
|
297
292
|
if (typeof optionsOrCb === "function") {
|
|
298
293
|
this.send(command, optionsOrCb);
|
|
299
294
|
}
|
|
300
295
|
else if (typeof cb === "function") {
|
|
301
296
|
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(
|
|
297
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
298
|
this.send(command, optionsOrCb || {}, cb);
|
|
304
299
|
}
|
|
305
300
|
else {
|
|
306
301
|
return this.send(command, optionsOrCb);
|
|
307
302
|
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
303
|
+
}
|
|
304
|
+
updateSubnetGroup(args, optionsOrCb, cb) {
|
|
305
|
+
const command = new UpdateSubnetGroupCommand(args);
|
|
311
306
|
if (typeof optionsOrCb === "function") {
|
|
312
307
|
this.send(command, optionsOrCb);
|
|
313
308
|
}
|
|
314
309
|
else if (typeof cb === "function") {
|
|
315
310
|
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(
|
|
311
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
317
312
|
this.send(command, optionsOrCb || {}, cb);
|
|
318
313
|
}
|
|
319
314
|
else {
|
|
320
315
|
return this.send(command, optionsOrCb);
|
|
321
316
|
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
}(DAXClient));
|
|
325
|
-
export { DAX };
|
|
317
|
+
}
|
|
318
|
+
}
|