@aws-sdk/client-amp 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 +27 -21
- package/dist-es/Amp.js +86 -93
- package/dist-es/AmpClient.js +22 -28
- package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +21 -28
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +21 -28
- package/dist-es/commands/CreateWorkspaceCommand.js +21 -28
- package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +22 -29
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +22 -29
- package/dist-es/commands/DeleteWorkspaceCommand.js +22 -29
- package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +21 -28
- package/dist-es/commands/DescribeLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +21 -28
- package/dist-es/commands/DescribeWorkspaceCommand.js +21 -28
- package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWorkspacesCommand.js +21 -28
- package/dist-es/commands/PutAlertManagerDefinitionCommand.js +21 -28
- package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateWorkspaceAliasCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AmpServiceException.js +5 -10
- package/dist-es/models/models_0.js +237 -142
- package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +25 -68
- package/dist-es/pagination/ListWorkspacesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1569 -2242
- 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/waitForWorkspaceActive.js +45 -65
- package/dist-es/waiters/waitForWorkspaceDeleted.js +30 -50
- package/package.json +34 -34
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-amp
|
|
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-amp
|
|
@@ -486,7 +486,7 @@ exports.deserializeAws_restJson1CreateAlertManagerDefinitionCommand = deserializ
|
|
|
486
486
|
const deserializeAws_restJson1CreateAlertManagerDefinitionCommandError = async (output, context) => {
|
|
487
487
|
const parsedOutput = {
|
|
488
488
|
...output,
|
|
489
|
-
body: await
|
|
489
|
+
body: await parseErrorBody(output.body, context),
|
|
490
490
|
};
|
|
491
491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
492
492
|
switch (errorCode) {
|
|
@@ -538,7 +538,7 @@ exports.deserializeAws_restJson1CreateLoggingConfigurationCommand = deserializeA
|
|
|
538
538
|
const deserializeAws_restJson1CreateLoggingConfigurationCommandError = async (output, context) => {
|
|
539
539
|
const parsedOutput = {
|
|
540
540
|
...output,
|
|
541
|
-
body: await
|
|
541
|
+
body: await parseErrorBody(output.body, context),
|
|
542
542
|
};
|
|
543
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
544
|
switch (errorCode) {
|
|
@@ -590,7 +590,7 @@ exports.deserializeAws_restJson1CreateRuleGroupsNamespaceCommand = deserializeAw
|
|
|
590
590
|
const deserializeAws_restJson1CreateRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
591
591
|
const parsedOutput = {
|
|
592
592
|
...output,
|
|
593
|
-
body: await
|
|
593
|
+
body: await parseErrorBody(output.body, context),
|
|
594
594
|
};
|
|
595
595
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
596
|
switch (errorCode) {
|
|
@@ -651,7 +651,7 @@ exports.deserializeAws_restJson1CreateWorkspaceCommand = deserializeAws_restJson
|
|
|
651
651
|
const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, context) => {
|
|
652
652
|
const parsedOutput = {
|
|
653
653
|
...output,
|
|
654
|
-
body: await
|
|
654
|
+
body: await parseErrorBody(output.body, context),
|
|
655
655
|
};
|
|
656
656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
657
|
switch (errorCode) {
|
|
@@ -697,7 +697,7 @@ exports.deserializeAws_restJson1DeleteAlertManagerDefinitionCommand = deserializ
|
|
|
697
697
|
const deserializeAws_restJson1DeleteAlertManagerDefinitionCommandError = async (output, context) => {
|
|
698
698
|
const parsedOutput = {
|
|
699
699
|
...output,
|
|
700
|
-
body: await
|
|
700
|
+
body: await parseErrorBody(output.body, context),
|
|
701
701
|
};
|
|
702
702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
703
|
switch (errorCode) {
|
|
@@ -743,7 +743,7 @@ exports.deserializeAws_restJson1DeleteLoggingConfigurationCommand = deserializeA
|
|
|
743
743
|
const deserializeAws_restJson1DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
744
744
|
const parsedOutput = {
|
|
745
745
|
...output,
|
|
746
|
-
body: await
|
|
746
|
+
body: await parseErrorBody(output.body, context),
|
|
747
747
|
};
|
|
748
748
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
749
|
switch (errorCode) {
|
|
@@ -786,7 +786,7 @@ exports.deserializeAws_restJson1DeleteRuleGroupsNamespaceCommand = deserializeAw
|
|
|
786
786
|
const deserializeAws_restJson1DeleteRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
787
787
|
const parsedOutput = {
|
|
788
788
|
...output,
|
|
789
|
-
body: await
|
|
789
|
+
body: await parseErrorBody(output.body, context),
|
|
790
790
|
};
|
|
791
791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
792
|
switch (errorCode) {
|
|
@@ -832,7 +832,7 @@ exports.deserializeAws_restJson1DeleteWorkspaceCommand = deserializeAws_restJson
|
|
|
832
832
|
const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, context) => {
|
|
833
833
|
const parsedOutput = {
|
|
834
834
|
...output,
|
|
835
|
-
body: await
|
|
835
|
+
body: await parseErrorBody(output.body, context),
|
|
836
836
|
};
|
|
837
837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
838
|
switch (errorCode) {
|
|
@@ -881,7 +881,7 @@ exports.deserializeAws_restJson1DescribeAlertManagerDefinitionCommand = deserial
|
|
|
881
881
|
const deserializeAws_restJson1DescribeAlertManagerDefinitionCommandError = async (output, context) => {
|
|
882
882
|
const parsedOutput = {
|
|
883
883
|
...output,
|
|
884
|
-
body: await
|
|
884
|
+
body: await parseErrorBody(output.body, context),
|
|
885
885
|
};
|
|
886
886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
887
|
switch (errorCode) {
|
|
@@ -927,7 +927,7 @@ exports.deserializeAws_restJson1DescribeLoggingConfigurationCommand = deserializ
|
|
|
927
927
|
const deserializeAws_restJson1DescribeLoggingConfigurationCommandError = async (output, context) => {
|
|
928
928
|
const parsedOutput = {
|
|
929
929
|
...output,
|
|
930
|
-
body: await
|
|
930
|
+
body: await parseErrorBody(output.body, context),
|
|
931
931
|
};
|
|
932
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
933
|
switch (errorCode) {
|
|
@@ -970,7 +970,7 @@ exports.deserializeAws_restJson1DescribeRuleGroupsNamespaceCommand = deserialize
|
|
|
970
970
|
const deserializeAws_restJson1DescribeRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
971
971
|
const parsedOutput = {
|
|
972
972
|
...output,
|
|
973
|
-
body: await
|
|
973
|
+
body: await parseErrorBody(output.body, context),
|
|
974
974
|
};
|
|
975
975
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
976
|
switch (errorCode) {
|
|
@@ -1016,7 +1016,7 @@ exports.deserializeAws_restJson1DescribeWorkspaceCommand = deserializeAws_restJs
|
|
|
1016
1016
|
const deserializeAws_restJson1DescribeWorkspaceCommandError = async (output, context) => {
|
|
1017
1017
|
const parsedOutput = {
|
|
1018
1018
|
...output,
|
|
1019
|
-
body: await
|
|
1019
|
+
body: await parseErrorBody(output.body, context),
|
|
1020
1020
|
};
|
|
1021
1021
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
1022
|
switch (errorCode) {
|
|
@@ -1065,7 +1065,7 @@ exports.deserializeAws_restJson1ListRuleGroupsNamespacesCommand = deserializeAws
|
|
|
1065
1065
|
const deserializeAws_restJson1ListRuleGroupsNamespacesCommandError = async (output, context) => {
|
|
1066
1066
|
const parsedOutput = {
|
|
1067
1067
|
...output,
|
|
1068
|
-
body: await
|
|
1068
|
+
body: await parseErrorBody(output.body, context),
|
|
1069
1069
|
};
|
|
1070
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1071
|
switch (errorCode) {
|
|
@@ -1111,7 +1111,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1111
1111
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1112
1112
|
const parsedOutput = {
|
|
1113
1113
|
...output,
|
|
1114
|
-
body: await
|
|
1114
|
+
body: await parseErrorBody(output.body, context),
|
|
1115
1115
|
};
|
|
1116
1116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1117
|
switch (errorCode) {
|
|
@@ -1160,7 +1160,7 @@ exports.deserializeAws_restJson1ListWorkspacesCommand = deserializeAws_restJson1
|
|
|
1160
1160
|
const deserializeAws_restJson1ListWorkspacesCommandError = async (output, context) => {
|
|
1161
1161
|
const parsedOutput = {
|
|
1162
1162
|
...output,
|
|
1163
|
-
body: await
|
|
1163
|
+
body: await parseErrorBody(output.body, context),
|
|
1164
1164
|
};
|
|
1165
1165
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
1166
|
switch (errorCode) {
|
|
@@ -1203,7 +1203,7 @@ exports.deserializeAws_restJson1PutAlertManagerDefinitionCommand = deserializeAw
|
|
|
1203
1203
|
const deserializeAws_restJson1PutAlertManagerDefinitionCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
|
-
body: await
|
|
1206
|
+
body: await parseErrorBody(output.body, context),
|
|
1207
1207
|
};
|
|
1208
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1209
|
switch (errorCode) {
|
|
@@ -1264,7 +1264,7 @@ exports.deserializeAws_restJson1PutRuleGroupsNamespaceCommand = deserializeAws_r
|
|
|
1264
1264
|
const deserializeAws_restJson1PutRuleGroupsNamespaceCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
|
-
body: await
|
|
1267
|
+
body: await parseErrorBody(output.body, context),
|
|
1268
1268
|
};
|
|
1269
1269
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1270
|
switch (errorCode) {
|
|
@@ -1313,7 +1313,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1313
1313
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1314
1314
|
const parsedOutput = {
|
|
1315
1315
|
...output,
|
|
1316
|
-
body: await
|
|
1316
|
+
body: await parseErrorBody(output.body, context),
|
|
1317
1317
|
};
|
|
1318
1318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
1319
|
switch (errorCode) {
|
|
@@ -1356,7 +1356,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1356
1356
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1357
1357
|
const parsedOutput = {
|
|
1358
1358
|
...output,
|
|
1359
|
-
body: await
|
|
1359
|
+
body: await parseErrorBody(output.body, context),
|
|
1360
1360
|
};
|
|
1361
1361
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
1362
|
switch (errorCode) {
|
|
@@ -1402,7 +1402,7 @@ exports.deserializeAws_restJson1UpdateLoggingConfigurationCommand = deserializeA
|
|
|
1402
1402
|
const deserializeAws_restJson1UpdateLoggingConfigurationCommandError = async (output, context) => {
|
|
1403
1403
|
const parsedOutput = {
|
|
1404
1404
|
...output,
|
|
1405
|
-
body: await
|
|
1405
|
+
body: await parseErrorBody(output.body, context),
|
|
1406
1406
|
};
|
|
1407
1407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1408
|
switch (errorCode) {
|
|
@@ -1445,7 +1445,7 @@ exports.deserializeAws_restJson1UpdateWorkspaceAliasCommand = deserializeAws_res
|
|
|
1445
1445
|
const deserializeAws_restJson1UpdateWorkspaceAliasCommandError = async (output, context) => {
|
|
1446
1446
|
const parsedOutput = {
|
|
1447
1447
|
...output,
|
|
1448
|
-
body: await
|
|
1448
|
+
body: await parseErrorBody(output.body, context),
|
|
1449
1449
|
};
|
|
1450
1450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
1451
|
switch (errorCode) {
|
|
@@ -1781,6 +1781,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1781
1781
|
}
|
|
1782
1782
|
return {};
|
|
1783
1783
|
});
|
|
1784
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1785
|
+
var _a;
|
|
1786
|
+
const value = await parseBody(errorBody, context);
|
|
1787
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1788
|
+
return value;
|
|
1789
|
+
};
|
|
1784
1790
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1785
1791
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1786
1792
|
const sanitizeErrorCode = (rawValue) => {
|
package/dist-es/Amp.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AmpClient } from "./AmpClient";
|
|
3
2
|
import { CreateAlertManagerDefinitionCommand, } from "./commands/CreateAlertManagerDefinitionCommand";
|
|
4
3
|
import { CreateLoggingConfigurationCommand, } from "./commands/CreateLoggingConfigurationCommand";
|
|
@@ -21,305 +20,299 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
21
20
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
22
21
|
import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
|
|
23
22
|
import { UpdateWorkspaceAliasCommand, } from "./commands/UpdateWorkspaceAliasCommand";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
-
}
|
|
29
|
-
Amp.prototype.createAlertManagerDefinition = function (args, optionsOrCb, cb) {
|
|
30
|
-
var command = new CreateAlertManagerDefinitionCommand(args);
|
|
23
|
+
export class Amp extends AmpClient {
|
|
24
|
+
createAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
25
|
+
const command = new CreateAlertManagerDefinitionCommand(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
|
+
createLoggingConfiguration(args, optionsOrCb, cb) {
|
|
39
|
+
const command = new CreateLoggingConfigurationCommand(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
|
+
createRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
53
|
+
const command = new CreateRuleGroupsNamespaceCommand(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
|
+
createWorkspace(args, optionsOrCb, cb) {
|
|
67
|
+
const command = new CreateWorkspaceCommand(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
|
+
deleteAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
81
|
+
const command = new DeleteAlertManagerDefinitionCommand(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
|
+
deleteLoggingConfiguration(args, optionsOrCb, cb) {
|
|
95
|
+
const command = new DeleteLoggingConfigurationCommand(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
|
+
deleteRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
109
|
+
const command = new DeleteRuleGroupsNamespaceCommand(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
|
+
deleteWorkspace(args, optionsOrCb, cb) {
|
|
123
|
+
const command = new DeleteWorkspaceCommand(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
|
+
describeAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
137
|
+
const command = new DescribeAlertManagerDefinitionCommand(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
|
+
describeLoggingConfiguration(args, optionsOrCb, cb) {
|
|
151
|
+
const command = new DescribeLoggingConfigurationCommand(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
|
+
describeRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
165
|
+
const command = new DescribeRuleGroupsNamespaceCommand(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
|
+
describeWorkspace(args, optionsOrCb, cb) {
|
|
179
|
+
const command = new DescribeWorkspaceCommand(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
|
+
listRuleGroupsNamespaces(args, optionsOrCb, cb) {
|
|
193
|
+
const command = new ListRuleGroupsNamespacesCommand(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
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
207
|
+
const command = new ListTagsForResourceCommand(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
|
+
listWorkspaces(args, optionsOrCb, cb) {
|
|
221
|
+
const command = new ListWorkspacesCommand(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
|
+
putAlertManagerDefinition(args, optionsOrCb, cb) {
|
|
235
|
+
const command = new PutAlertManagerDefinitionCommand(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
|
+
putRuleGroupsNamespace(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new PutRuleGroupsNamespaceCommand(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
|
+
tagResource(args, optionsOrCb, cb) {
|
|
263
|
+
const command = new TagResourceCommand(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
|
+
untagResource(args, optionsOrCb, cb) {
|
|
277
|
+
const command = new UntagResourceCommand(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
|
+
updateLoggingConfiguration(args, optionsOrCb, cb) {
|
|
291
|
+
const command = new UpdateLoggingConfigurationCommand(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
|
+
updateWorkspaceAlias(args, optionsOrCb, cb) {
|
|
305
|
+
const command = new UpdateWorkspaceAliasCommand(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
|
-
}(AmpClient));
|
|
325
|
-
export { Amp };
|
|
317
|
+
}
|
|
318
|
+
}
|