@aws-sdk/client-fis 3.31.0 → 3.35.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 +39 -0
- package/{dist/cjs → dist-cjs}/Fis.js +2 -2
- package/dist-cjs/Fis.js.map +1 -0
- package/{dist/cjs → dist-cjs}/FisClient.js +14 -14
- package/dist-cjs/FisClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/CreateExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/DeleteExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetActionCommand.js +5 -5
- package/dist-cjs/commands/GetActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetExperimentCommand.js +5 -5
- package/dist-cjs/commands/GetExperimentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/GetExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListActionsCommand.js +5 -5
- package/dist-cjs/commands/ListActionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListExperimentTemplatesCommand.js +5 -5
- package/dist-cjs/commands/ListExperimentTemplatesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListExperimentsCommand.js +5 -5
- package/dist-cjs/commands/ListExperimentsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartExperimentCommand.js +5 -5
- package/dist-cjs/commands/StartExperimentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StopExperimentCommand.js +5 -5
- package/dist-cjs/commands/StopExperimentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/UpdateExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +25 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListActionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListActionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListExperimentTemplatesPaginator.js +1 -1
- package/dist-cjs/pagination/ListExperimentTemplatesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListExperimentsPaginator.js +1 -1
- package/dist-cjs/pagination/ListExperimentsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +88 -88
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/Fis.js +3 -7
- package/dist-es/Fis.js.map +1 -0
- package/{dist/es → dist-es}/FisClient.js +2 -11
- package/dist-es/FisClient.js.map +1 -0
- package/dist-es/commands/CreateExperimentTemplateCommand.js +40 -0
- package/dist-es/commands/CreateExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteExperimentTemplateCommand.js +4 -29
- package/dist-es/commands/DeleteExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetActionCommand.js +4 -29
- package/dist-es/commands/GetActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetExperimentCommand.js +4 -29
- package/dist-es/commands/GetExperimentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetExperimentTemplateCommand.js +4 -29
- package/dist-es/commands/GetExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListActionsCommand.js +4 -29
- package/dist-es/commands/ListActionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListExperimentTemplatesCommand.js +4 -29
- package/dist-es/commands/ListExperimentTemplatesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListExperimentsCommand.js +4 -29
- package/dist-es/commands/ListExperimentsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartExperimentCommand.js +4 -29
- package/dist-es/commands/StartExperimentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StopExperimentCommand.js +4 -29
- package/dist-es/commands/StopExperimentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateExperimentTemplateCommand.js +4 -29
- package/dist-es/commands/UpdateExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -171
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListActionsPaginator.js +17 -29
- package/dist-es/pagination/ListActionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListExperimentTemplatesPaginator.js +17 -29
- package/dist-es/pagination/ListExperimentTemplatesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListExperimentsPaginator.js +17 -29
- package/dist-es/pagination/ListExperimentsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +209 -214
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/Fis.d.ts +3 -3
- package/{dist/types → dist-types}/FisClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetActionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListActionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListExperimentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListExperimentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListActionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListExperimentTemplatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListExperimentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Fis.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/FisClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/CreateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetActionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListActionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListExperimentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListExperimentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListActionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListExperimentTemplatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListExperimentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{Fis.ts → src/Fis.ts} +8 -7
- package/{FisClient.ts → src/FisClient.ts} +47 -46
- package/{commands → src/commands}/CreateExperimentTemplateCommand.ts +8 -7
- package/{commands → src/commands}/DeleteExperimentTemplateCommand.ts +8 -7
- package/{commands → src/commands}/GetActionCommand.ts +8 -7
- package/{commands → src/commands}/GetExperimentCommand.ts +8 -7
- package/{commands → src/commands}/GetExperimentTemplateCommand.ts +8 -7
- package/{commands → src/commands}/ListActionsCommand.ts +8 -7
- package/{commands → src/commands}/ListExperimentTemplatesCommand.ts +8 -7
- package/{commands → src/commands}/ListExperimentsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/StartExperimentCommand.ts +8 -7
- package/{commands → src/commands}/StopExperimentCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateExperimentTemplateCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListActionsPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListExperimentTemplatesPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListExperimentsPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +39 -38
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/Fis.js.map +0 -1
- package/dist/cjs/FisClient.js.map +0 -1
- package/dist/cjs/commands/CreateExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/GetActionCommand.js.map +0 -1
- package/dist/cjs/commands/GetExperimentCommand.js.map +0 -1
- package/dist/cjs/commands/GetExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/ListActionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListExperimentTemplatesCommand.js.map +0 -1
- package/dist/cjs/commands/ListExperimentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartExperimentCommand.js.map +0 -1
- package/dist/cjs/commands/StopExperimentCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -25
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/ListActionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListExperimentTemplatesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListExperimentsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Fis.js.map +0 -1
- package/dist/es/FisClient.js.map +0 -1
- package/dist/es/commands/CreateExperimentTemplateCommand.js +0 -86
- package/dist/es/commands/CreateExperimentTemplateCommand.js.map +0 -1
- package/dist/es/commands/DeleteExperimentTemplateCommand.js.map +0 -1
- package/dist/es/commands/GetActionCommand.js.map +0 -1
- package/dist/es/commands/GetExperimentCommand.js.map +0 -1
- package/dist/es/commands/GetExperimentTemplateCommand.js.map +0 -1
- package/dist/es/commands/ListActionsCommand.js.map +0 -1
- package/dist/es/commands/ListExperimentTemplatesCommand.js.map +0 -1
- package/dist/es/commands/ListExperimentsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartExperimentCommand.js.map +0 -1
- package/dist/es/commands/StopExperimentCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateExperimentTemplateCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/ListActionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListExperimentTemplatesPaginator.js.map +0 -1
- package/dist/es/pagination/ListExperimentsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -7,7 +7,7 @@ export var serializeAws_restJson1CreateExperimentTemplateCommand = function (inp
|
|
|
7
7
|
var _c;
|
|
8
8
|
return __generator(this, function (_d) {
|
|
9
9
|
switch (_d.label) {
|
|
10
|
-
case 0: return [4
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {
|
|
@@ -24,7 +24,7 @@ export var serializeAws_restJson1CreateExperimentTemplateCommand = function (inp
|
|
|
24
24
|
input.targets !== null && {
|
|
25
25
|
targets: serializeAws_restJson1CreateExperimentTemplateTargetInputMap(input.targets, context),
|
|
26
26
|
})));
|
|
27
|
-
return [2
|
|
27
|
+
return [2, new __HttpRequest({
|
|
28
28
|
protocol: protocol,
|
|
29
29
|
hostname: hostname,
|
|
30
30
|
port: port,
|
|
@@ -40,7 +40,7 @@ export var serializeAws_restJson1DeleteExperimentTemplateCommand = function (inp
|
|
|
40
40
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
41
41
|
return __generator(this, function (_c) {
|
|
42
42
|
switch (_c.label) {
|
|
43
|
-
case 0: return [4
|
|
43
|
+
case 0: return [4, context.endpoint()];
|
|
44
44
|
case 1:
|
|
45
45
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
46
46
|
headers = {};
|
|
@@ -55,7 +55,7 @@ export var serializeAws_restJson1DeleteExperimentTemplateCommand = function (inp
|
|
|
55
55
|
else {
|
|
56
56
|
throw new Error("No value provided for input HTTP label: id.");
|
|
57
57
|
}
|
|
58
|
-
return [2
|
|
58
|
+
return [2, new __HttpRequest({
|
|
59
59
|
protocol: protocol,
|
|
60
60
|
hostname: hostname,
|
|
61
61
|
port: port,
|
|
@@ -71,7 +71,7 @@ export var serializeAws_restJson1GetActionCommand = function (input, context) {
|
|
|
71
71
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
72
72
|
return __generator(this, function (_c) {
|
|
73
73
|
switch (_c.label) {
|
|
74
|
-
case 0: return [4
|
|
74
|
+
case 0: return [4, context.endpoint()];
|
|
75
75
|
case 1:
|
|
76
76
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
77
77
|
headers = {};
|
|
@@ -86,7 +86,7 @@ export var serializeAws_restJson1GetActionCommand = function (input, context) {
|
|
|
86
86
|
else {
|
|
87
87
|
throw new Error("No value provided for input HTTP label: id.");
|
|
88
88
|
}
|
|
89
|
-
return [2
|
|
89
|
+
return [2, new __HttpRequest({
|
|
90
90
|
protocol: protocol,
|
|
91
91
|
hostname: hostname,
|
|
92
92
|
port: port,
|
|
@@ -102,7 +102,7 @@ export var serializeAws_restJson1GetExperimentCommand = function (input, context
|
|
|
102
102
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
103
103
|
return __generator(this, function (_c) {
|
|
104
104
|
switch (_c.label) {
|
|
105
|
-
case 0: return [4
|
|
105
|
+
case 0: return [4, context.endpoint()];
|
|
106
106
|
case 1:
|
|
107
107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
108
108
|
headers = {};
|
|
@@ -117,7 +117,7 @@ export var serializeAws_restJson1GetExperimentCommand = function (input, context
|
|
|
117
117
|
else {
|
|
118
118
|
throw new Error("No value provided for input HTTP label: id.");
|
|
119
119
|
}
|
|
120
|
-
return [2
|
|
120
|
+
return [2, new __HttpRequest({
|
|
121
121
|
protocol: protocol,
|
|
122
122
|
hostname: hostname,
|
|
123
123
|
port: port,
|
|
@@ -133,7 +133,7 @@ export var serializeAws_restJson1GetExperimentTemplateCommand = function (input,
|
|
|
133
133
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
134
134
|
return __generator(this, function (_c) {
|
|
135
135
|
switch (_c.label) {
|
|
136
|
-
case 0: return [4
|
|
136
|
+
case 0: return [4, context.endpoint()];
|
|
137
137
|
case 1:
|
|
138
138
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
139
139
|
headers = {};
|
|
@@ -148,7 +148,7 @@ export var serializeAws_restJson1GetExperimentTemplateCommand = function (input,
|
|
|
148
148
|
else {
|
|
149
149
|
throw new Error("No value provided for input HTTP label: id.");
|
|
150
150
|
}
|
|
151
|
-
return [2
|
|
151
|
+
return [2, new __HttpRequest({
|
|
152
152
|
protocol: protocol,
|
|
153
153
|
hostname: hostname,
|
|
154
154
|
port: port,
|
|
@@ -164,13 +164,13 @@ export var serializeAws_restJson1ListActionsCommand = function (input, context)
|
|
|
164
164
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
165
165
|
return __generator(this, function (_c) {
|
|
166
166
|
switch (_c.label) {
|
|
167
|
-
case 0: return [4
|
|
167
|
+
case 0: return [4, context.endpoint()];
|
|
168
168
|
case 1:
|
|
169
169
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
170
170
|
headers = {};
|
|
171
171
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/actions";
|
|
172
172
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
173
|
-
return [2
|
|
173
|
+
return [2, new __HttpRequest({
|
|
174
174
|
protocol: protocol,
|
|
175
175
|
hostname: hostname,
|
|
176
176
|
port: port,
|
|
@@ -187,13 +187,13 @@ export var serializeAws_restJson1ListExperimentsCommand = function (input, conte
|
|
|
187
187
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
188
188
|
return __generator(this, function (_c) {
|
|
189
189
|
switch (_c.label) {
|
|
190
|
-
case 0: return [4
|
|
190
|
+
case 0: return [4, context.endpoint()];
|
|
191
191
|
case 1:
|
|
192
192
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
193
193
|
headers = {};
|
|
194
194
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/experiments";
|
|
195
195
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
196
|
-
return [2
|
|
196
|
+
return [2, new __HttpRequest({
|
|
197
197
|
protocol: protocol,
|
|
198
198
|
hostname: hostname,
|
|
199
199
|
port: port,
|
|
@@ -210,13 +210,13 @@ export var serializeAws_restJson1ListExperimentTemplatesCommand = function (inpu
|
|
|
210
210
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
211
211
|
return __generator(this, function (_c) {
|
|
212
212
|
switch (_c.label) {
|
|
213
|
-
case 0: return [4
|
|
213
|
+
case 0: return [4, context.endpoint()];
|
|
214
214
|
case 1:
|
|
215
215
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
216
216
|
headers = {};
|
|
217
217
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/experimentTemplates";
|
|
218
218
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
219
|
-
return [2
|
|
219
|
+
return [2, new __HttpRequest({
|
|
220
220
|
protocol: protocol,
|
|
221
221
|
hostname: hostname,
|
|
222
222
|
port: port,
|
|
@@ -233,7 +233,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
233
233
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
234
234
|
return __generator(this, function (_c) {
|
|
235
235
|
switch (_c.label) {
|
|
236
|
-
case 0: return [4
|
|
236
|
+
case 0: return [4, context.endpoint()];
|
|
237
237
|
case 1:
|
|
238
238
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
239
239
|
headers = {};
|
|
@@ -248,7 +248,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
248
248
|
else {
|
|
249
249
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
250
250
|
}
|
|
251
|
-
return [2
|
|
251
|
+
return [2, new __HttpRequest({
|
|
252
252
|
protocol: protocol,
|
|
253
253
|
hostname: hostname,
|
|
254
254
|
port: port,
|
|
@@ -265,7 +265,7 @@ export var serializeAws_restJson1StartExperimentCommand = function (input, conte
|
|
|
265
265
|
var _c;
|
|
266
266
|
return __generator(this, function (_d) {
|
|
267
267
|
switch (_d.label) {
|
|
268
|
-
case 0: return [4
|
|
268
|
+
case 0: return [4, context.endpoint()];
|
|
269
269
|
case 1:
|
|
270
270
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
271
271
|
headers = {
|
|
@@ -274,7 +274,7 @@ export var serializeAws_restJson1StartExperimentCommand = function (input, conte
|
|
|
274
274
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/experiments";
|
|
275
275
|
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.experimentTemplateId !== undefined &&
|
|
276
276
|
input.experimentTemplateId !== null && { experimentTemplateId: input.experimentTemplateId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
277
|
-
return [2
|
|
277
|
+
return [2, new __HttpRequest({
|
|
278
278
|
protocol: protocol,
|
|
279
279
|
hostname: hostname,
|
|
280
280
|
port: port,
|
|
@@ -290,7 +290,7 @@ export var serializeAws_restJson1StopExperimentCommand = function (input, contex
|
|
|
290
290
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
291
291
|
return __generator(this, function (_c) {
|
|
292
292
|
switch (_c.label) {
|
|
293
|
-
case 0: return [4
|
|
293
|
+
case 0: return [4, context.endpoint()];
|
|
294
294
|
case 1:
|
|
295
295
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
296
296
|
headers = {};
|
|
@@ -305,7 +305,7 @@ export var serializeAws_restJson1StopExperimentCommand = function (input, contex
|
|
|
305
305
|
else {
|
|
306
306
|
throw new Error("No value provided for input HTTP label: id.");
|
|
307
307
|
}
|
|
308
|
-
return [2
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
309
|
protocol: protocol,
|
|
310
310
|
hostname: hostname,
|
|
311
311
|
port: port,
|
|
@@ -321,7 +321,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
321
321
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
322
322
|
return __generator(this, function (_c) {
|
|
323
323
|
switch (_c.label) {
|
|
324
|
-
case 0: return [4
|
|
324
|
+
case 0: return [4, context.endpoint()];
|
|
325
325
|
case 1:
|
|
326
326
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
327
327
|
headers = {
|
|
@@ -339,7 +339,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
339
339
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
340
340
|
}
|
|
341
341
|
body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
342
|
-
return [2
|
|
342
|
+
return [2, new __HttpRequest({
|
|
343
343
|
protocol: protocol,
|
|
344
344
|
hostname: hostname,
|
|
345
345
|
port: port,
|
|
@@ -355,7 +355,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
355
355
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
356
356
|
return __generator(this, function (_c) {
|
|
357
357
|
switch (_c.label) {
|
|
358
|
-
case 0: return [4
|
|
358
|
+
case 0: return [4, context.endpoint()];
|
|
359
359
|
case 1:
|
|
360
360
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
361
361
|
headers = {};
|
|
@@ -371,7 +371,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
371
371
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
372
372
|
}
|
|
373
373
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
374
|
-
return [2
|
|
374
|
+
return [2, new __HttpRequest({
|
|
375
375
|
protocol: protocol,
|
|
376
376
|
hostname: hostname,
|
|
377
377
|
port: port,
|
|
@@ -388,7 +388,7 @@ export var serializeAws_restJson1UpdateExperimentTemplateCommand = function (inp
|
|
|
388
388
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
389
389
|
return __generator(this, function (_c) {
|
|
390
390
|
switch (_c.label) {
|
|
391
|
-
case 0: return [4
|
|
391
|
+
case 0: return [4, context.endpoint()];
|
|
392
392
|
case 1:
|
|
393
393
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
394
394
|
headers = {
|
|
@@ -415,7 +415,7 @@ export var serializeAws_restJson1UpdateExperimentTemplateCommand = function (inp
|
|
|
415
415
|
input.targets !== null && {
|
|
416
416
|
targets: serializeAws_restJson1UpdateExperimentTemplateTargetInputMap(input.targets, context),
|
|
417
417
|
})));
|
|
418
|
-
return [2
|
|
418
|
+
return [2, new __HttpRequest({
|
|
419
419
|
protocol: protocol,
|
|
420
420
|
hostname: hostname,
|
|
421
421
|
port: port,
|
|
@@ -433,7 +433,7 @@ export var deserializeAws_restJson1CreateExperimentTemplateCommand = function (o
|
|
|
433
433
|
switch (_c.label) {
|
|
434
434
|
case 0:
|
|
435
435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return [2
|
|
436
|
+
return [2, deserializeAws_restJson1CreateExperimentTemplateCommandError(output, context)];
|
|
437
437
|
}
|
|
438
438
|
contents = {
|
|
439
439
|
$metadata: deserializeMetadata(output),
|
|
@@ -441,13 +441,13 @@ export var deserializeAws_restJson1CreateExperimentTemplateCommand = function (o
|
|
|
441
441
|
};
|
|
442
442
|
_a = __expectNonNull;
|
|
443
443
|
_b = __expectObject;
|
|
444
|
-
return [4
|
|
444
|
+
return [4, parseBody(output.body, context)];
|
|
445
445
|
case 1:
|
|
446
446
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
447
447
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
448
448
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
449
449
|
}
|
|
450
|
-
return [2
|
|
450
|
+
return [2, Promise.resolve(contents)];
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
}); };
|
|
@@ -459,47 +459,47 @@ var deserializeAws_restJson1CreateExperimentTemplateCommandError = function (out
|
|
|
459
459
|
case 0:
|
|
460
460
|
_a = [__assign({}, output)];
|
|
461
461
|
_g = {};
|
|
462
|
-
return [4
|
|
462
|
+
return [4, parseBody(output.body, context)];
|
|
463
463
|
case 1:
|
|
464
464
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
465
465
|
errorCode = "UnknownError";
|
|
466
466
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
467
|
_b = errorCode;
|
|
468
468
|
switch (_b) {
|
|
469
|
-
case "ConflictException": return [3
|
|
470
|
-
case "com.amazonaws.fis#ConflictException": return [3
|
|
471
|
-
case "ResourceNotFoundException": return [3
|
|
472
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
473
|
-
case "ServiceQuotaExceededException": return [3
|
|
474
|
-
case "com.amazonaws.fis#ServiceQuotaExceededException": return [3
|
|
475
|
-
case "ValidationException": return [3
|
|
476
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
469
|
+
case "ConflictException": return [3, 2];
|
|
470
|
+
case "com.amazonaws.fis#ConflictException": return [3, 2];
|
|
471
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
472
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 4];
|
|
473
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
474
|
+
case "com.amazonaws.fis#ServiceQuotaExceededException": return [3, 6];
|
|
475
|
+
case "ValidationException": return [3, 8];
|
|
476
|
+
case "com.amazonaws.fis#ValidationException": return [3, 8];
|
|
477
477
|
}
|
|
478
|
-
return [3
|
|
478
|
+
return [3, 10];
|
|
479
479
|
case 2:
|
|
480
480
|
_c = [{}];
|
|
481
|
-
return [4
|
|
481
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
482
482
|
case 3:
|
|
483
483
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
484
|
-
return [3
|
|
484
|
+
return [3, 11];
|
|
485
485
|
case 4:
|
|
486
486
|
_d = [{}];
|
|
487
|
-
return [4
|
|
487
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
488
488
|
case 5:
|
|
489
489
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
490
|
-
return [3
|
|
490
|
+
return [3, 11];
|
|
491
491
|
case 6:
|
|
492
492
|
_e = [{}];
|
|
493
|
-
return [4
|
|
493
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
494
494
|
case 7:
|
|
495
495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
496
|
-
return [3
|
|
496
|
+
return [3, 11];
|
|
497
497
|
case 8:
|
|
498
498
|
_f = [{}];
|
|
499
|
-
return [4
|
|
499
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
500
500
|
case 9:
|
|
501
501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
502
|
-
return [3
|
|
502
|
+
return [3, 11];
|
|
503
503
|
case 10:
|
|
504
504
|
parsedBody = parsedOutput.body;
|
|
505
505
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -509,7 +509,7 @@ var deserializeAws_restJson1CreateExperimentTemplateCommandError = function (out
|
|
|
509
509
|
message = response.message || response.Message || errorCode;
|
|
510
510
|
response.message = message;
|
|
511
511
|
delete response.Message;
|
|
512
|
-
return [2
|
|
512
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
513
513
|
}
|
|
514
514
|
});
|
|
515
515
|
}); };
|
|
@@ -519,7 +519,7 @@ export var deserializeAws_restJson1DeleteExperimentTemplateCommand = function (o
|
|
|
519
519
|
switch (_c.label) {
|
|
520
520
|
case 0:
|
|
521
521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return [2
|
|
522
|
+
return [2, deserializeAws_restJson1DeleteExperimentTemplateCommandError(output, context)];
|
|
523
523
|
}
|
|
524
524
|
contents = {
|
|
525
525
|
$metadata: deserializeMetadata(output),
|
|
@@ -527,13 +527,13 @@ export var deserializeAws_restJson1DeleteExperimentTemplateCommand = function (o
|
|
|
527
527
|
};
|
|
528
528
|
_a = __expectNonNull;
|
|
529
529
|
_b = __expectObject;
|
|
530
|
-
return [4
|
|
530
|
+
return [4, parseBody(output.body, context)];
|
|
531
531
|
case 1:
|
|
532
532
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
533
533
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
534
534
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
535
535
|
}
|
|
536
|
-
return [2
|
|
536
|
+
return [2, Promise.resolve(contents)];
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
}); };
|
|
@@ -545,31 +545,31 @@ var deserializeAws_restJson1DeleteExperimentTemplateCommandError = function (out
|
|
|
545
545
|
case 0:
|
|
546
546
|
_a = [__assign({}, output)];
|
|
547
547
|
_e = {};
|
|
548
|
-
return [4
|
|
548
|
+
return [4, parseBody(output.body, context)];
|
|
549
549
|
case 1:
|
|
550
550
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
551
551
|
errorCode = "UnknownError";
|
|
552
552
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
553
|
_b = errorCode;
|
|
554
554
|
switch (_b) {
|
|
555
|
-
case "ResourceNotFoundException": return [3
|
|
556
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
557
|
-
case "ValidationException": return [3
|
|
558
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
555
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
556
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 2];
|
|
557
|
+
case "ValidationException": return [3, 4];
|
|
558
|
+
case "com.amazonaws.fis#ValidationException": return [3, 4];
|
|
559
559
|
}
|
|
560
|
-
return [3
|
|
560
|
+
return [3, 6];
|
|
561
561
|
case 2:
|
|
562
562
|
_c = [{}];
|
|
563
|
-
return [4
|
|
563
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
564
564
|
case 3:
|
|
565
565
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
566
|
-
return [3
|
|
566
|
+
return [3, 7];
|
|
567
567
|
case 4:
|
|
568
568
|
_d = [{}];
|
|
569
|
-
return [4
|
|
569
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
570
570
|
case 5:
|
|
571
571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
572
|
-
return [3
|
|
572
|
+
return [3, 7];
|
|
573
573
|
case 6:
|
|
574
574
|
parsedBody = parsedOutput.body;
|
|
575
575
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -579,7 +579,7 @@ var deserializeAws_restJson1DeleteExperimentTemplateCommandError = function (out
|
|
|
579
579
|
message = response.message || response.Message || errorCode;
|
|
580
580
|
response.message = message;
|
|
581
581
|
delete response.Message;
|
|
582
|
-
return [2
|
|
582
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
}); };
|
|
@@ -589,7 +589,7 @@ export var deserializeAws_restJson1GetActionCommand = function (output, context)
|
|
|
589
589
|
switch (_c.label) {
|
|
590
590
|
case 0:
|
|
591
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
-
return [2
|
|
592
|
+
return [2, deserializeAws_restJson1GetActionCommandError(output, context)];
|
|
593
593
|
}
|
|
594
594
|
contents = {
|
|
595
595
|
$metadata: deserializeMetadata(output),
|
|
@@ -597,13 +597,13 @@ export var deserializeAws_restJson1GetActionCommand = function (output, context)
|
|
|
597
597
|
};
|
|
598
598
|
_a = __expectNonNull;
|
|
599
599
|
_b = __expectObject;
|
|
600
|
-
return [4
|
|
600
|
+
return [4, parseBody(output.body, context)];
|
|
601
601
|
case 1:
|
|
602
602
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
603
603
|
if (data.action !== undefined && data.action !== null) {
|
|
604
604
|
contents.action = deserializeAws_restJson1Action(data.action, context);
|
|
605
605
|
}
|
|
606
|
-
return [2
|
|
606
|
+
return [2, Promise.resolve(contents)];
|
|
607
607
|
}
|
|
608
608
|
});
|
|
609
609
|
}); };
|
|
@@ -615,31 +615,31 @@ var deserializeAws_restJson1GetActionCommandError = function (output, context) {
|
|
|
615
615
|
case 0:
|
|
616
616
|
_a = [__assign({}, output)];
|
|
617
617
|
_e = {};
|
|
618
|
-
return [4
|
|
618
|
+
return [4, parseBody(output.body, context)];
|
|
619
619
|
case 1:
|
|
620
620
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
621
621
|
errorCode = "UnknownError";
|
|
622
622
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
623
|
_b = errorCode;
|
|
624
624
|
switch (_b) {
|
|
625
|
-
case "ResourceNotFoundException": return [3
|
|
626
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
627
|
-
case "ValidationException": return [3
|
|
628
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
625
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
626
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 2];
|
|
627
|
+
case "ValidationException": return [3, 4];
|
|
628
|
+
case "com.amazonaws.fis#ValidationException": return [3, 4];
|
|
629
629
|
}
|
|
630
|
-
return [3
|
|
630
|
+
return [3, 6];
|
|
631
631
|
case 2:
|
|
632
632
|
_c = [{}];
|
|
633
|
-
return [4
|
|
633
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
634
634
|
case 3:
|
|
635
635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
636
|
-
return [3
|
|
636
|
+
return [3, 7];
|
|
637
637
|
case 4:
|
|
638
638
|
_d = [{}];
|
|
639
|
-
return [4
|
|
639
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
640
640
|
case 5:
|
|
641
641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
642
|
-
return [3
|
|
642
|
+
return [3, 7];
|
|
643
643
|
case 6:
|
|
644
644
|
parsedBody = parsedOutput.body;
|
|
645
645
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -649,7 +649,7 @@ var deserializeAws_restJson1GetActionCommandError = function (output, context) {
|
|
|
649
649
|
message = response.message || response.Message || errorCode;
|
|
650
650
|
response.message = message;
|
|
651
651
|
delete response.Message;
|
|
652
|
-
return [2
|
|
652
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
}); };
|
|
@@ -659,7 +659,7 @@ export var deserializeAws_restJson1GetExperimentCommand = function (output, cont
|
|
|
659
659
|
switch (_c.label) {
|
|
660
660
|
case 0:
|
|
661
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return [2
|
|
662
|
+
return [2, deserializeAws_restJson1GetExperimentCommandError(output, context)];
|
|
663
663
|
}
|
|
664
664
|
contents = {
|
|
665
665
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,13 +667,13 @@ export var deserializeAws_restJson1GetExperimentCommand = function (output, cont
|
|
|
667
667
|
};
|
|
668
668
|
_a = __expectNonNull;
|
|
669
669
|
_b = __expectObject;
|
|
670
|
-
return [4
|
|
670
|
+
return [4, parseBody(output.body, context)];
|
|
671
671
|
case 1:
|
|
672
672
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
673
673
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
674
674
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
675
675
|
}
|
|
676
|
-
return [2
|
|
676
|
+
return [2, Promise.resolve(contents)];
|
|
677
677
|
}
|
|
678
678
|
});
|
|
679
679
|
}); };
|
|
@@ -685,31 +685,31 @@ var deserializeAws_restJson1GetExperimentCommandError = function (output, contex
|
|
|
685
685
|
case 0:
|
|
686
686
|
_a = [__assign({}, output)];
|
|
687
687
|
_e = {};
|
|
688
|
-
return [4
|
|
688
|
+
return [4, parseBody(output.body, context)];
|
|
689
689
|
case 1:
|
|
690
690
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
691
691
|
errorCode = "UnknownError";
|
|
692
692
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
693
|
_b = errorCode;
|
|
694
694
|
switch (_b) {
|
|
695
|
-
case "ResourceNotFoundException": return [3
|
|
696
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
697
|
-
case "ValidationException": return [3
|
|
698
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
695
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
696
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 2];
|
|
697
|
+
case "ValidationException": return [3, 4];
|
|
698
|
+
case "com.amazonaws.fis#ValidationException": return [3, 4];
|
|
699
699
|
}
|
|
700
|
-
return [3
|
|
700
|
+
return [3, 6];
|
|
701
701
|
case 2:
|
|
702
702
|
_c = [{}];
|
|
703
|
-
return [4
|
|
703
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
704
704
|
case 3:
|
|
705
705
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
706
|
-
return [3
|
|
706
|
+
return [3, 7];
|
|
707
707
|
case 4:
|
|
708
708
|
_d = [{}];
|
|
709
|
-
return [4
|
|
709
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
710
710
|
case 5:
|
|
711
711
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
712
|
-
return [3
|
|
712
|
+
return [3, 7];
|
|
713
713
|
case 6:
|
|
714
714
|
parsedBody = parsedOutput.body;
|
|
715
715
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -719,7 +719,7 @@ var deserializeAws_restJson1GetExperimentCommandError = function (output, contex
|
|
|
719
719
|
message = response.message || response.Message || errorCode;
|
|
720
720
|
response.message = message;
|
|
721
721
|
delete response.Message;
|
|
722
|
-
return [2
|
|
722
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
725
|
}); };
|
|
@@ -729,7 +729,7 @@ export var deserializeAws_restJson1GetExperimentTemplateCommand = function (outp
|
|
|
729
729
|
switch (_c.label) {
|
|
730
730
|
case 0:
|
|
731
731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
732
|
-
return [2
|
|
732
|
+
return [2, deserializeAws_restJson1GetExperimentTemplateCommandError(output, context)];
|
|
733
733
|
}
|
|
734
734
|
contents = {
|
|
735
735
|
$metadata: deserializeMetadata(output),
|
|
@@ -737,13 +737,13 @@ export var deserializeAws_restJson1GetExperimentTemplateCommand = function (outp
|
|
|
737
737
|
};
|
|
738
738
|
_a = __expectNonNull;
|
|
739
739
|
_b = __expectObject;
|
|
740
|
-
return [4
|
|
740
|
+
return [4, parseBody(output.body, context)];
|
|
741
741
|
case 1:
|
|
742
742
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
743
743
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
744
744
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
745
745
|
}
|
|
746
|
-
return [2
|
|
746
|
+
return [2, Promise.resolve(contents)];
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
749
|
}); };
|
|
@@ -755,31 +755,31 @@ var deserializeAws_restJson1GetExperimentTemplateCommandError = function (output
|
|
|
755
755
|
case 0:
|
|
756
756
|
_a = [__assign({}, output)];
|
|
757
757
|
_e = {};
|
|
758
|
-
return [4
|
|
758
|
+
return [4, parseBody(output.body, context)];
|
|
759
759
|
case 1:
|
|
760
760
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
761
761
|
errorCode = "UnknownError";
|
|
762
762
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
763
|
_b = errorCode;
|
|
764
764
|
switch (_b) {
|
|
765
|
-
case "ResourceNotFoundException": return [3
|
|
766
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
767
|
-
case "ValidationException": return [3
|
|
768
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
765
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
766
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 2];
|
|
767
|
+
case "ValidationException": return [3, 4];
|
|
768
|
+
case "com.amazonaws.fis#ValidationException": return [3, 4];
|
|
769
769
|
}
|
|
770
|
-
return [3
|
|
770
|
+
return [3, 6];
|
|
771
771
|
case 2:
|
|
772
772
|
_c = [{}];
|
|
773
|
-
return [4
|
|
773
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
774
774
|
case 3:
|
|
775
775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
776
|
-
return [3
|
|
776
|
+
return [3, 7];
|
|
777
777
|
case 4:
|
|
778
778
|
_d = [{}];
|
|
779
|
-
return [4
|
|
779
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
780
780
|
case 5:
|
|
781
781
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
782
|
-
return [3
|
|
782
|
+
return [3, 7];
|
|
783
783
|
case 6:
|
|
784
784
|
parsedBody = parsedOutput.body;
|
|
785
785
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -789,7 +789,7 @@ var deserializeAws_restJson1GetExperimentTemplateCommandError = function (output
|
|
|
789
789
|
message = response.message || response.Message || errorCode;
|
|
790
790
|
response.message = message;
|
|
791
791
|
delete response.Message;
|
|
792
|
-
return [2
|
|
792
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
793
793
|
}
|
|
794
794
|
});
|
|
795
795
|
}); };
|
|
@@ -799,7 +799,7 @@ export var deserializeAws_restJson1ListActionsCommand = function (output, contex
|
|
|
799
799
|
switch (_c.label) {
|
|
800
800
|
case 0:
|
|
801
801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
-
return [2
|
|
802
|
+
return [2, deserializeAws_restJson1ListActionsCommandError(output, context)];
|
|
803
803
|
}
|
|
804
804
|
contents = {
|
|
805
805
|
$metadata: deserializeMetadata(output),
|
|
@@ -808,7 +808,7 @@ export var deserializeAws_restJson1ListActionsCommand = function (output, contex
|
|
|
808
808
|
};
|
|
809
809
|
_a = __expectNonNull;
|
|
810
810
|
_b = __expectObject;
|
|
811
|
-
return [4
|
|
811
|
+
return [4, parseBody(output.body, context)];
|
|
812
812
|
case 1:
|
|
813
813
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
814
814
|
if (data.actions !== undefined && data.actions !== null) {
|
|
@@ -817,7 +817,7 @@ export var deserializeAws_restJson1ListActionsCommand = function (output, contex
|
|
|
817
817
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
818
818
|
contents.nextToken = __expectString(data.nextToken);
|
|
819
819
|
}
|
|
820
|
-
return [2
|
|
820
|
+
return [2, Promise.resolve(contents)];
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
823
|
}); };
|
|
@@ -829,23 +829,23 @@ var deserializeAws_restJson1ListActionsCommandError = function (output, context)
|
|
|
829
829
|
case 0:
|
|
830
830
|
_a = [__assign({}, output)];
|
|
831
831
|
_d = {};
|
|
832
|
-
return [4
|
|
832
|
+
return [4, parseBody(output.body, context)];
|
|
833
833
|
case 1:
|
|
834
834
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
835
835
|
errorCode = "UnknownError";
|
|
836
836
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
837
|
_b = errorCode;
|
|
838
838
|
switch (_b) {
|
|
839
|
-
case "ValidationException": return [3
|
|
840
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
839
|
+
case "ValidationException": return [3, 2];
|
|
840
|
+
case "com.amazonaws.fis#ValidationException": return [3, 2];
|
|
841
841
|
}
|
|
842
|
-
return [3
|
|
842
|
+
return [3, 4];
|
|
843
843
|
case 2:
|
|
844
844
|
_c = [{}];
|
|
845
|
-
return [4
|
|
845
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
846
846
|
case 3:
|
|
847
847
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
848
|
-
return [3
|
|
848
|
+
return [3, 5];
|
|
849
849
|
case 4:
|
|
850
850
|
parsedBody = parsedOutput.body;
|
|
851
851
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -855,7 +855,7 @@ var deserializeAws_restJson1ListActionsCommandError = function (output, context)
|
|
|
855
855
|
message = response.message || response.Message || errorCode;
|
|
856
856
|
response.message = message;
|
|
857
857
|
delete response.Message;
|
|
858
|
-
return [2
|
|
858
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
861
|
}); };
|
|
@@ -865,7 +865,7 @@ export var deserializeAws_restJson1ListExperimentsCommand = function (output, co
|
|
|
865
865
|
switch (_c.label) {
|
|
866
866
|
case 0:
|
|
867
867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
|
-
return [2
|
|
868
|
+
return [2, deserializeAws_restJson1ListExperimentsCommandError(output, context)];
|
|
869
869
|
}
|
|
870
870
|
contents = {
|
|
871
871
|
$metadata: deserializeMetadata(output),
|
|
@@ -874,7 +874,7 @@ export var deserializeAws_restJson1ListExperimentsCommand = function (output, co
|
|
|
874
874
|
};
|
|
875
875
|
_a = __expectNonNull;
|
|
876
876
|
_b = __expectObject;
|
|
877
|
-
return [4
|
|
877
|
+
return [4, parseBody(output.body, context)];
|
|
878
878
|
case 1:
|
|
879
879
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
880
880
|
if (data.experiments !== undefined && data.experiments !== null) {
|
|
@@ -883,7 +883,7 @@ export var deserializeAws_restJson1ListExperimentsCommand = function (output, co
|
|
|
883
883
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
884
884
|
contents.nextToken = __expectString(data.nextToken);
|
|
885
885
|
}
|
|
886
|
-
return [2
|
|
886
|
+
return [2, Promise.resolve(contents)];
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
889
|
}); };
|
|
@@ -895,23 +895,23 @@ var deserializeAws_restJson1ListExperimentsCommandError = function (output, cont
|
|
|
895
895
|
case 0:
|
|
896
896
|
_a = [__assign({}, output)];
|
|
897
897
|
_d = {};
|
|
898
|
-
return [4
|
|
898
|
+
return [4, parseBody(output.body, context)];
|
|
899
899
|
case 1:
|
|
900
900
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
901
901
|
errorCode = "UnknownError";
|
|
902
902
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
903
|
_b = errorCode;
|
|
904
904
|
switch (_b) {
|
|
905
|
-
case "ValidationException": return [3
|
|
906
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
905
|
+
case "ValidationException": return [3, 2];
|
|
906
|
+
case "com.amazonaws.fis#ValidationException": return [3, 2];
|
|
907
907
|
}
|
|
908
|
-
return [3
|
|
908
|
+
return [3, 4];
|
|
909
909
|
case 2:
|
|
910
910
|
_c = [{}];
|
|
911
|
-
return [4
|
|
911
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
912
912
|
case 3:
|
|
913
913
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
914
|
-
return [3
|
|
914
|
+
return [3, 5];
|
|
915
915
|
case 4:
|
|
916
916
|
parsedBody = parsedOutput.body;
|
|
917
917
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -921,7 +921,7 @@ var deserializeAws_restJson1ListExperimentsCommandError = function (output, cont
|
|
|
921
921
|
message = response.message || response.Message || errorCode;
|
|
922
922
|
response.message = message;
|
|
923
923
|
delete response.Message;
|
|
924
|
-
return [2
|
|
924
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
925
925
|
}
|
|
926
926
|
});
|
|
927
927
|
}); };
|
|
@@ -931,7 +931,7 @@ export var deserializeAws_restJson1ListExperimentTemplatesCommand = function (ou
|
|
|
931
931
|
switch (_c.label) {
|
|
932
932
|
case 0:
|
|
933
933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return [2
|
|
934
|
+
return [2, deserializeAws_restJson1ListExperimentTemplatesCommandError(output, context)];
|
|
935
935
|
}
|
|
936
936
|
contents = {
|
|
937
937
|
$metadata: deserializeMetadata(output),
|
|
@@ -940,7 +940,7 @@ export var deserializeAws_restJson1ListExperimentTemplatesCommand = function (ou
|
|
|
940
940
|
};
|
|
941
941
|
_a = __expectNonNull;
|
|
942
942
|
_b = __expectObject;
|
|
943
|
-
return [4
|
|
943
|
+
return [4, parseBody(output.body, context)];
|
|
944
944
|
case 1:
|
|
945
945
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
946
946
|
if (data.experimentTemplates !== undefined && data.experimentTemplates !== null) {
|
|
@@ -949,7 +949,7 @@ export var deserializeAws_restJson1ListExperimentTemplatesCommand = function (ou
|
|
|
949
949
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
950
950
|
contents.nextToken = __expectString(data.nextToken);
|
|
951
951
|
}
|
|
952
|
-
return [2
|
|
952
|
+
return [2, Promise.resolve(contents)];
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
955
|
}); };
|
|
@@ -961,23 +961,23 @@ var deserializeAws_restJson1ListExperimentTemplatesCommandError = function (outp
|
|
|
961
961
|
case 0:
|
|
962
962
|
_a = [__assign({}, output)];
|
|
963
963
|
_d = {};
|
|
964
|
-
return [4
|
|
964
|
+
return [4, parseBody(output.body, context)];
|
|
965
965
|
case 1:
|
|
966
966
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
967
967
|
errorCode = "UnknownError";
|
|
968
968
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
969
|
_b = errorCode;
|
|
970
970
|
switch (_b) {
|
|
971
|
-
case "ValidationException": return [3
|
|
972
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
971
|
+
case "ValidationException": return [3, 2];
|
|
972
|
+
case "com.amazonaws.fis#ValidationException": return [3, 2];
|
|
973
973
|
}
|
|
974
|
-
return [3
|
|
974
|
+
return [3, 4];
|
|
975
975
|
case 2:
|
|
976
976
|
_c = [{}];
|
|
977
|
-
return [4
|
|
977
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
978
978
|
case 3:
|
|
979
979
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
980
|
-
return [3
|
|
980
|
+
return [3, 5];
|
|
981
981
|
case 4:
|
|
982
982
|
parsedBody = parsedOutput.body;
|
|
983
983
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -987,7 +987,7 @@ var deserializeAws_restJson1ListExperimentTemplatesCommandError = function (outp
|
|
|
987
987
|
message = response.message || response.Message || errorCode;
|
|
988
988
|
response.message = message;
|
|
989
989
|
delete response.Message;
|
|
990
|
-
return [2
|
|
990
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
993
|
}); };
|
|
@@ -997,7 +997,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
997
997
|
switch (_c.label) {
|
|
998
998
|
case 0:
|
|
999
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
-
return [2
|
|
1000
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1001
1001
|
}
|
|
1002
1002
|
contents = {
|
|
1003
1003
|
$metadata: deserializeMetadata(output),
|
|
@@ -1005,13 +1005,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1005
1005
|
};
|
|
1006
1006
|
_a = __expectNonNull;
|
|
1007
1007
|
_b = __expectObject;
|
|
1008
|
-
return [4
|
|
1008
|
+
return [4, parseBody(output.body, context)];
|
|
1009
1009
|
case 1:
|
|
1010
1010
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1011
1011
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1012
1012
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1013
1013
|
}
|
|
1014
|
-
return [2
|
|
1014
|
+
return [2, Promise.resolve(contents)];
|
|
1015
1015
|
}
|
|
1016
1016
|
});
|
|
1017
1017
|
}); };
|
|
@@ -1023,7 +1023,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1023
1023
|
case 0:
|
|
1024
1024
|
_a = [__assign({}, output)];
|
|
1025
1025
|
_b = {};
|
|
1026
|
-
return [4
|
|
1026
|
+
return [4, parseBody(output.body, context)];
|
|
1027
1027
|
case 1:
|
|
1028
1028
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1029
1029
|
errorCode = "UnknownError";
|
|
@@ -1037,7 +1037,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1037
1037
|
message = response.message || response.Message || errorCode;
|
|
1038
1038
|
response.message = message;
|
|
1039
1039
|
delete response.Message;
|
|
1040
|
-
return [2
|
|
1040
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1041
1041
|
}
|
|
1042
1042
|
});
|
|
1043
1043
|
}); };
|
|
@@ -1047,7 +1047,7 @@ export var deserializeAws_restJson1StartExperimentCommand = function (output, co
|
|
|
1047
1047
|
switch (_c.label) {
|
|
1048
1048
|
case 0:
|
|
1049
1049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1050
|
-
return [2
|
|
1050
|
+
return [2, deserializeAws_restJson1StartExperimentCommandError(output, context)];
|
|
1051
1051
|
}
|
|
1052
1052
|
contents = {
|
|
1053
1053
|
$metadata: deserializeMetadata(output),
|
|
@@ -1055,13 +1055,13 @@ export var deserializeAws_restJson1StartExperimentCommand = function (output, co
|
|
|
1055
1055
|
};
|
|
1056
1056
|
_a = __expectNonNull;
|
|
1057
1057
|
_b = __expectObject;
|
|
1058
|
-
return [4
|
|
1058
|
+
return [4, parseBody(output.body, context)];
|
|
1059
1059
|
case 1:
|
|
1060
1060
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1061
1061
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
1062
1062
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
1063
1063
|
}
|
|
1064
|
-
return [2
|
|
1064
|
+
return [2, Promise.resolve(contents)];
|
|
1065
1065
|
}
|
|
1066
1066
|
});
|
|
1067
1067
|
}); };
|
|
@@ -1073,47 +1073,47 @@ var deserializeAws_restJson1StartExperimentCommandError = function (output, cont
|
|
|
1073
1073
|
case 0:
|
|
1074
1074
|
_a = [__assign({}, output)];
|
|
1075
1075
|
_g = {};
|
|
1076
|
-
return [4
|
|
1076
|
+
return [4, parseBody(output.body, context)];
|
|
1077
1077
|
case 1:
|
|
1078
1078
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1079
1079
|
errorCode = "UnknownError";
|
|
1080
1080
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1081
|
_b = errorCode;
|
|
1082
1082
|
switch (_b) {
|
|
1083
|
-
case "ConflictException": return [3
|
|
1084
|
-
case "com.amazonaws.fis#ConflictException": return [3
|
|
1085
|
-
case "ResourceNotFoundException": return [3
|
|
1086
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
1087
|
-
case "ServiceQuotaExceededException": return [3
|
|
1088
|
-
case "com.amazonaws.fis#ServiceQuotaExceededException": return [3
|
|
1089
|
-
case "ValidationException": return [3
|
|
1090
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
1083
|
+
case "ConflictException": return [3, 2];
|
|
1084
|
+
case "com.amazonaws.fis#ConflictException": return [3, 2];
|
|
1085
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1086
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 4];
|
|
1087
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
1088
|
+
case "com.amazonaws.fis#ServiceQuotaExceededException": return [3, 6];
|
|
1089
|
+
case "ValidationException": return [3, 8];
|
|
1090
|
+
case "com.amazonaws.fis#ValidationException": return [3, 8];
|
|
1091
1091
|
}
|
|
1092
|
-
return [3
|
|
1092
|
+
return [3, 10];
|
|
1093
1093
|
case 2:
|
|
1094
1094
|
_c = [{}];
|
|
1095
|
-
return [4
|
|
1095
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1096
1096
|
case 3:
|
|
1097
1097
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
-
return [3
|
|
1098
|
+
return [3, 11];
|
|
1099
1099
|
case 4:
|
|
1100
1100
|
_d = [{}];
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1102
1102
|
case 5:
|
|
1103
1103
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3
|
|
1104
|
+
return [3, 11];
|
|
1105
1105
|
case 6:
|
|
1106
1106
|
_e = [{}];
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1108
1108
|
case 7:
|
|
1109
1109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3
|
|
1110
|
+
return [3, 11];
|
|
1111
1111
|
case 8:
|
|
1112
1112
|
_f = [{}];
|
|
1113
|
-
return [4
|
|
1113
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1114
1114
|
case 9:
|
|
1115
1115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3
|
|
1116
|
+
return [3, 11];
|
|
1117
1117
|
case 10:
|
|
1118
1118
|
parsedBody = parsedOutput.body;
|
|
1119
1119
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1123,7 +1123,7 @@ var deserializeAws_restJson1StartExperimentCommandError = function (output, cont
|
|
|
1123
1123
|
message = response.message || response.Message || errorCode;
|
|
1124
1124
|
response.message = message;
|
|
1125
1125
|
delete response.Message;
|
|
1126
|
-
return [2
|
|
1126
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
1129
|
}); };
|
|
@@ -1133,7 +1133,7 @@ export var deserializeAws_restJson1StopExperimentCommand = function (output, con
|
|
|
1133
1133
|
switch (_c.label) {
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1136
|
-
return [2
|
|
1136
|
+
return [2, deserializeAws_restJson1StopExperimentCommandError(output, context)];
|
|
1137
1137
|
}
|
|
1138
1138
|
contents = {
|
|
1139
1139
|
$metadata: deserializeMetadata(output),
|
|
@@ -1141,13 +1141,13 @@ export var deserializeAws_restJson1StopExperimentCommand = function (output, con
|
|
|
1141
1141
|
};
|
|
1142
1142
|
_a = __expectNonNull;
|
|
1143
1143
|
_b = __expectObject;
|
|
1144
|
-
return [4
|
|
1144
|
+
return [4, parseBody(output.body, context)];
|
|
1145
1145
|
case 1:
|
|
1146
1146
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1147
1147
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
1148
1148
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
1149
1149
|
}
|
|
1150
|
-
return [2
|
|
1150
|
+
return [2, Promise.resolve(contents)];
|
|
1151
1151
|
}
|
|
1152
1152
|
});
|
|
1153
1153
|
}); };
|
|
@@ -1159,31 +1159,31 @@ var deserializeAws_restJson1StopExperimentCommandError = function (output, conte
|
|
|
1159
1159
|
case 0:
|
|
1160
1160
|
_a = [__assign({}, output)];
|
|
1161
1161
|
_e = {};
|
|
1162
|
-
return [4
|
|
1162
|
+
return [4, parseBody(output.body, context)];
|
|
1163
1163
|
case 1:
|
|
1164
1164
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1165
1165
|
errorCode = "UnknownError";
|
|
1166
1166
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
1167
|
_b = errorCode;
|
|
1168
1168
|
switch (_b) {
|
|
1169
|
-
case "ResourceNotFoundException": return [3
|
|
1170
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
1171
|
-
case "ValidationException": return [3
|
|
1172
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
1169
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1170
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 2];
|
|
1171
|
+
case "ValidationException": return [3, 4];
|
|
1172
|
+
case "com.amazonaws.fis#ValidationException": return [3, 4];
|
|
1173
1173
|
}
|
|
1174
|
-
return [3
|
|
1174
|
+
return [3, 6];
|
|
1175
1175
|
case 2:
|
|
1176
1176
|
_c = [{}];
|
|
1177
|
-
return [4
|
|
1177
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1178
1178
|
case 3:
|
|
1179
1179
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1180
|
-
return [3
|
|
1180
|
+
return [3, 7];
|
|
1181
1181
|
case 4:
|
|
1182
1182
|
_d = [{}];
|
|
1183
|
-
return [4
|
|
1183
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1184
1184
|
case 5:
|
|
1185
1185
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1186
|
-
return [3
|
|
1186
|
+
return [3, 7];
|
|
1187
1187
|
case 6:
|
|
1188
1188
|
parsedBody = parsedOutput.body;
|
|
1189
1189
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1193,7 +1193,7 @@ var deserializeAws_restJson1StopExperimentCommandError = function (output, conte
|
|
|
1193
1193
|
message = response.message || response.Message || errorCode;
|
|
1194
1194
|
response.message = message;
|
|
1195
1195
|
delete response.Message;
|
|
1196
|
-
return [2
|
|
1196
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1197
1197
|
}
|
|
1198
1198
|
});
|
|
1199
1199
|
}); };
|
|
@@ -1203,15 +1203,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1203
1203
|
switch (_a.label) {
|
|
1204
1204
|
case 0:
|
|
1205
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
|
-
return [2
|
|
1206
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1207
1207
|
}
|
|
1208
1208
|
contents = {
|
|
1209
1209
|
$metadata: deserializeMetadata(output),
|
|
1210
1210
|
};
|
|
1211
|
-
return [4
|
|
1211
|
+
return [4, collectBody(output.body, context)];
|
|
1212
1212
|
case 1:
|
|
1213
1213
|
_a.sent();
|
|
1214
|
-
return [2
|
|
1214
|
+
return [2, Promise.resolve(contents)];
|
|
1215
1215
|
}
|
|
1216
1216
|
});
|
|
1217
1217
|
}); };
|
|
@@ -1223,7 +1223,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1223
1223
|
case 0:
|
|
1224
1224
|
_a = [__assign({}, output)];
|
|
1225
1225
|
_b = {};
|
|
1226
|
-
return [4
|
|
1226
|
+
return [4, parseBody(output.body, context)];
|
|
1227
1227
|
case 1:
|
|
1228
1228
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1229
1229
|
errorCode = "UnknownError";
|
|
@@ -1237,7 +1237,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1237
1237
|
message = response.message || response.Message || errorCode;
|
|
1238
1238
|
response.message = message;
|
|
1239
1239
|
delete response.Message;
|
|
1240
|
-
return [2
|
|
1240
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
1243
|
}); };
|
|
@@ -1247,15 +1247,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1247
1247
|
switch (_a.label) {
|
|
1248
1248
|
case 0:
|
|
1249
1249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1250
|
-
return [2
|
|
1250
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1251
1251
|
}
|
|
1252
1252
|
contents = {
|
|
1253
1253
|
$metadata: deserializeMetadata(output),
|
|
1254
1254
|
};
|
|
1255
|
-
return [4
|
|
1255
|
+
return [4, collectBody(output.body, context)];
|
|
1256
1256
|
case 1:
|
|
1257
1257
|
_a.sent();
|
|
1258
|
-
return [2
|
|
1258
|
+
return [2, Promise.resolve(contents)];
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
1261
|
}); };
|
|
@@ -1267,7 +1267,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1267
1267
|
case 0:
|
|
1268
1268
|
_a = [__assign({}, output)];
|
|
1269
1269
|
_b = {};
|
|
1270
|
-
return [4
|
|
1270
|
+
return [4, parseBody(output.body, context)];
|
|
1271
1271
|
case 1:
|
|
1272
1272
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1273
1273
|
errorCode = "UnknownError";
|
|
@@ -1281,7 +1281,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1281
1281
|
message = response.message || response.Message || errorCode;
|
|
1282
1282
|
response.message = message;
|
|
1283
1283
|
delete response.Message;
|
|
1284
|
-
return [2
|
|
1284
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1285
1285
|
}
|
|
1286
1286
|
});
|
|
1287
1287
|
}); };
|
|
@@ -1291,7 +1291,7 @@ export var deserializeAws_restJson1UpdateExperimentTemplateCommand = function (o
|
|
|
1291
1291
|
switch (_c.label) {
|
|
1292
1292
|
case 0:
|
|
1293
1293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
|
-
return [2
|
|
1294
|
+
return [2, deserializeAws_restJson1UpdateExperimentTemplateCommandError(output, context)];
|
|
1295
1295
|
}
|
|
1296
1296
|
contents = {
|
|
1297
1297
|
$metadata: deserializeMetadata(output),
|
|
@@ -1299,13 +1299,13 @@ export var deserializeAws_restJson1UpdateExperimentTemplateCommand = function (o
|
|
|
1299
1299
|
};
|
|
1300
1300
|
_a = __expectNonNull;
|
|
1301
1301
|
_b = __expectObject;
|
|
1302
|
-
return [4
|
|
1302
|
+
return [4, parseBody(output.body, context)];
|
|
1303
1303
|
case 1:
|
|
1304
1304
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1305
1305
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
1306
1306
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
1307
1307
|
}
|
|
1308
|
-
return [2
|
|
1308
|
+
return [2, Promise.resolve(contents)];
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
1311
|
}); };
|
|
@@ -1317,39 +1317,39 @@ var deserializeAws_restJson1UpdateExperimentTemplateCommandError = function (out
|
|
|
1317
1317
|
case 0:
|
|
1318
1318
|
_a = [__assign({}, output)];
|
|
1319
1319
|
_f = {};
|
|
1320
|
-
return [4
|
|
1320
|
+
return [4, parseBody(output.body, context)];
|
|
1321
1321
|
case 1:
|
|
1322
1322
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1323
1323
|
errorCode = "UnknownError";
|
|
1324
1324
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1325
1325
|
_b = errorCode;
|
|
1326
1326
|
switch (_b) {
|
|
1327
|
-
case "ResourceNotFoundException": return [3
|
|
1328
|
-
case "com.amazonaws.fis#ResourceNotFoundException": return [3
|
|
1329
|
-
case "ServiceQuotaExceededException": return [3
|
|
1330
|
-
case "com.amazonaws.fis#ServiceQuotaExceededException": return [3
|
|
1331
|
-
case "ValidationException": return [3
|
|
1332
|
-
case "com.amazonaws.fis#ValidationException": return [3
|
|
1327
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
1328
|
+
case "com.amazonaws.fis#ResourceNotFoundException": return [3, 2];
|
|
1329
|
+
case "ServiceQuotaExceededException": return [3, 4];
|
|
1330
|
+
case "com.amazonaws.fis#ServiceQuotaExceededException": return [3, 4];
|
|
1331
|
+
case "ValidationException": return [3, 6];
|
|
1332
|
+
case "com.amazonaws.fis#ValidationException": return [3, 6];
|
|
1333
1333
|
}
|
|
1334
|
-
return [3
|
|
1334
|
+
return [3, 8];
|
|
1335
1335
|
case 2:
|
|
1336
1336
|
_c = [{}];
|
|
1337
|
-
return [4
|
|
1337
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1338
1338
|
case 3:
|
|
1339
1339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3
|
|
1340
|
+
return [3, 9];
|
|
1341
1341
|
case 4:
|
|
1342
1342
|
_d = [{}];
|
|
1343
|
-
return [4
|
|
1343
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1344
1344
|
case 5:
|
|
1345
1345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1346
|
-
return [3
|
|
1346
|
+
return [3, 9];
|
|
1347
1347
|
case 6:
|
|
1348
1348
|
_e = [{}];
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1350
1350
|
case 7:
|
|
1351
1351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1352
|
-
return [3
|
|
1352
|
+
return [3, 9];
|
|
1353
1353
|
case 8:
|
|
1354
1354
|
parsedBody = parsedOutput.body;
|
|
1355
1355
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1359,7 +1359,7 @@ var deserializeAws_restJson1UpdateExperimentTemplateCommandError = function (out
|
|
|
1359
1359
|
message = response.message || response.Message || errorCode;
|
|
1360
1360
|
response.message = message;
|
|
1361
1361
|
delete response.Message;
|
|
1362
|
-
return [2
|
|
1362
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1363
1363
|
}
|
|
1364
1364
|
});
|
|
1365
1365
|
}); };
|
|
@@ -1376,7 +1376,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1376
1376
|
if (data.message !== undefined && data.message !== null) {
|
|
1377
1377
|
contents.message = __expectString(data.message);
|
|
1378
1378
|
}
|
|
1379
|
-
return [2
|
|
1379
|
+
return [2, contents];
|
|
1380
1380
|
});
|
|
1381
1381
|
}); };
|
|
1382
1382
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1392,7 +1392,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1392
1392
|
if (data.message !== undefined && data.message !== null) {
|
|
1393
1393
|
contents.message = __expectString(data.message);
|
|
1394
1394
|
}
|
|
1395
|
-
return [2
|
|
1395
|
+
return [2, contents];
|
|
1396
1396
|
});
|
|
1397
1397
|
}); };
|
|
1398
1398
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1408,7 +1408,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1408
1408
|
if (data.message !== undefined && data.message !== null) {
|
|
1409
1409
|
contents.message = __expectString(data.message);
|
|
1410
1410
|
}
|
|
1411
|
-
return [2
|
|
1411
|
+
return [2, contents];
|
|
1412
1412
|
});
|
|
1413
1413
|
}); };
|
|
1414
1414
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1424,7 +1424,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1424
1424
|
if (data.message !== undefined && data.message !== null) {
|
|
1425
1425
|
contents.message = __expectString(data.message);
|
|
1426
1426
|
}
|
|
1427
|
-
return [2
|
|
1427
|
+
return [2, contents];
|
|
1428
1428
|
});
|
|
1429
1429
|
}); };
|
|
1430
1430
|
var serializeAws_restJson1CreateExperimentTemplateActionInput = function (input, context) {
|
|
@@ -2079,7 +2079,6 @@ var deserializeMetadata = function (output) {
|
|
|
2079
2079
|
cfId: output.headers["x-amz-cf-id"],
|
|
2080
2080
|
});
|
|
2081
2081
|
};
|
|
2082
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2083
2082
|
var collectBody = function (streamBody, context) {
|
|
2084
2083
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2085
2084
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2087,7 +2086,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2087
2086
|
}
|
|
2088
2087
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2089
2088
|
};
|
|
2090
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2091
2089
|
var collectBodyString = function (streamBody, context) {
|
|
2092
2090
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2093
2091
|
};
|
|
@@ -2106,9 +2104,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2106
2104
|
return {};
|
|
2107
2105
|
});
|
|
2108
2106
|
};
|
|
2109
|
-
/**
|
|
2110
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2111
|
-
*/
|
|
2112
2107
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2113
2108
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2114
2109
|
var sanitizeErrorCode = function (rawValue) {
|