@aws-sdk/client-data-pipeline 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/DataPipeline.js +1 -2
- package/{dist/cjs → dist-cjs}/DataPipelineClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/ActivatePipelineCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/AddTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreatePipelineCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeactivatePipelineCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeletePipelineCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeObjectsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribePipelinesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/EvaluateExpressionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetPipelineDefinitionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListPipelinesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PollForTaskCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutPipelineDefinitionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/QueryObjectsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RemoveTagsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ReportTaskProgressCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ReportTaskRunnerHeartbeatCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/SetStatusCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/SetTaskStatusCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ValidatePipelineDefinitionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeObjectsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListPipelinesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/QueryObjectsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/DataPipeline.js +2 -22
- package/dist-es/DataPipelineClient.js +37 -0
- package/dist-es/commands/ActivatePipelineCommand.js +39 -0
- package/{dist/es → dist-es}/commands/AddTagsCommand.js +4 -30
- package/dist-es/commands/CreatePipelineCommand.js +39 -0
- package/{dist/es → dist-es}/commands/DeactivatePipelineCommand.js +4 -33
- package/dist-es/commands/DeletePipelineCommand.js +39 -0
- package/dist-es/commands/DescribeObjectsCommand.js +39 -0
- package/dist-es/commands/DescribePipelinesCommand.js +39 -0
- package/dist-es/commands/EvaluateExpressionCommand.js +39 -0
- package/dist-es/commands/GetPipelineDefinitionCommand.js +39 -0
- package/dist-es/commands/ListPipelinesCommand.js +39 -0
- package/dist-es/commands/PollForTaskCommand.js +39 -0
- package/dist-es/commands/PutPipelineDefinitionCommand.js +39 -0
- package/dist-es/commands/QueryObjectsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/RemoveTagsCommand.js +4 -30
- package/dist-es/commands/ReportTaskProgressCommand.js +39 -0
- package/dist-es/commands/ReportTaskRunnerHeartbeatCommand.js +39 -0
- package/dist-es/commands/SetStatusCommand.js +39 -0
- package/dist-es/commands/SetTaskStatusCommand.js +39 -0
- package/dist-es/commands/ValidatePipelineDefinitionCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -169
- package/{dist/es → dist-es}/pagination/DescribeObjectsPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListPipelinesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/QueryObjectsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +424 -430
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/DataPipeline.d.ts +2 -2
- package/{dist/types → dist-types}/DataPipelineClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/ActivatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/AddTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeactivatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeObjectsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribePipelinesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/EvaluateExpressionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPipelineDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPipelinesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PollForTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutPipelineDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/QueryObjectsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ReportTaskProgressCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ReportTaskRunnerHeartbeatCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetStatusCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetTaskStatusCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ValidatePipelineDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → 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/DescribeObjectsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPipelinesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/QueryObjectsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- 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 → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/DataPipeline.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/DataPipelineClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/ActivatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/AddTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeactivatePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeletePipelineCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeObjectsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribePipelinesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/EvaluateExpressionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetPipelineDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListPipelinesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PollForTaskCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutPipelineDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/QueryObjectsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemoveTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ReportTaskProgressCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ReportTaskRunnerHeartbeatCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SetStatusCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/SetTaskStatusCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ValidatePipelineDefinitionCommand.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/DescribeObjectsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPipelinesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/QueryObjectsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- 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 +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/DataPipeline.ts +0 -1578
- package/DataPipelineClient.ts +0 -320
- package/commands/ActivatePipelineCommand.ts +0 -124
- package/commands/AddTagsCommand.ts +0 -91
- package/commands/CreatePipelineCommand.ts +0 -124
- package/commands/DeactivatePipelineCommand.ts +0 -97
- package/commands/DeletePipelineCommand.ts +0 -125
- package/commands/DescribeObjectsCommand.ts +0 -152
- package/commands/DescribePipelinesCommand.ts +0 -155
- package/commands/EvaluateExpressionCommand.ts +0 -124
- package/commands/GetPipelineDefinitionCommand.ts +0 -158
- package/commands/ListPipelinesCommand.ts +0 -125
- package/commands/PollForTaskCommand.ts +0 -172
- package/commands/PutPipelineDefinitionCommand.ts +0 -253
- package/commands/QueryObjectsCommand.ts +0 -132
- package/commands/RemoveTagsCommand.ts +0 -94
- package/commands/ReportTaskProgressCommand.ts +0 -131
- package/commands/ReportTaskRunnerHeartbeatCommand.ts +0 -129
- package/commands/SetStatusCommand.ts +0 -123
- package/commands/SetTaskStatusCommand.ts +0 -124
- package/commands/ValidatePipelineDefinitionCommand.ts +0 -248
- package/dist/cjs/DataPipeline.js.map +0 -1
- package/dist/cjs/DataPipelineClient.js.map +0 -1
- package/dist/cjs/commands/ActivatePipelineCommand.js.map +0 -1
- package/dist/cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist/cjs/commands/CreatePipelineCommand.js.map +0 -1
- package/dist/cjs/commands/DeactivatePipelineCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePipelineCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeObjectsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribePipelinesCommand.js.map +0 -1
- package/dist/cjs/commands/EvaluateExpressionCommand.js.map +0 -1
- package/dist/cjs/commands/GetPipelineDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/ListPipelinesCommand.js.map +0 -1
- package/dist/cjs/commands/PollForTaskCommand.js.map +0 -1
- package/dist/cjs/commands/PutPipelineDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/QueryObjectsCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveTagsCommand.js.map +0 -1
- package/dist/cjs/commands/ReportTaskProgressCommand.js.map +0 -1
- package/dist/cjs/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
- package/dist/cjs/commands/SetStatusCommand.js.map +0 -1
- package/dist/cjs/commands/SetTaskStatusCommand.js.map +0 -1
- package/dist/cjs/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeObjectsPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListPipelinesPaginator.js.map +0 -1
- package/dist/cjs/pagination/QueryObjectsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.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/DataPipeline.js.map +0 -1
- package/dist/es/DataPipelineClient.js +0 -62
- package/dist/es/DataPipelineClient.js.map +0 -1
- package/dist/es/commands/ActivatePipelineCommand.js +0 -95
- package/dist/es/commands/ActivatePipelineCommand.js.map +0 -1
- package/dist/es/commands/AddTagsCommand.js.map +0 -1
- package/dist/es/commands/CreatePipelineCommand.js +0 -95
- package/dist/es/commands/CreatePipelineCommand.js.map +0 -1
- package/dist/es/commands/DeactivatePipelineCommand.js.map +0 -1
- package/dist/es/commands/DeletePipelineCommand.js +0 -96
- package/dist/es/commands/DeletePipelineCommand.js.map +0 -1
- package/dist/es/commands/DescribeObjectsCommand.js +0 -123
- package/dist/es/commands/DescribeObjectsCommand.js.map +0 -1
- package/dist/es/commands/DescribePipelinesCommand.js +0 -126
- package/dist/es/commands/DescribePipelinesCommand.js.map +0 -1
- package/dist/es/commands/EvaluateExpressionCommand.js +0 -95
- package/dist/es/commands/EvaluateExpressionCommand.js.map +0 -1
- package/dist/es/commands/GetPipelineDefinitionCommand.js +0 -129
- package/dist/es/commands/GetPipelineDefinitionCommand.js.map +0 -1
- package/dist/es/commands/ListPipelinesCommand.js +0 -96
- package/dist/es/commands/ListPipelinesCommand.js.map +0 -1
- package/dist/es/commands/PollForTaskCommand.js +0 -143
- package/dist/es/commands/PollForTaskCommand.js.map +0 -1
- package/dist/es/commands/PutPipelineDefinitionCommand.js +0 -224
- package/dist/es/commands/PutPipelineDefinitionCommand.js.map +0 -1
- package/dist/es/commands/QueryObjectsCommand.js +0 -103
- package/dist/es/commands/QueryObjectsCommand.js.map +0 -1
- package/dist/es/commands/RemoveTagsCommand.js.map +0 -1
- package/dist/es/commands/ReportTaskProgressCommand.js +0 -102
- package/dist/es/commands/ReportTaskProgressCommand.js.map +0 -1
- package/dist/es/commands/ReportTaskRunnerHeartbeatCommand.js +0 -97
- package/dist/es/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
- package/dist/es/commands/SetStatusCommand.js +0 -97
- package/dist/es/commands/SetStatusCommand.js.map +0 -1
- package/dist/es/commands/SetTaskStatusCommand.js +0 -95
- package/dist/es/commands/SetTaskStatusCommand.js.map +0 -1
- package/dist/es/commands/ValidatePipelineDefinitionCommand.js +0 -216
- package/dist/es/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -27
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- 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 -91
- package/dist/es/pagination/DescribeObjectsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListPipelinesPaginator.js.map +0 -1
- package/dist/es/pagination/QueryObjectsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.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
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1480
- package/pagination/DescribeObjectsPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListPipelinesPaginator.ts +0 -57
- package/pagination/QueryObjectsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -2766
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1ActivatePipelineCommand = function (input, contex
|
|
|
9
9
|
"x-amz-target": "DataPipeline.ActivatePipeline",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1ActivatePipelineInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1AddTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1AddTagsCommand = function (input, context) { retu
|
|
|
20
20
|
"x-amz-target": "DataPipeline.AddTags",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1AddTagsInput(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreatePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreatePipelineCommand = function (input, context)
|
|
|
31
31
|
"x-amz-target": "DataPipeline.CreatePipeline",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreatePipelineInput(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DeactivatePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DeactivatePipelineCommand = function (input, cont
|
|
|
42
42
|
"x-amz-target": "DataPipeline.DeactivatePipeline",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DeactivatePipelineInput(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeletePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeletePipelineCommand = function (input, context)
|
|
|
53
53
|
"x-amz-target": "DataPipeline.DeletePipeline",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeletePipelineInput(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DescribeObjectsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DescribeObjectsCommand = function (input, context
|
|
|
64
64
|
"x-amz-target": "DataPipeline.DescribeObjects",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DescribeObjectsInput(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribePipelinesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribePipelinesCommand = function (input, conte
|
|
|
75
75
|
"x-amz-target": "DataPipeline.DescribePipelines",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribePipelinesInput(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1EvaluateExpressionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1EvaluateExpressionCommand = function (input, cont
|
|
|
86
86
|
"x-amz-target": "DataPipeline.EvaluateExpression",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1EvaluateExpressionInput(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1GetPipelineDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1GetPipelineDefinitionCommand = function (input, c
|
|
|
97
97
|
"x-amz-target": "DataPipeline.GetPipelineDefinition",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1GetPipelineDefinitionInput(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1ListPipelinesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1ListPipelinesCommand = function (input, context)
|
|
|
108
108
|
"x-amz-target": "DataPipeline.ListPipelines",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1ListPipelinesInput(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1PollForTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1PollForTaskCommand = function (input, context) {
|
|
|
119
119
|
"x-amz-target": "DataPipeline.PollForTask",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1PollForTaskInput(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1PutPipelineDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1PutPipelineDefinitionCommand = function (input, c
|
|
|
130
130
|
"x-amz-target": "DataPipeline.PutPipelineDefinition",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1PutPipelineDefinitionInput(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1QueryObjectsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1QueryObjectsCommand = function (input, context) {
|
|
|
141
141
|
"x-amz-target": "DataPipeline.QueryObjects",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1QueryObjectsInput(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1RemoveTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1RemoveTagsCommand = function (input, context) { r
|
|
|
152
152
|
"x-amz-target": "DataPipeline.RemoveTags",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1RemoveTagsInput(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1ReportTaskProgressCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1ReportTaskProgressCommand = function (input, cont
|
|
|
163
163
|
"x-amz-target": "DataPipeline.ReportTaskProgress",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1ReportTaskProgressInput(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1ReportTaskRunnerHeartbeatCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1ReportTaskRunnerHeartbeatCommand = function (inpu
|
|
|
174
174
|
"x-amz-target": "DataPipeline.ReportTaskRunnerHeartbeat",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1ReportTaskRunnerHeartbeatInput(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1SetStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1SetStatusCommand = function (input, context) { re
|
|
|
185
185
|
"x-amz-target": "DataPipeline.SetStatus",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1SetStatusInput(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1SetTaskStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1SetTaskStatusCommand = function (input, context)
|
|
|
196
196
|
"x-amz-target": "DataPipeline.SetTaskStatus",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1SetTaskStatusInput(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1ValidatePipelineDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1ValidatePipelineDefinitionCommand = function (inp
|
|
|
207
207
|
"x-amz-target": "DataPipeline.ValidatePipelineDefinition",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1ValidatePipelineDefinitionInput(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var deserializeAws_json1_1ActivatePipelineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -216,15 +216,15 @@ export var deserializeAws_json1_1ActivatePipelineCommand = function (output, con
|
|
|
216
216
|
switch (_a.label) {
|
|
217
217
|
case 0:
|
|
218
218
|
if (output.statusCode >= 300) {
|
|
219
|
-
return [2
|
|
219
|
+
return [2, deserializeAws_json1_1ActivatePipelineCommandError(output, context)];
|
|
220
220
|
}
|
|
221
|
-
return [4
|
|
221
|
+
return [4, parseBody(output.body, context)];
|
|
222
222
|
case 1:
|
|
223
223
|
data = _a.sent();
|
|
224
224
|
contents = {};
|
|
225
225
|
contents = deserializeAws_json1_1ActivatePipelineOutput(data, context);
|
|
226
226
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
227
|
-
return [2
|
|
227
|
+
return [2, Promise.resolve(response)];
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}); };
|
|
@@ -236,47 +236,47 @@ var deserializeAws_json1_1ActivatePipelineCommandError = function (output, conte
|
|
|
236
236
|
case 0:
|
|
237
237
|
_a = [__assign({}, output)];
|
|
238
238
|
_g = {};
|
|
239
|
-
return [4
|
|
239
|
+
return [4, parseBody(output.body, context)];
|
|
240
240
|
case 1:
|
|
241
241
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
242
242
|
errorCode = "UnknownError";
|
|
243
243
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
244
244
|
_b = errorCode;
|
|
245
245
|
switch (_b) {
|
|
246
|
-
case "InternalServiceError": return [3
|
|
247
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
248
|
-
case "InvalidRequestException": return [3
|
|
249
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
250
|
-
case "PipelineDeletedException": return [3
|
|
251
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
252
|
-
case "PipelineNotFoundException": return [3
|
|
253
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
246
|
+
case "InternalServiceError": return [3, 2];
|
|
247
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
248
|
+
case "InvalidRequestException": return [3, 4];
|
|
249
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
250
|
+
case "PipelineDeletedException": return [3, 6];
|
|
251
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
252
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
253
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
254
254
|
}
|
|
255
|
-
return [3
|
|
255
|
+
return [3, 10];
|
|
256
256
|
case 2:
|
|
257
257
|
_c = [{}];
|
|
258
|
-
return [4
|
|
258
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
259
259
|
case 3:
|
|
260
260
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
261
|
-
return [3
|
|
261
|
+
return [3, 11];
|
|
262
262
|
case 4:
|
|
263
263
|
_d = [{}];
|
|
264
|
-
return [4
|
|
264
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
265
265
|
case 5:
|
|
266
266
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
267
|
-
return [3
|
|
267
|
+
return [3, 11];
|
|
268
268
|
case 6:
|
|
269
269
|
_e = [{}];
|
|
270
|
-
return [4
|
|
270
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
271
271
|
case 7:
|
|
272
272
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
273
|
-
return [3
|
|
273
|
+
return [3, 11];
|
|
274
274
|
case 8:
|
|
275
275
|
_f = [{}];
|
|
276
|
-
return [4
|
|
276
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
277
277
|
case 9:
|
|
278
278
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
279
|
-
return [3
|
|
279
|
+
return [3, 11];
|
|
280
280
|
case 10:
|
|
281
281
|
parsedBody = parsedOutput.body;
|
|
282
282
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -286,7 +286,7 @@ var deserializeAws_json1_1ActivatePipelineCommandError = function (output, conte
|
|
|
286
286
|
message = response.message || response.Message || errorCode;
|
|
287
287
|
response.message = message;
|
|
288
288
|
delete response.Message;
|
|
289
|
-
return [2
|
|
289
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
}); };
|
|
@@ -296,15 +296,15 @@ export var deserializeAws_json1_1AddTagsCommand = function (output, context) { r
|
|
|
296
296
|
switch (_a.label) {
|
|
297
297
|
case 0:
|
|
298
298
|
if (output.statusCode >= 300) {
|
|
299
|
-
return [2
|
|
299
|
+
return [2, deserializeAws_json1_1AddTagsCommandError(output, context)];
|
|
300
300
|
}
|
|
301
|
-
return [4
|
|
301
|
+
return [4, parseBody(output.body, context)];
|
|
302
302
|
case 1:
|
|
303
303
|
data = _a.sent();
|
|
304
304
|
contents = {};
|
|
305
305
|
contents = deserializeAws_json1_1AddTagsOutput(data, context);
|
|
306
306
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
307
|
-
return [2
|
|
307
|
+
return [2, Promise.resolve(response)];
|
|
308
308
|
}
|
|
309
309
|
});
|
|
310
310
|
}); };
|
|
@@ -316,47 +316,47 @@ var deserializeAws_json1_1AddTagsCommandError = function (output, context) { ret
|
|
|
316
316
|
case 0:
|
|
317
317
|
_a = [__assign({}, output)];
|
|
318
318
|
_g = {};
|
|
319
|
-
return [4
|
|
319
|
+
return [4, parseBody(output.body, context)];
|
|
320
320
|
case 1:
|
|
321
321
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
322
322
|
errorCode = "UnknownError";
|
|
323
323
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
324
|
_b = errorCode;
|
|
325
325
|
switch (_b) {
|
|
326
|
-
case "InternalServiceError": return [3
|
|
327
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
328
|
-
case "InvalidRequestException": return [3
|
|
329
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
330
|
-
case "PipelineDeletedException": return [3
|
|
331
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
332
|
-
case "PipelineNotFoundException": return [3
|
|
333
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
326
|
+
case "InternalServiceError": return [3, 2];
|
|
327
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
328
|
+
case "InvalidRequestException": return [3, 4];
|
|
329
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
330
|
+
case "PipelineDeletedException": return [3, 6];
|
|
331
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
332
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
333
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
334
334
|
}
|
|
335
|
-
return [3
|
|
335
|
+
return [3, 10];
|
|
336
336
|
case 2:
|
|
337
337
|
_c = [{}];
|
|
338
|
-
return [4
|
|
338
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
339
339
|
case 3:
|
|
340
340
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
341
|
-
return [3
|
|
341
|
+
return [3, 11];
|
|
342
342
|
case 4:
|
|
343
343
|
_d = [{}];
|
|
344
|
-
return [4
|
|
344
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
345
345
|
case 5:
|
|
346
346
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
347
|
-
return [3
|
|
347
|
+
return [3, 11];
|
|
348
348
|
case 6:
|
|
349
349
|
_e = [{}];
|
|
350
|
-
return [4
|
|
350
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
351
351
|
case 7:
|
|
352
352
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
353
|
-
return [3
|
|
353
|
+
return [3, 11];
|
|
354
354
|
case 8:
|
|
355
355
|
_f = [{}];
|
|
356
|
-
return [4
|
|
356
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
357
357
|
case 9:
|
|
358
358
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
359
|
-
return [3
|
|
359
|
+
return [3, 11];
|
|
360
360
|
case 10:
|
|
361
361
|
parsedBody = parsedOutput.body;
|
|
362
362
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -366,7 +366,7 @@ var deserializeAws_json1_1AddTagsCommandError = function (output, context) { ret
|
|
|
366
366
|
message = response.message || response.Message || errorCode;
|
|
367
367
|
response.message = message;
|
|
368
368
|
delete response.Message;
|
|
369
|
-
return [2
|
|
369
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
}); };
|
|
@@ -376,15 +376,15 @@ export var deserializeAws_json1_1CreatePipelineCommand = function (output, conte
|
|
|
376
376
|
switch (_a.label) {
|
|
377
377
|
case 0:
|
|
378
378
|
if (output.statusCode >= 300) {
|
|
379
|
-
return [2
|
|
379
|
+
return [2, deserializeAws_json1_1CreatePipelineCommandError(output, context)];
|
|
380
380
|
}
|
|
381
|
-
return [4
|
|
381
|
+
return [4, parseBody(output.body, context)];
|
|
382
382
|
case 1:
|
|
383
383
|
data = _a.sent();
|
|
384
384
|
contents = {};
|
|
385
385
|
contents = deserializeAws_json1_1CreatePipelineOutput(data, context);
|
|
386
386
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
387
|
-
return [2
|
|
387
|
+
return [2, Promise.resolve(response)];
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
390
|
}); };
|
|
@@ -396,31 +396,31 @@ var deserializeAws_json1_1CreatePipelineCommandError = function (output, context
|
|
|
396
396
|
case 0:
|
|
397
397
|
_a = [__assign({}, output)];
|
|
398
398
|
_e = {};
|
|
399
|
-
return [4
|
|
399
|
+
return [4, parseBody(output.body, context)];
|
|
400
400
|
case 1:
|
|
401
401
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
402
402
|
errorCode = "UnknownError";
|
|
403
403
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
404
404
|
_b = errorCode;
|
|
405
405
|
switch (_b) {
|
|
406
|
-
case "InternalServiceError": return [3
|
|
407
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
408
|
-
case "InvalidRequestException": return [3
|
|
409
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
406
|
+
case "InternalServiceError": return [3, 2];
|
|
407
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
408
|
+
case "InvalidRequestException": return [3, 4];
|
|
409
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
410
410
|
}
|
|
411
|
-
return [3
|
|
411
|
+
return [3, 6];
|
|
412
412
|
case 2:
|
|
413
413
|
_c = [{}];
|
|
414
|
-
return [4
|
|
414
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
415
415
|
case 3:
|
|
416
416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
417
|
-
return [3
|
|
417
|
+
return [3, 7];
|
|
418
418
|
case 4:
|
|
419
419
|
_d = [{}];
|
|
420
|
-
return [4
|
|
420
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
421
421
|
case 5:
|
|
422
422
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
423
|
-
return [3
|
|
423
|
+
return [3, 7];
|
|
424
424
|
case 6:
|
|
425
425
|
parsedBody = parsedOutput.body;
|
|
426
426
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -430,7 +430,7 @@ var deserializeAws_json1_1CreatePipelineCommandError = function (output, context
|
|
|
430
430
|
message = response.message || response.Message || errorCode;
|
|
431
431
|
response.message = message;
|
|
432
432
|
delete response.Message;
|
|
433
|
-
return [2
|
|
433
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
436
|
}); };
|
|
@@ -440,15 +440,15 @@ export var deserializeAws_json1_1DeactivatePipelineCommand = function (output, c
|
|
|
440
440
|
switch (_a.label) {
|
|
441
441
|
case 0:
|
|
442
442
|
if (output.statusCode >= 300) {
|
|
443
|
-
return [2
|
|
443
|
+
return [2, deserializeAws_json1_1DeactivatePipelineCommandError(output, context)];
|
|
444
444
|
}
|
|
445
|
-
return [4
|
|
445
|
+
return [4, parseBody(output.body, context)];
|
|
446
446
|
case 1:
|
|
447
447
|
data = _a.sent();
|
|
448
448
|
contents = {};
|
|
449
449
|
contents = deserializeAws_json1_1DeactivatePipelineOutput(data, context);
|
|
450
450
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
451
|
-
return [2
|
|
451
|
+
return [2, Promise.resolve(response)];
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
}); };
|
|
@@ -460,47 +460,47 @@ var deserializeAws_json1_1DeactivatePipelineCommandError = function (output, con
|
|
|
460
460
|
case 0:
|
|
461
461
|
_a = [__assign({}, output)];
|
|
462
462
|
_g = {};
|
|
463
|
-
return [4
|
|
463
|
+
return [4, parseBody(output.body, context)];
|
|
464
464
|
case 1:
|
|
465
465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
466
466
|
errorCode = "UnknownError";
|
|
467
467
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
468
|
_b = errorCode;
|
|
469
469
|
switch (_b) {
|
|
470
|
-
case "InternalServiceError": return [3
|
|
471
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
472
|
-
case "InvalidRequestException": return [3
|
|
473
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
474
|
-
case "PipelineDeletedException": return [3
|
|
475
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
476
|
-
case "PipelineNotFoundException": return [3
|
|
477
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
470
|
+
case "InternalServiceError": return [3, 2];
|
|
471
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
472
|
+
case "InvalidRequestException": return [3, 4];
|
|
473
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
474
|
+
case "PipelineDeletedException": return [3, 6];
|
|
475
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
476
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
477
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
478
478
|
}
|
|
479
|
-
return [3
|
|
479
|
+
return [3, 10];
|
|
480
480
|
case 2:
|
|
481
481
|
_c = [{}];
|
|
482
|
-
return [4
|
|
482
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
483
483
|
case 3:
|
|
484
484
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
485
|
-
return [3
|
|
485
|
+
return [3, 11];
|
|
486
486
|
case 4:
|
|
487
487
|
_d = [{}];
|
|
488
|
-
return [4
|
|
488
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
489
489
|
case 5:
|
|
490
490
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
491
|
-
return [3
|
|
491
|
+
return [3, 11];
|
|
492
492
|
case 6:
|
|
493
493
|
_e = [{}];
|
|
494
|
-
return [4
|
|
494
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
495
495
|
case 7:
|
|
496
496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
497
|
-
return [3
|
|
497
|
+
return [3, 11];
|
|
498
498
|
case 8:
|
|
499
499
|
_f = [{}];
|
|
500
|
-
return [4
|
|
500
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
501
501
|
case 9:
|
|
502
502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
503
|
-
return [3
|
|
503
|
+
return [3, 11];
|
|
504
504
|
case 10:
|
|
505
505
|
parsedBody = parsedOutput.body;
|
|
506
506
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -510,7 +510,7 @@ var deserializeAws_json1_1DeactivatePipelineCommandError = function (output, con
|
|
|
510
510
|
message = response.message || response.Message || errorCode;
|
|
511
511
|
response.message = message;
|
|
512
512
|
delete response.Message;
|
|
513
|
-
return [2
|
|
513
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
}); };
|
|
@@ -520,15 +520,15 @@ export var deserializeAws_json1_1DeletePipelineCommand = function (output, conte
|
|
|
520
520
|
switch (_a.label) {
|
|
521
521
|
case 0:
|
|
522
522
|
if (output.statusCode >= 300) {
|
|
523
|
-
return [2
|
|
523
|
+
return [2, deserializeAws_json1_1DeletePipelineCommandError(output, context)];
|
|
524
524
|
}
|
|
525
|
-
return [4
|
|
525
|
+
return [4, collectBody(output.body, context)];
|
|
526
526
|
case 1:
|
|
527
527
|
_a.sent();
|
|
528
528
|
response = {
|
|
529
529
|
$metadata: deserializeMetadata(output),
|
|
530
530
|
};
|
|
531
|
-
return [2
|
|
531
|
+
return [2, Promise.resolve(response)];
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
}); };
|
|
@@ -540,39 +540,39 @@ var deserializeAws_json1_1DeletePipelineCommandError = function (output, context
|
|
|
540
540
|
case 0:
|
|
541
541
|
_a = [__assign({}, output)];
|
|
542
542
|
_f = {};
|
|
543
|
-
return [4
|
|
543
|
+
return [4, parseBody(output.body, context)];
|
|
544
544
|
case 1:
|
|
545
545
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
546
546
|
errorCode = "UnknownError";
|
|
547
547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
548
|
_b = errorCode;
|
|
549
549
|
switch (_b) {
|
|
550
|
-
case "InternalServiceError": return [3
|
|
551
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
552
|
-
case "InvalidRequestException": return [3
|
|
553
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
554
|
-
case "PipelineNotFoundException": return [3
|
|
555
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
550
|
+
case "InternalServiceError": return [3, 2];
|
|
551
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
552
|
+
case "InvalidRequestException": return [3, 4];
|
|
553
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
554
|
+
case "PipelineNotFoundException": return [3, 6];
|
|
555
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 6];
|
|
556
556
|
}
|
|
557
|
-
return [3
|
|
557
|
+
return [3, 8];
|
|
558
558
|
case 2:
|
|
559
559
|
_c = [{}];
|
|
560
|
-
return [4
|
|
560
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
561
561
|
case 3:
|
|
562
562
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
563
|
-
return [3
|
|
563
|
+
return [3, 9];
|
|
564
564
|
case 4:
|
|
565
565
|
_d = [{}];
|
|
566
|
-
return [4
|
|
566
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
567
567
|
case 5:
|
|
568
568
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
569
|
-
return [3
|
|
569
|
+
return [3, 9];
|
|
570
570
|
case 6:
|
|
571
571
|
_e = [{}];
|
|
572
|
-
return [4
|
|
572
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
573
573
|
case 7:
|
|
574
574
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
575
|
-
return [3
|
|
575
|
+
return [3, 9];
|
|
576
576
|
case 8:
|
|
577
577
|
parsedBody = parsedOutput.body;
|
|
578
578
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -582,7 +582,7 @@ var deserializeAws_json1_1DeletePipelineCommandError = function (output, context
|
|
|
582
582
|
message = response.message || response.Message || errorCode;
|
|
583
583
|
response.message = message;
|
|
584
584
|
delete response.Message;
|
|
585
|
-
return [2
|
|
585
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
586
586
|
}
|
|
587
587
|
});
|
|
588
588
|
}); };
|
|
@@ -592,15 +592,15 @@ export var deserializeAws_json1_1DescribeObjectsCommand = function (output, cont
|
|
|
592
592
|
switch (_a.label) {
|
|
593
593
|
case 0:
|
|
594
594
|
if (output.statusCode >= 300) {
|
|
595
|
-
return [2
|
|
595
|
+
return [2, deserializeAws_json1_1DescribeObjectsCommandError(output, context)];
|
|
596
596
|
}
|
|
597
|
-
return [4
|
|
597
|
+
return [4, parseBody(output.body, context)];
|
|
598
598
|
case 1:
|
|
599
599
|
data = _a.sent();
|
|
600
600
|
contents = {};
|
|
601
601
|
contents = deserializeAws_json1_1DescribeObjectsOutput(data, context);
|
|
602
602
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
603
|
-
return [2
|
|
603
|
+
return [2, Promise.resolve(response)];
|
|
604
604
|
}
|
|
605
605
|
});
|
|
606
606
|
}); };
|
|
@@ -612,47 +612,47 @@ var deserializeAws_json1_1DescribeObjectsCommandError = function (output, contex
|
|
|
612
612
|
case 0:
|
|
613
613
|
_a = [__assign({}, output)];
|
|
614
614
|
_g = {};
|
|
615
|
-
return [4
|
|
615
|
+
return [4, parseBody(output.body, context)];
|
|
616
616
|
case 1:
|
|
617
617
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
618
618
|
errorCode = "UnknownError";
|
|
619
619
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
620
|
_b = errorCode;
|
|
621
621
|
switch (_b) {
|
|
622
|
-
case "InternalServiceError": return [3
|
|
623
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
624
|
-
case "InvalidRequestException": return [3
|
|
625
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
626
|
-
case "PipelineDeletedException": return [3
|
|
627
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
628
|
-
case "PipelineNotFoundException": return [3
|
|
629
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
622
|
+
case "InternalServiceError": return [3, 2];
|
|
623
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
624
|
+
case "InvalidRequestException": return [3, 4];
|
|
625
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
626
|
+
case "PipelineDeletedException": return [3, 6];
|
|
627
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
628
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
629
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
630
630
|
}
|
|
631
|
-
return [3
|
|
631
|
+
return [3, 10];
|
|
632
632
|
case 2:
|
|
633
633
|
_c = [{}];
|
|
634
|
-
return [4
|
|
634
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
635
635
|
case 3:
|
|
636
636
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
637
|
-
return [3
|
|
637
|
+
return [3, 11];
|
|
638
638
|
case 4:
|
|
639
639
|
_d = [{}];
|
|
640
|
-
return [4
|
|
640
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
641
641
|
case 5:
|
|
642
642
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
643
|
-
return [3
|
|
643
|
+
return [3, 11];
|
|
644
644
|
case 6:
|
|
645
645
|
_e = [{}];
|
|
646
|
-
return [4
|
|
646
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
647
647
|
case 7:
|
|
648
648
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
649
|
-
return [3
|
|
649
|
+
return [3, 11];
|
|
650
650
|
case 8:
|
|
651
651
|
_f = [{}];
|
|
652
|
-
return [4
|
|
652
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
653
653
|
case 9:
|
|
654
654
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
655
|
-
return [3
|
|
655
|
+
return [3, 11];
|
|
656
656
|
case 10:
|
|
657
657
|
parsedBody = parsedOutput.body;
|
|
658
658
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -662,7 +662,7 @@ var deserializeAws_json1_1DescribeObjectsCommandError = function (output, contex
|
|
|
662
662
|
message = response.message || response.Message || errorCode;
|
|
663
663
|
response.message = message;
|
|
664
664
|
delete response.Message;
|
|
665
|
-
return [2
|
|
665
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
}); };
|
|
@@ -672,15 +672,15 @@ export var deserializeAws_json1_1DescribePipelinesCommand = function (output, co
|
|
|
672
672
|
switch (_a.label) {
|
|
673
673
|
case 0:
|
|
674
674
|
if (output.statusCode >= 300) {
|
|
675
|
-
return [2
|
|
675
|
+
return [2, deserializeAws_json1_1DescribePipelinesCommandError(output, context)];
|
|
676
676
|
}
|
|
677
|
-
return [4
|
|
677
|
+
return [4, parseBody(output.body, context)];
|
|
678
678
|
case 1:
|
|
679
679
|
data = _a.sent();
|
|
680
680
|
contents = {};
|
|
681
681
|
contents = deserializeAws_json1_1DescribePipelinesOutput(data, context);
|
|
682
682
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
683
|
-
return [2
|
|
683
|
+
return [2, Promise.resolve(response)];
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
}); };
|
|
@@ -692,47 +692,47 @@ var deserializeAws_json1_1DescribePipelinesCommandError = function (output, cont
|
|
|
692
692
|
case 0:
|
|
693
693
|
_a = [__assign({}, output)];
|
|
694
694
|
_g = {};
|
|
695
|
-
return [4
|
|
695
|
+
return [4, parseBody(output.body, context)];
|
|
696
696
|
case 1:
|
|
697
697
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
698
698
|
errorCode = "UnknownError";
|
|
699
699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
700
|
_b = errorCode;
|
|
701
701
|
switch (_b) {
|
|
702
|
-
case "InternalServiceError": return [3
|
|
703
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
704
|
-
case "InvalidRequestException": return [3
|
|
705
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
706
|
-
case "PipelineDeletedException": return [3
|
|
707
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
708
|
-
case "PipelineNotFoundException": return [3
|
|
709
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
702
|
+
case "InternalServiceError": return [3, 2];
|
|
703
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
704
|
+
case "InvalidRequestException": return [3, 4];
|
|
705
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
706
|
+
case "PipelineDeletedException": return [3, 6];
|
|
707
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
708
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
709
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
710
710
|
}
|
|
711
|
-
return [3
|
|
711
|
+
return [3, 10];
|
|
712
712
|
case 2:
|
|
713
713
|
_c = [{}];
|
|
714
|
-
return [4
|
|
714
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
715
715
|
case 3:
|
|
716
716
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
717
|
-
return [3
|
|
717
|
+
return [3, 11];
|
|
718
718
|
case 4:
|
|
719
719
|
_d = [{}];
|
|
720
|
-
return [4
|
|
720
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
721
721
|
case 5:
|
|
722
722
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
723
|
-
return [3
|
|
723
|
+
return [3, 11];
|
|
724
724
|
case 6:
|
|
725
725
|
_e = [{}];
|
|
726
|
-
return [4
|
|
726
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
727
727
|
case 7:
|
|
728
728
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
729
|
-
return [3
|
|
729
|
+
return [3, 11];
|
|
730
730
|
case 8:
|
|
731
731
|
_f = [{}];
|
|
732
|
-
return [4
|
|
732
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
733
733
|
case 9:
|
|
734
734
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
735
|
-
return [3
|
|
735
|
+
return [3, 11];
|
|
736
736
|
case 10:
|
|
737
737
|
parsedBody = parsedOutput.body;
|
|
738
738
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -742,7 +742,7 @@ var deserializeAws_json1_1DescribePipelinesCommandError = function (output, cont
|
|
|
742
742
|
message = response.message || response.Message || errorCode;
|
|
743
743
|
response.message = message;
|
|
744
744
|
delete response.Message;
|
|
745
|
-
return [2
|
|
745
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
746
746
|
}
|
|
747
747
|
});
|
|
748
748
|
}); };
|
|
@@ -752,15 +752,15 @@ export var deserializeAws_json1_1EvaluateExpressionCommand = function (output, c
|
|
|
752
752
|
switch (_a.label) {
|
|
753
753
|
case 0:
|
|
754
754
|
if (output.statusCode >= 300) {
|
|
755
|
-
return [2
|
|
755
|
+
return [2, deserializeAws_json1_1EvaluateExpressionCommandError(output, context)];
|
|
756
756
|
}
|
|
757
|
-
return [4
|
|
757
|
+
return [4, parseBody(output.body, context)];
|
|
758
758
|
case 1:
|
|
759
759
|
data = _a.sent();
|
|
760
760
|
contents = {};
|
|
761
761
|
contents = deserializeAws_json1_1EvaluateExpressionOutput(data, context);
|
|
762
762
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
763
|
-
return [2
|
|
763
|
+
return [2, Promise.resolve(response)];
|
|
764
764
|
}
|
|
765
765
|
});
|
|
766
766
|
}); };
|
|
@@ -772,55 +772,55 @@ var deserializeAws_json1_1EvaluateExpressionCommandError = function (output, con
|
|
|
772
772
|
case 0:
|
|
773
773
|
_a = [__assign({}, output)];
|
|
774
774
|
_h = {};
|
|
775
|
-
return [4
|
|
775
|
+
return [4, parseBody(output.body, context)];
|
|
776
776
|
case 1:
|
|
777
777
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
778
778
|
errorCode = "UnknownError";
|
|
779
779
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
780
|
_b = errorCode;
|
|
781
781
|
switch (_b) {
|
|
782
|
-
case "InternalServiceError": return [3
|
|
783
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
784
|
-
case "InvalidRequestException": return [3
|
|
785
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
786
|
-
case "PipelineDeletedException": return [3
|
|
787
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
788
|
-
case "PipelineNotFoundException": return [3
|
|
789
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
790
|
-
case "TaskNotFoundException": return [3
|
|
791
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3
|
|
782
|
+
case "InternalServiceError": return [3, 2];
|
|
783
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
784
|
+
case "InvalidRequestException": return [3, 4];
|
|
785
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
786
|
+
case "PipelineDeletedException": return [3, 6];
|
|
787
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
788
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
789
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
790
|
+
case "TaskNotFoundException": return [3, 10];
|
|
791
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3, 10];
|
|
792
792
|
}
|
|
793
|
-
return [3
|
|
793
|
+
return [3, 12];
|
|
794
794
|
case 2:
|
|
795
795
|
_c = [{}];
|
|
796
|
-
return [4
|
|
796
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
797
797
|
case 3:
|
|
798
798
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
799
|
-
return [3
|
|
799
|
+
return [3, 13];
|
|
800
800
|
case 4:
|
|
801
801
|
_d = [{}];
|
|
802
|
-
return [4
|
|
802
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
803
803
|
case 5:
|
|
804
804
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
805
|
-
return [3
|
|
805
|
+
return [3, 13];
|
|
806
806
|
case 6:
|
|
807
807
|
_e = [{}];
|
|
808
|
-
return [4
|
|
808
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
809
809
|
case 7:
|
|
810
810
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
811
|
-
return [3
|
|
811
|
+
return [3, 13];
|
|
812
812
|
case 8:
|
|
813
813
|
_f = [{}];
|
|
814
|
-
return [4
|
|
814
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
815
815
|
case 9:
|
|
816
816
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
817
|
-
return [3
|
|
817
|
+
return [3, 13];
|
|
818
818
|
case 10:
|
|
819
819
|
_g = [{}];
|
|
820
|
-
return [4
|
|
820
|
+
return [4, deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)];
|
|
821
821
|
case 11:
|
|
822
822
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
823
|
-
return [3
|
|
823
|
+
return [3, 13];
|
|
824
824
|
case 12:
|
|
825
825
|
parsedBody = parsedOutput.body;
|
|
826
826
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -830,7 +830,7 @@ var deserializeAws_json1_1EvaluateExpressionCommandError = function (output, con
|
|
|
830
830
|
message = response.message || response.Message || errorCode;
|
|
831
831
|
response.message = message;
|
|
832
832
|
delete response.Message;
|
|
833
|
-
return [2
|
|
833
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
834
834
|
}
|
|
835
835
|
});
|
|
836
836
|
}); };
|
|
@@ -840,15 +840,15 @@ export var deserializeAws_json1_1GetPipelineDefinitionCommand = function (output
|
|
|
840
840
|
switch (_a.label) {
|
|
841
841
|
case 0:
|
|
842
842
|
if (output.statusCode >= 300) {
|
|
843
|
-
return [2
|
|
843
|
+
return [2, deserializeAws_json1_1GetPipelineDefinitionCommandError(output, context)];
|
|
844
844
|
}
|
|
845
|
-
return [4
|
|
845
|
+
return [4, parseBody(output.body, context)];
|
|
846
846
|
case 1:
|
|
847
847
|
data = _a.sent();
|
|
848
848
|
contents = {};
|
|
849
849
|
contents = deserializeAws_json1_1GetPipelineDefinitionOutput(data, context);
|
|
850
850
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
851
|
-
return [2
|
|
851
|
+
return [2, Promise.resolve(response)];
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
854
|
}); };
|
|
@@ -860,47 +860,47 @@ var deserializeAws_json1_1GetPipelineDefinitionCommandError = function (output,
|
|
|
860
860
|
case 0:
|
|
861
861
|
_a = [__assign({}, output)];
|
|
862
862
|
_g = {};
|
|
863
|
-
return [4
|
|
863
|
+
return [4, parseBody(output.body, context)];
|
|
864
864
|
case 1:
|
|
865
865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
866
866
|
errorCode = "UnknownError";
|
|
867
867
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
868
|
_b = errorCode;
|
|
869
869
|
switch (_b) {
|
|
870
|
-
case "InternalServiceError": return [3
|
|
871
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
872
|
-
case "InvalidRequestException": return [3
|
|
873
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
874
|
-
case "PipelineDeletedException": return [3
|
|
875
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
876
|
-
case "PipelineNotFoundException": return [3
|
|
877
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
870
|
+
case "InternalServiceError": return [3, 2];
|
|
871
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
872
|
+
case "InvalidRequestException": return [3, 4];
|
|
873
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
874
|
+
case "PipelineDeletedException": return [3, 6];
|
|
875
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
876
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
877
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
878
878
|
}
|
|
879
|
-
return [3
|
|
879
|
+
return [3, 10];
|
|
880
880
|
case 2:
|
|
881
881
|
_c = [{}];
|
|
882
|
-
return [4
|
|
882
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
883
883
|
case 3:
|
|
884
884
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
885
|
-
return [3
|
|
885
|
+
return [3, 11];
|
|
886
886
|
case 4:
|
|
887
887
|
_d = [{}];
|
|
888
|
-
return [4
|
|
888
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
889
889
|
case 5:
|
|
890
890
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
891
|
-
return [3
|
|
891
|
+
return [3, 11];
|
|
892
892
|
case 6:
|
|
893
893
|
_e = [{}];
|
|
894
|
-
return [4
|
|
894
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
895
895
|
case 7:
|
|
896
896
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
897
|
-
return [3
|
|
897
|
+
return [3, 11];
|
|
898
898
|
case 8:
|
|
899
899
|
_f = [{}];
|
|
900
|
-
return [4
|
|
900
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
901
901
|
case 9:
|
|
902
902
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
903
|
-
return [3
|
|
903
|
+
return [3, 11];
|
|
904
904
|
case 10:
|
|
905
905
|
parsedBody = parsedOutput.body;
|
|
906
906
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -910,7 +910,7 @@ var deserializeAws_json1_1GetPipelineDefinitionCommandError = function (output,
|
|
|
910
910
|
message = response.message || response.Message || errorCode;
|
|
911
911
|
response.message = message;
|
|
912
912
|
delete response.Message;
|
|
913
|
-
return [2
|
|
913
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
914
914
|
}
|
|
915
915
|
});
|
|
916
916
|
}); };
|
|
@@ -920,15 +920,15 @@ export var deserializeAws_json1_1ListPipelinesCommand = function (output, contex
|
|
|
920
920
|
switch (_a.label) {
|
|
921
921
|
case 0:
|
|
922
922
|
if (output.statusCode >= 300) {
|
|
923
|
-
return [2
|
|
923
|
+
return [2, deserializeAws_json1_1ListPipelinesCommandError(output, context)];
|
|
924
924
|
}
|
|
925
|
-
return [4
|
|
925
|
+
return [4, parseBody(output.body, context)];
|
|
926
926
|
case 1:
|
|
927
927
|
data = _a.sent();
|
|
928
928
|
contents = {};
|
|
929
929
|
contents = deserializeAws_json1_1ListPipelinesOutput(data, context);
|
|
930
930
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
931
|
-
return [2
|
|
931
|
+
return [2, Promise.resolve(response)];
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
934
|
}); };
|
|
@@ -940,31 +940,31 @@ var deserializeAws_json1_1ListPipelinesCommandError = function (output, context)
|
|
|
940
940
|
case 0:
|
|
941
941
|
_a = [__assign({}, output)];
|
|
942
942
|
_e = {};
|
|
943
|
-
return [4
|
|
943
|
+
return [4, parseBody(output.body, context)];
|
|
944
944
|
case 1:
|
|
945
945
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
946
946
|
errorCode = "UnknownError";
|
|
947
947
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
948
|
_b = errorCode;
|
|
949
949
|
switch (_b) {
|
|
950
|
-
case "InternalServiceError": return [3
|
|
951
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
952
|
-
case "InvalidRequestException": return [3
|
|
953
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
950
|
+
case "InternalServiceError": return [3, 2];
|
|
951
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
952
|
+
case "InvalidRequestException": return [3, 4];
|
|
953
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
954
954
|
}
|
|
955
|
-
return [3
|
|
955
|
+
return [3, 6];
|
|
956
956
|
case 2:
|
|
957
957
|
_c = [{}];
|
|
958
|
-
return [4
|
|
958
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
959
959
|
case 3:
|
|
960
960
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
961
|
-
return [3
|
|
961
|
+
return [3, 7];
|
|
962
962
|
case 4:
|
|
963
963
|
_d = [{}];
|
|
964
|
-
return [4
|
|
964
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
965
965
|
case 5:
|
|
966
966
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
967
|
-
return [3
|
|
967
|
+
return [3, 7];
|
|
968
968
|
case 6:
|
|
969
969
|
parsedBody = parsedOutput.body;
|
|
970
970
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -974,7 +974,7 @@ var deserializeAws_json1_1ListPipelinesCommandError = function (output, context)
|
|
|
974
974
|
message = response.message || response.Message || errorCode;
|
|
975
975
|
response.message = message;
|
|
976
976
|
delete response.Message;
|
|
977
|
-
return [2
|
|
977
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
978
978
|
}
|
|
979
979
|
});
|
|
980
980
|
}); };
|
|
@@ -984,15 +984,15 @@ export var deserializeAws_json1_1PollForTaskCommand = function (output, context)
|
|
|
984
984
|
switch (_a.label) {
|
|
985
985
|
case 0:
|
|
986
986
|
if (output.statusCode >= 300) {
|
|
987
|
-
return [2
|
|
987
|
+
return [2, deserializeAws_json1_1PollForTaskCommandError(output, context)];
|
|
988
988
|
}
|
|
989
|
-
return [4
|
|
989
|
+
return [4, parseBody(output.body, context)];
|
|
990
990
|
case 1:
|
|
991
991
|
data = _a.sent();
|
|
992
992
|
contents = {};
|
|
993
993
|
contents = deserializeAws_json1_1PollForTaskOutput(data, context);
|
|
994
994
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
995
|
-
return [2
|
|
995
|
+
return [2, Promise.resolve(response)];
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
998
|
}); };
|
|
@@ -1004,39 +1004,39 @@ var deserializeAws_json1_1PollForTaskCommandError = function (output, context) {
|
|
|
1004
1004
|
case 0:
|
|
1005
1005
|
_a = [__assign({}, output)];
|
|
1006
1006
|
_f = {};
|
|
1007
|
-
return [4
|
|
1007
|
+
return [4, parseBody(output.body, context)];
|
|
1008
1008
|
case 1:
|
|
1009
1009
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1010
1010
|
errorCode = "UnknownError";
|
|
1011
1011
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
1012
|
_b = errorCode;
|
|
1013
1013
|
switch (_b) {
|
|
1014
|
-
case "InternalServiceError": return [3
|
|
1015
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1016
|
-
case "InvalidRequestException": return [3
|
|
1017
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1018
|
-
case "TaskNotFoundException": return [3
|
|
1019
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3
|
|
1014
|
+
case "InternalServiceError": return [3, 2];
|
|
1015
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1016
|
+
case "InvalidRequestException": return [3, 4];
|
|
1017
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1018
|
+
case "TaskNotFoundException": return [3, 6];
|
|
1019
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3, 6];
|
|
1020
1020
|
}
|
|
1021
|
-
return [3
|
|
1021
|
+
return [3, 8];
|
|
1022
1022
|
case 2:
|
|
1023
1023
|
_c = [{}];
|
|
1024
|
-
return [4
|
|
1024
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1025
1025
|
case 3:
|
|
1026
1026
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1027
|
-
return [3
|
|
1027
|
+
return [3, 9];
|
|
1028
1028
|
case 4:
|
|
1029
1029
|
_d = [{}];
|
|
1030
|
-
return [4
|
|
1030
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1031
1031
|
case 5:
|
|
1032
1032
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1033
|
-
return [3
|
|
1033
|
+
return [3, 9];
|
|
1034
1034
|
case 6:
|
|
1035
1035
|
_e = [{}];
|
|
1036
|
-
return [4
|
|
1036
|
+
return [4, deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)];
|
|
1037
1037
|
case 7:
|
|
1038
1038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1039
|
-
return [3
|
|
1039
|
+
return [3, 9];
|
|
1040
1040
|
case 8:
|
|
1041
1041
|
parsedBody = parsedOutput.body;
|
|
1042
1042
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1046,7 +1046,7 @@ var deserializeAws_json1_1PollForTaskCommandError = function (output, context) {
|
|
|
1046
1046
|
message = response.message || response.Message || errorCode;
|
|
1047
1047
|
response.message = message;
|
|
1048
1048
|
delete response.Message;
|
|
1049
|
-
return [2
|
|
1049
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1050
1050
|
}
|
|
1051
1051
|
});
|
|
1052
1052
|
}); };
|
|
@@ -1056,15 +1056,15 @@ export var deserializeAws_json1_1PutPipelineDefinitionCommand = function (output
|
|
|
1056
1056
|
switch (_a.label) {
|
|
1057
1057
|
case 0:
|
|
1058
1058
|
if (output.statusCode >= 300) {
|
|
1059
|
-
return [2
|
|
1059
|
+
return [2, deserializeAws_json1_1PutPipelineDefinitionCommandError(output, context)];
|
|
1060
1060
|
}
|
|
1061
|
-
return [4
|
|
1061
|
+
return [4, parseBody(output.body, context)];
|
|
1062
1062
|
case 1:
|
|
1063
1063
|
data = _a.sent();
|
|
1064
1064
|
contents = {};
|
|
1065
1065
|
contents = deserializeAws_json1_1PutPipelineDefinitionOutput(data, context);
|
|
1066
1066
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1067
|
-
return [2
|
|
1067
|
+
return [2, Promise.resolve(response)];
|
|
1068
1068
|
}
|
|
1069
1069
|
});
|
|
1070
1070
|
}); };
|
|
@@ -1076,47 +1076,47 @@ var deserializeAws_json1_1PutPipelineDefinitionCommandError = function (output,
|
|
|
1076
1076
|
case 0:
|
|
1077
1077
|
_a = [__assign({}, output)];
|
|
1078
1078
|
_g = {};
|
|
1079
|
-
return [4
|
|
1079
|
+
return [4, parseBody(output.body, context)];
|
|
1080
1080
|
case 1:
|
|
1081
1081
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1082
1082
|
errorCode = "UnknownError";
|
|
1083
1083
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
1084
|
_b = errorCode;
|
|
1085
1085
|
switch (_b) {
|
|
1086
|
-
case "InternalServiceError": return [3
|
|
1087
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1088
|
-
case "InvalidRequestException": return [3
|
|
1089
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1090
|
-
case "PipelineDeletedException": return [3
|
|
1091
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1092
|
-
case "PipelineNotFoundException": return [3
|
|
1093
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1086
|
+
case "InternalServiceError": return [3, 2];
|
|
1087
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1088
|
+
case "InvalidRequestException": return [3, 4];
|
|
1089
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1090
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1091
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1092
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1093
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1094
1094
|
}
|
|
1095
|
-
return [3
|
|
1095
|
+
return [3, 10];
|
|
1096
1096
|
case 2:
|
|
1097
1097
|
_c = [{}];
|
|
1098
|
-
return [4
|
|
1098
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1099
1099
|
case 3:
|
|
1100
1100
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1101
|
-
return [3
|
|
1101
|
+
return [3, 11];
|
|
1102
1102
|
case 4:
|
|
1103
1103
|
_d = [{}];
|
|
1104
|
-
return [4
|
|
1104
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1105
1105
|
case 5:
|
|
1106
1106
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1107
|
-
return [3
|
|
1107
|
+
return [3, 11];
|
|
1108
1108
|
case 6:
|
|
1109
1109
|
_e = [{}];
|
|
1110
|
-
return [4
|
|
1110
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1111
1111
|
case 7:
|
|
1112
1112
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1113
|
-
return [3
|
|
1113
|
+
return [3, 11];
|
|
1114
1114
|
case 8:
|
|
1115
1115
|
_f = [{}];
|
|
1116
|
-
return [4
|
|
1116
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1117
1117
|
case 9:
|
|
1118
1118
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1119
|
-
return [3
|
|
1119
|
+
return [3, 11];
|
|
1120
1120
|
case 10:
|
|
1121
1121
|
parsedBody = parsedOutput.body;
|
|
1122
1122
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1126,7 +1126,7 @@ var deserializeAws_json1_1PutPipelineDefinitionCommandError = function (output,
|
|
|
1126
1126
|
message = response.message || response.Message || errorCode;
|
|
1127
1127
|
response.message = message;
|
|
1128
1128
|
delete response.Message;
|
|
1129
|
-
return [2
|
|
1129
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
1132
1132
|
}); };
|
|
@@ -1136,15 +1136,15 @@ export var deserializeAws_json1_1QueryObjectsCommand = function (output, context
|
|
|
1136
1136
|
switch (_a.label) {
|
|
1137
1137
|
case 0:
|
|
1138
1138
|
if (output.statusCode >= 300) {
|
|
1139
|
-
return [2
|
|
1139
|
+
return [2, deserializeAws_json1_1QueryObjectsCommandError(output, context)];
|
|
1140
1140
|
}
|
|
1141
|
-
return [4
|
|
1141
|
+
return [4, parseBody(output.body, context)];
|
|
1142
1142
|
case 1:
|
|
1143
1143
|
data = _a.sent();
|
|
1144
1144
|
contents = {};
|
|
1145
1145
|
contents = deserializeAws_json1_1QueryObjectsOutput(data, context);
|
|
1146
1146
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1147
|
-
return [2
|
|
1147
|
+
return [2, Promise.resolve(response)];
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
1150
1150
|
}); };
|
|
@@ -1156,47 +1156,47 @@ var deserializeAws_json1_1QueryObjectsCommandError = function (output, context)
|
|
|
1156
1156
|
case 0:
|
|
1157
1157
|
_a = [__assign({}, output)];
|
|
1158
1158
|
_g = {};
|
|
1159
|
-
return [4
|
|
1159
|
+
return [4, parseBody(output.body, context)];
|
|
1160
1160
|
case 1:
|
|
1161
1161
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1162
1162
|
errorCode = "UnknownError";
|
|
1163
1163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
1164
|
_b = errorCode;
|
|
1165
1165
|
switch (_b) {
|
|
1166
|
-
case "InternalServiceError": return [3
|
|
1167
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1168
|
-
case "InvalidRequestException": return [3
|
|
1169
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1170
|
-
case "PipelineDeletedException": return [3
|
|
1171
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1172
|
-
case "PipelineNotFoundException": return [3
|
|
1173
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1166
|
+
case "InternalServiceError": return [3, 2];
|
|
1167
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1168
|
+
case "InvalidRequestException": return [3, 4];
|
|
1169
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1170
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1171
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1172
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1173
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1174
1174
|
}
|
|
1175
|
-
return [3
|
|
1175
|
+
return [3, 10];
|
|
1176
1176
|
case 2:
|
|
1177
1177
|
_c = [{}];
|
|
1178
|
-
return [4
|
|
1178
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1179
1179
|
case 3:
|
|
1180
1180
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1181
|
-
return [3
|
|
1181
|
+
return [3, 11];
|
|
1182
1182
|
case 4:
|
|
1183
1183
|
_d = [{}];
|
|
1184
|
-
return [4
|
|
1184
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1185
1185
|
case 5:
|
|
1186
1186
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1187
|
-
return [3
|
|
1187
|
+
return [3, 11];
|
|
1188
1188
|
case 6:
|
|
1189
1189
|
_e = [{}];
|
|
1190
|
-
return [4
|
|
1190
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1191
1191
|
case 7:
|
|
1192
1192
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1193
|
-
return [3
|
|
1193
|
+
return [3, 11];
|
|
1194
1194
|
case 8:
|
|
1195
1195
|
_f = [{}];
|
|
1196
|
-
return [4
|
|
1196
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1197
1197
|
case 9:
|
|
1198
1198
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1199
|
-
return [3
|
|
1199
|
+
return [3, 11];
|
|
1200
1200
|
case 10:
|
|
1201
1201
|
parsedBody = parsedOutput.body;
|
|
1202
1202
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1206,7 +1206,7 @@ var deserializeAws_json1_1QueryObjectsCommandError = function (output, context)
|
|
|
1206
1206
|
message = response.message || response.Message || errorCode;
|
|
1207
1207
|
response.message = message;
|
|
1208
1208
|
delete response.Message;
|
|
1209
|
-
return [2
|
|
1209
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1210
1210
|
}
|
|
1211
1211
|
});
|
|
1212
1212
|
}); };
|
|
@@ -1216,15 +1216,15 @@ export var deserializeAws_json1_1RemoveTagsCommand = function (output, context)
|
|
|
1216
1216
|
switch (_a.label) {
|
|
1217
1217
|
case 0:
|
|
1218
1218
|
if (output.statusCode >= 300) {
|
|
1219
|
-
return [2
|
|
1219
|
+
return [2, deserializeAws_json1_1RemoveTagsCommandError(output, context)];
|
|
1220
1220
|
}
|
|
1221
|
-
return [4
|
|
1221
|
+
return [4, parseBody(output.body, context)];
|
|
1222
1222
|
case 1:
|
|
1223
1223
|
data = _a.sent();
|
|
1224
1224
|
contents = {};
|
|
1225
1225
|
contents = deserializeAws_json1_1RemoveTagsOutput(data, context);
|
|
1226
1226
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1227
|
-
return [2
|
|
1227
|
+
return [2, Promise.resolve(response)];
|
|
1228
1228
|
}
|
|
1229
1229
|
});
|
|
1230
1230
|
}); };
|
|
@@ -1236,47 +1236,47 @@ var deserializeAws_json1_1RemoveTagsCommandError = function (output, context) {
|
|
|
1236
1236
|
case 0:
|
|
1237
1237
|
_a = [__assign({}, output)];
|
|
1238
1238
|
_g = {};
|
|
1239
|
-
return [4
|
|
1239
|
+
return [4, parseBody(output.body, context)];
|
|
1240
1240
|
case 1:
|
|
1241
1241
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1242
1242
|
errorCode = "UnknownError";
|
|
1243
1243
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1244
1244
|
_b = errorCode;
|
|
1245
1245
|
switch (_b) {
|
|
1246
|
-
case "InternalServiceError": return [3
|
|
1247
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1248
|
-
case "InvalidRequestException": return [3
|
|
1249
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1250
|
-
case "PipelineDeletedException": return [3
|
|
1251
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1252
|
-
case "PipelineNotFoundException": return [3
|
|
1253
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1246
|
+
case "InternalServiceError": return [3, 2];
|
|
1247
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1248
|
+
case "InvalidRequestException": return [3, 4];
|
|
1249
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1250
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1251
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1252
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1253
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1254
1254
|
}
|
|
1255
|
-
return [3
|
|
1255
|
+
return [3, 10];
|
|
1256
1256
|
case 2:
|
|
1257
1257
|
_c = [{}];
|
|
1258
|
-
return [4
|
|
1258
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1259
1259
|
case 3:
|
|
1260
1260
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1261
|
-
return [3
|
|
1261
|
+
return [3, 11];
|
|
1262
1262
|
case 4:
|
|
1263
1263
|
_d = [{}];
|
|
1264
|
-
return [4
|
|
1264
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1265
1265
|
case 5:
|
|
1266
1266
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1267
|
-
return [3
|
|
1267
|
+
return [3, 11];
|
|
1268
1268
|
case 6:
|
|
1269
1269
|
_e = [{}];
|
|
1270
|
-
return [4
|
|
1270
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1271
1271
|
case 7:
|
|
1272
1272
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1273
|
-
return [3
|
|
1273
|
+
return [3, 11];
|
|
1274
1274
|
case 8:
|
|
1275
1275
|
_f = [{}];
|
|
1276
|
-
return [4
|
|
1276
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1277
1277
|
case 9:
|
|
1278
1278
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1279
|
-
return [3
|
|
1279
|
+
return [3, 11];
|
|
1280
1280
|
case 10:
|
|
1281
1281
|
parsedBody = parsedOutput.body;
|
|
1282
1282
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1286,7 +1286,7 @@ var deserializeAws_json1_1RemoveTagsCommandError = function (output, context) {
|
|
|
1286
1286
|
message = response.message || response.Message || errorCode;
|
|
1287
1287
|
response.message = message;
|
|
1288
1288
|
delete response.Message;
|
|
1289
|
-
return [2
|
|
1289
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1290
1290
|
}
|
|
1291
1291
|
});
|
|
1292
1292
|
}); };
|
|
@@ -1296,15 +1296,15 @@ export var deserializeAws_json1_1ReportTaskProgressCommand = function (output, c
|
|
|
1296
1296
|
switch (_a.label) {
|
|
1297
1297
|
case 0:
|
|
1298
1298
|
if (output.statusCode >= 300) {
|
|
1299
|
-
return [2
|
|
1299
|
+
return [2, deserializeAws_json1_1ReportTaskProgressCommandError(output, context)];
|
|
1300
1300
|
}
|
|
1301
|
-
return [4
|
|
1301
|
+
return [4, parseBody(output.body, context)];
|
|
1302
1302
|
case 1:
|
|
1303
1303
|
data = _a.sent();
|
|
1304
1304
|
contents = {};
|
|
1305
1305
|
contents = deserializeAws_json1_1ReportTaskProgressOutput(data, context);
|
|
1306
1306
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1307
|
-
return [2
|
|
1307
|
+
return [2, Promise.resolve(response)];
|
|
1308
1308
|
}
|
|
1309
1309
|
});
|
|
1310
1310
|
}); };
|
|
@@ -1316,55 +1316,55 @@ var deserializeAws_json1_1ReportTaskProgressCommandError = function (output, con
|
|
|
1316
1316
|
case 0:
|
|
1317
1317
|
_a = [__assign({}, output)];
|
|
1318
1318
|
_h = {};
|
|
1319
|
-
return [4
|
|
1319
|
+
return [4, parseBody(output.body, context)];
|
|
1320
1320
|
case 1:
|
|
1321
1321
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1322
1322
|
errorCode = "UnknownError";
|
|
1323
1323
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
1324
|
_b = errorCode;
|
|
1325
1325
|
switch (_b) {
|
|
1326
|
-
case "InternalServiceError": return [3
|
|
1327
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1328
|
-
case "InvalidRequestException": return [3
|
|
1329
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1330
|
-
case "PipelineDeletedException": return [3
|
|
1331
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1332
|
-
case "PipelineNotFoundException": return [3
|
|
1333
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1334
|
-
case "TaskNotFoundException": return [3
|
|
1335
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3
|
|
1326
|
+
case "InternalServiceError": return [3, 2];
|
|
1327
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1328
|
+
case "InvalidRequestException": return [3, 4];
|
|
1329
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1330
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1331
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1332
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1333
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1334
|
+
case "TaskNotFoundException": return [3, 10];
|
|
1335
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3, 10];
|
|
1336
1336
|
}
|
|
1337
|
-
return [3
|
|
1337
|
+
return [3, 12];
|
|
1338
1338
|
case 2:
|
|
1339
1339
|
_c = [{}];
|
|
1340
|
-
return [4
|
|
1340
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1341
1341
|
case 3:
|
|
1342
1342
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1343
|
-
return [3
|
|
1343
|
+
return [3, 13];
|
|
1344
1344
|
case 4:
|
|
1345
1345
|
_d = [{}];
|
|
1346
|
-
return [4
|
|
1346
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1347
1347
|
case 5:
|
|
1348
1348
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1349
|
-
return [3
|
|
1349
|
+
return [3, 13];
|
|
1350
1350
|
case 6:
|
|
1351
1351
|
_e = [{}];
|
|
1352
|
-
return [4
|
|
1352
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1353
1353
|
case 7:
|
|
1354
1354
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1355
|
-
return [3
|
|
1355
|
+
return [3, 13];
|
|
1356
1356
|
case 8:
|
|
1357
1357
|
_f = [{}];
|
|
1358
|
-
return [4
|
|
1358
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1359
1359
|
case 9:
|
|
1360
1360
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1361
|
-
return [3
|
|
1361
|
+
return [3, 13];
|
|
1362
1362
|
case 10:
|
|
1363
1363
|
_g = [{}];
|
|
1364
|
-
return [4
|
|
1364
|
+
return [4, deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)];
|
|
1365
1365
|
case 11:
|
|
1366
1366
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1367
|
-
return [3
|
|
1367
|
+
return [3, 13];
|
|
1368
1368
|
case 12:
|
|
1369
1369
|
parsedBody = parsedOutput.body;
|
|
1370
1370
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1374,7 +1374,7 @@ var deserializeAws_json1_1ReportTaskProgressCommandError = function (output, con
|
|
|
1374
1374
|
message = response.message || response.Message || errorCode;
|
|
1375
1375
|
response.message = message;
|
|
1376
1376
|
delete response.Message;
|
|
1377
|
-
return [2
|
|
1377
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
1380
|
}); };
|
|
@@ -1384,15 +1384,15 @@ export var deserializeAws_json1_1ReportTaskRunnerHeartbeatCommand = function (ou
|
|
|
1384
1384
|
switch (_a.label) {
|
|
1385
1385
|
case 0:
|
|
1386
1386
|
if (output.statusCode >= 300) {
|
|
1387
|
-
return [2
|
|
1387
|
+
return [2, deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError(output, context)];
|
|
1388
1388
|
}
|
|
1389
|
-
return [4
|
|
1389
|
+
return [4, parseBody(output.body, context)];
|
|
1390
1390
|
case 1:
|
|
1391
1391
|
data = _a.sent();
|
|
1392
1392
|
contents = {};
|
|
1393
1393
|
contents = deserializeAws_json1_1ReportTaskRunnerHeartbeatOutput(data, context);
|
|
1394
1394
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1395
|
-
return [2
|
|
1395
|
+
return [2, Promise.resolve(response)];
|
|
1396
1396
|
}
|
|
1397
1397
|
});
|
|
1398
1398
|
}); };
|
|
@@ -1404,31 +1404,31 @@ var deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError = function (outp
|
|
|
1404
1404
|
case 0:
|
|
1405
1405
|
_a = [__assign({}, output)];
|
|
1406
1406
|
_e = {};
|
|
1407
|
-
return [4
|
|
1407
|
+
return [4, parseBody(output.body, context)];
|
|
1408
1408
|
case 1:
|
|
1409
1409
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1410
1410
|
errorCode = "UnknownError";
|
|
1411
1411
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
1412
|
_b = errorCode;
|
|
1413
1413
|
switch (_b) {
|
|
1414
|
-
case "InternalServiceError": return [3
|
|
1415
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1416
|
-
case "InvalidRequestException": return [3
|
|
1417
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1414
|
+
case "InternalServiceError": return [3, 2];
|
|
1415
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1416
|
+
case "InvalidRequestException": return [3, 4];
|
|
1417
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1418
1418
|
}
|
|
1419
|
-
return [3
|
|
1419
|
+
return [3, 6];
|
|
1420
1420
|
case 2:
|
|
1421
1421
|
_c = [{}];
|
|
1422
|
-
return [4
|
|
1422
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1423
1423
|
case 3:
|
|
1424
1424
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1425
|
-
return [3
|
|
1425
|
+
return [3, 7];
|
|
1426
1426
|
case 4:
|
|
1427
1427
|
_d = [{}];
|
|
1428
|
-
return [4
|
|
1428
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1429
1429
|
case 5:
|
|
1430
1430
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1431
|
-
return [3
|
|
1431
|
+
return [3, 7];
|
|
1432
1432
|
case 6:
|
|
1433
1433
|
parsedBody = parsedOutput.body;
|
|
1434
1434
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1438,7 +1438,7 @@ var deserializeAws_json1_1ReportTaskRunnerHeartbeatCommandError = function (outp
|
|
|
1438
1438
|
message = response.message || response.Message || errorCode;
|
|
1439
1439
|
response.message = message;
|
|
1440
1440
|
delete response.Message;
|
|
1441
|
-
return [2
|
|
1441
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1442
1442
|
}
|
|
1443
1443
|
});
|
|
1444
1444
|
}); };
|
|
@@ -1448,15 +1448,15 @@ export var deserializeAws_json1_1SetStatusCommand = function (output, context) {
|
|
|
1448
1448
|
switch (_a.label) {
|
|
1449
1449
|
case 0:
|
|
1450
1450
|
if (output.statusCode >= 300) {
|
|
1451
|
-
return [2
|
|
1451
|
+
return [2, deserializeAws_json1_1SetStatusCommandError(output, context)];
|
|
1452
1452
|
}
|
|
1453
|
-
return [4
|
|
1453
|
+
return [4, collectBody(output.body, context)];
|
|
1454
1454
|
case 1:
|
|
1455
1455
|
_a.sent();
|
|
1456
1456
|
response = {
|
|
1457
1457
|
$metadata: deserializeMetadata(output),
|
|
1458
1458
|
};
|
|
1459
|
-
return [2
|
|
1459
|
+
return [2, Promise.resolve(response)];
|
|
1460
1460
|
}
|
|
1461
1461
|
});
|
|
1462
1462
|
}); };
|
|
@@ -1468,47 +1468,47 @@ var deserializeAws_json1_1SetStatusCommandError = function (output, context) { r
|
|
|
1468
1468
|
case 0:
|
|
1469
1469
|
_a = [__assign({}, output)];
|
|
1470
1470
|
_g = {};
|
|
1471
|
-
return [4
|
|
1471
|
+
return [4, parseBody(output.body, context)];
|
|
1472
1472
|
case 1:
|
|
1473
1473
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1474
1474
|
errorCode = "UnknownError";
|
|
1475
1475
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
1476
|
_b = errorCode;
|
|
1477
1477
|
switch (_b) {
|
|
1478
|
-
case "InternalServiceError": return [3
|
|
1479
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1480
|
-
case "InvalidRequestException": return [3
|
|
1481
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1482
|
-
case "PipelineDeletedException": return [3
|
|
1483
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1484
|
-
case "PipelineNotFoundException": return [3
|
|
1485
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1478
|
+
case "InternalServiceError": return [3, 2];
|
|
1479
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1480
|
+
case "InvalidRequestException": return [3, 4];
|
|
1481
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1482
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1483
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1484
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1485
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1486
1486
|
}
|
|
1487
|
-
return [3
|
|
1487
|
+
return [3, 10];
|
|
1488
1488
|
case 2:
|
|
1489
1489
|
_c = [{}];
|
|
1490
|
-
return [4
|
|
1490
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1491
1491
|
case 3:
|
|
1492
1492
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1493
|
-
return [3
|
|
1493
|
+
return [3, 11];
|
|
1494
1494
|
case 4:
|
|
1495
1495
|
_d = [{}];
|
|
1496
|
-
return [4
|
|
1496
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1497
1497
|
case 5:
|
|
1498
1498
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1499
|
-
return [3
|
|
1499
|
+
return [3, 11];
|
|
1500
1500
|
case 6:
|
|
1501
1501
|
_e = [{}];
|
|
1502
|
-
return [4
|
|
1502
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1503
1503
|
case 7:
|
|
1504
1504
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1505
|
-
return [3
|
|
1505
|
+
return [3, 11];
|
|
1506
1506
|
case 8:
|
|
1507
1507
|
_f = [{}];
|
|
1508
|
-
return [4
|
|
1508
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1509
1509
|
case 9:
|
|
1510
1510
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1511
|
-
return [3
|
|
1511
|
+
return [3, 11];
|
|
1512
1512
|
case 10:
|
|
1513
1513
|
parsedBody = parsedOutput.body;
|
|
1514
1514
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1518,7 +1518,7 @@ var deserializeAws_json1_1SetStatusCommandError = function (output, context) { r
|
|
|
1518
1518
|
message = response.message || response.Message || errorCode;
|
|
1519
1519
|
response.message = message;
|
|
1520
1520
|
delete response.Message;
|
|
1521
|
-
return [2
|
|
1521
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1522
1522
|
}
|
|
1523
1523
|
});
|
|
1524
1524
|
}); };
|
|
@@ -1528,15 +1528,15 @@ export var deserializeAws_json1_1SetTaskStatusCommand = function (output, contex
|
|
|
1528
1528
|
switch (_a.label) {
|
|
1529
1529
|
case 0:
|
|
1530
1530
|
if (output.statusCode >= 300) {
|
|
1531
|
-
return [2
|
|
1531
|
+
return [2, deserializeAws_json1_1SetTaskStatusCommandError(output, context)];
|
|
1532
1532
|
}
|
|
1533
|
-
return [4
|
|
1533
|
+
return [4, parseBody(output.body, context)];
|
|
1534
1534
|
case 1:
|
|
1535
1535
|
data = _a.sent();
|
|
1536
1536
|
contents = {};
|
|
1537
1537
|
contents = deserializeAws_json1_1SetTaskStatusOutput(data, context);
|
|
1538
1538
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1539
|
-
return [2
|
|
1539
|
+
return [2, Promise.resolve(response)];
|
|
1540
1540
|
}
|
|
1541
1541
|
});
|
|
1542
1542
|
}); };
|
|
@@ -1548,55 +1548,55 @@ var deserializeAws_json1_1SetTaskStatusCommandError = function (output, context)
|
|
|
1548
1548
|
case 0:
|
|
1549
1549
|
_a = [__assign({}, output)];
|
|
1550
1550
|
_h = {};
|
|
1551
|
-
return [4
|
|
1551
|
+
return [4, parseBody(output.body, context)];
|
|
1552
1552
|
case 1:
|
|
1553
1553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1554
1554
|
errorCode = "UnknownError";
|
|
1555
1555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1556
|
_b = errorCode;
|
|
1557
1557
|
switch (_b) {
|
|
1558
|
-
case "InternalServiceError": return [3
|
|
1559
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1560
|
-
case "InvalidRequestException": return [3
|
|
1561
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1562
|
-
case "PipelineDeletedException": return [3
|
|
1563
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1564
|
-
case "PipelineNotFoundException": return [3
|
|
1565
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1566
|
-
case "TaskNotFoundException": return [3
|
|
1567
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3
|
|
1558
|
+
case "InternalServiceError": return [3, 2];
|
|
1559
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1560
|
+
case "InvalidRequestException": return [3, 4];
|
|
1561
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1562
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1563
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1564
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1565
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1566
|
+
case "TaskNotFoundException": return [3, 10];
|
|
1567
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException": return [3, 10];
|
|
1568
1568
|
}
|
|
1569
|
-
return [3
|
|
1569
|
+
return [3, 12];
|
|
1570
1570
|
case 2:
|
|
1571
1571
|
_c = [{}];
|
|
1572
|
-
return [4
|
|
1572
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1573
1573
|
case 3:
|
|
1574
1574
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1575
|
-
return [3
|
|
1575
|
+
return [3, 13];
|
|
1576
1576
|
case 4:
|
|
1577
1577
|
_d = [{}];
|
|
1578
|
-
return [4
|
|
1578
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1579
1579
|
case 5:
|
|
1580
1580
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1581
|
-
return [3
|
|
1581
|
+
return [3, 13];
|
|
1582
1582
|
case 6:
|
|
1583
1583
|
_e = [{}];
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1585
1585
|
case 7:
|
|
1586
1586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1587
|
-
return [3
|
|
1587
|
+
return [3, 13];
|
|
1588
1588
|
case 8:
|
|
1589
1589
|
_f = [{}];
|
|
1590
|
-
return [4
|
|
1590
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1591
1591
|
case 9:
|
|
1592
1592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
-
return [3
|
|
1593
|
+
return [3, 13];
|
|
1594
1594
|
case 10:
|
|
1595
1595
|
_g = [{}];
|
|
1596
|
-
return [4
|
|
1596
|
+
return [4, deserializeAws_json1_1TaskNotFoundExceptionResponse(parsedOutput, context)];
|
|
1597
1597
|
case 11:
|
|
1598
1598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1599
|
-
return [3
|
|
1599
|
+
return [3, 13];
|
|
1600
1600
|
case 12:
|
|
1601
1601
|
parsedBody = parsedOutput.body;
|
|
1602
1602
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1606,7 +1606,7 @@ var deserializeAws_json1_1SetTaskStatusCommandError = function (output, context)
|
|
|
1606
1606
|
message = response.message || response.Message || errorCode;
|
|
1607
1607
|
response.message = message;
|
|
1608
1608
|
delete response.Message;
|
|
1609
|
-
return [2
|
|
1609
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1610
1610
|
}
|
|
1611
1611
|
});
|
|
1612
1612
|
}); };
|
|
@@ -1616,15 +1616,15 @@ export var deserializeAws_json1_1ValidatePipelineDefinitionCommand = function (o
|
|
|
1616
1616
|
switch (_a.label) {
|
|
1617
1617
|
case 0:
|
|
1618
1618
|
if (output.statusCode >= 300) {
|
|
1619
|
-
return [2
|
|
1619
|
+
return [2, deserializeAws_json1_1ValidatePipelineDefinitionCommandError(output, context)];
|
|
1620
1620
|
}
|
|
1621
|
-
return [4
|
|
1621
|
+
return [4, parseBody(output.body, context)];
|
|
1622
1622
|
case 1:
|
|
1623
1623
|
data = _a.sent();
|
|
1624
1624
|
contents = {};
|
|
1625
1625
|
contents = deserializeAws_json1_1ValidatePipelineDefinitionOutput(data, context);
|
|
1626
1626
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1627
|
-
return [2
|
|
1627
|
+
return [2, Promise.resolve(response)];
|
|
1628
1628
|
}
|
|
1629
1629
|
});
|
|
1630
1630
|
}); };
|
|
@@ -1636,47 +1636,47 @@ var deserializeAws_json1_1ValidatePipelineDefinitionCommandError = function (out
|
|
|
1636
1636
|
case 0:
|
|
1637
1637
|
_a = [__assign({}, output)];
|
|
1638
1638
|
_g = {};
|
|
1639
|
-
return [4
|
|
1639
|
+
return [4, parseBody(output.body, context)];
|
|
1640
1640
|
case 1:
|
|
1641
1641
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1642
1642
|
errorCode = "UnknownError";
|
|
1643
1643
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
1644
|
_b = errorCode;
|
|
1645
1645
|
switch (_b) {
|
|
1646
|
-
case "InternalServiceError": return [3
|
|
1647
|
-
case "com.amazonaws.datapipeline#InternalServiceError": return [3
|
|
1648
|
-
case "InvalidRequestException": return [3
|
|
1649
|
-
case "com.amazonaws.datapipeline#InvalidRequestException": return [3
|
|
1650
|
-
case "PipelineDeletedException": return [3
|
|
1651
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3
|
|
1652
|
-
case "PipelineNotFoundException": return [3
|
|
1653
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3
|
|
1646
|
+
case "InternalServiceError": return [3, 2];
|
|
1647
|
+
case "com.amazonaws.datapipeline#InternalServiceError": return [3, 2];
|
|
1648
|
+
case "InvalidRequestException": return [3, 4];
|
|
1649
|
+
case "com.amazonaws.datapipeline#InvalidRequestException": return [3, 4];
|
|
1650
|
+
case "PipelineDeletedException": return [3, 6];
|
|
1651
|
+
case "com.amazonaws.datapipeline#PipelineDeletedException": return [3, 6];
|
|
1652
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
1653
|
+
case "com.amazonaws.datapipeline#PipelineNotFoundException": return [3, 8];
|
|
1654
1654
|
}
|
|
1655
|
-
return [3
|
|
1655
|
+
return [3, 10];
|
|
1656
1656
|
case 2:
|
|
1657
1657
|
_c = [{}];
|
|
1658
|
-
return [4
|
|
1658
|
+
return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1659
1659
|
case 3:
|
|
1660
1660
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1661
|
-
return [3
|
|
1661
|
+
return [3, 11];
|
|
1662
1662
|
case 4:
|
|
1663
1663
|
_d = [{}];
|
|
1664
|
-
return [4
|
|
1664
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1665
1665
|
case 5:
|
|
1666
1666
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1667
|
-
return [3
|
|
1667
|
+
return [3, 11];
|
|
1668
1668
|
case 6:
|
|
1669
1669
|
_e = [{}];
|
|
1670
|
-
return [4
|
|
1670
|
+
return [4, deserializeAws_json1_1PipelineDeletedExceptionResponse(parsedOutput, context)];
|
|
1671
1671
|
case 7:
|
|
1672
1672
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1673
|
-
return [3
|
|
1673
|
+
return [3, 11];
|
|
1674
1674
|
case 8:
|
|
1675
1675
|
_f = [{}];
|
|
1676
|
-
return [4
|
|
1676
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1677
1677
|
case 9:
|
|
1678
1678
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1679
|
-
return [3
|
|
1679
|
+
return [3, 11];
|
|
1680
1680
|
case 10:
|
|
1681
1681
|
parsedBody = parsedOutput.body;
|
|
1682
1682
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1686,7 +1686,7 @@ var deserializeAws_json1_1ValidatePipelineDefinitionCommandError = function (out
|
|
|
1686
1686
|
message = response.message || response.Message || errorCode;
|
|
1687
1687
|
response.message = message;
|
|
1688
1688
|
delete response.Message;
|
|
1689
|
-
return [2
|
|
1689
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
}); };
|
|
@@ -1696,7 +1696,7 @@ var deserializeAws_json1_1InternalServiceErrorResponse = function (parsedOutput,
|
|
|
1696
1696
|
body = parsedOutput.body;
|
|
1697
1697
|
deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
1698
1698
|
contents = __assign({ name: "InternalServiceError", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1699
|
-
return [2
|
|
1699
|
+
return [2, contents];
|
|
1700
1700
|
});
|
|
1701
1701
|
}); };
|
|
1702
1702
|
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1705,7 +1705,7 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
|
|
|
1705
1705
|
body = parsedOutput.body;
|
|
1706
1706
|
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1707
1707
|
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1708
|
-
return [2
|
|
1708
|
+
return [2, contents];
|
|
1709
1709
|
});
|
|
1710
1710
|
}); };
|
|
1711
1711
|
var deserializeAws_json1_1PipelineDeletedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1714,7 +1714,7 @@ var deserializeAws_json1_1PipelineDeletedExceptionResponse = function (parsedOut
|
|
|
1714
1714
|
body = parsedOutput.body;
|
|
1715
1715
|
deserialized = deserializeAws_json1_1PipelineDeletedException(body, context);
|
|
1716
1716
|
contents = __assign({ name: "PipelineDeletedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1717
|
-
return [2
|
|
1717
|
+
return [2, contents];
|
|
1718
1718
|
});
|
|
1719
1719
|
}); };
|
|
1720
1720
|
var deserializeAws_json1_1PipelineNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1723,7 +1723,7 @@ var deserializeAws_json1_1PipelineNotFoundExceptionResponse = function (parsedOu
|
|
|
1723
1723
|
body = parsedOutput.body;
|
|
1724
1724
|
deserialized = deserializeAws_json1_1PipelineNotFoundException(body, context);
|
|
1725
1725
|
contents = __assign({ name: "PipelineNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1726
|
-
return [2
|
|
1726
|
+
return [2, contents];
|
|
1727
1727
|
});
|
|
1728
1728
|
}); };
|
|
1729
1729
|
var deserializeAws_json1_1TaskNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1732,7 +1732,7 @@ var deserializeAws_json1_1TaskNotFoundExceptionResponse = function (parsedOutput
|
|
|
1732
1732
|
body = parsedOutput.body;
|
|
1733
1733
|
deserialized = deserializeAws_json1_1TaskNotFoundException(body, context);
|
|
1734
1734
|
contents = __assign({ name: "TaskNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1735
|
-
return [2
|
|
1735
|
+
return [2, contents];
|
|
1736
1736
|
});
|
|
1737
1737
|
}); };
|
|
1738
1738
|
var serializeAws_json1_1ActivatePipelineInput = function (input, context) {
|
|
@@ -2312,7 +2312,6 @@ var deserializeMetadata = function (output) {
|
|
|
2312
2312
|
cfId: output.headers["x-amz-cf-id"],
|
|
2313
2313
|
});
|
|
2314
2314
|
};
|
|
2315
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2316
2315
|
var collectBody = function (streamBody, context) {
|
|
2317
2316
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2318
2317
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2320,7 +2319,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2320
2319
|
}
|
|
2321
2320
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2322
2321
|
};
|
|
2323
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2324
2322
|
var collectBodyString = function (streamBody, context) {
|
|
2325
2323
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2326
2324
|
};
|
|
@@ -2328,7 +2326,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2328
2326
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2329
2327
|
return __generator(this, function (_c) {
|
|
2330
2328
|
switch (_c.label) {
|
|
2331
|
-
case 0: return [4
|
|
2329
|
+
case 0: return [4, context.endpoint()];
|
|
2332
2330
|
case 1:
|
|
2333
2331
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2334
2332
|
contents = {
|
|
@@ -2345,7 +2343,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2345
2343
|
if (body !== undefined) {
|
|
2346
2344
|
contents.body = body;
|
|
2347
2345
|
}
|
|
2348
|
-
return [2
|
|
2346
|
+
return [2, new __HttpRequest(contents)];
|
|
2349
2347
|
}
|
|
2350
2348
|
});
|
|
2351
2349
|
}); };
|
|
@@ -2357,9 +2355,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2357
2355
|
return {};
|
|
2358
2356
|
});
|
|
2359
2357
|
};
|
|
2360
|
-
/**
|
|
2361
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2362
|
-
*/
|
|
2363
2358
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2364
2359
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2365
2360
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -2384,4 +2379,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2384
2379
|
}
|
|
2385
2380
|
return "";
|
|
2386
2381
|
};
|
|
2387
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|