@aws-sdk/client-codepipeline 3.30.0 → 3.34.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 +35 -0
- package/dist/cjs/CodePipelineClient.js +13 -13
- package/dist/cjs/CodePipelineClient.js.map +1 -1
- package/dist/cjs/commands/AcknowledgeJobCommand.js +3 -3
- package/dist/cjs/commands/AcknowledgeJobCommand.js.map +1 -1
- package/dist/cjs/commands/AcknowledgeThirdPartyJobCommand.js +3 -3
- package/dist/cjs/commands/AcknowledgeThirdPartyJobCommand.js.map +1 -1
- package/dist/cjs/commands/CreateCustomActionTypeCommand.js +3 -3
- package/dist/cjs/commands/CreateCustomActionTypeCommand.js.map +1 -1
- package/dist/cjs/commands/CreatePipelineCommand.js +3 -3
- package/dist/cjs/commands/CreatePipelineCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCustomActionTypeCommand.js +3 -3
- package/dist/cjs/commands/DeleteCustomActionTypeCommand.js.map +1 -1
- package/dist/cjs/commands/DeletePipelineCommand.js +3 -3
- package/dist/cjs/commands/DeletePipelineCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteWebhookCommand.js +3 -3
- package/dist/cjs/commands/DeleteWebhookCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterWebhookWithThirdPartyCommand.js +3 -3
- package/dist/cjs/commands/DeregisterWebhookWithThirdPartyCommand.js.map +1 -1
- package/dist/cjs/commands/DisableStageTransitionCommand.js +3 -3
- package/dist/cjs/commands/DisableStageTransitionCommand.js.map +1 -1
- package/dist/cjs/commands/EnableStageTransitionCommand.js +3 -3
- package/dist/cjs/commands/EnableStageTransitionCommand.js.map +1 -1
- package/dist/cjs/commands/GetActionTypeCommand.js +3 -3
- package/dist/cjs/commands/GetActionTypeCommand.js.map +1 -1
- package/dist/cjs/commands/GetJobDetailsCommand.js +3 -3
- package/dist/cjs/commands/GetJobDetailsCommand.js.map +1 -1
- package/dist/cjs/commands/GetPipelineCommand.js +3 -3
- package/dist/cjs/commands/GetPipelineCommand.js.map +1 -1
- package/dist/cjs/commands/GetPipelineExecutionCommand.js +3 -3
- package/dist/cjs/commands/GetPipelineExecutionCommand.js.map +1 -1
- package/dist/cjs/commands/GetPipelineStateCommand.js +3 -3
- package/dist/cjs/commands/GetPipelineStateCommand.js.map +1 -1
- package/dist/cjs/commands/GetThirdPartyJobDetailsCommand.js +3 -3
- package/dist/cjs/commands/GetThirdPartyJobDetailsCommand.js.map +1 -1
- package/dist/cjs/commands/ListActionExecutionsCommand.js +3 -3
- package/dist/cjs/commands/ListActionExecutionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListActionTypesCommand.js +3 -3
- package/dist/cjs/commands/ListActionTypesCommand.js.map +1 -1
- package/dist/cjs/commands/ListPipelineExecutionsCommand.js +3 -3
- package/dist/cjs/commands/ListPipelineExecutionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListPipelinesCommand.js +3 -3
- package/dist/cjs/commands/ListPipelinesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListWebhooksCommand.js +3 -3
- package/dist/cjs/commands/ListWebhooksCommand.js.map +1 -1
- package/dist/cjs/commands/PollForJobsCommand.js +3 -3
- package/dist/cjs/commands/PollForJobsCommand.js.map +1 -1
- package/dist/cjs/commands/PollForThirdPartyJobsCommand.js +3 -3
- package/dist/cjs/commands/PollForThirdPartyJobsCommand.js.map +1 -1
- package/dist/cjs/commands/PutActionRevisionCommand.js +3 -3
- package/dist/cjs/commands/PutActionRevisionCommand.js.map +1 -1
- package/dist/cjs/commands/PutApprovalResultCommand.js +3 -3
- package/dist/cjs/commands/PutApprovalResultCommand.js.map +1 -1
- package/dist/cjs/commands/PutJobFailureResultCommand.js +3 -3
- package/dist/cjs/commands/PutJobFailureResultCommand.js.map +1 -1
- package/dist/cjs/commands/PutJobSuccessResultCommand.js +3 -3
- package/dist/cjs/commands/PutJobSuccessResultCommand.js.map +1 -1
- package/dist/cjs/commands/PutThirdPartyJobFailureResultCommand.js +3 -3
- package/dist/cjs/commands/PutThirdPartyJobFailureResultCommand.js.map +1 -1
- package/dist/cjs/commands/PutThirdPartyJobSuccessResultCommand.js +3 -3
- package/dist/cjs/commands/PutThirdPartyJobSuccessResultCommand.js.map +1 -1
- package/dist/cjs/commands/PutWebhookCommand.js +3 -3
- package/dist/cjs/commands/PutWebhookCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterWebhookWithThirdPartyCommand.js +3 -3
- package/dist/cjs/commands/RegisterWebhookWithThirdPartyCommand.js.map +1 -1
- package/dist/cjs/commands/RetryStageExecutionCommand.js +3 -3
- package/dist/cjs/commands/RetryStageExecutionCommand.js.map +1 -1
- package/dist/cjs/commands/StartPipelineExecutionCommand.js +3 -3
- package/dist/cjs/commands/StartPipelineExecutionCommand.js.map +1 -1
- package/dist/cjs/commands/StopPipelineExecutionCommand.js +3 -3
- package/dist/cjs/commands/StopPipelineExecutionCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateActionTypeCommand.js +3 -3
- package/dist/cjs/commands/UpdateActionTypeCommand.js.map +1 -1
- package/dist/cjs/commands/UpdatePipelineCommand.js +3 -3
- package/dist/cjs/commands/UpdatePipelineCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +49 -49
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +241 -225
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/CodePipeline.js +1 -198
- package/dist/es/CodePipeline.js.map +1 -1
- package/dist/es/CodePipelineClient.js +1 -203
- package/dist/es/CodePipelineClient.js.map +1 -1
- package/dist/es/commands/AcknowledgeJobCommand.js +2 -28
- package/dist/es/commands/AcknowledgeJobCommand.js.map +1 -1
- package/dist/es/commands/AcknowledgeThirdPartyJobCommand.js +2 -28
- package/dist/es/commands/AcknowledgeThirdPartyJobCommand.js.map +1 -1
- package/dist/es/commands/CreateCustomActionTypeCommand.js +2 -28
- package/dist/es/commands/CreateCustomActionTypeCommand.js.map +1 -1
- package/dist/es/commands/CreatePipelineCommand.js +2 -33
- package/dist/es/commands/CreatePipelineCommand.js.map +1 -1
- package/dist/es/commands/DeleteCustomActionTypeCommand.js +2 -35
- package/dist/es/commands/DeleteCustomActionTypeCommand.js.map +1 -1
- package/dist/es/commands/DeletePipelineCommand.js +2 -27
- package/dist/es/commands/DeletePipelineCommand.js.map +1 -1
- package/dist/es/commands/DeleteWebhookCommand.js +2 -31
- package/dist/es/commands/DeleteWebhookCommand.js.map +1 -1
- package/dist/es/commands/DeregisterWebhookWithThirdPartyCommand.js +2 -29
- package/dist/es/commands/DeregisterWebhookWithThirdPartyCommand.js.map +1 -1
- package/dist/es/commands/DisableStageTransitionCommand.js +2 -28
- package/dist/es/commands/DisableStageTransitionCommand.js.map +1 -1
- package/dist/es/commands/EnableStageTransitionCommand.js +2 -27
- package/dist/es/commands/EnableStageTransitionCommand.js.map +1 -1
- package/dist/es/commands/GetActionTypeCommand.js +2 -29
- package/dist/es/commands/GetActionTypeCommand.js.map +1 -1
- package/dist/es/commands/GetJobDetailsCommand.js +2 -33
- package/dist/es/commands/GetJobDetailsCommand.js.map +1 -1
- package/dist/es/commands/GetPipelineCommand.js +2 -29
- package/dist/es/commands/GetPipelineCommand.js.map +1 -1
- package/dist/es/commands/GetPipelineExecutionCommand.js +2 -29
- package/dist/es/commands/GetPipelineExecutionCommand.js.map +1 -1
- package/dist/es/commands/GetPipelineStateCommand.js +2 -33
- package/dist/es/commands/GetPipelineStateCommand.js.map +1 -1
- package/dist/es/commands/GetThirdPartyJobDetailsCommand.js +2 -34
- package/dist/es/commands/GetThirdPartyJobDetailsCommand.js.map +1 -1
- package/dist/es/commands/ListActionExecutionsCommand.js +2 -27
- package/dist/es/commands/ListActionExecutionsCommand.js.map +1 -1
- package/dist/es/commands/ListActionTypesCommand.js +2 -28
- package/dist/es/commands/ListActionTypesCommand.js.map +1 -1
- package/dist/es/commands/ListPipelineExecutionsCommand.js +2 -27
- package/dist/es/commands/ListPipelineExecutionsCommand.js.map +1 -1
- package/dist/es/commands/ListPipelinesCommand.js +2 -27
- package/dist/es/commands/ListPipelinesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListWebhooksCommand.js +2 -29
- package/dist/es/commands/ListWebhooksCommand.js.map +1 -1
- package/dist/es/commands/PollForJobsCommand.js +2 -36
- package/dist/es/commands/PollForJobsCommand.js.map +1 -1
- package/dist/es/commands/PollForThirdPartyJobsCommand.js +2 -33
- package/dist/es/commands/PollForThirdPartyJobsCommand.js.map +1 -1
- package/dist/es/commands/PutActionRevisionCommand.js +2 -27
- package/dist/es/commands/PutActionRevisionCommand.js.map +1 -1
- package/dist/es/commands/PutApprovalResultCommand.js +2 -28
- package/dist/es/commands/PutApprovalResultCommand.js.map +1 -1
- package/dist/es/commands/PutJobFailureResultCommand.js +2 -28
- package/dist/es/commands/PutJobFailureResultCommand.js.map +1 -1
- package/dist/es/commands/PutJobSuccessResultCommand.js +2 -28
- package/dist/es/commands/PutJobSuccessResultCommand.js.map +1 -1
- package/dist/es/commands/PutThirdPartyJobFailureResultCommand.js +2 -28
- package/dist/es/commands/PutThirdPartyJobFailureResultCommand.js.map +1 -1
- package/dist/es/commands/PutThirdPartyJobSuccessResultCommand.js +2 -28
- package/dist/es/commands/PutThirdPartyJobSuccessResultCommand.js.map +1 -1
- package/dist/es/commands/PutWebhookCommand.js +2 -33
- package/dist/es/commands/PutWebhookCommand.js.map +1 -1
- package/dist/es/commands/RegisterWebhookWithThirdPartyCommand.js +2 -28
- package/dist/es/commands/RegisterWebhookWithThirdPartyCommand.js.map +1 -1
- package/dist/es/commands/RetryStageExecutionCommand.js +2 -30
- package/dist/es/commands/RetryStageExecutionCommand.js.map +1 -1
- package/dist/es/commands/StartPipelineExecutionCommand.js +2 -28
- package/dist/es/commands/StartPipelineExecutionCommand.js.map +1 -1
- package/dist/es/commands/StopPipelineExecutionCommand.js +2 -32
- package/dist/es/commands/StopPipelineExecutionCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -28
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateActionTypeCommand.js +2 -30
- package/dist/es/commands/UpdateActionTypeCommand.js.map +1 -1
- package/dist/es/commands/UpdatePipelineCommand.js +2 -30
- package/dist/es/commands/UpdatePipelineCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -519
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListActionExecutionsPaginator.js +16 -28
- package/dist/es/pagination/ListActionExecutionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListActionTypesPaginator.js +16 -28
- package/dist/es/pagination/ListActionTypesPaginator.js.map +1 -1
- package/dist/es/pagination/ListPipelineExecutionsPaginator.js +16 -28
- package/dist/es/pagination/ListPipelineExecutionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPipelinesPaginator.js +16 -28
- package/dist/es/pagination/ListPipelinesPaginator.js.map +1 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js +16 -28
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +1 -1
- package/dist/es/pagination/ListWebhooksPaginator.js +16 -28
- package/dist/es/pagination/ListWebhooksPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +912 -901
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +35 -16
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
export var serializeAws_json1_1AcknowledgeJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var headers, body;
|
|
@@ -10,7 +10,7 @@ export var serializeAws_json1_1AcknowledgeJobCommand = function (input, context)
|
|
|
10
10
|
"x-amz-target": "CodePipeline_20150709.AcknowledgeJob",
|
|
11
11
|
};
|
|
12
12
|
body = JSON.stringify(serializeAws_json1_1AcknowledgeJobInput(input, context));
|
|
13
|
-
return [2
|
|
13
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
14
14
|
});
|
|
15
15
|
}); };
|
|
16
16
|
export var serializeAws_json1_1AcknowledgeThirdPartyJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -21,7 +21,7 @@ export var serializeAws_json1_1AcknowledgeThirdPartyJobCommand = function (input
|
|
|
21
21
|
"x-amz-target": "CodePipeline_20150709.AcknowledgeThirdPartyJob",
|
|
22
22
|
};
|
|
23
23
|
body = JSON.stringify(serializeAws_json1_1AcknowledgeThirdPartyJobInput(input, context));
|
|
24
|
-
return [2
|
|
24
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
25
25
|
});
|
|
26
26
|
}); };
|
|
27
27
|
export var serializeAws_json1_1CreateCustomActionTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -32,7 +32,7 @@ export var serializeAws_json1_1CreateCustomActionTypeCommand = function (input,
|
|
|
32
32
|
"x-amz-target": "CodePipeline_20150709.CreateCustomActionType",
|
|
33
33
|
};
|
|
34
34
|
body = JSON.stringify(serializeAws_json1_1CreateCustomActionTypeInput(input, context));
|
|
35
|
-
return [2
|
|
35
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
36
36
|
});
|
|
37
37
|
}); };
|
|
38
38
|
export var serializeAws_json1_1CreatePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -43,7 +43,7 @@ export var serializeAws_json1_1CreatePipelineCommand = function (input, context)
|
|
|
43
43
|
"x-amz-target": "CodePipeline_20150709.CreatePipeline",
|
|
44
44
|
};
|
|
45
45
|
body = JSON.stringify(serializeAws_json1_1CreatePipelineInput(input, context));
|
|
46
|
-
return [2
|
|
46
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
47
47
|
});
|
|
48
48
|
}); };
|
|
49
49
|
export var serializeAws_json1_1DeleteCustomActionTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -54,7 +54,7 @@ export var serializeAws_json1_1DeleteCustomActionTypeCommand = function (input,
|
|
|
54
54
|
"x-amz-target": "CodePipeline_20150709.DeleteCustomActionType",
|
|
55
55
|
};
|
|
56
56
|
body = JSON.stringify(serializeAws_json1_1DeleteCustomActionTypeInput(input, context));
|
|
57
|
-
return [2
|
|
57
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
58
58
|
});
|
|
59
59
|
}); };
|
|
60
60
|
export var serializeAws_json1_1DeletePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -65,7 +65,7 @@ export var serializeAws_json1_1DeletePipelineCommand = function (input, context)
|
|
|
65
65
|
"x-amz-target": "CodePipeline_20150709.DeletePipeline",
|
|
66
66
|
};
|
|
67
67
|
body = JSON.stringify(serializeAws_json1_1DeletePipelineInput(input, context));
|
|
68
|
-
return [2
|
|
68
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
69
69
|
});
|
|
70
70
|
}); };
|
|
71
71
|
export var serializeAws_json1_1DeleteWebhookCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -76,7 +76,7 @@ export var serializeAws_json1_1DeleteWebhookCommand = function (input, context)
|
|
|
76
76
|
"x-amz-target": "CodePipeline_20150709.DeleteWebhook",
|
|
77
77
|
};
|
|
78
78
|
body = JSON.stringify(serializeAws_json1_1DeleteWebhookInput(input, context));
|
|
79
|
-
return [2
|
|
79
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
80
80
|
});
|
|
81
81
|
}); };
|
|
82
82
|
export var serializeAws_json1_1DeregisterWebhookWithThirdPartyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -87,7 +87,7 @@ export var serializeAws_json1_1DeregisterWebhookWithThirdPartyCommand = function
|
|
|
87
87
|
"x-amz-target": "CodePipeline_20150709.DeregisterWebhookWithThirdParty",
|
|
88
88
|
};
|
|
89
89
|
body = JSON.stringify(serializeAws_json1_1DeregisterWebhookWithThirdPartyInput(input, context));
|
|
90
|
-
return [2
|
|
90
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
91
91
|
});
|
|
92
92
|
}); };
|
|
93
93
|
export var serializeAws_json1_1DisableStageTransitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -98,7 +98,7 @@ export var serializeAws_json1_1DisableStageTransitionCommand = function (input,
|
|
|
98
98
|
"x-amz-target": "CodePipeline_20150709.DisableStageTransition",
|
|
99
99
|
};
|
|
100
100
|
body = JSON.stringify(serializeAws_json1_1DisableStageTransitionInput(input, context));
|
|
101
|
-
return [2
|
|
101
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
102
102
|
});
|
|
103
103
|
}); };
|
|
104
104
|
export var serializeAws_json1_1EnableStageTransitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -109,7 +109,7 @@ export var serializeAws_json1_1EnableStageTransitionCommand = function (input, c
|
|
|
109
109
|
"x-amz-target": "CodePipeline_20150709.EnableStageTransition",
|
|
110
110
|
};
|
|
111
111
|
body = JSON.stringify(serializeAws_json1_1EnableStageTransitionInput(input, context));
|
|
112
|
-
return [2
|
|
112
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
113
113
|
});
|
|
114
114
|
}); };
|
|
115
115
|
export var serializeAws_json1_1GetActionTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -120,7 +120,7 @@ export var serializeAws_json1_1GetActionTypeCommand = function (input, context)
|
|
|
120
120
|
"x-amz-target": "CodePipeline_20150709.GetActionType",
|
|
121
121
|
};
|
|
122
122
|
body = JSON.stringify(serializeAws_json1_1GetActionTypeInput(input, context));
|
|
123
|
-
return [2
|
|
123
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
124
124
|
});
|
|
125
125
|
}); };
|
|
126
126
|
export var serializeAws_json1_1GetJobDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -131,7 +131,7 @@ export var serializeAws_json1_1GetJobDetailsCommand = function (input, context)
|
|
|
131
131
|
"x-amz-target": "CodePipeline_20150709.GetJobDetails",
|
|
132
132
|
};
|
|
133
133
|
body = JSON.stringify(serializeAws_json1_1GetJobDetailsInput(input, context));
|
|
134
|
-
return [2
|
|
134
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
135
135
|
});
|
|
136
136
|
}); };
|
|
137
137
|
export var serializeAws_json1_1GetPipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -142,7 +142,7 @@ export var serializeAws_json1_1GetPipelineCommand = function (input, context) {
|
|
|
142
142
|
"x-amz-target": "CodePipeline_20150709.GetPipeline",
|
|
143
143
|
};
|
|
144
144
|
body = JSON.stringify(serializeAws_json1_1GetPipelineInput(input, context));
|
|
145
|
-
return [2
|
|
145
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
146
146
|
});
|
|
147
147
|
}); };
|
|
148
148
|
export var serializeAws_json1_1GetPipelineExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -153,7 +153,7 @@ export var serializeAws_json1_1GetPipelineExecutionCommand = function (input, co
|
|
|
153
153
|
"x-amz-target": "CodePipeline_20150709.GetPipelineExecution",
|
|
154
154
|
};
|
|
155
155
|
body = JSON.stringify(serializeAws_json1_1GetPipelineExecutionInput(input, context));
|
|
156
|
-
return [2
|
|
156
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
157
157
|
});
|
|
158
158
|
}); };
|
|
159
159
|
export var serializeAws_json1_1GetPipelineStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -164,7 +164,7 @@ export var serializeAws_json1_1GetPipelineStateCommand = function (input, contex
|
|
|
164
164
|
"x-amz-target": "CodePipeline_20150709.GetPipelineState",
|
|
165
165
|
};
|
|
166
166
|
body = JSON.stringify(serializeAws_json1_1GetPipelineStateInput(input, context));
|
|
167
|
-
return [2
|
|
167
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
168
168
|
});
|
|
169
169
|
}); };
|
|
170
170
|
export var serializeAws_json1_1GetThirdPartyJobDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -175,7 +175,7 @@ export var serializeAws_json1_1GetThirdPartyJobDetailsCommand = function (input,
|
|
|
175
175
|
"x-amz-target": "CodePipeline_20150709.GetThirdPartyJobDetails",
|
|
176
176
|
};
|
|
177
177
|
body = JSON.stringify(serializeAws_json1_1GetThirdPartyJobDetailsInput(input, context));
|
|
178
|
-
return [2
|
|
178
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
179
179
|
});
|
|
180
180
|
}); };
|
|
181
181
|
export var serializeAws_json1_1ListActionExecutionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -186,7 +186,7 @@ export var serializeAws_json1_1ListActionExecutionsCommand = function (input, co
|
|
|
186
186
|
"x-amz-target": "CodePipeline_20150709.ListActionExecutions",
|
|
187
187
|
};
|
|
188
188
|
body = JSON.stringify(serializeAws_json1_1ListActionExecutionsInput(input, context));
|
|
189
|
-
return [2
|
|
189
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
190
190
|
});
|
|
191
191
|
}); };
|
|
192
192
|
export var serializeAws_json1_1ListActionTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -197,7 +197,7 @@ export var serializeAws_json1_1ListActionTypesCommand = function (input, context
|
|
|
197
197
|
"x-amz-target": "CodePipeline_20150709.ListActionTypes",
|
|
198
198
|
};
|
|
199
199
|
body = JSON.stringify(serializeAws_json1_1ListActionTypesInput(input, context));
|
|
200
|
-
return [2
|
|
200
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
201
201
|
});
|
|
202
202
|
}); };
|
|
203
203
|
export var serializeAws_json1_1ListPipelineExecutionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -208,7 +208,7 @@ export var serializeAws_json1_1ListPipelineExecutionsCommand = function (input,
|
|
|
208
208
|
"x-amz-target": "CodePipeline_20150709.ListPipelineExecutions",
|
|
209
209
|
};
|
|
210
210
|
body = JSON.stringify(serializeAws_json1_1ListPipelineExecutionsInput(input, context));
|
|
211
|
-
return [2
|
|
211
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
212
212
|
});
|
|
213
213
|
}); };
|
|
214
214
|
export var serializeAws_json1_1ListPipelinesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -219,7 +219,7 @@ export var serializeAws_json1_1ListPipelinesCommand = function (input, context)
|
|
|
219
219
|
"x-amz-target": "CodePipeline_20150709.ListPipelines",
|
|
220
220
|
};
|
|
221
221
|
body = JSON.stringify(serializeAws_json1_1ListPipelinesInput(input, context));
|
|
222
|
-
return [2
|
|
222
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
223
223
|
});
|
|
224
224
|
}); };
|
|
225
225
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -230,7 +230,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
230
230
|
"x-amz-target": "CodePipeline_20150709.ListTagsForResource",
|
|
231
231
|
};
|
|
232
232
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceInput(input, context));
|
|
233
|
-
return [2
|
|
233
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
234
|
});
|
|
235
235
|
}); };
|
|
236
236
|
export var serializeAws_json1_1ListWebhooksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -241,7 +241,7 @@ export var serializeAws_json1_1ListWebhooksCommand = function (input, context) {
|
|
|
241
241
|
"x-amz-target": "CodePipeline_20150709.ListWebhooks",
|
|
242
242
|
};
|
|
243
243
|
body = JSON.stringify(serializeAws_json1_1ListWebhooksInput(input, context));
|
|
244
|
-
return [2
|
|
244
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
245
245
|
});
|
|
246
246
|
}); };
|
|
247
247
|
export var serializeAws_json1_1PollForJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -252,7 +252,7 @@ export var serializeAws_json1_1PollForJobsCommand = function (input, context) {
|
|
|
252
252
|
"x-amz-target": "CodePipeline_20150709.PollForJobs",
|
|
253
253
|
};
|
|
254
254
|
body = JSON.stringify(serializeAws_json1_1PollForJobsInput(input, context));
|
|
255
|
-
return [2
|
|
255
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
256
256
|
});
|
|
257
257
|
}); };
|
|
258
258
|
export var serializeAws_json1_1PollForThirdPartyJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -263,7 +263,7 @@ export var serializeAws_json1_1PollForThirdPartyJobsCommand = function (input, c
|
|
|
263
263
|
"x-amz-target": "CodePipeline_20150709.PollForThirdPartyJobs",
|
|
264
264
|
};
|
|
265
265
|
body = JSON.stringify(serializeAws_json1_1PollForThirdPartyJobsInput(input, context));
|
|
266
|
-
return [2
|
|
266
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
267
267
|
});
|
|
268
268
|
}); };
|
|
269
269
|
export var serializeAws_json1_1PutActionRevisionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -274,7 +274,7 @@ export var serializeAws_json1_1PutActionRevisionCommand = function (input, conte
|
|
|
274
274
|
"x-amz-target": "CodePipeline_20150709.PutActionRevision",
|
|
275
275
|
};
|
|
276
276
|
body = JSON.stringify(serializeAws_json1_1PutActionRevisionInput(input, context));
|
|
277
|
-
return [2
|
|
277
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
278
278
|
});
|
|
279
279
|
}); };
|
|
280
280
|
export var serializeAws_json1_1PutApprovalResultCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -285,7 +285,7 @@ export var serializeAws_json1_1PutApprovalResultCommand = function (input, conte
|
|
|
285
285
|
"x-amz-target": "CodePipeline_20150709.PutApprovalResult",
|
|
286
286
|
};
|
|
287
287
|
body = JSON.stringify(serializeAws_json1_1PutApprovalResultInput(input, context));
|
|
288
|
-
return [2
|
|
288
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
289
289
|
});
|
|
290
290
|
}); };
|
|
291
291
|
export var serializeAws_json1_1PutJobFailureResultCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -296,7 +296,7 @@ export var serializeAws_json1_1PutJobFailureResultCommand = function (input, con
|
|
|
296
296
|
"x-amz-target": "CodePipeline_20150709.PutJobFailureResult",
|
|
297
297
|
};
|
|
298
298
|
body = JSON.stringify(serializeAws_json1_1PutJobFailureResultInput(input, context));
|
|
299
|
-
return [2
|
|
299
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
300
300
|
});
|
|
301
301
|
}); };
|
|
302
302
|
export var serializeAws_json1_1PutJobSuccessResultCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -307,7 +307,7 @@ export var serializeAws_json1_1PutJobSuccessResultCommand = function (input, con
|
|
|
307
307
|
"x-amz-target": "CodePipeline_20150709.PutJobSuccessResult",
|
|
308
308
|
};
|
|
309
309
|
body = JSON.stringify(serializeAws_json1_1PutJobSuccessResultInput(input, context));
|
|
310
|
-
return [2
|
|
310
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
311
311
|
});
|
|
312
312
|
}); };
|
|
313
313
|
export var serializeAws_json1_1PutThirdPartyJobFailureResultCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -318,7 +318,7 @@ export var serializeAws_json1_1PutThirdPartyJobFailureResultCommand = function (
|
|
|
318
318
|
"x-amz-target": "CodePipeline_20150709.PutThirdPartyJobFailureResult",
|
|
319
319
|
};
|
|
320
320
|
body = JSON.stringify(serializeAws_json1_1PutThirdPartyJobFailureResultInput(input, context));
|
|
321
|
-
return [2
|
|
321
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
322
322
|
});
|
|
323
323
|
}); };
|
|
324
324
|
export var serializeAws_json1_1PutThirdPartyJobSuccessResultCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -329,7 +329,7 @@ export var serializeAws_json1_1PutThirdPartyJobSuccessResultCommand = function (
|
|
|
329
329
|
"x-amz-target": "CodePipeline_20150709.PutThirdPartyJobSuccessResult",
|
|
330
330
|
};
|
|
331
331
|
body = JSON.stringify(serializeAws_json1_1PutThirdPartyJobSuccessResultInput(input, context));
|
|
332
|
-
return [2
|
|
332
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
333
333
|
});
|
|
334
334
|
}); };
|
|
335
335
|
export var serializeAws_json1_1PutWebhookCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -340,7 +340,7 @@ export var serializeAws_json1_1PutWebhookCommand = function (input, context) { r
|
|
|
340
340
|
"x-amz-target": "CodePipeline_20150709.PutWebhook",
|
|
341
341
|
};
|
|
342
342
|
body = JSON.stringify(serializeAws_json1_1PutWebhookInput(input, context));
|
|
343
|
-
return [2
|
|
343
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
344
344
|
});
|
|
345
345
|
}); };
|
|
346
346
|
export var serializeAws_json1_1RegisterWebhookWithThirdPartyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -351,7 +351,7 @@ export var serializeAws_json1_1RegisterWebhookWithThirdPartyCommand = function (
|
|
|
351
351
|
"x-amz-target": "CodePipeline_20150709.RegisterWebhookWithThirdParty",
|
|
352
352
|
};
|
|
353
353
|
body = JSON.stringify(serializeAws_json1_1RegisterWebhookWithThirdPartyInput(input, context));
|
|
354
|
-
return [2
|
|
354
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
355
355
|
});
|
|
356
356
|
}); };
|
|
357
357
|
export var serializeAws_json1_1RetryStageExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -362,7 +362,7 @@ export var serializeAws_json1_1RetryStageExecutionCommand = function (input, con
|
|
|
362
362
|
"x-amz-target": "CodePipeline_20150709.RetryStageExecution",
|
|
363
363
|
};
|
|
364
364
|
body = JSON.stringify(serializeAws_json1_1RetryStageExecutionInput(input, context));
|
|
365
|
-
return [2
|
|
365
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
366
366
|
});
|
|
367
367
|
}); };
|
|
368
368
|
export var serializeAws_json1_1StartPipelineExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -373,7 +373,7 @@ export var serializeAws_json1_1StartPipelineExecutionCommand = function (input,
|
|
|
373
373
|
"x-amz-target": "CodePipeline_20150709.StartPipelineExecution",
|
|
374
374
|
};
|
|
375
375
|
body = JSON.stringify(serializeAws_json1_1StartPipelineExecutionInput(input, context));
|
|
376
|
-
return [2
|
|
376
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
377
377
|
});
|
|
378
378
|
}); };
|
|
379
379
|
export var serializeAws_json1_1StopPipelineExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -384,7 +384,7 @@ export var serializeAws_json1_1StopPipelineExecutionCommand = function (input, c
|
|
|
384
384
|
"x-amz-target": "CodePipeline_20150709.StopPipelineExecution",
|
|
385
385
|
};
|
|
386
386
|
body = JSON.stringify(serializeAws_json1_1StopPipelineExecutionInput(input, context));
|
|
387
|
-
return [2
|
|
387
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
388
388
|
});
|
|
389
389
|
}); };
|
|
390
390
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -395,7 +395,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
395
395
|
"x-amz-target": "CodePipeline_20150709.TagResource",
|
|
396
396
|
};
|
|
397
397
|
body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context));
|
|
398
|
-
return [2
|
|
398
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
399
399
|
});
|
|
400
400
|
}); };
|
|
401
401
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -406,7 +406,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
406
406
|
"x-amz-target": "CodePipeline_20150709.UntagResource",
|
|
407
407
|
};
|
|
408
408
|
body = JSON.stringify(serializeAws_json1_1UntagResourceInput(input, context));
|
|
409
|
-
return [2
|
|
409
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
410
410
|
});
|
|
411
411
|
}); };
|
|
412
412
|
export var serializeAws_json1_1UpdateActionTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -417,7 +417,7 @@ export var serializeAws_json1_1UpdateActionTypeCommand = function (input, contex
|
|
|
417
417
|
"x-amz-target": "CodePipeline_20150709.UpdateActionType",
|
|
418
418
|
};
|
|
419
419
|
body = JSON.stringify(serializeAws_json1_1UpdateActionTypeInput(input, context));
|
|
420
|
-
return [2
|
|
420
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
421
421
|
});
|
|
422
422
|
}); };
|
|
423
423
|
export var serializeAws_json1_1UpdatePipelineCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -428,7 +428,7 @@ export var serializeAws_json1_1UpdatePipelineCommand = function (input, context)
|
|
|
428
428
|
"x-amz-target": "CodePipeline_20150709.UpdatePipeline",
|
|
429
429
|
};
|
|
430
430
|
body = JSON.stringify(serializeAws_json1_1UpdatePipelineInput(input, context));
|
|
431
|
-
return [2
|
|
431
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
432
432
|
});
|
|
433
433
|
}); };
|
|
434
434
|
export var deserializeAws_json1_1AcknowledgeJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -437,15 +437,15 @@ export var deserializeAws_json1_1AcknowledgeJobCommand = function (output, conte
|
|
|
437
437
|
switch (_a.label) {
|
|
438
438
|
case 0:
|
|
439
439
|
if (output.statusCode >= 300) {
|
|
440
|
-
return [2
|
|
440
|
+
return [2, deserializeAws_json1_1AcknowledgeJobCommandError(output, context)];
|
|
441
441
|
}
|
|
442
|
-
return [4
|
|
442
|
+
return [4, parseBody(output.body, context)];
|
|
443
443
|
case 1:
|
|
444
444
|
data = _a.sent();
|
|
445
445
|
contents = {};
|
|
446
446
|
contents = deserializeAws_json1_1AcknowledgeJobOutput(data, context);
|
|
447
447
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
448
|
-
return [2
|
|
448
|
+
return [2, Promise.resolve(response)];
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
}); };
|
|
@@ -457,39 +457,39 @@ var deserializeAws_json1_1AcknowledgeJobCommandError = function (output, context
|
|
|
457
457
|
case 0:
|
|
458
458
|
_a = [__assign({}, output)];
|
|
459
459
|
_f = {};
|
|
460
|
-
return [4
|
|
460
|
+
return [4, parseBody(output.body, context)];
|
|
461
461
|
case 1:
|
|
462
462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
463
463
|
errorCode = "UnknownError";
|
|
464
464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
465
|
_b = errorCode;
|
|
466
466
|
switch (_b) {
|
|
467
|
-
case "InvalidNonceException": return [3
|
|
468
|
-
case "com.amazonaws.codepipeline#InvalidNonceException": return [3
|
|
469
|
-
case "JobNotFoundException": return [3
|
|
470
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
471
|
-
case "ValidationException": return [3
|
|
472
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
467
|
+
case "InvalidNonceException": return [3, 2];
|
|
468
|
+
case "com.amazonaws.codepipeline#InvalidNonceException": return [3, 2];
|
|
469
|
+
case "JobNotFoundException": return [3, 4];
|
|
470
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 4];
|
|
471
|
+
case "ValidationException": return [3, 6];
|
|
472
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
473
473
|
}
|
|
474
|
-
return [3
|
|
474
|
+
return [3, 8];
|
|
475
475
|
case 2:
|
|
476
476
|
_c = [{}];
|
|
477
|
-
return [4
|
|
477
|
+
return [4, deserializeAws_json1_1InvalidNonceExceptionResponse(parsedOutput, context)];
|
|
478
478
|
case 3:
|
|
479
479
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
480
|
-
return [3
|
|
480
|
+
return [3, 9];
|
|
481
481
|
case 4:
|
|
482
482
|
_d = [{}];
|
|
483
|
-
return [4
|
|
483
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
484
484
|
case 5:
|
|
485
485
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
486
|
-
return [3
|
|
486
|
+
return [3, 9];
|
|
487
487
|
case 6:
|
|
488
488
|
_e = [{}];
|
|
489
|
-
return [4
|
|
489
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
490
490
|
case 7:
|
|
491
491
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
492
|
-
return [3
|
|
492
|
+
return [3, 9];
|
|
493
493
|
case 8:
|
|
494
494
|
parsedBody = parsedOutput.body;
|
|
495
495
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -499,7 +499,7 @@ var deserializeAws_json1_1AcknowledgeJobCommandError = function (output, context
|
|
|
499
499
|
message = response.message || response.Message || errorCode;
|
|
500
500
|
response.message = message;
|
|
501
501
|
delete response.Message;
|
|
502
|
-
return [2
|
|
502
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
503
503
|
}
|
|
504
504
|
});
|
|
505
505
|
}); };
|
|
@@ -509,15 +509,15 @@ export var deserializeAws_json1_1AcknowledgeThirdPartyJobCommand = function (out
|
|
|
509
509
|
switch (_a.label) {
|
|
510
510
|
case 0:
|
|
511
511
|
if (output.statusCode >= 300) {
|
|
512
|
-
return [2
|
|
512
|
+
return [2, deserializeAws_json1_1AcknowledgeThirdPartyJobCommandError(output, context)];
|
|
513
513
|
}
|
|
514
|
-
return [4
|
|
514
|
+
return [4, parseBody(output.body, context)];
|
|
515
515
|
case 1:
|
|
516
516
|
data = _a.sent();
|
|
517
517
|
contents = {};
|
|
518
518
|
contents = deserializeAws_json1_1AcknowledgeThirdPartyJobOutput(data, context);
|
|
519
519
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
520
|
-
return [2
|
|
520
|
+
return [2, Promise.resolve(response)];
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
523
|
}); };
|
|
@@ -529,47 +529,47 @@ var deserializeAws_json1_1AcknowledgeThirdPartyJobCommandError = function (outpu
|
|
|
529
529
|
case 0:
|
|
530
530
|
_a = [__assign({}, output)];
|
|
531
531
|
_g = {};
|
|
532
|
-
return [4
|
|
532
|
+
return [4, parseBody(output.body, context)];
|
|
533
533
|
case 1:
|
|
534
534
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
535
535
|
errorCode = "UnknownError";
|
|
536
536
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
537
|
_b = errorCode;
|
|
538
538
|
switch (_b) {
|
|
539
|
-
case "InvalidClientTokenException": return [3
|
|
540
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3
|
|
541
|
-
case "InvalidNonceException": return [3
|
|
542
|
-
case "com.amazonaws.codepipeline#InvalidNonceException": return [3
|
|
543
|
-
case "JobNotFoundException": return [3
|
|
544
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
545
|
-
case "ValidationException": return [3
|
|
546
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
539
|
+
case "InvalidClientTokenException": return [3, 2];
|
|
540
|
+
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3, 2];
|
|
541
|
+
case "InvalidNonceException": return [3, 4];
|
|
542
|
+
case "com.amazonaws.codepipeline#InvalidNonceException": return [3, 4];
|
|
543
|
+
case "JobNotFoundException": return [3, 6];
|
|
544
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 6];
|
|
545
|
+
case "ValidationException": return [3, 8];
|
|
546
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
547
547
|
}
|
|
548
|
-
return [3
|
|
548
|
+
return [3, 10];
|
|
549
549
|
case 2:
|
|
550
550
|
_c = [{}];
|
|
551
|
-
return [4
|
|
551
|
+
return [4, deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
552
552
|
case 3:
|
|
553
553
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
554
|
-
return [3
|
|
554
|
+
return [3, 11];
|
|
555
555
|
case 4:
|
|
556
556
|
_d = [{}];
|
|
557
|
-
return [4
|
|
557
|
+
return [4, deserializeAws_json1_1InvalidNonceExceptionResponse(parsedOutput, context)];
|
|
558
558
|
case 5:
|
|
559
559
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
560
|
-
return [3
|
|
560
|
+
return [3, 11];
|
|
561
561
|
case 6:
|
|
562
562
|
_e = [{}];
|
|
563
|
-
return [4
|
|
563
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
564
564
|
case 7:
|
|
565
565
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
566
|
-
return [3
|
|
566
|
+
return [3, 11];
|
|
567
567
|
case 8:
|
|
568
568
|
_f = [{}];
|
|
569
|
-
return [4
|
|
569
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
570
570
|
case 9:
|
|
571
571
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
572
|
-
return [3
|
|
572
|
+
return [3, 11];
|
|
573
573
|
case 10:
|
|
574
574
|
parsedBody = parsedOutput.body;
|
|
575
575
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -579,7 +579,7 @@ var deserializeAws_json1_1AcknowledgeThirdPartyJobCommandError = function (outpu
|
|
|
579
579
|
message = response.message || response.Message || errorCode;
|
|
580
580
|
response.message = message;
|
|
581
581
|
delete response.Message;
|
|
582
|
-
return [2
|
|
582
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
}); };
|
|
@@ -589,15 +589,15 @@ export var deserializeAws_json1_1CreateCustomActionTypeCommand = function (outpu
|
|
|
589
589
|
switch (_a.label) {
|
|
590
590
|
case 0:
|
|
591
591
|
if (output.statusCode >= 300) {
|
|
592
|
-
return [2
|
|
592
|
+
return [2, deserializeAws_json1_1CreateCustomActionTypeCommandError(output, context)];
|
|
593
593
|
}
|
|
594
|
-
return [4
|
|
594
|
+
return [4, parseBody(output.body, context)];
|
|
595
595
|
case 1:
|
|
596
596
|
data = _a.sent();
|
|
597
597
|
contents = {};
|
|
598
598
|
contents = deserializeAws_json1_1CreateCustomActionTypeOutput(data, context);
|
|
599
599
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
600
|
-
return [2
|
|
600
|
+
return [2, Promise.resolve(response)];
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
603
|
}); };
|
|
@@ -609,55 +609,55 @@ var deserializeAws_json1_1CreateCustomActionTypeCommandError = function (output,
|
|
|
609
609
|
case 0:
|
|
610
610
|
_a = [__assign({}, output)];
|
|
611
611
|
_h = {};
|
|
612
|
-
return [4
|
|
612
|
+
return [4, parseBody(output.body, context)];
|
|
613
613
|
case 1:
|
|
614
614
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
615
615
|
errorCode = "UnknownError";
|
|
616
616
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
617
|
_b = errorCode;
|
|
618
618
|
switch (_b) {
|
|
619
|
-
case "ConcurrentModificationException": return [3
|
|
620
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
621
|
-
case "InvalidTagsException": return [3
|
|
622
|
-
case "com.amazonaws.codepipeline#InvalidTagsException": return [3
|
|
623
|
-
case "LimitExceededException": return [3
|
|
624
|
-
case "com.amazonaws.codepipeline#LimitExceededException": return [3
|
|
625
|
-
case "TooManyTagsException": return [3
|
|
626
|
-
case "com.amazonaws.codepipeline#TooManyTagsException": return [3
|
|
627
|
-
case "ValidationException": return [3
|
|
628
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
619
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
620
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
621
|
+
case "InvalidTagsException": return [3, 4];
|
|
622
|
+
case "com.amazonaws.codepipeline#InvalidTagsException": return [3, 4];
|
|
623
|
+
case "LimitExceededException": return [3, 6];
|
|
624
|
+
case "com.amazonaws.codepipeline#LimitExceededException": return [3, 6];
|
|
625
|
+
case "TooManyTagsException": return [3, 8];
|
|
626
|
+
case "com.amazonaws.codepipeline#TooManyTagsException": return [3, 8];
|
|
627
|
+
case "ValidationException": return [3, 10];
|
|
628
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 10];
|
|
629
629
|
}
|
|
630
|
-
return [3
|
|
630
|
+
return [3, 12];
|
|
631
631
|
case 2:
|
|
632
632
|
_c = [{}];
|
|
633
|
-
return [4
|
|
633
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
634
634
|
case 3:
|
|
635
635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
636
|
-
return [3
|
|
636
|
+
return [3, 13];
|
|
637
637
|
case 4:
|
|
638
638
|
_d = [{}];
|
|
639
|
-
return [4
|
|
639
|
+
return [4, deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)];
|
|
640
640
|
case 5:
|
|
641
641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
642
|
-
return [3
|
|
642
|
+
return [3, 13];
|
|
643
643
|
case 6:
|
|
644
644
|
_e = [{}];
|
|
645
|
-
return [4
|
|
645
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
646
646
|
case 7:
|
|
647
647
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
648
|
-
return [3
|
|
648
|
+
return [3, 13];
|
|
649
649
|
case 8:
|
|
650
650
|
_f = [{}];
|
|
651
|
-
return [4
|
|
651
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
652
652
|
case 9:
|
|
653
653
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
654
|
-
return [3
|
|
654
|
+
return [3, 13];
|
|
655
655
|
case 10:
|
|
656
656
|
_g = [{}];
|
|
657
|
-
return [4
|
|
657
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
658
658
|
case 11:
|
|
659
659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
660
|
-
return [3
|
|
660
|
+
return [3, 13];
|
|
661
661
|
case 12:
|
|
662
662
|
parsedBody = parsedOutput.body;
|
|
663
663
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -667,7 +667,7 @@ var deserializeAws_json1_1CreateCustomActionTypeCommandError = function (output,
|
|
|
667
667
|
message = response.message || response.Message || errorCode;
|
|
668
668
|
response.message = message;
|
|
669
669
|
delete response.Message;
|
|
670
|
-
return [2
|
|
670
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}); };
|
|
@@ -677,15 +677,15 @@ export var deserializeAws_json1_1CreatePipelineCommand = function (output, conte
|
|
|
677
677
|
switch (_a.label) {
|
|
678
678
|
case 0:
|
|
679
679
|
if (output.statusCode >= 300) {
|
|
680
|
-
return [2
|
|
680
|
+
return [2, deserializeAws_json1_1CreatePipelineCommandError(output, context)];
|
|
681
681
|
}
|
|
682
|
-
return [4
|
|
682
|
+
return [4, parseBody(output.body, context)];
|
|
683
683
|
case 1:
|
|
684
684
|
data = _a.sent();
|
|
685
685
|
contents = {};
|
|
686
686
|
contents = deserializeAws_json1_1CreatePipelineOutput(data, context);
|
|
687
687
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
688
|
-
return [2
|
|
688
|
+
return [2, Promise.resolve(response)];
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
}); };
|
|
@@ -697,95 +697,95 @@ var deserializeAws_json1_1CreatePipelineCommandError = function (output, context
|
|
|
697
697
|
case 0:
|
|
698
698
|
_a = [__assign({}, output)];
|
|
699
699
|
_o = {};
|
|
700
|
-
return [4
|
|
700
|
+
return [4, parseBody(output.body, context)];
|
|
701
701
|
case 1:
|
|
702
702
|
parsedOutput = __assign.apply(void 0, _a.concat([(_o.body = _p.sent(), _o)]));
|
|
703
703
|
errorCode = "UnknownError";
|
|
704
704
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
705
|
_b = errorCode;
|
|
706
706
|
switch (_b) {
|
|
707
|
-
case "ConcurrentModificationException": return [3
|
|
708
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
709
|
-
case "InvalidActionDeclarationException": return [3
|
|
710
|
-
case "com.amazonaws.codepipeline#InvalidActionDeclarationException": return [3
|
|
711
|
-
case "InvalidBlockerDeclarationException": return [3
|
|
712
|
-
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException": return [3
|
|
713
|
-
case "InvalidStageDeclarationException": return [3
|
|
714
|
-
case "com.amazonaws.codepipeline#InvalidStageDeclarationException": return [3
|
|
715
|
-
case "InvalidStructureException": return [3
|
|
716
|
-
case "com.amazonaws.codepipeline#InvalidStructureException": return [3
|
|
717
|
-
case "InvalidTagsException": return [3
|
|
718
|
-
case "com.amazonaws.codepipeline#InvalidTagsException": return [3
|
|
719
|
-
case "LimitExceededException": return [3
|
|
720
|
-
case "com.amazonaws.codepipeline#LimitExceededException": return [3
|
|
721
|
-
case "PipelineNameInUseException": return [3
|
|
722
|
-
case "com.amazonaws.codepipeline#PipelineNameInUseException": return [3
|
|
723
|
-
case "TooManyTagsException": return [3
|
|
724
|
-
case "com.amazonaws.codepipeline#TooManyTagsException": return [3
|
|
725
|
-
case "ValidationException": return [3
|
|
726
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
707
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
708
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
709
|
+
case "InvalidActionDeclarationException": return [3, 4];
|
|
710
|
+
case "com.amazonaws.codepipeline#InvalidActionDeclarationException": return [3, 4];
|
|
711
|
+
case "InvalidBlockerDeclarationException": return [3, 6];
|
|
712
|
+
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException": return [3, 6];
|
|
713
|
+
case "InvalidStageDeclarationException": return [3, 8];
|
|
714
|
+
case "com.amazonaws.codepipeline#InvalidStageDeclarationException": return [3, 8];
|
|
715
|
+
case "InvalidStructureException": return [3, 10];
|
|
716
|
+
case "com.amazonaws.codepipeline#InvalidStructureException": return [3, 10];
|
|
717
|
+
case "InvalidTagsException": return [3, 12];
|
|
718
|
+
case "com.amazonaws.codepipeline#InvalidTagsException": return [3, 12];
|
|
719
|
+
case "LimitExceededException": return [3, 14];
|
|
720
|
+
case "com.amazonaws.codepipeline#LimitExceededException": return [3, 14];
|
|
721
|
+
case "PipelineNameInUseException": return [3, 16];
|
|
722
|
+
case "com.amazonaws.codepipeline#PipelineNameInUseException": return [3, 16];
|
|
723
|
+
case "TooManyTagsException": return [3, 18];
|
|
724
|
+
case "com.amazonaws.codepipeline#TooManyTagsException": return [3, 18];
|
|
725
|
+
case "ValidationException": return [3, 20];
|
|
726
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 20];
|
|
727
727
|
}
|
|
728
|
-
return [3
|
|
728
|
+
return [3, 22];
|
|
729
729
|
case 2:
|
|
730
730
|
_c = [{}];
|
|
731
|
-
return [4
|
|
731
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
732
732
|
case 3:
|
|
733
733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
734
|
-
return [3
|
|
734
|
+
return [3, 23];
|
|
735
735
|
case 4:
|
|
736
736
|
_d = [{}];
|
|
737
|
-
return [4
|
|
737
|
+
return [4, deserializeAws_json1_1InvalidActionDeclarationExceptionResponse(parsedOutput, context)];
|
|
738
738
|
case 5:
|
|
739
739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
740
|
-
return [3
|
|
740
|
+
return [3, 23];
|
|
741
741
|
case 6:
|
|
742
742
|
_e = [{}];
|
|
743
|
-
return [4
|
|
743
|
+
return [4, deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse(parsedOutput, context)];
|
|
744
744
|
case 7:
|
|
745
745
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
746
|
-
return [3
|
|
746
|
+
return [3, 23];
|
|
747
747
|
case 8:
|
|
748
748
|
_f = [{}];
|
|
749
|
-
return [4
|
|
749
|
+
return [4, deserializeAws_json1_1InvalidStageDeclarationExceptionResponse(parsedOutput, context)];
|
|
750
750
|
case 9:
|
|
751
751
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
752
|
-
return [3
|
|
752
|
+
return [3, 23];
|
|
753
753
|
case 10:
|
|
754
754
|
_g = [{}];
|
|
755
|
-
return [4
|
|
755
|
+
return [4, deserializeAws_json1_1InvalidStructureExceptionResponse(parsedOutput, context)];
|
|
756
756
|
case 11:
|
|
757
757
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
758
|
-
return [3
|
|
758
|
+
return [3, 23];
|
|
759
759
|
case 12:
|
|
760
760
|
_h = [{}];
|
|
761
|
-
return [4
|
|
761
|
+
return [4, deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)];
|
|
762
762
|
case 13:
|
|
763
763
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
764
|
-
return [3
|
|
764
|
+
return [3, 23];
|
|
765
765
|
case 14:
|
|
766
766
|
_j = [{}];
|
|
767
|
-
return [4
|
|
767
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
768
768
|
case 15:
|
|
769
769
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
770
|
-
return [3
|
|
770
|
+
return [3, 23];
|
|
771
771
|
case 16:
|
|
772
772
|
_k = [{}];
|
|
773
|
-
return [4
|
|
773
|
+
return [4, deserializeAws_json1_1PipelineNameInUseExceptionResponse(parsedOutput, context)];
|
|
774
774
|
case 17:
|
|
775
775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
776
|
-
return [3
|
|
776
|
+
return [3, 23];
|
|
777
777
|
case 18:
|
|
778
778
|
_l = [{}];
|
|
779
|
-
return [4
|
|
779
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
780
780
|
case 19:
|
|
781
781
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
782
|
-
return [3
|
|
782
|
+
return [3, 23];
|
|
783
783
|
case 20:
|
|
784
784
|
_m = [{}];
|
|
785
|
-
return [4
|
|
785
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
786
786
|
case 21:
|
|
787
787
|
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_p.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
788
|
-
return [3
|
|
788
|
+
return [3, 23];
|
|
789
789
|
case 22:
|
|
790
790
|
parsedBody = parsedOutput.body;
|
|
791
791
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -795,7 +795,7 @@ var deserializeAws_json1_1CreatePipelineCommandError = function (output, context
|
|
|
795
795
|
message = response.message || response.Message || errorCode;
|
|
796
796
|
response.message = message;
|
|
797
797
|
delete response.Message;
|
|
798
|
-
return [2
|
|
798
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
799
799
|
}
|
|
800
800
|
});
|
|
801
801
|
}); };
|
|
@@ -805,15 +805,15 @@ export var deserializeAws_json1_1DeleteCustomActionTypeCommand = function (outpu
|
|
|
805
805
|
switch (_a.label) {
|
|
806
806
|
case 0:
|
|
807
807
|
if (output.statusCode >= 300) {
|
|
808
|
-
return [2
|
|
808
|
+
return [2, deserializeAws_json1_1DeleteCustomActionTypeCommandError(output, context)];
|
|
809
809
|
}
|
|
810
|
-
return [4
|
|
810
|
+
return [4, collectBody(output.body, context)];
|
|
811
811
|
case 1:
|
|
812
812
|
_a.sent();
|
|
813
813
|
response = {
|
|
814
814
|
$metadata: deserializeMetadata(output),
|
|
815
815
|
};
|
|
816
|
-
return [2
|
|
816
|
+
return [2, Promise.resolve(response)];
|
|
817
817
|
}
|
|
818
818
|
});
|
|
819
819
|
}); };
|
|
@@ -825,31 +825,31 @@ var deserializeAws_json1_1DeleteCustomActionTypeCommandError = function (output,
|
|
|
825
825
|
case 0:
|
|
826
826
|
_a = [__assign({}, output)];
|
|
827
827
|
_e = {};
|
|
828
|
-
return [4
|
|
828
|
+
return [4, parseBody(output.body, context)];
|
|
829
829
|
case 1:
|
|
830
830
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
831
831
|
errorCode = "UnknownError";
|
|
832
832
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
833
|
_b = errorCode;
|
|
834
834
|
switch (_b) {
|
|
835
|
-
case "ConcurrentModificationException": return [3
|
|
836
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
837
|
-
case "ValidationException": return [3
|
|
838
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
835
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
836
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
837
|
+
case "ValidationException": return [3, 4];
|
|
838
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
839
839
|
}
|
|
840
|
-
return [3
|
|
840
|
+
return [3, 6];
|
|
841
841
|
case 2:
|
|
842
842
|
_c = [{}];
|
|
843
|
-
return [4
|
|
843
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
844
844
|
case 3:
|
|
845
845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
846
|
-
return [3
|
|
846
|
+
return [3, 7];
|
|
847
847
|
case 4:
|
|
848
848
|
_d = [{}];
|
|
849
|
-
return [4
|
|
849
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
850
850
|
case 5:
|
|
851
851
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
852
|
-
return [3
|
|
852
|
+
return [3, 7];
|
|
853
853
|
case 6:
|
|
854
854
|
parsedBody = parsedOutput.body;
|
|
855
855
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -859,7 +859,7 @@ var deserializeAws_json1_1DeleteCustomActionTypeCommandError = function (output,
|
|
|
859
859
|
message = response.message || response.Message || errorCode;
|
|
860
860
|
response.message = message;
|
|
861
861
|
delete response.Message;
|
|
862
|
-
return [2
|
|
862
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
863
863
|
}
|
|
864
864
|
});
|
|
865
865
|
}); };
|
|
@@ -869,15 +869,15 @@ export var deserializeAws_json1_1DeletePipelineCommand = function (output, conte
|
|
|
869
869
|
switch (_a.label) {
|
|
870
870
|
case 0:
|
|
871
871
|
if (output.statusCode >= 300) {
|
|
872
|
-
return [2
|
|
872
|
+
return [2, deserializeAws_json1_1DeletePipelineCommandError(output, context)];
|
|
873
873
|
}
|
|
874
|
-
return [4
|
|
874
|
+
return [4, collectBody(output.body, context)];
|
|
875
875
|
case 1:
|
|
876
876
|
_a.sent();
|
|
877
877
|
response = {
|
|
878
878
|
$metadata: deserializeMetadata(output),
|
|
879
879
|
};
|
|
880
|
-
return [2
|
|
880
|
+
return [2, Promise.resolve(response)];
|
|
881
881
|
}
|
|
882
882
|
});
|
|
883
883
|
}); };
|
|
@@ -889,31 +889,31 @@ var deserializeAws_json1_1DeletePipelineCommandError = function (output, context
|
|
|
889
889
|
case 0:
|
|
890
890
|
_a = [__assign({}, output)];
|
|
891
891
|
_e = {};
|
|
892
|
-
return [4
|
|
892
|
+
return [4, parseBody(output.body, context)];
|
|
893
893
|
case 1:
|
|
894
894
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
895
895
|
errorCode = "UnknownError";
|
|
896
896
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
897
|
_b = errorCode;
|
|
898
898
|
switch (_b) {
|
|
899
|
-
case "ConcurrentModificationException": return [3
|
|
900
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
901
|
-
case "ValidationException": return [3
|
|
902
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
899
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
900
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
901
|
+
case "ValidationException": return [3, 4];
|
|
902
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
903
903
|
}
|
|
904
|
-
return [3
|
|
904
|
+
return [3, 6];
|
|
905
905
|
case 2:
|
|
906
906
|
_c = [{}];
|
|
907
|
-
return [4
|
|
907
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
908
908
|
case 3:
|
|
909
909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
910
|
-
return [3
|
|
910
|
+
return [3, 7];
|
|
911
911
|
case 4:
|
|
912
912
|
_d = [{}];
|
|
913
|
-
return [4
|
|
913
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
914
914
|
case 5:
|
|
915
915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
916
|
-
return [3
|
|
916
|
+
return [3, 7];
|
|
917
917
|
case 6:
|
|
918
918
|
parsedBody = parsedOutput.body;
|
|
919
919
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -923,7 +923,7 @@ var deserializeAws_json1_1DeletePipelineCommandError = function (output, context
|
|
|
923
923
|
message = response.message || response.Message || errorCode;
|
|
924
924
|
response.message = message;
|
|
925
925
|
delete response.Message;
|
|
926
|
-
return [2
|
|
926
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
927
927
|
}
|
|
928
928
|
});
|
|
929
929
|
}); };
|
|
@@ -933,15 +933,15 @@ export var deserializeAws_json1_1DeleteWebhookCommand = function (output, contex
|
|
|
933
933
|
switch (_a.label) {
|
|
934
934
|
case 0:
|
|
935
935
|
if (output.statusCode >= 300) {
|
|
936
|
-
return [2
|
|
936
|
+
return [2, deserializeAws_json1_1DeleteWebhookCommandError(output, context)];
|
|
937
937
|
}
|
|
938
|
-
return [4
|
|
938
|
+
return [4, parseBody(output.body, context)];
|
|
939
939
|
case 1:
|
|
940
940
|
data = _a.sent();
|
|
941
941
|
contents = {};
|
|
942
942
|
contents = deserializeAws_json1_1DeleteWebhookOutput(data, context);
|
|
943
943
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
944
|
-
return [2
|
|
944
|
+
return [2, Promise.resolve(response)];
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
}); };
|
|
@@ -953,31 +953,31 @@ var deserializeAws_json1_1DeleteWebhookCommandError = function (output, context)
|
|
|
953
953
|
case 0:
|
|
954
954
|
_a = [__assign({}, output)];
|
|
955
955
|
_e = {};
|
|
956
|
-
return [4
|
|
956
|
+
return [4, parseBody(output.body, context)];
|
|
957
957
|
case 1:
|
|
958
958
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
959
959
|
errorCode = "UnknownError";
|
|
960
960
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
961
|
_b = errorCode;
|
|
962
962
|
switch (_b) {
|
|
963
|
-
case "ConcurrentModificationException": return [3
|
|
964
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
965
|
-
case "ValidationException": return [3
|
|
966
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
963
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
964
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
965
|
+
case "ValidationException": return [3, 4];
|
|
966
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
967
967
|
}
|
|
968
|
-
return [3
|
|
968
|
+
return [3, 6];
|
|
969
969
|
case 2:
|
|
970
970
|
_c = [{}];
|
|
971
|
-
return [4
|
|
971
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
972
972
|
case 3:
|
|
973
973
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
974
|
-
return [3
|
|
974
|
+
return [3, 7];
|
|
975
975
|
case 4:
|
|
976
976
|
_d = [{}];
|
|
977
|
-
return [4
|
|
977
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
978
978
|
case 5:
|
|
979
979
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
980
|
-
return [3
|
|
980
|
+
return [3, 7];
|
|
981
981
|
case 6:
|
|
982
982
|
parsedBody = parsedOutput.body;
|
|
983
983
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -987,7 +987,7 @@ var deserializeAws_json1_1DeleteWebhookCommandError = function (output, context)
|
|
|
987
987
|
message = response.message || response.Message || errorCode;
|
|
988
988
|
response.message = message;
|
|
989
989
|
delete response.Message;
|
|
990
|
-
return [2
|
|
990
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
993
|
}); };
|
|
@@ -997,15 +997,15 @@ export var deserializeAws_json1_1DeregisterWebhookWithThirdPartyCommand = functi
|
|
|
997
997
|
switch (_a.label) {
|
|
998
998
|
case 0:
|
|
999
999
|
if (output.statusCode >= 300) {
|
|
1000
|
-
return [2
|
|
1000
|
+
return [2, deserializeAws_json1_1DeregisterWebhookWithThirdPartyCommandError(output, context)];
|
|
1001
1001
|
}
|
|
1002
|
-
return [4
|
|
1002
|
+
return [4, parseBody(output.body, context)];
|
|
1003
1003
|
case 1:
|
|
1004
1004
|
data = _a.sent();
|
|
1005
1005
|
contents = {};
|
|
1006
1006
|
contents = deserializeAws_json1_1DeregisterWebhookWithThirdPartyOutput(data, context);
|
|
1007
1007
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1008
|
-
return [2
|
|
1008
|
+
return [2, Promise.resolve(response)];
|
|
1009
1009
|
}
|
|
1010
1010
|
});
|
|
1011
1011
|
}); };
|
|
@@ -1017,31 +1017,31 @@ var deserializeAws_json1_1DeregisterWebhookWithThirdPartyCommandError = function
|
|
|
1017
1017
|
case 0:
|
|
1018
1018
|
_a = [__assign({}, output)];
|
|
1019
1019
|
_e = {};
|
|
1020
|
-
return [4
|
|
1020
|
+
return [4, parseBody(output.body, context)];
|
|
1021
1021
|
case 1:
|
|
1022
1022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1023
1023
|
errorCode = "UnknownError";
|
|
1024
1024
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1025
|
_b = errorCode;
|
|
1026
1026
|
switch (_b) {
|
|
1027
|
-
case "ValidationException": return [3
|
|
1028
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1029
|
-
case "WebhookNotFoundException": return [3
|
|
1030
|
-
case "com.amazonaws.codepipeline#WebhookNotFoundException": return [3
|
|
1027
|
+
case "ValidationException": return [3, 2];
|
|
1028
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 2];
|
|
1029
|
+
case "WebhookNotFoundException": return [3, 4];
|
|
1030
|
+
case "com.amazonaws.codepipeline#WebhookNotFoundException": return [3, 4];
|
|
1031
1031
|
}
|
|
1032
|
-
return [3
|
|
1032
|
+
return [3, 6];
|
|
1033
1033
|
case 2:
|
|
1034
1034
|
_c = [{}];
|
|
1035
|
-
return [4
|
|
1035
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1036
1036
|
case 3:
|
|
1037
1037
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1038
|
-
return [3
|
|
1038
|
+
return [3, 7];
|
|
1039
1039
|
case 4:
|
|
1040
1040
|
_d = [{}];
|
|
1041
|
-
return [4
|
|
1041
|
+
return [4, deserializeAws_json1_1WebhookNotFoundExceptionResponse(parsedOutput, context)];
|
|
1042
1042
|
case 5:
|
|
1043
1043
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1044
|
-
return [3
|
|
1044
|
+
return [3, 7];
|
|
1045
1045
|
case 6:
|
|
1046
1046
|
parsedBody = parsedOutput.body;
|
|
1047
1047
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1051,7 +1051,7 @@ var deserializeAws_json1_1DeregisterWebhookWithThirdPartyCommandError = function
|
|
|
1051
1051
|
message = response.message || response.Message || errorCode;
|
|
1052
1052
|
response.message = message;
|
|
1053
1053
|
delete response.Message;
|
|
1054
|
-
return [2
|
|
1054
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
1057
|
}); };
|
|
@@ -1061,15 +1061,15 @@ export var deserializeAws_json1_1DisableStageTransitionCommand = function (outpu
|
|
|
1061
1061
|
switch (_a.label) {
|
|
1062
1062
|
case 0:
|
|
1063
1063
|
if (output.statusCode >= 300) {
|
|
1064
|
-
return [2
|
|
1064
|
+
return [2, deserializeAws_json1_1DisableStageTransitionCommandError(output, context)];
|
|
1065
1065
|
}
|
|
1066
|
-
return [4
|
|
1066
|
+
return [4, collectBody(output.body, context)];
|
|
1067
1067
|
case 1:
|
|
1068
1068
|
_a.sent();
|
|
1069
1069
|
response = {
|
|
1070
1070
|
$metadata: deserializeMetadata(output),
|
|
1071
1071
|
};
|
|
1072
|
-
return [2
|
|
1072
|
+
return [2, Promise.resolve(response)];
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
1075
|
}); };
|
|
@@ -1081,39 +1081,39 @@ var deserializeAws_json1_1DisableStageTransitionCommandError = function (output,
|
|
|
1081
1081
|
case 0:
|
|
1082
1082
|
_a = [__assign({}, output)];
|
|
1083
1083
|
_f = {};
|
|
1084
|
-
return [4
|
|
1084
|
+
return [4, parseBody(output.body, context)];
|
|
1085
1085
|
case 1:
|
|
1086
1086
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1087
1087
|
errorCode = "UnknownError";
|
|
1088
1088
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1089
|
_b = errorCode;
|
|
1090
1090
|
switch (_b) {
|
|
1091
|
-
case "PipelineNotFoundException": return [3
|
|
1092
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1093
|
-
case "StageNotFoundException": return [3
|
|
1094
|
-
case "com.amazonaws.codepipeline#StageNotFoundException": return [3
|
|
1095
|
-
case "ValidationException": return [3
|
|
1096
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1091
|
+
case "PipelineNotFoundException": return [3, 2];
|
|
1092
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 2];
|
|
1093
|
+
case "StageNotFoundException": return [3, 4];
|
|
1094
|
+
case "com.amazonaws.codepipeline#StageNotFoundException": return [3, 4];
|
|
1095
|
+
case "ValidationException": return [3, 6];
|
|
1096
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
1097
1097
|
}
|
|
1098
|
-
return [3
|
|
1098
|
+
return [3, 8];
|
|
1099
1099
|
case 2:
|
|
1100
1100
|
_c = [{}];
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1102
1102
|
case 3:
|
|
1103
1103
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3
|
|
1104
|
+
return [3, 9];
|
|
1105
1105
|
case 4:
|
|
1106
1106
|
_d = [{}];
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)];
|
|
1108
1108
|
case 5:
|
|
1109
1109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3
|
|
1110
|
+
return [3, 9];
|
|
1111
1111
|
case 6:
|
|
1112
1112
|
_e = [{}];
|
|
1113
|
-
return [4
|
|
1113
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1114
1114
|
case 7:
|
|
1115
1115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3
|
|
1116
|
+
return [3, 9];
|
|
1117
1117
|
case 8:
|
|
1118
1118
|
parsedBody = parsedOutput.body;
|
|
1119
1119
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1123,7 +1123,7 @@ var deserializeAws_json1_1DisableStageTransitionCommandError = function (output,
|
|
|
1123
1123
|
message = response.message || response.Message || errorCode;
|
|
1124
1124
|
response.message = message;
|
|
1125
1125
|
delete response.Message;
|
|
1126
|
-
return [2
|
|
1126
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
1129
|
}); };
|
|
@@ -1133,15 +1133,15 @@ export var deserializeAws_json1_1EnableStageTransitionCommand = function (output
|
|
|
1133
1133
|
switch (_a.label) {
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
if (output.statusCode >= 300) {
|
|
1136
|
-
return [2
|
|
1136
|
+
return [2, deserializeAws_json1_1EnableStageTransitionCommandError(output, context)];
|
|
1137
1137
|
}
|
|
1138
|
-
return [4
|
|
1138
|
+
return [4, collectBody(output.body, context)];
|
|
1139
1139
|
case 1:
|
|
1140
1140
|
_a.sent();
|
|
1141
1141
|
response = {
|
|
1142
1142
|
$metadata: deserializeMetadata(output),
|
|
1143
1143
|
};
|
|
1144
|
-
return [2
|
|
1144
|
+
return [2, Promise.resolve(response)];
|
|
1145
1145
|
}
|
|
1146
1146
|
});
|
|
1147
1147
|
}); };
|
|
@@ -1153,39 +1153,39 @@ var deserializeAws_json1_1EnableStageTransitionCommandError = function (output,
|
|
|
1153
1153
|
case 0:
|
|
1154
1154
|
_a = [__assign({}, output)];
|
|
1155
1155
|
_f = {};
|
|
1156
|
-
return [4
|
|
1156
|
+
return [4, parseBody(output.body, context)];
|
|
1157
1157
|
case 1:
|
|
1158
1158
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1159
1159
|
errorCode = "UnknownError";
|
|
1160
1160
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
_b = errorCode;
|
|
1162
1162
|
switch (_b) {
|
|
1163
|
-
case "PipelineNotFoundException": return [3
|
|
1164
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1165
|
-
case "StageNotFoundException": return [3
|
|
1166
|
-
case "com.amazonaws.codepipeline#StageNotFoundException": return [3
|
|
1167
|
-
case "ValidationException": return [3
|
|
1168
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1163
|
+
case "PipelineNotFoundException": return [3, 2];
|
|
1164
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 2];
|
|
1165
|
+
case "StageNotFoundException": return [3, 4];
|
|
1166
|
+
case "com.amazonaws.codepipeline#StageNotFoundException": return [3, 4];
|
|
1167
|
+
case "ValidationException": return [3, 6];
|
|
1168
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
1169
1169
|
}
|
|
1170
|
-
return [3
|
|
1170
|
+
return [3, 8];
|
|
1171
1171
|
case 2:
|
|
1172
1172
|
_c = [{}];
|
|
1173
|
-
return [4
|
|
1173
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1174
1174
|
case 3:
|
|
1175
1175
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1176
|
-
return [3
|
|
1176
|
+
return [3, 9];
|
|
1177
1177
|
case 4:
|
|
1178
1178
|
_d = [{}];
|
|
1179
|
-
return [4
|
|
1179
|
+
return [4, deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)];
|
|
1180
1180
|
case 5:
|
|
1181
1181
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1182
|
-
return [3
|
|
1182
|
+
return [3, 9];
|
|
1183
1183
|
case 6:
|
|
1184
1184
|
_e = [{}];
|
|
1185
|
-
return [4
|
|
1185
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1186
1186
|
case 7:
|
|
1187
1187
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1188
|
-
return [3
|
|
1188
|
+
return [3, 9];
|
|
1189
1189
|
case 8:
|
|
1190
1190
|
parsedBody = parsedOutput.body;
|
|
1191
1191
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1195,7 +1195,7 @@ var deserializeAws_json1_1EnableStageTransitionCommandError = function (output,
|
|
|
1195
1195
|
message = response.message || response.Message || errorCode;
|
|
1196
1196
|
response.message = message;
|
|
1197
1197
|
delete response.Message;
|
|
1198
|
-
return [2
|
|
1198
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1199
1199
|
}
|
|
1200
1200
|
});
|
|
1201
1201
|
}); };
|
|
@@ -1205,15 +1205,15 @@ export var deserializeAws_json1_1GetActionTypeCommand = function (output, contex
|
|
|
1205
1205
|
switch (_a.label) {
|
|
1206
1206
|
case 0:
|
|
1207
1207
|
if (output.statusCode >= 300) {
|
|
1208
|
-
return [2
|
|
1208
|
+
return [2, deserializeAws_json1_1GetActionTypeCommandError(output, context)];
|
|
1209
1209
|
}
|
|
1210
|
-
return [4
|
|
1210
|
+
return [4, parseBody(output.body, context)];
|
|
1211
1211
|
case 1:
|
|
1212
1212
|
data = _a.sent();
|
|
1213
1213
|
contents = {};
|
|
1214
1214
|
contents = deserializeAws_json1_1GetActionTypeOutput(data, context);
|
|
1215
1215
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1216
|
-
return [2
|
|
1216
|
+
return [2, Promise.resolve(response)];
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
1219
1219
|
}); };
|
|
@@ -1225,31 +1225,31 @@ var deserializeAws_json1_1GetActionTypeCommandError = function (output, context)
|
|
|
1225
1225
|
case 0:
|
|
1226
1226
|
_a = [__assign({}, output)];
|
|
1227
1227
|
_e = {};
|
|
1228
|
-
return [4
|
|
1228
|
+
return [4, parseBody(output.body, context)];
|
|
1229
1229
|
case 1:
|
|
1230
1230
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1231
1231
|
errorCode = "UnknownError";
|
|
1232
1232
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1233
|
_b = errorCode;
|
|
1234
1234
|
switch (_b) {
|
|
1235
|
-
case "ActionTypeNotFoundException": return [3
|
|
1236
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3
|
|
1237
|
-
case "ValidationException": return [3
|
|
1238
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1235
|
+
case "ActionTypeNotFoundException": return [3, 2];
|
|
1236
|
+
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3, 2];
|
|
1237
|
+
case "ValidationException": return [3, 4];
|
|
1238
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
1239
1239
|
}
|
|
1240
|
-
return [3
|
|
1240
|
+
return [3, 6];
|
|
1241
1241
|
case 2:
|
|
1242
1242
|
_c = [{}];
|
|
1243
|
-
return [4
|
|
1243
|
+
return [4, deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
1244
1244
|
case 3:
|
|
1245
1245
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1246
|
-
return [3
|
|
1246
|
+
return [3, 7];
|
|
1247
1247
|
case 4:
|
|
1248
1248
|
_d = [{}];
|
|
1249
|
-
return [4
|
|
1249
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1250
1250
|
case 5:
|
|
1251
1251
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1252
|
-
return [3
|
|
1252
|
+
return [3, 7];
|
|
1253
1253
|
case 6:
|
|
1254
1254
|
parsedBody = parsedOutput.body;
|
|
1255
1255
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1259,7 +1259,7 @@ var deserializeAws_json1_1GetActionTypeCommandError = function (output, context)
|
|
|
1259
1259
|
message = response.message || response.Message || errorCode;
|
|
1260
1260
|
response.message = message;
|
|
1261
1261
|
delete response.Message;
|
|
1262
|
-
return [2
|
|
1262
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1263
1263
|
}
|
|
1264
1264
|
});
|
|
1265
1265
|
}); };
|
|
@@ -1269,15 +1269,15 @@ export var deserializeAws_json1_1GetJobDetailsCommand = function (output, contex
|
|
|
1269
1269
|
switch (_a.label) {
|
|
1270
1270
|
case 0:
|
|
1271
1271
|
if (output.statusCode >= 300) {
|
|
1272
|
-
return [2
|
|
1272
|
+
return [2, deserializeAws_json1_1GetJobDetailsCommandError(output, context)];
|
|
1273
1273
|
}
|
|
1274
|
-
return [4
|
|
1274
|
+
return [4, parseBody(output.body, context)];
|
|
1275
1275
|
case 1:
|
|
1276
1276
|
data = _a.sent();
|
|
1277
1277
|
contents = {};
|
|
1278
1278
|
contents = deserializeAws_json1_1GetJobDetailsOutput(data, context);
|
|
1279
1279
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1280
|
-
return [2
|
|
1280
|
+
return [2, Promise.resolve(response)];
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
}); };
|
|
@@ -1289,31 +1289,31 @@ var deserializeAws_json1_1GetJobDetailsCommandError = function (output, context)
|
|
|
1289
1289
|
case 0:
|
|
1290
1290
|
_a = [__assign({}, output)];
|
|
1291
1291
|
_e = {};
|
|
1292
|
-
return [4
|
|
1292
|
+
return [4, parseBody(output.body, context)];
|
|
1293
1293
|
case 1:
|
|
1294
1294
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1295
1295
|
errorCode = "UnknownError";
|
|
1296
1296
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1297
|
_b = errorCode;
|
|
1298
1298
|
switch (_b) {
|
|
1299
|
-
case "JobNotFoundException": return [3
|
|
1300
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
1301
|
-
case "ValidationException": return [3
|
|
1302
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1299
|
+
case "JobNotFoundException": return [3, 2];
|
|
1300
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 2];
|
|
1301
|
+
case "ValidationException": return [3, 4];
|
|
1302
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
1303
1303
|
}
|
|
1304
|
-
return [3
|
|
1304
|
+
return [3, 6];
|
|
1305
1305
|
case 2:
|
|
1306
1306
|
_c = [{}];
|
|
1307
|
-
return [4
|
|
1307
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
1308
1308
|
case 3:
|
|
1309
1309
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1310
|
-
return [3
|
|
1310
|
+
return [3, 7];
|
|
1311
1311
|
case 4:
|
|
1312
1312
|
_d = [{}];
|
|
1313
|
-
return [4
|
|
1313
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1314
1314
|
case 5:
|
|
1315
1315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1316
|
-
return [3
|
|
1316
|
+
return [3, 7];
|
|
1317
1317
|
case 6:
|
|
1318
1318
|
parsedBody = parsedOutput.body;
|
|
1319
1319
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1323,7 +1323,7 @@ var deserializeAws_json1_1GetJobDetailsCommandError = function (output, context)
|
|
|
1323
1323
|
message = response.message || response.Message || errorCode;
|
|
1324
1324
|
response.message = message;
|
|
1325
1325
|
delete response.Message;
|
|
1326
|
-
return [2
|
|
1326
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1327
1327
|
}
|
|
1328
1328
|
});
|
|
1329
1329
|
}); };
|
|
@@ -1333,15 +1333,15 @@ export var deserializeAws_json1_1GetPipelineCommand = function (output, context)
|
|
|
1333
1333
|
switch (_a.label) {
|
|
1334
1334
|
case 0:
|
|
1335
1335
|
if (output.statusCode >= 300) {
|
|
1336
|
-
return [2
|
|
1336
|
+
return [2, deserializeAws_json1_1GetPipelineCommandError(output, context)];
|
|
1337
1337
|
}
|
|
1338
|
-
return [4
|
|
1338
|
+
return [4, parseBody(output.body, context)];
|
|
1339
1339
|
case 1:
|
|
1340
1340
|
data = _a.sent();
|
|
1341
1341
|
contents = {};
|
|
1342
1342
|
contents = deserializeAws_json1_1GetPipelineOutput(data, context);
|
|
1343
1343
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1344
|
-
return [2
|
|
1344
|
+
return [2, Promise.resolve(response)];
|
|
1345
1345
|
}
|
|
1346
1346
|
});
|
|
1347
1347
|
}); };
|
|
@@ -1353,39 +1353,39 @@ var deserializeAws_json1_1GetPipelineCommandError = function (output, context) {
|
|
|
1353
1353
|
case 0:
|
|
1354
1354
|
_a = [__assign({}, output)];
|
|
1355
1355
|
_f = {};
|
|
1356
|
-
return [4
|
|
1356
|
+
return [4, parseBody(output.body, context)];
|
|
1357
1357
|
case 1:
|
|
1358
1358
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1359
1359
|
errorCode = "UnknownError";
|
|
1360
1360
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
1361
|
_b = errorCode;
|
|
1362
1362
|
switch (_b) {
|
|
1363
|
-
case "PipelineNotFoundException": return [3
|
|
1364
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1365
|
-
case "PipelineVersionNotFoundException": return [3
|
|
1366
|
-
case "com.amazonaws.codepipeline#PipelineVersionNotFoundException": return [3
|
|
1367
|
-
case "ValidationException": return [3
|
|
1368
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1363
|
+
case "PipelineNotFoundException": return [3, 2];
|
|
1364
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 2];
|
|
1365
|
+
case "PipelineVersionNotFoundException": return [3, 4];
|
|
1366
|
+
case "com.amazonaws.codepipeline#PipelineVersionNotFoundException": return [3, 4];
|
|
1367
|
+
case "ValidationException": return [3, 6];
|
|
1368
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
1369
1369
|
}
|
|
1370
|
-
return [3
|
|
1370
|
+
return [3, 8];
|
|
1371
1371
|
case 2:
|
|
1372
1372
|
_c = [{}];
|
|
1373
|
-
return [4
|
|
1373
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1374
1374
|
case 3:
|
|
1375
1375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1376
|
-
return [3
|
|
1376
|
+
return [3, 9];
|
|
1377
1377
|
case 4:
|
|
1378
1378
|
_d = [{}];
|
|
1379
|
-
return [4
|
|
1379
|
+
return [4, deserializeAws_json1_1PipelineVersionNotFoundExceptionResponse(parsedOutput, context)];
|
|
1380
1380
|
case 5:
|
|
1381
1381
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1382
|
-
return [3
|
|
1382
|
+
return [3, 9];
|
|
1383
1383
|
case 6:
|
|
1384
1384
|
_e = [{}];
|
|
1385
|
-
return [4
|
|
1385
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1386
1386
|
case 7:
|
|
1387
1387
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1388
|
-
return [3
|
|
1388
|
+
return [3, 9];
|
|
1389
1389
|
case 8:
|
|
1390
1390
|
parsedBody = parsedOutput.body;
|
|
1391
1391
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1395,7 +1395,7 @@ var deserializeAws_json1_1GetPipelineCommandError = function (output, context) {
|
|
|
1395
1395
|
message = response.message || response.Message || errorCode;
|
|
1396
1396
|
response.message = message;
|
|
1397
1397
|
delete response.Message;
|
|
1398
|
-
return [2
|
|
1398
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1399
1399
|
}
|
|
1400
1400
|
});
|
|
1401
1401
|
}); };
|
|
@@ -1405,15 +1405,15 @@ export var deserializeAws_json1_1GetPipelineExecutionCommand = function (output,
|
|
|
1405
1405
|
switch (_a.label) {
|
|
1406
1406
|
case 0:
|
|
1407
1407
|
if (output.statusCode >= 300) {
|
|
1408
|
-
return [2
|
|
1408
|
+
return [2, deserializeAws_json1_1GetPipelineExecutionCommandError(output, context)];
|
|
1409
1409
|
}
|
|
1410
|
-
return [4
|
|
1410
|
+
return [4, parseBody(output.body, context)];
|
|
1411
1411
|
case 1:
|
|
1412
1412
|
data = _a.sent();
|
|
1413
1413
|
contents = {};
|
|
1414
1414
|
contents = deserializeAws_json1_1GetPipelineExecutionOutput(data, context);
|
|
1415
1415
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1416
|
-
return [2
|
|
1416
|
+
return [2, Promise.resolve(response)];
|
|
1417
1417
|
}
|
|
1418
1418
|
});
|
|
1419
1419
|
}); };
|
|
@@ -1425,39 +1425,39 @@ var deserializeAws_json1_1GetPipelineExecutionCommandError = function (output, c
|
|
|
1425
1425
|
case 0:
|
|
1426
1426
|
_a = [__assign({}, output)];
|
|
1427
1427
|
_f = {};
|
|
1428
|
-
return [4
|
|
1428
|
+
return [4, parseBody(output.body, context)];
|
|
1429
1429
|
case 1:
|
|
1430
1430
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1431
1431
|
errorCode = "UnknownError";
|
|
1432
1432
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1433
|
_b = errorCode;
|
|
1434
1434
|
switch (_b) {
|
|
1435
|
-
case "PipelineExecutionNotFoundException": return [3
|
|
1436
|
-
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException": return [3
|
|
1437
|
-
case "PipelineNotFoundException": return [3
|
|
1438
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1439
|
-
case "ValidationException": return [3
|
|
1440
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1435
|
+
case "PipelineExecutionNotFoundException": return [3, 2];
|
|
1436
|
+
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException": return [3, 2];
|
|
1437
|
+
case "PipelineNotFoundException": return [3, 4];
|
|
1438
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 4];
|
|
1439
|
+
case "ValidationException": return [3, 6];
|
|
1440
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
1441
1441
|
}
|
|
1442
|
-
return [3
|
|
1442
|
+
return [3, 8];
|
|
1443
1443
|
case 2:
|
|
1444
1444
|
_c = [{}];
|
|
1445
|
-
return [4
|
|
1445
|
+
return [4, deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse(parsedOutput, context)];
|
|
1446
1446
|
case 3:
|
|
1447
1447
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1448
|
-
return [3
|
|
1448
|
+
return [3, 9];
|
|
1449
1449
|
case 4:
|
|
1450
1450
|
_d = [{}];
|
|
1451
|
-
return [4
|
|
1451
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1452
1452
|
case 5:
|
|
1453
1453
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1454
|
-
return [3
|
|
1454
|
+
return [3, 9];
|
|
1455
1455
|
case 6:
|
|
1456
1456
|
_e = [{}];
|
|
1457
|
-
return [4
|
|
1457
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1458
1458
|
case 7:
|
|
1459
1459
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1460
|
-
return [3
|
|
1460
|
+
return [3, 9];
|
|
1461
1461
|
case 8:
|
|
1462
1462
|
parsedBody = parsedOutput.body;
|
|
1463
1463
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1467,7 +1467,7 @@ var deserializeAws_json1_1GetPipelineExecutionCommandError = function (output, c
|
|
|
1467
1467
|
message = response.message || response.Message || errorCode;
|
|
1468
1468
|
response.message = message;
|
|
1469
1469
|
delete response.Message;
|
|
1470
|
-
return [2
|
|
1470
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1471
1471
|
}
|
|
1472
1472
|
});
|
|
1473
1473
|
}); };
|
|
@@ -1477,15 +1477,15 @@ export var deserializeAws_json1_1GetPipelineStateCommand = function (output, con
|
|
|
1477
1477
|
switch (_a.label) {
|
|
1478
1478
|
case 0:
|
|
1479
1479
|
if (output.statusCode >= 300) {
|
|
1480
|
-
return [2
|
|
1480
|
+
return [2, deserializeAws_json1_1GetPipelineStateCommandError(output, context)];
|
|
1481
1481
|
}
|
|
1482
|
-
return [4
|
|
1482
|
+
return [4, parseBody(output.body, context)];
|
|
1483
1483
|
case 1:
|
|
1484
1484
|
data = _a.sent();
|
|
1485
1485
|
contents = {};
|
|
1486
1486
|
contents = deserializeAws_json1_1GetPipelineStateOutput(data, context);
|
|
1487
1487
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1488
|
-
return [2
|
|
1488
|
+
return [2, Promise.resolve(response)];
|
|
1489
1489
|
}
|
|
1490
1490
|
});
|
|
1491
1491
|
}); };
|
|
@@ -1497,31 +1497,31 @@ var deserializeAws_json1_1GetPipelineStateCommandError = function (output, conte
|
|
|
1497
1497
|
case 0:
|
|
1498
1498
|
_a = [__assign({}, output)];
|
|
1499
1499
|
_e = {};
|
|
1500
|
-
return [4
|
|
1500
|
+
return [4, parseBody(output.body, context)];
|
|
1501
1501
|
case 1:
|
|
1502
1502
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1503
1503
|
errorCode = "UnknownError";
|
|
1504
1504
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
1505
|
_b = errorCode;
|
|
1506
1506
|
switch (_b) {
|
|
1507
|
-
case "PipelineNotFoundException": return [3
|
|
1508
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1509
|
-
case "ValidationException": return [3
|
|
1510
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1507
|
+
case "PipelineNotFoundException": return [3, 2];
|
|
1508
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 2];
|
|
1509
|
+
case "ValidationException": return [3, 4];
|
|
1510
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
1511
1511
|
}
|
|
1512
|
-
return [3
|
|
1512
|
+
return [3, 6];
|
|
1513
1513
|
case 2:
|
|
1514
1514
|
_c = [{}];
|
|
1515
|
-
return [4
|
|
1515
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1516
1516
|
case 3:
|
|
1517
1517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1518
|
-
return [3
|
|
1518
|
+
return [3, 7];
|
|
1519
1519
|
case 4:
|
|
1520
1520
|
_d = [{}];
|
|
1521
|
-
return [4
|
|
1521
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1522
1522
|
case 5:
|
|
1523
1523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1524
|
-
return [3
|
|
1524
|
+
return [3, 7];
|
|
1525
1525
|
case 6:
|
|
1526
1526
|
parsedBody = parsedOutput.body;
|
|
1527
1527
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1531,7 +1531,7 @@ var deserializeAws_json1_1GetPipelineStateCommandError = function (output, conte
|
|
|
1531
1531
|
message = response.message || response.Message || errorCode;
|
|
1532
1532
|
response.message = message;
|
|
1533
1533
|
delete response.Message;
|
|
1534
|
-
return [2
|
|
1534
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
1537
|
}); };
|
|
@@ -1541,15 +1541,15 @@ export var deserializeAws_json1_1GetThirdPartyJobDetailsCommand = function (outp
|
|
|
1541
1541
|
switch (_a.label) {
|
|
1542
1542
|
case 0:
|
|
1543
1543
|
if (output.statusCode >= 300) {
|
|
1544
|
-
return [2
|
|
1544
|
+
return [2, deserializeAws_json1_1GetThirdPartyJobDetailsCommandError(output, context)];
|
|
1545
1545
|
}
|
|
1546
|
-
return [4
|
|
1546
|
+
return [4, parseBody(output.body, context)];
|
|
1547
1547
|
case 1:
|
|
1548
1548
|
data = _a.sent();
|
|
1549
1549
|
contents = {};
|
|
1550
1550
|
contents = deserializeAws_json1_1GetThirdPartyJobDetailsOutput(data, context);
|
|
1551
1551
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1552
|
-
return [2
|
|
1552
|
+
return [2, Promise.resolve(response)];
|
|
1553
1553
|
}
|
|
1554
1554
|
});
|
|
1555
1555
|
}); };
|
|
@@ -1561,47 +1561,47 @@ var deserializeAws_json1_1GetThirdPartyJobDetailsCommandError = function (output
|
|
|
1561
1561
|
case 0:
|
|
1562
1562
|
_a = [__assign({}, output)];
|
|
1563
1563
|
_g = {};
|
|
1564
|
-
return [4
|
|
1564
|
+
return [4, parseBody(output.body, context)];
|
|
1565
1565
|
case 1:
|
|
1566
1566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1567
1567
|
errorCode = "UnknownError";
|
|
1568
1568
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
1569
|
_b = errorCode;
|
|
1570
1570
|
switch (_b) {
|
|
1571
|
-
case "InvalidClientTokenException": return [3
|
|
1572
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3
|
|
1573
|
-
case "InvalidJobException": return [3
|
|
1574
|
-
case "com.amazonaws.codepipeline#InvalidJobException": return [3
|
|
1575
|
-
case "JobNotFoundException": return [3
|
|
1576
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
1577
|
-
case "ValidationException": return [3
|
|
1578
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1571
|
+
case "InvalidClientTokenException": return [3, 2];
|
|
1572
|
+
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3, 2];
|
|
1573
|
+
case "InvalidJobException": return [3, 4];
|
|
1574
|
+
case "com.amazonaws.codepipeline#InvalidJobException": return [3, 4];
|
|
1575
|
+
case "JobNotFoundException": return [3, 6];
|
|
1576
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 6];
|
|
1577
|
+
case "ValidationException": return [3, 8];
|
|
1578
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
1579
1579
|
}
|
|
1580
|
-
return [3
|
|
1580
|
+
return [3, 10];
|
|
1581
1581
|
case 2:
|
|
1582
1582
|
_c = [{}];
|
|
1583
|
-
return [4
|
|
1583
|
+
return [4, deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
1584
1584
|
case 3:
|
|
1585
1585
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1586
|
-
return [3
|
|
1586
|
+
return [3, 11];
|
|
1587
1587
|
case 4:
|
|
1588
1588
|
_d = [{}];
|
|
1589
|
-
return [4
|
|
1589
|
+
return [4, deserializeAws_json1_1InvalidJobExceptionResponse(parsedOutput, context)];
|
|
1590
1590
|
case 5:
|
|
1591
1591
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1592
|
-
return [3
|
|
1592
|
+
return [3, 11];
|
|
1593
1593
|
case 6:
|
|
1594
1594
|
_e = [{}];
|
|
1595
|
-
return [4
|
|
1595
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
1596
1596
|
case 7:
|
|
1597
1597
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1598
|
-
return [3
|
|
1598
|
+
return [3, 11];
|
|
1599
1599
|
case 8:
|
|
1600
1600
|
_f = [{}];
|
|
1601
|
-
return [4
|
|
1601
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1602
1602
|
case 9:
|
|
1603
1603
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1604
|
-
return [3
|
|
1604
|
+
return [3, 11];
|
|
1605
1605
|
case 10:
|
|
1606
1606
|
parsedBody = parsedOutput.body;
|
|
1607
1607
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1611,7 +1611,7 @@ var deserializeAws_json1_1GetThirdPartyJobDetailsCommandError = function (output
|
|
|
1611
1611
|
message = response.message || response.Message || errorCode;
|
|
1612
1612
|
response.message = message;
|
|
1613
1613
|
delete response.Message;
|
|
1614
|
-
return [2
|
|
1614
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
}); };
|
|
@@ -1621,15 +1621,15 @@ export var deserializeAws_json1_1ListActionExecutionsCommand = function (output,
|
|
|
1621
1621
|
switch (_a.label) {
|
|
1622
1622
|
case 0:
|
|
1623
1623
|
if (output.statusCode >= 300) {
|
|
1624
|
-
return [2
|
|
1624
|
+
return [2, deserializeAws_json1_1ListActionExecutionsCommandError(output, context)];
|
|
1625
1625
|
}
|
|
1626
|
-
return [4
|
|
1626
|
+
return [4, parseBody(output.body, context)];
|
|
1627
1627
|
case 1:
|
|
1628
1628
|
data = _a.sent();
|
|
1629
1629
|
contents = {};
|
|
1630
1630
|
contents = deserializeAws_json1_1ListActionExecutionsOutput(data, context);
|
|
1631
1631
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1632
|
-
return [2
|
|
1632
|
+
return [2, Promise.resolve(response)];
|
|
1633
1633
|
}
|
|
1634
1634
|
});
|
|
1635
1635
|
}); };
|
|
@@ -1641,47 +1641,47 @@ var deserializeAws_json1_1ListActionExecutionsCommandError = function (output, c
|
|
|
1641
1641
|
case 0:
|
|
1642
1642
|
_a = [__assign({}, output)];
|
|
1643
1643
|
_g = {};
|
|
1644
|
-
return [4
|
|
1644
|
+
return [4, parseBody(output.body, context)];
|
|
1645
1645
|
case 1:
|
|
1646
1646
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1647
1647
|
errorCode = "UnknownError";
|
|
1648
1648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1649
|
_b = errorCode;
|
|
1650
1650
|
switch (_b) {
|
|
1651
|
-
case "InvalidNextTokenException": return [3
|
|
1652
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3
|
|
1653
|
-
case "PipelineExecutionNotFoundException": return [3
|
|
1654
|
-
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException": return [3
|
|
1655
|
-
case "PipelineNotFoundException": return [3
|
|
1656
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1657
|
-
case "ValidationException": return [3
|
|
1658
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1651
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1652
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3, 2];
|
|
1653
|
+
case "PipelineExecutionNotFoundException": return [3, 4];
|
|
1654
|
+
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException": return [3, 4];
|
|
1655
|
+
case "PipelineNotFoundException": return [3, 6];
|
|
1656
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 6];
|
|
1657
|
+
case "ValidationException": return [3, 8];
|
|
1658
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
1659
1659
|
}
|
|
1660
|
-
return [3
|
|
1660
|
+
return [3, 10];
|
|
1661
1661
|
case 2:
|
|
1662
1662
|
_c = [{}];
|
|
1663
|
-
return [4
|
|
1663
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1664
1664
|
case 3:
|
|
1665
1665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1666
|
-
return [3
|
|
1666
|
+
return [3, 11];
|
|
1667
1667
|
case 4:
|
|
1668
1668
|
_d = [{}];
|
|
1669
|
-
return [4
|
|
1669
|
+
return [4, deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse(parsedOutput, context)];
|
|
1670
1670
|
case 5:
|
|
1671
1671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1672
|
-
return [3
|
|
1672
|
+
return [3, 11];
|
|
1673
1673
|
case 6:
|
|
1674
1674
|
_e = [{}];
|
|
1675
|
-
return [4
|
|
1675
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1676
1676
|
case 7:
|
|
1677
1677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1678
|
-
return [3
|
|
1678
|
+
return [3, 11];
|
|
1679
1679
|
case 8:
|
|
1680
1680
|
_f = [{}];
|
|
1681
|
-
return [4
|
|
1681
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1682
1682
|
case 9:
|
|
1683
1683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1684
|
-
return [3
|
|
1684
|
+
return [3, 11];
|
|
1685
1685
|
case 10:
|
|
1686
1686
|
parsedBody = parsedOutput.body;
|
|
1687
1687
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1691,7 +1691,7 @@ var deserializeAws_json1_1ListActionExecutionsCommandError = function (output, c
|
|
|
1691
1691
|
message = response.message || response.Message || errorCode;
|
|
1692
1692
|
response.message = message;
|
|
1693
1693
|
delete response.Message;
|
|
1694
|
-
return [2
|
|
1694
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1695
1695
|
}
|
|
1696
1696
|
});
|
|
1697
1697
|
}); };
|
|
@@ -1701,15 +1701,15 @@ export var deserializeAws_json1_1ListActionTypesCommand = function (output, cont
|
|
|
1701
1701
|
switch (_a.label) {
|
|
1702
1702
|
case 0:
|
|
1703
1703
|
if (output.statusCode >= 300) {
|
|
1704
|
-
return [2
|
|
1704
|
+
return [2, deserializeAws_json1_1ListActionTypesCommandError(output, context)];
|
|
1705
1705
|
}
|
|
1706
|
-
return [4
|
|
1706
|
+
return [4, parseBody(output.body, context)];
|
|
1707
1707
|
case 1:
|
|
1708
1708
|
data = _a.sent();
|
|
1709
1709
|
contents = {};
|
|
1710
1710
|
contents = deserializeAws_json1_1ListActionTypesOutput(data, context);
|
|
1711
1711
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1712
|
-
return [2
|
|
1712
|
+
return [2, Promise.resolve(response)];
|
|
1713
1713
|
}
|
|
1714
1714
|
});
|
|
1715
1715
|
}); };
|
|
@@ -1721,31 +1721,31 @@ var deserializeAws_json1_1ListActionTypesCommandError = function (output, contex
|
|
|
1721
1721
|
case 0:
|
|
1722
1722
|
_a = [__assign({}, output)];
|
|
1723
1723
|
_e = {};
|
|
1724
|
-
return [4
|
|
1724
|
+
return [4, parseBody(output.body, context)];
|
|
1725
1725
|
case 1:
|
|
1726
1726
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1727
1727
|
errorCode = "UnknownError";
|
|
1728
1728
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1729
|
_b = errorCode;
|
|
1730
1730
|
switch (_b) {
|
|
1731
|
-
case "InvalidNextTokenException": return [3
|
|
1732
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3
|
|
1733
|
-
case "ValidationException": return [3
|
|
1734
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1731
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1732
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3, 2];
|
|
1733
|
+
case "ValidationException": return [3, 4];
|
|
1734
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
1735
1735
|
}
|
|
1736
|
-
return [3
|
|
1736
|
+
return [3, 6];
|
|
1737
1737
|
case 2:
|
|
1738
1738
|
_c = [{}];
|
|
1739
|
-
return [4
|
|
1739
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1740
1740
|
case 3:
|
|
1741
1741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1742
|
-
return [3
|
|
1742
|
+
return [3, 7];
|
|
1743
1743
|
case 4:
|
|
1744
1744
|
_d = [{}];
|
|
1745
|
-
return [4
|
|
1745
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1746
1746
|
case 5:
|
|
1747
1747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1748
|
-
return [3
|
|
1748
|
+
return [3, 7];
|
|
1749
1749
|
case 6:
|
|
1750
1750
|
parsedBody = parsedOutput.body;
|
|
1751
1751
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1755,7 +1755,7 @@ var deserializeAws_json1_1ListActionTypesCommandError = function (output, contex
|
|
|
1755
1755
|
message = response.message || response.Message || errorCode;
|
|
1756
1756
|
response.message = message;
|
|
1757
1757
|
delete response.Message;
|
|
1758
|
-
return [2
|
|
1758
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
}); };
|
|
@@ -1765,15 +1765,15 @@ export var deserializeAws_json1_1ListPipelineExecutionsCommand = function (outpu
|
|
|
1765
1765
|
switch (_a.label) {
|
|
1766
1766
|
case 0:
|
|
1767
1767
|
if (output.statusCode >= 300) {
|
|
1768
|
-
return [2
|
|
1768
|
+
return [2, deserializeAws_json1_1ListPipelineExecutionsCommandError(output, context)];
|
|
1769
1769
|
}
|
|
1770
|
-
return [4
|
|
1770
|
+
return [4, parseBody(output.body, context)];
|
|
1771
1771
|
case 1:
|
|
1772
1772
|
data = _a.sent();
|
|
1773
1773
|
contents = {};
|
|
1774
1774
|
contents = deserializeAws_json1_1ListPipelineExecutionsOutput(data, context);
|
|
1775
1775
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1776
|
-
return [2
|
|
1776
|
+
return [2, Promise.resolve(response)];
|
|
1777
1777
|
}
|
|
1778
1778
|
});
|
|
1779
1779
|
}); };
|
|
@@ -1785,39 +1785,39 @@ var deserializeAws_json1_1ListPipelineExecutionsCommandError = function (output,
|
|
|
1785
1785
|
case 0:
|
|
1786
1786
|
_a = [__assign({}, output)];
|
|
1787
1787
|
_f = {};
|
|
1788
|
-
return [4
|
|
1788
|
+
return [4, parseBody(output.body, context)];
|
|
1789
1789
|
case 1:
|
|
1790
1790
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1791
1791
|
errorCode = "UnknownError";
|
|
1792
1792
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1793
|
_b = errorCode;
|
|
1794
1794
|
switch (_b) {
|
|
1795
|
-
case "InvalidNextTokenException": return [3
|
|
1796
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3
|
|
1797
|
-
case "PipelineNotFoundException": return [3
|
|
1798
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
1799
|
-
case "ValidationException": return [3
|
|
1800
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1795
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1796
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3, 2];
|
|
1797
|
+
case "PipelineNotFoundException": return [3, 4];
|
|
1798
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 4];
|
|
1799
|
+
case "ValidationException": return [3, 6];
|
|
1800
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
1801
1801
|
}
|
|
1802
|
-
return [3
|
|
1802
|
+
return [3, 8];
|
|
1803
1803
|
case 2:
|
|
1804
1804
|
_c = [{}];
|
|
1805
|
-
return [4
|
|
1805
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1806
1806
|
case 3:
|
|
1807
1807
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1808
|
-
return [3
|
|
1808
|
+
return [3, 9];
|
|
1809
1809
|
case 4:
|
|
1810
1810
|
_d = [{}];
|
|
1811
|
-
return [4
|
|
1811
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
1812
1812
|
case 5:
|
|
1813
1813
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1814
|
-
return [3
|
|
1814
|
+
return [3, 9];
|
|
1815
1815
|
case 6:
|
|
1816
1816
|
_e = [{}];
|
|
1817
|
-
return [4
|
|
1817
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1818
1818
|
case 7:
|
|
1819
1819
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1820
|
-
return [3
|
|
1820
|
+
return [3, 9];
|
|
1821
1821
|
case 8:
|
|
1822
1822
|
parsedBody = parsedOutput.body;
|
|
1823
1823
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1827,7 +1827,7 @@ var deserializeAws_json1_1ListPipelineExecutionsCommandError = function (output,
|
|
|
1827
1827
|
message = response.message || response.Message || errorCode;
|
|
1828
1828
|
response.message = message;
|
|
1829
1829
|
delete response.Message;
|
|
1830
|
-
return [2
|
|
1830
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1831
1831
|
}
|
|
1832
1832
|
});
|
|
1833
1833
|
}); };
|
|
@@ -1837,15 +1837,15 @@ export var deserializeAws_json1_1ListPipelinesCommand = function (output, contex
|
|
|
1837
1837
|
switch (_a.label) {
|
|
1838
1838
|
case 0:
|
|
1839
1839
|
if (output.statusCode >= 300) {
|
|
1840
|
-
return [2
|
|
1840
|
+
return [2, deserializeAws_json1_1ListPipelinesCommandError(output, context)];
|
|
1841
1841
|
}
|
|
1842
|
-
return [4
|
|
1842
|
+
return [4, parseBody(output.body, context)];
|
|
1843
1843
|
case 1:
|
|
1844
1844
|
data = _a.sent();
|
|
1845
1845
|
contents = {};
|
|
1846
1846
|
contents = deserializeAws_json1_1ListPipelinesOutput(data, context);
|
|
1847
1847
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1848
|
-
return [2
|
|
1848
|
+
return [2, Promise.resolve(response)];
|
|
1849
1849
|
}
|
|
1850
1850
|
});
|
|
1851
1851
|
}); };
|
|
@@ -1857,31 +1857,31 @@ var deserializeAws_json1_1ListPipelinesCommandError = function (output, context)
|
|
|
1857
1857
|
case 0:
|
|
1858
1858
|
_a = [__assign({}, output)];
|
|
1859
1859
|
_e = {};
|
|
1860
|
-
return [4
|
|
1860
|
+
return [4, parseBody(output.body, context)];
|
|
1861
1861
|
case 1:
|
|
1862
1862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1863
1863
|
errorCode = "UnknownError";
|
|
1864
1864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
1865
|
_b = errorCode;
|
|
1866
1866
|
switch (_b) {
|
|
1867
|
-
case "InvalidNextTokenException": return [3
|
|
1868
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3
|
|
1869
|
-
case "ValidationException": return [3
|
|
1870
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1867
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1868
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3, 2];
|
|
1869
|
+
case "ValidationException": return [3, 4];
|
|
1870
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
1871
1871
|
}
|
|
1872
|
-
return [3
|
|
1872
|
+
return [3, 6];
|
|
1873
1873
|
case 2:
|
|
1874
1874
|
_c = [{}];
|
|
1875
|
-
return [4
|
|
1875
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1876
1876
|
case 3:
|
|
1877
1877
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1878
|
-
return [3
|
|
1878
|
+
return [3, 7];
|
|
1879
1879
|
case 4:
|
|
1880
1880
|
_d = [{}];
|
|
1881
|
-
return [4
|
|
1881
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1882
1882
|
case 5:
|
|
1883
1883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1884
|
-
return [3
|
|
1884
|
+
return [3, 7];
|
|
1885
1885
|
case 6:
|
|
1886
1886
|
parsedBody = parsedOutput.body;
|
|
1887
1887
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1891,7 +1891,7 @@ var deserializeAws_json1_1ListPipelinesCommandError = function (output, context)
|
|
|
1891
1891
|
message = response.message || response.Message || errorCode;
|
|
1892
1892
|
response.message = message;
|
|
1893
1893
|
delete response.Message;
|
|
1894
|
-
return [2
|
|
1894
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1895
1895
|
}
|
|
1896
1896
|
});
|
|
1897
1897
|
}); };
|
|
@@ -1901,15 +1901,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1901
1901
|
switch (_a.label) {
|
|
1902
1902
|
case 0:
|
|
1903
1903
|
if (output.statusCode >= 300) {
|
|
1904
|
-
return [2
|
|
1904
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1905
1905
|
}
|
|
1906
|
-
return [4
|
|
1906
|
+
return [4, parseBody(output.body, context)];
|
|
1907
1907
|
case 1:
|
|
1908
1908
|
data = _a.sent();
|
|
1909
1909
|
contents = {};
|
|
1910
1910
|
contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context);
|
|
1911
1911
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1912
|
-
return [2
|
|
1912
|
+
return [2, Promise.resolve(response)];
|
|
1913
1913
|
}
|
|
1914
1914
|
});
|
|
1915
1915
|
}); };
|
|
@@ -1921,47 +1921,47 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1921
1921
|
case 0:
|
|
1922
1922
|
_a = [__assign({}, output)];
|
|
1923
1923
|
_g = {};
|
|
1924
|
-
return [4
|
|
1924
|
+
return [4, parseBody(output.body, context)];
|
|
1925
1925
|
case 1:
|
|
1926
1926
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1927
1927
|
errorCode = "UnknownError";
|
|
1928
1928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
1929
|
_b = errorCode;
|
|
1930
1930
|
switch (_b) {
|
|
1931
|
-
case "InvalidArnException": return [3
|
|
1932
|
-
case "com.amazonaws.codepipeline#InvalidArnException": return [3
|
|
1933
|
-
case "InvalidNextTokenException": return [3
|
|
1934
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3
|
|
1935
|
-
case "ResourceNotFoundException": return [3
|
|
1936
|
-
case "com.amazonaws.codepipeline#ResourceNotFoundException": return [3
|
|
1937
|
-
case "ValidationException": return [3
|
|
1938
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
1931
|
+
case "InvalidArnException": return [3, 2];
|
|
1932
|
+
case "com.amazonaws.codepipeline#InvalidArnException": return [3, 2];
|
|
1933
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1934
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3, 4];
|
|
1935
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1936
|
+
case "com.amazonaws.codepipeline#ResourceNotFoundException": return [3, 6];
|
|
1937
|
+
case "ValidationException": return [3, 8];
|
|
1938
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
1939
1939
|
}
|
|
1940
|
-
return [3
|
|
1940
|
+
return [3, 10];
|
|
1941
1941
|
case 2:
|
|
1942
1942
|
_c = [{}];
|
|
1943
|
-
return [4
|
|
1943
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
1944
1944
|
case 3:
|
|
1945
1945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1946
|
-
return [3
|
|
1946
|
+
return [3, 11];
|
|
1947
1947
|
case 4:
|
|
1948
1948
|
_d = [{}];
|
|
1949
|
-
return [4
|
|
1949
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1950
1950
|
case 5:
|
|
1951
1951
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1952
|
-
return [3
|
|
1952
|
+
return [3, 11];
|
|
1953
1953
|
case 6:
|
|
1954
1954
|
_e = [{}];
|
|
1955
|
-
return [4
|
|
1955
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1956
1956
|
case 7:
|
|
1957
1957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1958
|
-
return [3
|
|
1958
|
+
return [3, 11];
|
|
1959
1959
|
case 8:
|
|
1960
1960
|
_f = [{}];
|
|
1961
|
-
return [4
|
|
1961
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1962
1962
|
case 9:
|
|
1963
1963
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1964
|
-
return [3
|
|
1964
|
+
return [3, 11];
|
|
1965
1965
|
case 10:
|
|
1966
1966
|
parsedBody = parsedOutput.body;
|
|
1967
1967
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1971,7 +1971,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1971
1971
|
message = response.message || response.Message || errorCode;
|
|
1972
1972
|
response.message = message;
|
|
1973
1973
|
delete response.Message;
|
|
1974
|
-
return [2
|
|
1974
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1975
1975
|
}
|
|
1976
1976
|
});
|
|
1977
1977
|
}); };
|
|
@@ -1981,15 +1981,15 @@ export var deserializeAws_json1_1ListWebhooksCommand = function (output, context
|
|
|
1981
1981
|
switch (_a.label) {
|
|
1982
1982
|
case 0:
|
|
1983
1983
|
if (output.statusCode >= 300) {
|
|
1984
|
-
return [2
|
|
1984
|
+
return [2, deserializeAws_json1_1ListWebhooksCommandError(output, context)];
|
|
1985
1985
|
}
|
|
1986
|
-
return [4
|
|
1986
|
+
return [4, parseBody(output.body, context)];
|
|
1987
1987
|
case 1:
|
|
1988
1988
|
data = _a.sent();
|
|
1989
1989
|
contents = {};
|
|
1990
1990
|
contents = deserializeAws_json1_1ListWebhooksOutput(data, context);
|
|
1991
1991
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1992
|
-
return [2
|
|
1992
|
+
return [2, Promise.resolve(response)];
|
|
1993
1993
|
}
|
|
1994
1994
|
});
|
|
1995
1995
|
}); };
|
|
@@ -2001,31 +2001,31 @@ var deserializeAws_json1_1ListWebhooksCommandError = function (output, context)
|
|
|
2001
2001
|
case 0:
|
|
2002
2002
|
_a = [__assign({}, output)];
|
|
2003
2003
|
_e = {};
|
|
2004
|
-
return [4
|
|
2004
|
+
return [4, parseBody(output.body, context)];
|
|
2005
2005
|
case 1:
|
|
2006
2006
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2007
2007
|
errorCode = "UnknownError";
|
|
2008
2008
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
2009
|
_b = errorCode;
|
|
2010
2010
|
switch (_b) {
|
|
2011
|
-
case "InvalidNextTokenException": return [3
|
|
2012
|
-
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3
|
|
2013
|
-
case "ValidationException": return [3
|
|
2014
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2011
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
2012
|
+
case "com.amazonaws.codepipeline#InvalidNextTokenException": return [3, 2];
|
|
2013
|
+
case "ValidationException": return [3, 4];
|
|
2014
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
2015
2015
|
}
|
|
2016
|
-
return [3
|
|
2016
|
+
return [3, 6];
|
|
2017
2017
|
case 2:
|
|
2018
2018
|
_c = [{}];
|
|
2019
|
-
return [4
|
|
2019
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2020
2020
|
case 3:
|
|
2021
2021
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2022
|
-
return [3
|
|
2022
|
+
return [3, 7];
|
|
2023
2023
|
case 4:
|
|
2024
2024
|
_d = [{}];
|
|
2025
|
-
return [4
|
|
2025
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2026
2026
|
case 5:
|
|
2027
2027
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2028
|
-
return [3
|
|
2028
|
+
return [3, 7];
|
|
2029
2029
|
case 6:
|
|
2030
2030
|
parsedBody = parsedOutput.body;
|
|
2031
2031
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2035,7 +2035,7 @@ var deserializeAws_json1_1ListWebhooksCommandError = function (output, context)
|
|
|
2035
2035
|
message = response.message || response.Message || errorCode;
|
|
2036
2036
|
response.message = message;
|
|
2037
2037
|
delete response.Message;
|
|
2038
|
-
return [2
|
|
2038
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2039
2039
|
}
|
|
2040
2040
|
});
|
|
2041
2041
|
}); };
|
|
@@ -2045,15 +2045,15 @@ export var deserializeAws_json1_1PollForJobsCommand = function (output, context)
|
|
|
2045
2045
|
switch (_a.label) {
|
|
2046
2046
|
case 0:
|
|
2047
2047
|
if (output.statusCode >= 300) {
|
|
2048
|
-
return [2
|
|
2048
|
+
return [2, deserializeAws_json1_1PollForJobsCommandError(output, context)];
|
|
2049
2049
|
}
|
|
2050
|
-
return [4
|
|
2050
|
+
return [4, parseBody(output.body, context)];
|
|
2051
2051
|
case 1:
|
|
2052
2052
|
data = _a.sent();
|
|
2053
2053
|
contents = {};
|
|
2054
2054
|
contents = deserializeAws_json1_1PollForJobsOutput(data, context);
|
|
2055
2055
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2056
|
-
return [2
|
|
2056
|
+
return [2, Promise.resolve(response)];
|
|
2057
2057
|
}
|
|
2058
2058
|
});
|
|
2059
2059
|
}); };
|
|
@@ -2065,31 +2065,31 @@ var deserializeAws_json1_1PollForJobsCommandError = function (output, context) {
|
|
|
2065
2065
|
case 0:
|
|
2066
2066
|
_a = [__assign({}, output)];
|
|
2067
2067
|
_e = {};
|
|
2068
|
-
return [4
|
|
2068
|
+
return [4, parseBody(output.body, context)];
|
|
2069
2069
|
case 1:
|
|
2070
2070
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2071
2071
|
errorCode = "UnknownError";
|
|
2072
2072
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2073
2073
|
_b = errorCode;
|
|
2074
2074
|
switch (_b) {
|
|
2075
|
-
case "ActionTypeNotFoundException": return [3
|
|
2076
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3
|
|
2077
|
-
case "ValidationException": return [3
|
|
2078
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2075
|
+
case "ActionTypeNotFoundException": return [3, 2];
|
|
2076
|
+
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3, 2];
|
|
2077
|
+
case "ValidationException": return [3, 4];
|
|
2078
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
2079
2079
|
}
|
|
2080
|
-
return [3
|
|
2080
|
+
return [3, 6];
|
|
2081
2081
|
case 2:
|
|
2082
2082
|
_c = [{}];
|
|
2083
|
-
return [4
|
|
2083
|
+
return [4, deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
2084
2084
|
case 3:
|
|
2085
2085
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2086
|
-
return [3
|
|
2086
|
+
return [3, 7];
|
|
2087
2087
|
case 4:
|
|
2088
2088
|
_d = [{}];
|
|
2089
|
-
return [4
|
|
2089
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2090
2090
|
case 5:
|
|
2091
2091
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2092
|
-
return [3
|
|
2092
|
+
return [3, 7];
|
|
2093
2093
|
case 6:
|
|
2094
2094
|
parsedBody = parsedOutput.body;
|
|
2095
2095
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2099,7 +2099,7 @@ var deserializeAws_json1_1PollForJobsCommandError = function (output, context) {
|
|
|
2099
2099
|
message = response.message || response.Message || errorCode;
|
|
2100
2100
|
response.message = message;
|
|
2101
2101
|
delete response.Message;
|
|
2102
|
-
return [2
|
|
2102
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2103
2103
|
}
|
|
2104
2104
|
});
|
|
2105
2105
|
}); };
|
|
@@ -2109,15 +2109,15 @@ export var deserializeAws_json1_1PollForThirdPartyJobsCommand = function (output
|
|
|
2109
2109
|
switch (_a.label) {
|
|
2110
2110
|
case 0:
|
|
2111
2111
|
if (output.statusCode >= 300) {
|
|
2112
|
-
return [2
|
|
2112
|
+
return [2, deserializeAws_json1_1PollForThirdPartyJobsCommandError(output, context)];
|
|
2113
2113
|
}
|
|
2114
|
-
return [4
|
|
2114
|
+
return [4, parseBody(output.body, context)];
|
|
2115
2115
|
case 1:
|
|
2116
2116
|
data = _a.sent();
|
|
2117
2117
|
contents = {};
|
|
2118
2118
|
contents = deserializeAws_json1_1PollForThirdPartyJobsOutput(data, context);
|
|
2119
2119
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2120
|
-
return [2
|
|
2120
|
+
return [2, Promise.resolve(response)];
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
}); };
|
|
@@ -2129,31 +2129,31 @@ var deserializeAws_json1_1PollForThirdPartyJobsCommandError = function (output,
|
|
|
2129
2129
|
case 0:
|
|
2130
2130
|
_a = [__assign({}, output)];
|
|
2131
2131
|
_e = {};
|
|
2132
|
-
return [4
|
|
2132
|
+
return [4, parseBody(output.body, context)];
|
|
2133
2133
|
case 1:
|
|
2134
2134
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2135
2135
|
errorCode = "UnknownError";
|
|
2136
2136
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
2137
|
_b = errorCode;
|
|
2138
2138
|
switch (_b) {
|
|
2139
|
-
case "ActionTypeNotFoundException": return [3
|
|
2140
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3
|
|
2141
|
-
case "ValidationException": return [3
|
|
2142
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2139
|
+
case "ActionTypeNotFoundException": return [3, 2];
|
|
2140
|
+
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3, 2];
|
|
2141
|
+
case "ValidationException": return [3, 4];
|
|
2142
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 4];
|
|
2143
2143
|
}
|
|
2144
|
-
return [3
|
|
2144
|
+
return [3, 6];
|
|
2145
2145
|
case 2:
|
|
2146
2146
|
_c = [{}];
|
|
2147
|
-
return [4
|
|
2147
|
+
return [4, deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
2148
2148
|
case 3:
|
|
2149
2149
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2150
|
-
return [3
|
|
2150
|
+
return [3, 7];
|
|
2151
2151
|
case 4:
|
|
2152
2152
|
_d = [{}];
|
|
2153
|
-
return [4
|
|
2153
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2154
2154
|
case 5:
|
|
2155
2155
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2156
|
-
return [3
|
|
2156
|
+
return [3, 7];
|
|
2157
2157
|
case 6:
|
|
2158
2158
|
parsedBody = parsedOutput.body;
|
|
2159
2159
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2163,7 +2163,7 @@ var deserializeAws_json1_1PollForThirdPartyJobsCommandError = function (output,
|
|
|
2163
2163
|
message = response.message || response.Message || errorCode;
|
|
2164
2164
|
response.message = message;
|
|
2165
2165
|
delete response.Message;
|
|
2166
|
-
return [2
|
|
2166
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2167
2167
|
}
|
|
2168
2168
|
});
|
|
2169
2169
|
}); };
|
|
@@ -2173,15 +2173,15 @@ export var deserializeAws_json1_1PutActionRevisionCommand = function (output, co
|
|
|
2173
2173
|
switch (_a.label) {
|
|
2174
2174
|
case 0:
|
|
2175
2175
|
if (output.statusCode >= 300) {
|
|
2176
|
-
return [2
|
|
2176
|
+
return [2, deserializeAws_json1_1PutActionRevisionCommandError(output, context)];
|
|
2177
2177
|
}
|
|
2178
|
-
return [4
|
|
2178
|
+
return [4, parseBody(output.body, context)];
|
|
2179
2179
|
case 1:
|
|
2180
2180
|
data = _a.sent();
|
|
2181
2181
|
contents = {};
|
|
2182
2182
|
contents = deserializeAws_json1_1PutActionRevisionOutput(data, context);
|
|
2183
2183
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2184
|
-
return [2
|
|
2184
|
+
return [2, Promise.resolve(response)];
|
|
2185
2185
|
}
|
|
2186
2186
|
});
|
|
2187
2187
|
}); };
|
|
@@ -2193,47 +2193,47 @@ var deserializeAws_json1_1PutActionRevisionCommandError = function (output, cont
|
|
|
2193
2193
|
case 0:
|
|
2194
2194
|
_a = [__assign({}, output)];
|
|
2195
2195
|
_g = {};
|
|
2196
|
-
return [4
|
|
2196
|
+
return [4, parseBody(output.body, context)];
|
|
2197
2197
|
case 1:
|
|
2198
2198
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2199
2199
|
errorCode = "UnknownError";
|
|
2200
2200
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
2201
|
_b = errorCode;
|
|
2202
2202
|
switch (_b) {
|
|
2203
|
-
case "ActionNotFoundException": return [3
|
|
2204
|
-
case "com.amazonaws.codepipeline#ActionNotFoundException": return [3
|
|
2205
|
-
case "PipelineNotFoundException": return [3
|
|
2206
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
2207
|
-
case "StageNotFoundException": return [3
|
|
2208
|
-
case "com.amazonaws.codepipeline#StageNotFoundException": return [3
|
|
2209
|
-
case "ValidationException": return [3
|
|
2210
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2203
|
+
case "ActionNotFoundException": return [3, 2];
|
|
2204
|
+
case "com.amazonaws.codepipeline#ActionNotFoundException": return [3, 2];
|
|
2205
|
+
case "PipelineNotFoundException": return [3, 4];
|
|
2206
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 4];
|
|
2207
|
+
case "StageNotFoundException": return [3, 6];
|
|
2208
|
+
case "com.amazonaws.codepipeline#StageNotFoundException": return [3, 6];
|
|
2209
|
+
case "ValidationException": return [3, 8];
|
|
2210
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
2211
2211
|
}
|
|
2212
|
-
return [3
|
|
2212
|
+
return [3, 10];
|
|
2213
2213
|
case 2:
|
|
2214
2214
|
_c = [{}];
|
|
2215
|
-
return [4
|
|
2215
|
+
return [4, deserializeAws_json1_1ActionNotFoundExceptionResponse(parsedOutput, context)];
|
|
2216
2216
|
case 3:
|
|
2217
2217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2218
|
-
return [3
|
|
2218
|
+
return [3, 11];
|
|
2219
2219
|
case 4:
|
|
2220
2220
|
_d = [{}];
|
|
2221
|
-
return [4
|
|
2221
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
2222
2222
|
case 5:
|
|
2223
2223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2224
|
-
return [3
|
|
2224
|
+
return [3, 11];
|
|
2225
2225
|
case 6:
|
|
2226
2226
|
_e = [{}];
|
|
2227
|
-
return [4
|
|
2227
|
+
return [4, deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)];
|
|
2228
2228
|
case 7:
|
|
2229
2229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2230
|
-
return [3
|
|
2230
|
+
return [3, 11];
|
|
2231
2231
|
case 8:
|
|
2232
2232
|
_f = [{}];
|
|
2233
|
-
return [4
|
|
2233
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2234
2234
|
case 9:
|
|
2235
2235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2236
|
-
return [3
|
|
2236
|
+
return [3, 11];
|
|
2237
2237
|
case 10:
|
|
2238
2238
|
parsedBody = parsedOutput.body;
|
|
2239
2239
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2243,7 +2243,7 @@ var deserializeAws_json1_1PutActionRevisionCommandError = function (output, cont
|
|
|
2243
2243
|
message = response.message || response.Message || errorCode;
|
|
2244
2244
|
response.message = message;
|
|
2245
2245
|
delete response.Message;
|
|
2246
|
-
return [2
|
|
2246
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2247
2247
|
}
|
|
2248
2248
|
});
|
|
2249
2249
|
}); };
|
|
@@ -2253,15 +2253,15 @@ export var deserializeAws_json1_1PutApprovalResultCommand = function (output, co
|
|
|
2253
2253
|
switch (_a.label) {
|
|
2254
2254
|
case 0:
|
|
2255
2255
|
if (output.statusCode >= 300) {
|
|
2256
|
-
return [2
|
|
2256
|
+
return [2, deserializeAws_json1_1PutApprovalResultCommandError(output, context)];
|
|
2257
2257
|
}
|
|
2258
|
-
return [4
|
|
2258
|
+
return [4, parseBody(output.body, context)];
|
|
2259
2259
|
case 1:
|
|
2260
2260
|
data = _a.sent();
|
|
2261
2261
|
contents = {};
|
|
2262
2262
|
contents = deserializeAws_json1_1PutApprovalResultOutput(data, context);
|
|
2263
2263
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2264
|
-
return [2
|
|
2264
|
+
return [2, Promise.resolve(response)];
|
|
2265
2265
|
}
|
|
2266
2266
|
});
|
|
2267
2267
|
}); };
|
|
@@ -2273,63 +2273,63 @@ var deserializeAws_json1_1PutApprovalResultCommandError = function (output, cont
|
|
|
2273
2273
|
case 0:
|
|
2274
2274
|
_a = [__assign({}, output)];
|
|
2275
2275
|
_j = {};
|
|
2276
|
-
return [4
|
|
2276
|
+
return [4, parseBody(output.body, context)];
|
|
2277
2277
|
case 1:
|
|
2278
2278
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2279
2279
|
errorCode = "UnknownError";
|
|
2280
2280
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
2281
|
_b = errorCode;
|
|
2282
2282
|
switch (_b) {
|
|
2283
|
-
case "ActionNotFoundException": return [3
|
|
2284
|
-
case "com.amazonaws.codepipeline#ActionNotFoundException": return [3
|
|
2285
|
-
case "ApprovalAlreadyCompletedException": return [3
|
|
2286
|
-
case "com.amazonaws.codepipeline#ApprovalAlreadyCompletedException": return [3
|
|
2287
|
-
case "InvalidApprovalTokenException": return [3
|
|
2288
|
-
case "com.amazonaws.codepipeline#InvalidApprovalTokenException": return [3
|
|
2289
|
-
case "PipelineNotFoundException": return [3
|
|
2290
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
2291
|
-
case "StageNotFoundException": return [3
|
|
2292
|
-
case "com.amazonaws.codepipeline#StageNotFoundException": return [3
|
|
2293
|
-
case "ValidationException": return [3
|
|
2294
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2283
|
+
case "ActionNotFoundException": return [3, 2];
|
|
2284
|
+
case "com.amazonaws.codepipeline#ActionNotFoundException": return [3, 2];
|
|
2285
|
+
case "ApprovalAlreadyCompletedException": return [3, 4];
|
|
2286
|
+
case "com.amazonaws.codepipeline#ApprovalAlreadyCompletedException": return [3, 4];
|
|
2287
|
+
case "InvalidApprovalTokenException": return [3, 6];
|
|
2288
|
+
case "com.amazonaws.codepipeline#InvalidApprovalTokenException": return [3, 6];
|
|
2289
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
2290
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 8];
|
|
2291
|
+
case "StageNotFoundException": return [3, 10];
|
|
2292
|
+
case "com.amazonaws.codepipeline#StageNotFoundException": return [3, 10];
|
|
2293
|
+
case "ValidationException": return [3, 12];
|
|
2294
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 12];
|
|
2295
2295
|
}
|
|
2296
|
-
return [3
|
|
2296
|
+
return [3, 14];
|
|
2297
2297
|
case 2:
|
|
2298
2298
|
_c = [{}];
|
|
2299
|
-
return [4
|
|
2299
|
+
return [4, deserializeAws_json1_1ActionNotFoundExceptionResponse(parsedOutput, context)];
|
|
2300
2300
|
case 3:
|
|
2301
2301
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2302
|
-
return [3
|
|
2302
|
+
return [3, 15];
|
|
2303
2303
|
case 4:
|
|
2304
2304
|
_d = [{}];
|
|
2305
|
-
return [4
|
|
2305
|
+
return [4, deserializeAws_json1_1ApprovalAlreadyCompletedExceptionResponse(parsedOutput, context)];
|
|
2306
2306
|
case 5:
|
|
2307
2307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2308
|
-
return [3
|
|
2308
|
+
return [3, 15];
|
|
2309
2309
|
case 6:
|
|
2310
2310
|
_e = [{}];
|
|
2311
|
-
return [4
|
|
2311
|
+
return [4, deserializeAws_json1_1InvalidApprovalTokenExceptionResponse(parsedOutput, context)];
|
|
2312
2312
|
case 7:
|
|
2313
2313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2314
|
-
return [3
|
|
2314
|
+
return [3, 15];
|
|
2315
2315
|
case 8:
|
|
2316
2316
|
_f = [{}];
|
|
2317
|
-
return [4
|
|
2317
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
2318
2318
|
case 9:
|
|
2319
2319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2320
|
-
return [3
|
|
2320
|
+
return [3, 15];
|
|
2321
2321
|
case 10:
|
|
2322
2322
|
_g = [{}];
|
|
2323
|
-
return [4
|
|
2323
|
+
return [4, deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)];
|
|
2324
2324
|
case 11:
|
|
2325
2325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2326
|
-
return [3
|
|
2326
|
+
return [3, 15];
|
|
2327
2327
|
case 12:
|
|
2328
2328
|
_h = [{}];
|
|
2329
|
-
return [4
|
|
2329
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2330
2330
|
case 13:
|
|
2331
2331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2332
|
-
return [3
|
|
2332
|
+
return [3, 15];
|
|
2333
2333
|
case 14:
|
|
2334
2334
|
parsedBody = parsedOutput.body;
|
|
2335
2335
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2339,7 +2339,7 @@ var deserializeAws_json1_1PutApprovalResultCommandError = function (output, cont
|
|
|
2339
2339
|
message = response.message || response.Message || errorCode;
|
|
2340
2340
|
response.message = message;
|
|
2341
2341
|
delete response.Message;
|
|
2342
|
-
return [2
|
|
2342
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2343
2343
|
}
|
|
2344
2344
|
});
|
|
2345
2345
|
}); };
|
|
@@ -2349,15 +2349,15 @@ export var deserializeAws_json1_1PutJobFailureResultCommand = function (output,
|
|
|
2349
2349
|
switch (_a.label) {
|
|
2350
2350
|
case 0:
|
|
2351
2351
|
if (output.statusCode >= 300) {
|
|
2352
|
-
return [2
|
|
2352
|
+
return [2, deserializeAws_json1_1PutJobFailureResultCommandError(output, context)];
|
|
2353
2353
|
}
|
|
2354
|
-
return [4
|
|
2354
|
+
return [4, collectBody(output.body, context)];
|
|
2355
2355
|
case 1:
|
|
2356
2356
|
_a.sent();
|
|
2357
2357
|
response = {
|
|
2358
2358
|
$metadata: deserializeMetadata(output),
|
|
2359
2359
|
};
|
|
2360
|
-
return [2
|
|
2360
|
+
return [2, Promise.resolve(response)];
|
|
2361
2361
|
}
|
|
2362
2362
|
});
|
|
2363
2363
|
}); };
|
|
@@ -2369,39 +2369,39 @@ var deserializeAws_json1_1PutJobFailureResultCommandError = function (output, co
|
|
|
2369
2369
|
case 0:
|
|
2370
2370
|
_a = [__assign({}, output)];
|
|
2371
2371
|
_f = {};
|
|
2372
|
-
return [4
|
|
2372
|
+
return [4, parseBody(output.body, context)];
|
|
2373
2373
|
case 1:
|
|
2374
2374
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2375
2375
|
errorCode = "UnknownError";
|
|
2376
2376
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2377
2377
|
_b = errorCode;
|
|
2378
2378
|
switch (_b) {
|
|
2379
|
-
case "InvalidJobStateException": return [3
|
|
2380
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3
|
|
2381
|
-
case "JobNotFoundException": return [3
|
|
2382
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
2383
|
-
case "ValidationException": return [3
|
|
2384
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2379
|
+
case "InvalidJobStateException": return [3, 2];
|
|
2380
|
+
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3, 2];
|
|
2381
|
+
case "JobNotFoundException": return [3, 4];
|
|
2382
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 4];
|
|
2383
|
+
case "ValidationException": return [3, 6];
|
|
2384
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
2385
2385
|
}
|
|
2386
|
-
return [3
|
|
2386
|
+
return [3, 8];
|
|
2387
2387
|
case 2:
|
|
2388
2388
|
_c = [{}];
|
|
2389
|
-
return [4
|
|
2389
|
+
return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
2390
2390
|
case 3:
|
|
2391
2391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2392
|
-
return [3
|
|
2392
|
+
return [3, 9];
|
|
2393
2393
|
case 4:
|
|
2394
2394
|
_d = [{}];
|
|
2395
|
-
return [4
|
|
2395
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
2396
2396
|
case 5:
|
|
2397
2397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2398
|
-
return [3
|
|
2398
|
+
return [3, 9];
|
|
2399
2399
|
case 6:
|
|
2400
2400
|
_e = [{}];
|
|
2401
|
-
return [4
|
|
2401
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2402
2402
|
case 7:
|
|
2403
2403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2404
|
-
return [3
|
|
2404
|
+
return [3, 9];
|
|
2405
2405
|
case 8:
|
|
2406
2406
|
parsedBody = parsedOutput.body;
|
|
2407
2407
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2411,7 +2411,7 @@ var deserializeAws_json1_1PutJobFailureResultCommandError = function (output, co
|
|
|
2411
2411
|
message = response.message || response.Message || errorCode;
|
|
2412
2412
|
response.message = message;
|
|
2413
2413
|
delete response.Message;
|
|
2414
|
-
return [2
|
|
2414
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2415
2415
|
}
|
|
2416
2416
|
});
|
|
2417
2417
|
}); };
|
|
@@ -2421,15 +2421,15 @@ export var deserializeAws_json1_1PutJobSuccessResultCommand = function (output,
|
|
|
2421
2421
|
switch (_a.label) {
|
|
2422
2422
|
case 0:
|
|
2423
2423
|
if (output.statusCode >= 300) {
|
|
2424
|
-
return [2
|
|
2424
|
+
return [2, deserializeAws_json1_1PutJobSuccessResultCommandError(output, context)];
|
|
2425
2425
|
}
|
|
2426
|
-
return [4
|
|
2426
|
+
return [4, collectBody(output.body, context)];
|
|
2427
2427
|
case 1:
|
|
2428
2428
|
_a.sent();
|
|
2429
2429
|
response = {
|
|
2430
2430
|
$metadata: deserializeMetadata(output),
|
|
2431
2431
|
};
|
|
2432
|
-
return [2
|
|
2432
|
+
return [2, Promise.resolve(response)];
|
|
2433
2433
|
}
|
|
2434
2434
|
});
|
|
2435
2435
|
}); };
|
|
@@ -2441,47 +2441,47 @@ var deserializeAws_json1_1PutJobSuccessResultCommandError = function (output, co
|
|
|
2441
2441
|
case 0:
|
|
2442
2442
|
_a = [__assign({}, output)];
|
|
2443
2443
|
_g = {};
|
|
2444
|
-
return [4
|
|
2444
|
+
return [4, parseBody(output.body, context)];
|
|
2445
2445
|
case 1:
|
|
2446
2446
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2447
2447
|
errorCode = "UnknownError";
|
|
2448
2448
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2449
2449
|
_b = errorCode;
|
|
2450
2450
|
switch (_b) {
|
|
2451
|
-
case "InvalidJobStateException": return [3
|
|
2452
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3
|
|
2453
|
-
case "JobNotFoundException": return [3
|
|
2454
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
2455
|
-
case "OutputVariablesSizeExceededException": return [3
|
|
2456
|
-
case "com.amazonaws.codepipeline#OutputVariablesSizeExceededException": return [3
|
|
2457
|
-
case "ValidationException": return [3
|
|
2458
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2451
|
+
case "InvalidJobStateException": return [3, 2];
|
|
2452
|
+
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3, 2];
|
|
2453
|
+
case "JobNotFoundException": return [3, 4];
|
|
2454
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 4];
|
|
2455
|
+
case "OutputVariablesSizeExceededException": return [3, 6];
|
|
2456
|
+
case "com.amazonaws.codepipeline#OutputVariablesSizeExceededException": return [3, 6];
|
|
2457
|
+
case "ValidationException": return [3, 8];
|
|
2458
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
2459
2459
|
}
|
|
2460
|
-
return [3
|
|
2460
|
+
return [3, 10];
|
|
2461
2461
|
case 2:
|
|
2462
2462
|
_c = [{}];
|
|
2463
|
-
return [4
|
|
2463
|
+
return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
2464
2464
|
case 3:
|
|
2465
2465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2466
|
-
return [3
|
|
2466
|
+
return [3, 11];
|
|
2467
2467
|
case 4:
|
|
2468
2468
|
_d = [{}];
|
|
2469
|
-
return [4
|
|
2469
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
2470
2470
|
case 5:
|
|
2471
2471
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2472
|
-
return [3
|
|
2472
|
+
return [3, 11];
|
|
2473
2473
|
case 6:
|
|
2474
2474
|
_e = [{}];
|
|
2475
|
-
return [4
|
|
2475
|
+
return [4, deserializeAws_json1_1OutputVariablesSizeExceededExceptionResponse(parsedOutput, context)];
|
|
2476
2476
|
case 7:
|
|
2477
2477
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2478
|
-
return [3
|
|
2478
|
+
return [3, 11];
|
|
2479
2479
|
case 8:
|
|
2480
2480
|
_f = [{}];
|
|
2481
|
-
return [4
|
|
2481
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2482
2482
|
case 9:
|
|
2483
2483
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2484
|
-
return [3
|
|
2484
|
+
return [3, 11];
|
|
2485
2485
|
case 10:
|
|
2486
2486
|
parsedBody = parsedOutput.body;
|
|
2487
2487
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2491,7 +2491,7 @@ var deserializeAws_json1_1PutJobSuccessResultCommandError = function (output, co
|
|
|
2491
2491
|
message = response.message || response.Message || errorCode;
|
|
2492
2492
|
response.message = message;
|
|
2493
2493
|
delete response.Message;
|
|
2494
|
-
return [2
|
|
2494
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2495
2495
|
}
|
|
2496
2496
|
});
|
|
2497
2497
|
}); };
|
|
@@ -2501,15 +2501,15 @@ export var deserializeAws_json1_1PutThirdPartyJobFailureResultCommand = function
|
|
|
2501
2501
|
switch (_a.label) {
|
|
2502
2502
|
case 0:
|
|
2503
2503
|
if (output.statusCode >= 300) {
|
|
2504
|
-
return [2
|
|
2504
|
+
return [2, deserializeAws_json1_1PutThirdPartyJobFailureResultCommandError(output, context)];
|
|
2505
2505
|
}
|
|
2506
|
-
return [4
|
|
2506
|
+
return [4, collectBody(output.body, context)];
|
|
2507
2507
|
case 1:
|
|
2508
2508
|
_a.sent();
|
|
2509
2509
|
response = {
|
|
2510
2510
|
$metadata: deserializeMetadata(output),
|
|
2511
2511
|
};
|
|
2512
|
-
return [2
|
|
2512
|
+
return [2, Promise.resolve(response)];
|
|
2513
2513
|
}
|
|
2514
2514
|
});
|
|
2515
2515
|
}); };
|
|
@@ -2521,47 +2521,47 @@ var deserializeAws_json1_1PutThirdPartyJobFailureResultCommandError = function (
|
|
|
2521
2521
|
case 0:
|
|
2522
2522
|
_a = [__assign({}, output)];
|
|
2523
2523
|
_g = {};
|
|
2524
|
-
return [4
|
|
2524
|
+
return [4, parseBody(output.body, context)];
|
|
2525
2525
|
case 1:
|
|
2526
2526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2527
2527
|
errorCode = "UnknownError";
|
|
2528
2528
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
2529
|
_b = errorCode;
|
|
2530
2530
|
switch (_b) {
|
|
2531
|
-
case "InvalidClientTokenException": return [3
|
|
2532
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3
|
|
2533
|
-
case "InvalidJobStateException": return [3
|
|
2534
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3
|
|
2535
|
-
case "JobNotFoundException": return [3
|
|
2536
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
2537
|
-
case "ValidationException": return [3
|
|
2538
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2531
|
+
case "InvalidClientTokenException": return [3, 2];
|
|
2532
|
+
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3, 2];
|
|
2533
|
+
case "InvalidJobStateException": return [3, 4];
|
|
2534
|
+
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3, 4];
|
|
2535
|
+
case "JobNotFoundException": return [3, 6];
|
|
2536
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 6];
|
|
2537
|
+
case "ValidationException": return [3, 8];
|
|
2538
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
2539
2539
|
}
|
|
2540
|
-
return [3
|
|
2540
|
+
return [3, 10];
|
|
2541
2541
|
case 2:
|
|
2542
2542
|
_c = [{}];
|
|
2543
|
-
return [4
|
|
2543
|
+
return [4, deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
2544
2544
|
case 3:
|
|
2545
2545
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2546
|
-
return [3
|
|
2546
|
+
return [3, 11];
|
|
2547
2547
|
case 4:
|
|
2548
2548
|
_d = [{}];
|
|
2549
|
-
return [4
|
|
2549
|
+
return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
2550
2550
|
case 5:
|
|
2551
2551
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2552
|
-
return [3
|
|
2552
|
+
return [3, 11];
|
|
2553
2553
|
case 6:
|
|
2554
2554
|
_e = [{}];
|
|
2555
|
-
return [4
|
|
2555
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
2556
2556
|
case 7:
|
|
2557
2557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2558
|
-
return [3
|
|
2558
|
+
return [3, 11];
|
|
2559
2559
|
case 8:
|
|
2560
2560
|
_f = [{}];
|
|
2561
|
-
return [4
|
|
2561
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2562
2562
|
case 9:
|
|
2563
2563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2564
|
-
return [3
|
|
2564
|
+
return [3, 11];
|
|
2565
2565
|
case 10:
|
|
2566
2566
|
parsedBody = parsedOutput.body;
|
|
2567
2567
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2571,7 +2571,7 @@ var deserializeAws_json1_1PutThirdPartyJobFailureResultCommandError = function (
|
|
|
2571
2571
|
message = response.message || response.Message || errorCode;
|
|
2572
2572
|
response.message = message;
|
|
2573
2573
|
delete response.Message;
|
|
2574
|
-
return [2
|
|
2574
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2575
2575
|
}
|
|
2576
2576
|
});
|
|
2577
2577
|
}); };
|
|
@@ -2581,15 +2581,15 @@ export var deserializeAws_json1_1PutThirdPartyJobSuccessResultCommand = function
|
|
|
2581
2581
|
switch (_a.label) {
|
|
2582
2582
|
case 0:
|
|
2583
2583
|
if (output.statusCode >= 300) {
|
|
2584
|
-
return [2
|
|
2584
|
+
return [2, deserializeAws_json1_1PutThirdPartyJobSuccessResultCommandError(output, context)];
|
|
2585
2585
|
}
|
|
2586
|
-
return [4
|
|
2586
|
+
return [4, collectBody(output.body, context)];
|
|
2587
2587
|
case 1:
|
|
2588
2588
|
_a.sent();
|
|
2589
2589
|
response = {
|
|
2590
2590
|
$metadata: deserializeMetadata(output),
|
|
2591
2591
|
};
|
|
2592
|
-
return [2
|
|
2592
|
+
return [2, Promise.resolve(response)];
|
|
2593
2593
|
}
|
|
2594
2594
|
});
|
|
2595
2595
|
}); };
|
|
@@ -2601,47 +2601,47 @@ var deserializeAws_json1_1PutThirdPartyJobSuccessResultCommandError = function (
|
|
|
2601
2601
|
case 0:
|
|
2602
2602
|
_a = [__assign({}, output)];
|
|
2603
2603
|
_g = {};
|
|
2604
|
-
return [4
|
|
2604
|
+
return [4, parseBody(output.body, context)];
|
|
2605
2605
|
case 1:
|
|
2606
2606
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2607
2607
|
errorCode = "UnknownError";
|
|
2608
2608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2609
|
_b = errorCode;
|
|
2610
2610
|
switch (_b) {
|
|
2611
|
-
case "InvalidClientTokenException": return [3
|
|
2612
|
-
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3
|
|
2613
|
-
case "InvalidJobStateException": return [3
|
|
2614
|
-
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3
|
|
2615
|
-
case "JobNotFoundException": return [3
|
|
2616
|
-
case "com.amazonaws.codepipeline#JobNotFoundException": return [3
|
|
2617
|
-
case "ValidationException": return [3
|
|
2618
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2611
|
+
case "InvalidClientTokenException": return [3, 2];
|
|
2612
|
+
case "com.amazonaws.codepipeline#InvalidClientTokenException": return [3, 2];
|
|
2613
|
+
case "InvalidJobStateException": return [3, 4];
|
|
2614
|
+
case "com.amazonaws.codepipeline#InvalidJobStateException": return [3, 4];
|
|
2615
|
+
case "JobNotFoundException": return [3, 6];
|
|
2616
|
+
case "com.amazonaws.codepipeline#JobNotFoundException": return [3, 6];
|
|
2617
|
+
case "ValidationException": return [3, 8];
|
|
2618
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 8];
|
|
2619
2619
|
}
|
|
2620
|
-
return [3
|
|
2620
|
+
return [3, 10];
|
|
2621
2621
|
case 2:
|
|
2622
2622
|
_c = [{}];
|
|
2623
|
-
return [4
|
|
2623
|
+
return [4, deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)];
|
|
2624
2624
|
case 3:
|
|
2625
2625
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2626
|
-
return [3
|
|
2626
|
+
return [3, 11];
|
|
2627
2627
|
case 4:
|
|
2628
2628
|
_d = [{}];
|
|
2629
|
-
return [4
|
|
2629
|
+
return [4, deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)];
|
|
2630
2630
|
case 5:
|
|
2631
2631
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2632
|
-
return [3
|
|
2632
|
+
return [3, 11];
|
|
2633
2633
|
case 6:
|
|
2634
2634
|
_e = [{}];
|
|
2635
|
-
return [4
|
|
2635
|
+
return [4, deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)];
|
|
2636
2636
|
case 7:
|
|
2637
2637
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2638
|
-
return [3
|
|
2638
|
+
return [3, 11];
|
|
2639
2639
|
case 8:
|
|
2640
2640
|
_f = [{}];
|
|
2641
|
-
return [4
|
|
2641
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2642
2642
|
case 9:
|
|
2643
2643
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2644
|
-
return [3
|
|
2644
|
+
return [3, 11];
|
|
2645
2645
|
case 10:
|
|
2646
2646
|
parsedBody = parsedOutput.body;
|
|
2647
2647
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2651,7 +2651,7 @@ var deserializeAws_json1_1PutThirdPartyJobSuccessResultCommandError = function (
|
|
|
2651
2651
|
message = response.message || response.Message || errorCode;
|
|
2652
2652
|
response.message = message;
|
|
2653
2653
|
delete response.Message;
|
|
2654
|
-
return [2
|
|
2654
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2655
2655
|
}
|
|
2656
2656
|
});
|
|
2657
2657
|
}); };
|
|
@@ -2661,15 +2661,15 @@ export var deserializeAws_json1_1PutWebhookCommand = function (output, context)
|
|
|
2661
2661
|
switch (_a.label) {
|
|
2662
2662
|
case 0:
|
|
2663
2663
|
if (output.statusCode >= 300) {
|
|
2664
|
-
return [2
|
|
2664
|
+
return [2, deserializeAws_json1_1PutWebhookCommandError(output, context)];
|
|
2665
2665
|
}
|
|
2666
|
-
return [4
|
|
2666
|
+
return [4, parseBody(output.body, context)];
|
|
2667
2667
|
case 1:
|
|
2668
2668
|
data = _a.sent();
|
|
2669
2669
|
contents = {};
|
|
2670
2670
|
contents = deserializeAws_json1_1PutWebhookOutput(data, context);
|
|
2671
2671
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2672
|
-
return [2
|
|
2672
|
+
return [2, Promise.resolve(response)];
|
|
2673
2673
|
}
|
|
2674
2674
|
});
|
|
2675
2675
|
}); };
|
|
@@ -2681,79 +2681,79 @@ var deserializeAws_json1_1PutWebhookCommandError = function (output, context) {
|
|
|
2681
2681
|
case 0:
|
|
2682
2682
|
_a = [__assign({}, output)];
|
|
2683
2683
|
_l = {};
|
|
2684
|
-
return [4
|
|
2684
|
+
return [4, parseBody(output.body, context)];
|
|
2685
2685
|
case 1:
|
|
2686
2686
|
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
2687
2687
|
errorCode = "UnknownError";
|
|
2688
2688
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2689
2689
|
_b = errorCode;
|
|
2690
2690
|
switch (_b) {
|
|
2691
|
-
case "ConcurrentModificationException": return [3
|
|
2692
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
2693
|
-
case "InvalidTagsException": return [3
|
|
2694
|
-
case "com.amazonaws.codepipeline#InvalidTagsException": return [3
|
|
2695
|
-
case "InvalidWebhookAuthenticationParametersException": return [3
|
|
2696
|
-
case "com.amazonaws.codepipeline#InvalidWebhookAuthenticationParametersException": return [3
|
|
2697
|
-
case "InvalidWebhookFilterPatternException": return [3
|
|
2698
|
-
case "com.amazonaws.codepipeline#InvalidWebhookFilterPatternException": return [3
|
|
2699
|
-
case "LimitExceededException": return [3
|
|
2700
|
-
case "com.amazonaws.codepipeline#LimitExceededException": return [3
|
|
2701
|
-
case "PipelineNotFoundException": return [3
|
|
2702
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
2703
|
-
case "TooManyTagsException": return [3
|
|
2704
|
-
case "com.amazonaws.codepipeline#TooManyTagsException": return [3
|
|
2705
|
-
case "ValidationException": return [3
|
|
2706
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2691
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
2692
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
2693
|
+
case "InvalidTagsException": return [3, 4];
|
|
2694
|
+
case "com.amazonaws.codepipeline#InvalidTagsException": return [3, 4];
|
|
2695
|
+
case "InvalidWebhookAuthenticationParametersException": return [3, 6];
|
|
2696
|
+
case "com.amazonaws.codepipeline#InvalidWebhookAuthenticationParametersException": return [3, 6];
|
|
2697
|
+
case "InvalidWebhookFilterPatternException": return [3, 8];
|
|
2698
|
+
case "com.amazonaws.codepipeline#InvalidWebhookFilterPatternException": return [3, 8];
|
|
2699
|
+
case "LimitExceededException": return [3, 10];
|
|
2700
|
+
case "com.amazonaws.codepipeline#LimitExceededException": return [3, 10];
|
|
2701
|
+
case "PipelineNotFoundException": return [3, 12];
|
|
2702
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 12];
|
|
2703
|
+
case "TooManyTagsException": return [3, 14];
|
|
2704
|
+
case "com.amazonaws.codepipeline#TooManyTagsException": return [3, 14];
|
|
2705
|
+
case "ValidationException": return [3, 16];
|
|
2706
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 16];
|
|
2707
2707
|
}
|
|
2708
|
-
return [3
|
|
2708
|
+
return [3, 18];
|
|
2709
2709
|
case 2:
|
|
2710
2710
|
_c = [{}];
|
|
2711
|
-
return [4
|
|
2711
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
2712
2712
|
case 3:
|
|
2713
2713
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2714
|
-
return [3
|
|
2714
|
+
return [3, 19];
|
|
2715
2715
|
case 4:
|
|
2716
2716
|
_d = [{}];
|
|
2717
|
-
return [4
|
|
2717
|
+
return [4, deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)];
|
|
2718
2718
|
case 5:
|
|
2719
2719
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2720
|
-
return [3
|
|
2720
|
+
return [3, 19];
|
|
2721
2721
|
case 6:
|
|
2722
2722
|
_e = [{}];
|
|
2723
|
-
return [4
|
|
2723
|
+
return [4, deserializeAws_json1_1InvalidWebhookAuthenticationParametersExceptionResponse(parsedOutput, context)];
|
|
2724
2724
|
case 7:
|
|
2725
2725
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2726
|
-
return [3
|
|
2726
|
+
return [3, 19];
|
|
2727
2727
|
case 8:
|
|
2728
2728
|
_f = [{}];
|
|
2729
|
-
return [4
|
|
2729
|
+
return [4, deserializeAws_json1_1InvalidWebhookFilterPatternExceptionResponse(parsedOutput, context)];
|
|
2730
2730
|
case 9:
|
|
2731
2731
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2732
|
-
return [3
|
|
2732
|
+
return [3, 19];
|
|
2733
2733
|
case 10:
|
|
2734
2734
|
_g = [{}];
|
|
2735
|
-
return [4
|
|
2735
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2736
2736
|
case 11:
|
|
2737
2737
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2738
|
-
return [3
|
|
2738
|
+
return [3, 19];
|
|
2739
2739
|
case 12:
|
|
2740
2740
|
_h = [{}];
|
|
2741
|
-
return [4
|
|
2741
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
2742
2742
|
case 13:
|
|
2743
2743
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2744
|
-
return [3
|
|
2744
|
+
return [3, 19];
|
|
2745
2745
|
case 14:
|
|
2746
2746
|
_j = [{}];
|
|
2747
|
-
return [4
|
|
2747
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2748
2748
|
case 15:
|
|
2749
2749
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2750
|
-
return [3
|
|
2750
|
+
return [3, 19];
|
|
2751
2751
|
case 16:
|
|
2752
2752
|
_k = [{}];
|
|
2753
|
-
return [4
|
|
2753
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2754
2754
|
case 17:
|
|
2755
2755
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2756
|
-
return [3
|
|
2756
|
+
return [3, 19];
|
|
2757
2757
|
case 18:
|
|
2758
2758
|
parsedBody = parsedOutput.body;
|
|
2759
2759
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2763,7 +2763,7 @@ var deserializeAws_json1_1PutWebhookCommandError = function (output, context) {
|
|
|
2763
2763
|
message = response.message || response.Message || errorCode;
|
|
2764
2764
|
response.message = message;
|
|
2765
2765
|
delete response.Message;
|
|
2766
|
-
return [2
|
|
2766
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2767
2767
|
}
|
|
2768
2768
|
});
|
|
2769
2769
|
}); };
|
|
@@ -2773,15 +2773,15 @@ export var deserializeAws_json1_1RegisterWebhookWithThirdPartyCommand = function
|
|
|
2773
2773
|
switch (_a.label) {
|
|
2774
2774
|
case 0:
|
|
2775
2775
|
if (output.statusCode >= 300) {
|
|
2776
|
-
return [2
|
|
2776
|
+
return [2, deserializeAws_json1_1RegisterWebhookWithThirdPartyCommandError(output, context)];
|
|
2777
2777
|
}
|
|
2778
|
-
return [4
|
|
2778
|
+
return [4, parseBody(output.body, context)];
|
|
2779
2779
|
case 1:
|
|
2780
2780
|
data = _a.sent();
|
|
2781
2781
|
contents = {};
|
|
2782
2782
|
contents = deserializeAws_json1_1RegisterWebhookWithThirdPartyOutput(data, context);
|
|
2783
2783
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2784
|
-
return [2
|
|
2784
|
+
return [2, Promise.resolve(response)];
|
|
2785
2785
|
}
|
|
2786
2786
|
});
|
|
2787
2787
|
}); };
|
|
@@ -2793,31 +2793,31 @@ var deserializeAws_json1_1RegisterWebhookWithThirdPartyCommandError = function (
|
|
|
2793
2793
|
case 0:
|
|
2794
2794
|
_a = [__assign({}, output)];
|
|
2795
2795
|
_e = {};
|
|
2796
|
-
return [4
|
|
2796
|
+
return [4, parseBody(output.body, context)];
|
|
2797
2797
|
case 1:
|
|
2798
2798
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2799
2799
|
errorCode = "UnknownError";
|
|
2800
2800
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2801
2801
|
_b = errorCode;
|
|
2802
2802
|
switch (_b) {
|
|
2803
|
-
case "ValidationException": return [3
|
|
2804
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2805
|
-
case "WebhookNotFoundException": return [3
|
|
2806
|
-
case "com.amazonaws.codepipeline#WebhookNotFoundException": return [3
|
|
2803
|
+
case "ValidationException": return [3, 2];
|
|
2804
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 2];
|
|
2805
|
+
case "WebhookNotFoundException": return [3, 4];
|
|
2806
|
+
case "com.amazonaws.codepipeline#WebhookNotFoundException": return [3, 4];
|
|
2807
2807
|
}
|
|
2808
|
-
return [3
|
|
2808
|
+
return [3, 6];
|
|
2809
2809
|
case 2:
|
|
2810
2810
|
_c = [{}];
|
|
2811
|
-
return [4
|
|
2811
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2812
2812
|
case 3:
|
|
2813
2813
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2814
|
-
return [3
|
|
2814
|
+
return [3, 7];
|
|
2815
2815
|
case 4:
|
|
2816
2816
|
_d = [{}];
|
|
2817
|
-
return [4
|
|
2817
|
+
return [4, deserializeAws_json1_1WebhookNotFoundExceptionResponse(parsedOutput, context)];
|
|
2818
2818
|
case 5:
|
|
2819
2819
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2820
|
-
return [3
|
|
2820
|
+
return [3, 7];
|
|
2821
2821
|
case 6:
|
|
2822
2822
|
parsedBody = parsedOutput.body;
|
|
2823
2823
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2827,7 +2827,7 @@ var deserializeAws_json1_1RegisterWebhookWithThirdPartyCommandError = function (
|
|
|
2827
2827
|
message = response.message || response.Message || errorCode;
|
|
2828
2828
|
response.message = message;
|
|
2829
2829
|
delete response.Message;
|
|
2830
|
-
return [2
|
|
2830
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2831
2831
|
}
|
|
2832
2832
|
});
|
|
2833
2833
|
}); };
|
|
@@ -2837,15 +2837,15 @@ export var deserializeAws_json1_1RetryStageExecutionCommand = function (output,
|
|
|
2837
2837
|
switch (_a.label) {
|
|
2838
2838
|
case 0:
|
|
2839
2839
|
if (output.statusCode >= 300) {
|
|
2840
|
-
return [2
|
|
2840
|
+
return [2, deserializeAws_json1_1RetryStageExecutionCommandError(output, context)];
|
|
2841
2841
|
}
|
|
2842
|
-
return [4
|
|
2842
|
+
return [4, parseBody(output.body, context)];
|
|
2843
2843
|
case 1:
|
|
2844
2844
|
data = _a.sent();
|
|
2845
2845
|
contents = {};
|
|
2846
2846
|
contents = deserializeAws_json1_1RetryStageExecutionOutput(data, context);
|
|
2847
2847
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2848
|
-
return [2
|
|
2848
|
+
return [2, Promise.resolve(response)];
|
|
2849
2849
|
}
|
|
2850
2850
|
});
|
|
2851
2851
|
}); };
|
|
@@ -2857,63 +2857,63 @@ var deserializeAws_json1_1RetryStageExecutionCommandError = function (output, co
|
|
|
2857
2857
|
case 0:
|
|
2858
2858
|
_a = [__assign({}, output)];
|
|
2859
2859
|
_j = {};
|
|
2860
|
-
return [4
|
|
2860
|
+
return [4, parseBody(output.body, context)];
|
|
2861
2861
|
case 1:
|
|
2862
2862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2863
2863
|
errorCode = "UnknownError";
|
|
2864
2864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2865
2865
|
_b = errorCode;
|
|
2866
2866
|
switch (_b) {
|
|
2867
|
-
case "ConflictException": return [3
|
|
2868
|
-
case "com.amazonaws.codepipeline#ConflictException": return [3
|
|
2869
|
-
case "NotLatestPipelineExecutionException": return [3
|
|
2870
|
-
case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException": return [3
|
|
2871
|
-
case "PipelineNotFoundException": return [3
|
|
2872
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
2873
|
-
case "StageNotFoundException": return [3
|
|
2874
|
-
case "com.amazonaws.codepipeline#StageNotFoundException": return [3
|
|
2875
|
-
case "StageNotRetryableException": return [3
|
|
2876
|
-
case "com.amazonaws.codepipeline#StageNotRetryableException": return [3
|
|
2877
|
-
case "ValidationException": return [3
|
|
2878
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2867
|
+
case "ConflictException": return [3, 2];
|
|
2868
|
+
case "com.amazonaws.codepipeline#ConflictException": return [3, 2];
|
|
2869
|
+
case "NotLatestPipelineExecutionException": return [3, 4];
|
|
2870
|
+
case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException": return [3, 4];
|
|
2871
|
+
case "PipelineNotFoundException": return [3, 6];
|
|
2872
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 6];
|
|
2873
|
+
case "StageNotFoundException": return [3, 8];
|
|
2874
|
+
case "com.amazonaws.codepipeline#StageNotFoundException": return [3, 8];
|
|
2875
|
+
case "StageNotRetryableException": return [3, 10];
|
|
2876
|
+
case "com.amazonaws.codepipeline#StageNotRetryableException": return [3, 10];
|
|
2877
|
+
case "ValidationException": return [3, 12];
|
|
2878
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 12];
|
|
2879
2879
|
}
|
|
2880
|
-
return [3
|
|
2880
|
+
return [3, 14];
|
|
2881
2881
|
case 2:
|
|
2882
2882
|
_c = [{}];
|
|
2883
|
-
return [4
|
|
2883
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2884
2884
|
case 3:
|
|
2885
2885
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2886
|
-
return [3
|
|
2886
|
+
return [3, 15];
|
|
2887
2887
|
case 4:
|
|
2888
2888
|
_d = [{}];
|
|
2889
|
-
return [4
|
|
2889
|
+
return [4, deserializeAws_json1_1NotLatestPipelineExecutionExceptionResponse(parsedOutput, context)];
|
|
2890
2890
|
case 5:
|
|
2891
2891
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2892
|
-
return [3
|
|
2892
|
+
return [3, 15];
|
|
2893
2893
|
case 6:
|
|
2894
2894
|
_e = [{}];
|
|
2895
|
-
return [4
|
|
2895
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
2896
2896
|
case 7:
|
|
2897
2897
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2898
|
-
return [3
|
|
2898
|
+
return [3, 15];
|
|
2899
2899
|
case 8:
|
|
2900
2900
|
_f = [{}];
|
|
2901
|
-
return [4
|
|
2901
|
+
return [4, deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)];
|
|
2902
2902
|
case 9:
|
|
2903
2903
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2904
|
-
return [3
|
|
2904
|
+
return [3, 15];
|
|
2905
2905
|
case 10:
|
|
2906
2906
|
_g = [{}];
|
|
2907
|
-
return [4
|
|
2907
|
+
return [4, deserializeAws_json1_1StageNotRetryableExceptionResponse(parsedOutput, context)];
|
|
2908
2908
|
case 11:
|
|
2909
2909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2910
|
-
return [3
|
|
2910
|
+
return [3, 15];
|
|
2911
2911
|
case 12:
|
|
2912
2912
|
_h = [{}];
|
|
2913
|
-
return [4
|
|
2913
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2914
2914
|
case 13:
|
|
2915
2915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2916
|
-
return [3
|
|
2916
|
+
return [3, 15];
|
|
2917
2917
|
case 14:
|
|
2918
2918
|
parsedBody = parsedOutput.body;
|
|
2919
2919
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2923,7 +2923,7 @@ var deserializeAws_json1_1RetryStageExecutionCommandError = function (output, co
|
|
|
2923
2923
|
message = response.message || response.Message || errorCode;
|
|
2924
2924
|
response.message = message;
|
|
2925
2925
|
delete response.Message;
|
|
2926
|
-
return [2
|
|
2926
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2927
2927
|
}
|
|
2928
2928
|
});
|
|
2929
2929
|
}); };
|
|
@@ -2933,15 +2933,15 @@ export var deserializeAws_json1_1StartPipelineExecutionCommand = function (outpu
|
|
|
2933
2933
|
switch (_a.label) {
|
|
2934
2934
|
case 0:
|
|
2935
2935
|
if (output.statusCode >= 300) {
|
|
2936
|
-
return [2
|
|
2936
|
+
return [2, deserializeAws_json1_1StartPipelineExecutionCommandError(output, context)];
|
|
2937
2937
|
}
|
|
2938
|
-
return [4
|
|
2938
|
+
return [4, parseBody(output.body, context)];
|
|
2939
2939
|
case 1:
|
|
2940
2940
|
data = _a.sent();
|
|
2941
2941
|
contents = {};
|
|
2942
2942
|
contents = deserializeAws_json1_1StartPipelineExecutionOutput(data, context);
|
|
2943
2943
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2944
|
-
return [2
|
|
2944
|
+
return [2, Promise.resolve(response)];
|
|
2945
2945
|
}
|
|
2946
2946
|
});
|
|
2947
2947
|
}); };
|
|
@@ -2953,39 +2953,39 @@ var deserializeAws_json1_1StartPipelineExecutionCommandError = function (output,
|
|
|
2953
2953
|
case 0:
|
|
2954
2954
|
_a = [__assign({}, output)];
|
|
2955
2955
|
_f = {};
|
|
2956
|
-
return [4
|
|
2956
|
+
return [4, parseBody(output.body, context)];
|
|
2957
2957
|
case 1:
|
|
2958
2958
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2959
2959
|
errorCode = "UnknownError";
|
|
2960
2960
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2961
2961
|
_b = errorCode;
|
|
2962
2962
|
switch (_b) {
|
|
2963
|
-
case "ConflictException": return [3
|
|
2964
|
-
case "com.amazonaws.codepipeline#ConflictException": return [3
|
|
2965
|
-
case "PipelineNotFoundException": return [3
|
|
2966
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
2967
|
-
case "ValidationException": return [3
|
|
2968
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
2963
|
+
case "ConflictException": return [3, 2];
|
|
2964
|
+
case "com.amazonaws.codepipeline#ConflictException": return [3, 2];
|
|
2965
|
+
case "PipelineNotFoundException": return [3, 4];
|
|
2966
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 4];
|
|
2967
|
+
case "ValidationException": return [3, 6];
|
|
2968
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
2969
2969
|
}
|
|
2970
|
-
return [3
|
|
2970
|
+
return [3, 8];
|
|
2971
2971
|
case 2:
|
|
2972
2972
|
_c = [{}];
|
|
2973
|
-
return [4
|
|
2973
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2974
2974
|
case 3:
|
|
2975
2975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2976
|
-
return [3
|
|
2976
|
+
return [3, 9];
|
|
2977
2977
|
case 4:
|
|
2978
2978
|
_d = [{}];
|
|
2979
|
-
return [4
|
|
2979
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
2980
2980
|
case 5:
|
|
2981
2981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2982
|
-
return [3
|
|
2982
|
+
return [3, 9];
|
|
2983
2983
|
case 6:
|
|
2984
2984
|
_e = [{}];
|
|
2985
|
-
return [4
|
|
2985
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
2986
2986
|
case 7:
|
|
2987
2987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2988
|
-
return [3
|
|
2988
|
+
return [3, 9];
|
|
2989
2989
|
case 8:
|
|
2990
2990
|
parsedBody = parsedOutput.body;
|
|
2991
2991
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2995,7 +2995,7 @@ var deserializeAws_json1_1StartPipelineExecutionCommandError = function (output,
|
|
|
2995
2995
|
message = response.message || response.Message || errorCode;
|
|
2996
2996
|
response.message = message;
|
|
2997
2997
|
delete response.Message;
|
|
2998
|
-
return [2
|
|
2998
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2999
2999
|
}
|
|
3000
3000
|
});
|
|
3001
3001
|
}); };
|
|
@@ -3005,15 +3005,15 @@ export var deserializeAws_json1_1StopPipelineExecutionCommand = function (output
|
|
|
3005
3005
|
switch (_a.label) {
|
|
3006
3006
|
case 0:
|
|
3007
3007
|
if (output.statusCode >= 300) {
|
|
3008
|
-
return [2
|
|
3008
|
+
return [2, deserializeAws_json1_1StopPipelineExecutionCommandError(output, context)];
|
|
3009
3009
|
}
|
|
3010
|
-
return [4
|
|
3010
|
+
return [4, parseBody(output.body, context)];
|
|
3011
3011
|
case 1:
|
|
3012
3012
|
data = _a.sent();
|
|
3013
3013
|
contents = {};
|
|
3014
3014
|
contents = deserializeAws_json1_1StopPipelineExecutionOutput(data, context);
|
|
3015
3015
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3016
|
-
return [2
|
|
3016
|
+
return [2, Promise.resolve(response)];
|
|
3017
3017
|
}
|
|
3018
3018
|
});
|
|
3019
3019
|
}); };
|
|
@@ -3025,55 +3025,55 @@ var deserializeAws_json1_1StopPipelineExecutionCommandError = function (output,
|
|
|
3025
3025
|
case 0:
|
|
3026
3026
|
_a = [__assign({}, output)];
|
|
3027
3027
|
_h = {};
|
|
3028
|
-
return [4
|
|
3028
|
+
return [4, parseBody(output.body, context)];
|
|
3029
3029
|
case 1:
|
|
3030
3030
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3031
3031
|
errorCode = "UnknownError";
|
|
3032
3032
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
3033
|
_b = errorCode;
|
|
3034
3034
|
switch (_b) {
|
|
3035
|
-
case "ConflictException": return [3
|
|
3036
|
-
case "com.amazonaws.codepipeline#ConflictException": return [3
|
|
3037
|
-
case "DuplicatedStopRequestException": return [3
|
|
3038
|
-
case "com.amazonaws.codepipeline#DuplicatedStopRequestException": return [3
|
|
3039
|
-
case "PipelineExecutionNotStoppableException": return [3
|
|
3040
|
-
case "com.amazonaws.codepipeline#PipelineExecutionNotStoppableException": return [3
|
|
3041
|
-
case "PipelineNotFoundException": return [3
|
|
3042
|
-
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3
|
|
3043
|
-
case "ValidationException": return [3
|
|
3044
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
3035
|
+
case "ConflictException": return [3, 2];
|
|
3036
|
+
case "com.amazonaws.codepipeline#ConflictException": return [3, 2];
|
|
3037
|
+
case "DuplicatedStopRequestException": return [3, 4];
|
|
3038
|
+
case "com.amazonaws.codepipeline#DuplicatedStopRequestException": return [3, 4];
|
|
3039
|
+
case "PipelineExecutionNotStoppableException": return [3, 6];
|
|
3040
|
+
case "com.amazonaws.codepipeline#PipelineExecutionNotStoppableException": return [3, 6];
|
|
3041
|
+
case "PipelineNotFoundException": return [3, 8];
|
|
3042
|
+
case "com.amazonaws.codepipeline#PipelineNotFoundException": return [3, 8];
|
|
3043
|
+
case "ValidationException": return [3, 10];
|
|
3044
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 10];
|
|
3045
3045
|
}
|
|
3046
|
-
return [3
|
|
3046
|
+
return [3, 12];
|
|
3047
3047
|
case 2:
|
|
3048
3048
|
_c = [{}];
|
|
3049
|
-
return [4
|
|
3049
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3050
3050
|
case 3:
|
|
3051
3051
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3052
|
-
return [3
|
|
3052
|
+
return [3, 13];
|
|
3053
3053
|
case 4:
|
|
3054
3054
|
_d = [{}];
|
|
3055
|
-
return [4
|
|
3055
|
+
return [4, deserializeAws_json1_1DuplicatedStopRequestExceptionResponse(parsedOutput, context)];
|
|
3056
3056
|
case 5:
|
|
3057
3057
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3058
|
-
return [3
|
|
3058
|
+
return [3, 13];
|
|
3059
3059
|
case 6:
|
|
3060
3060
|
_e = [{}];
|
|
3061
|
-
return [4
|
|
3061
|
+
return [4, deserializeAws_json1_1PipelineExecutionNotStoppableExceptionResponse(parsedOutput, context)];
|
|
3062
3062
|
case 7:
|
|
3063
3063
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3064
|
-
return [3
|
|
3064
|
+
return [3, 13];
|
|
3065
3065
|
case 8:
|
|
3066
3066
|
_f = [{}];
|
|
3067
|
-
return [4
|
|
3067
|
+
return [4, deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)];
|
|
3068
3068
|
case 9:
|
|
3069
3069
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3070
|
-
return [3
|
|
3070
|
+
return [3, 13];
|
|
3071
3071
|
case 10:
|
|
3072
3072
|
_g = [{}];
|
|
3073
|
-
return [4
|
|
3073
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3074
3074
|
case 11:
|
|
3075
3075
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3076
|
-
return [3
|
|
3076
|
+
return [3, 13];
|
|
3077
3077
|
case 12:
|
|
3078
3078
|
parsedBody = parsedOutput.body;
|
|
3079
3079
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3083,7 +3083,7 @@ var deserializeAws_json1_1StopPipelineExecutionCommandError = function (output,
|
|
|
3083
3083
|
message = response.message || response.Message || errorCode;
|
|
3084
3084
|
response.message = message;
|
|
3085
3085
|
delete response.Message;
|
|
3086
|
-
return [2
|
|
3086
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3087
3087
|
}
|
|
3088
3088
|
});
|
|
3089
3089
|
}); };
|
|
@@ -3093,15 +3093,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
3093
3093
|
switch (_a.label) {
|
|
3094
3094
|
case 0:
|
|
3095
3095
|
if (output.statusCode >= 300) {
|
|
3096
|
-
return [2
|
|
3096
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
3097
3097
|
}
|
|
3098
|
-
return [4
|
|
3098
|
+
return [4, parseBody(output.body, context)];
|
|
3099
3099
|
case 1:
|
|
3100
3100
|
data = _a.sent();
|
|
3101
3101
|
contents = {};
|
|
3102
3102
|
contents = deserializeAws_json1_1TagResourceOutput(data, context);
|
|
3103
3103
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3104
|
-
return [2
|
|
3104
|
+
return [2, Promise.resolve(response)];
|
|
3105
3105
|
}
|
|
3106
3106
|
});
|
|
3107
3107
|
}); };
|
|
@@ -3113,63 +3113,63 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
3113
3113
|
case 0:
|
|
3114
3114
|
_a = [__assign({}, output)];
|
|
3115
3115
|
_j = {};
|
|
3116
|
-
return [4
|
|
3116
|
+
return [4, parseBody(output.body, context)];
|
|
3117
3117
|
case 1:
|
|
3118
3118
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3119
3119
|
errorCode = "UnknownError";
|
|
3120
3120
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3121
3121
|
_b = errorCode;
|
|
3122
3122
|
switch (_b) {
|
|
3123
|
-
case "ConcurrentModificationException": return [3
|
|
3124
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
3125
|
-
case "InvalidArnException": return [3
|
|
3126
|
-
case "com.amazonaws.codepipeline#InvalidArnException": return [3
|
|
3127
|
-
case "InvalidTagsException": return [3
|
|
3128
|
-
case "com.amazonaws.codepipeline#InvalidTagsException": return [3
|
|
3129
|
-
case "ResourceNotFoundException": return [3
|
|
3130
|
-
case "com.amazonaws.codepipeline#ResourceNotFoundException": return [3
|
|
3131
|
-
case "TooManyTagsException": return [3
|
|
3132
|
-
case "com.amazonaws.codepipeline#TooManyTagsException": return [3
|
|
3133
|
-
case "ValidationException": return [3
|
|
3134
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
3123
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
3124
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
3125
|
+
case "InvalidArnException": return [3, 4];
|
|
3126
|
+
case "com.amazonaws.codepipeline#InvalidArnException": return [3, 4];
|
|
3127
|
+
case "InvalidTagsException": return [3, 6];
|
|
3128
|
+
case "com.amazonaws.codepipeline#InvalidTagsException": return [3, 6];
|
|
3129
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3130
|
+
case "com.amazonaws.codepipeline#ResourceNotFoundException": return [3, 8];
|
|
3131
|
+
case "TooManyTagsException": return [3, 10];
|
|
3132
|
+
case "com.amazonaws.codepipeline#TooManyTagsException": return [3, 10];
|
|
3133
|
+
case "ValidationException": return [3, 12];
|
|
3134
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 12];
|
|
3135
3135
|
}
|
|
3136
|
-
return [3
|
|
3136
|
+
return [3, 14];
|
|
3137
3137
|
case 2:
|
|
3138
3138
|
_c = [{}];
|
|
3139
|
-
return [4
|
|
3139
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
3140
3140
|
case 3:
|
|
3141
3141
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3142
|
-
return [3
|
|
3142
|
+
return [3, 15];
|
|
3143
3143
|
case 4:
|
|
3144
3144
|
_d = [{}];
|
|
3145
|
-
return [4
|
|
3145
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
3146
3146
|
case 5:
|
|
3147
3147
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3148
|
-
return [3
|
|
3148
|
+
return [3, 15];
|
|
3149
3149
|
case 6:
|
|
3150
3150
|
_e = [{}];
|
|
3151
|
-
return [4
|
|
3151
|
+
return [4, deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)];
|
|
3152
3152
|
case 7:
|
|
3153
3153
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3154
|
-
return [3
|
|
3154
|
+
return [3, 15];
|
|
3155
3155
|
case 8:
|
|
3156
3156
|
_f = [{}];
|
|
3157
|
-
return [4
|
|
3157
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3158
3158
|
case 9:
|
|
3159
3159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3160
|
-
return [3
|
|
3160
|
+
return [3, 15];
|
|
3161
3161
|
case 10:
|
|
3162
3162
|
_g = [{}];
|
|
3163
|
-
return [4
|
|
3163
|
+
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
3164
3164
|
case 11:
|
|
3165
3165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3166
|
-
return [3
|
|
3166
|
+
return [3, 15];
|
|
3167
3167
|
case 12:
|
|
3168
3168
|
_h = [{}];
|
|
3169
|
-
return [4
|
|
3169
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3170
3170
|
case 13:
|
|
3171
3171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3172
|
-
return [3
|
|
3172
|
+
return [3, 15];
|
|
3173
3173
|
case 14:
|
|
3174
3174
|
parsedBody = parsedOutput.body;
|
|
3175
3175
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3179,7 +3179,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
3179
3179
|
message = response.message || response.Message || errorCode;
|
|
3180
3180
|
response.message = message;
|
|
3181
3181
|
delete response.Message;
|
|
3182
|
-
return [2
|
|
3182
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3183
3183
|
}
|
|
3184
3184
|
});
|
|
3185
3185
|
}); };
|
|
@@ -3189,15 +3189,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
3189
3189
|
switch (_a.label) {
|
|
3190
3190
|
case 0:
|
|
3191
3191
|
if (output.statusCode >= 300) {
|
|
3192
|
-
return [2
|
|
3192
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
3193
3193
|
}
|
|
3194
|
-
return [4
|
|
3194
|
+
return [4, parseBody(output.body, context)];
|
|
3195
3195
|
case 1:
|
|
3196
3196
|
data = _a.sent();
|
|
3197
3197
|
contents = {};
|
|
3198
3198
|
contents = deserializeAws_json1_1UntagResourceOutput(data, context);
|
|
3199
3199
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3200
|
-
return [2
|
|
3200
|
+
return [2, Promise.resolve(response)];
|
|
3201
3201
|
}
|
|
3202
3202
|
});
|
|
3203
3203
|
}); };
|
|
@@ -3209,55 +3209,55 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3209
3209
|
case 0:
|
|
3210
3210
|
_a = [__assign({}, output)];
|
|
3211
3211
|
_h = {};
|
|
3212
|
-
return [4
|
|
3212
|
+
return [4, parseBody(output.body, context)];
|
|
3213
3213
|
case 1:
|
|
3214
3214
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3215
3215
|
errorCode = "UnknownError";
|
|
3216
3216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3217
3217
|
_b = errorCode;
|
|
3218
3218
|
switch (_b) {
|
|
3219
|
-
case "ConcurrentModificationException": return [3
|
|
3220
|
-
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3
|
|
3221
|
-
case "InvalidArnException": return [3
|
|
3222
|
-
case "com.amazonaws.codepipeline#InvalidArnException": return [3
|
|
3223
|
-
case "InvalidTagsException": return [3
|
|
3224
|
-
case "com.amazonaws.codepipeline#InvalidTagsException": return [3
|
|
3225
|
-
case "ResourceNotFoundException": return [3
|
|
3226
|
-
case "com.amazonaws.codepipeline#ResourceNotFoundException": return [3
|
|
3227
|
-
case "ValidationException": return [3
|
|
3228
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
3219
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
3220
|
+
case "com.amazonaws.codepipeline#ConcurrentModificationException": return [3, 2];
|
|
3221
|
+
case "InvalidArnException": return [3, 4];
|
|
3222
|
+
case "com.amazonaws.codepipeline#InvalidArnException": return [3, 4];
|
|
3223
|
+
case "InvalidTagsException": return [3, 6];
|
|
3224
|
+
case "com.amazonaws.codepipeline#InvalidTagsException": return [3, 6];
|
|
3225
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
3226
|
+
case "com.amazonaws.codepipeline#ResourceNotFoundException": return [3, 8];
|
|
3227
|
+
case "ValidationException": return [3, 10];
|
|
3228
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 10];
|
|
3229
3229
|
}
|
|
3230
|
-
return [3
|
|
3230
|
+
return [3, 12];
|
|
3231
3231
|
case 2:
|
|
3232
3232
|
_c = [{}];
|
|
3233
|
-
return [4
|
|
3233
|
+
return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
3234
3234
|
case 3:
|
|
3235
3235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3236
|
-
return [3
|
|
3236
|
+
return [3, 13];
|
|
3237
3237
|
case 4:
|
|
3238
3238
|
_d = [{}];
|
|
3239
|
-
return [4
|
|
3239
|
+
return [4, deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)];
|
|
3240
3240
|
case 5:
|
|
3241
3241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3242
|
-
return [3
|
|
3242
|
+
return [3, 13];
|
|
3243
3243
|
case 6:
|
|
3244
3244
|
_e = [{}];
|
|
3245
|
-
return [4
|
|
3245
|
+
return [4, deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)];
|
|
3246
3246
|
case 7:
|
|
3247
3247
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3248
|
-
return [3
|
|
3248
|
+
return [3, 13];
|
|
3249
3249
|
case 8:
|
|
3250
3250
|
_f = [{}];
|
|
3251
|
-
return [4
|
|
3251
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3252
3252
|
case 9:
|
|
3253
3253
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3254
|
-
return [3
|
|
3254
|
+
return [3, 13];
|
|
3255
3255
|
case 10:
|
|
3256
3256
|
_g = [{}];
|
|
3257
|
-
return [4
|
|
3257
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3258
3258
|
case 11:
|
|
3259
3259
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3260
|
-
return [3
|
|
3260
|
+
return [3, 13];
|
|
3261
3261
|
case 12:
|
|
3262
3262
|
parsedBody = parsedOutput.body;
|
|
3263
3263
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3267,7 +3267,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3267
3267
|
message = response.message || response.Message || errorCode;
|
|
3268
3268
|
response.message = message;
|
|
3269
3269
|
delete response.Message;
|
|
3270
|
-
return [2
|
|
3270
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3271
3271
|
}
|
|
3272
3272
|
});
|
|
3273
3273
|
}); };
|
|
@@ -3277,15 +3277,15 @@ export var deserializeAws_json1_1UpdateActionTypeCommand = function (output, con
|
|
|
3277
3277
|
switch (_a.label) {
|
|
3278
3278
|
case 0:
|
|
3279
3279
|
if (output.statusCode >= 300) {
|
|
3280
|
-
return [2
|
|
3280
|
+
return [2, deserializeAws_json1_1UpdateActionTypeCommandError(output, context)];
|
|
3281
3281
|
}
|
|
3282
|
-
return [4
|
|
3282
|
+
return [4, collectBody(output.body, context)];
|
|
3283
3283
|
case 1:
|
|
3284
3284
|
_a.sent();
|
|
3285
3285
|
response = {
|
|
3286
3286
|
$metadata: deserializeMetadata(output),
|
|
3287
3287
|
};
|
|
3288
|
-
return [2
|
|
3288
|
+
return [2, Promise.resolve(response)];
|
|
3289
3289
|
}
|
|
3290
3290
|
});
|
|
3291
3291
|
}); };
|
|
@@ -3297,39 +3297,39 @@ var deserializeAws_json1_1UpdateActionTypeCommandError = function (output, conte
|
|
|
3297
3297
|
case 0:
|
|
3298
3298
|
_a = [__assign({}, output)];
|
|
3299
3299
|
_f = {};
|
|
3300
|
-
return [4
|
|
3300
|
+
return [4, parseBody(output.body, context)];
|
|
3301
3301
|
case 1:
|
|
3302
3302
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
3303
3303
|
errorCode = "UnknownError";
|
|
3304
3304
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3305
3305
|
_b = errorCode;
|
|
3306
3306
|
switch (_b) {
|
|
3307
|
-
case "ActionTypeNotFoundException": return [3
|
|
3308
|
-
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3
|
|
3309
|
-
case "RequestFailedException": return [3
|
|
3310
|
-
case "com.amazonaws.codepipeline#RequestFailedException": return [3
|
|
3311
|
-
case "ValidationException": return [3
|
|
3312
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
3307
|
+
case "ActionTypeNotFoundException": return [3, 2];
|
|
3308
|
+
case "com.amazonaws.codepipeline#ActionTypeNotFoundException": return [3, 2];
|
|
3309
|
+
case "RequestFailedException": return [3, 4];
|
|
3310
|
+
case "com.amazonaws.codepipeline#RequestFailedException": return [3, 4];
|
|
3311
|
+
case "ValidationException": return [3, 6];
|
|
3312
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 6];
|
|
3313
3313
|
}
|
|
3314
|
-
return [3
|
|
3314
|
+
return [3, 8];
|
|
3315
3315
|
case 2:
|
|
3316
3316
|
_c = [{}];
|
|
3317
|
-
return [4
|
|
3317
|
+
return [4, deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
3318
3318
|
case 3:
|
|
3319
3319
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3320
|
-
return [3
|
|
3320
|
+
return [3, 9];
|
|
3321
3321
|
case 4:
|
|
3322
3322
|
_d = [{}];
|
|
3323
|
-
return [4
|
|
3323
|
+
return [4, deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)];
|
|
3324
3324
|
case 5:
|
|
3325
3325
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3326
|
-
return [3
|
|
3326
|
+
return [3, 9];
|
|
3327
3327
|
case 6:
|
|
3328
3328
|
_e = [{}];
|
|
3329
|
-
return [4
|
|
3329
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3330
3330
|
case 7:
|
|
3331
3331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3332
|
-
return [3
|
|
3332
|
+
return [3, 9];
|
|
3333
3333
|
case 8:
|
|
3334
3334
|
parsedBody = parsedOutput.body;
|
|
3335
3335
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3339,7 +3339,7 @@ var deserializeAws_json1_1UpdateActionTypeCommandError = function (output, conte
|
|
|
3339
3339
|
message = response.message || response.Message || errorCode;
|
|
3340
3340
|
response.message = message;
|
|
3341
3341
|
delete response.Message;
|
|
3342
|
-
return [2
|
|
3342
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3343
3343
|
}
|
|
3344
3344
|
});
|
|
3345
3345
|
}); };
|
|
@@ -3349,15 +3349,15 @@ export var deserializeAws_json1_1UpdatePipelineCommand = function (output, conte
|
|
|
3349
3349
|
switch (_a.label) {
|
|
3350
3350
|
case 0:
|
|
3351
3351
|
if (output.statusCode >= 300) {
|
|
3352
|
-
return [2
|
|
3352
|
+
return [2, deserializeAws_json1_1UpdatePipelineCommandError(output, context)];
|
|
3353
3353
|
}
|
|
3354
|
-
return [4
|
|
3354
|
+
return [4, parseBody(output.body, context)];
|
|
3355
3355
|
case 1:
|
|
3356
3356
|
data = _a.sent();
|
|
3357
3357
|
contents = {};
|
|
3358
3358
|
contents = deserializeAws_json1_1UpdatePipelineOutput(data, context);
|
|
3359
3359
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3360
|
-
return [2
|
|
3360
|
+
return [2, Promise.resolve(response)];
|
|
3361
3361
|
}
|
|
3362
3362
|
});
|
|
3363
3363
|
}); };
|
|
@@ -3369,63 +3369,63 @@ var deserializeAws_json1_1UpdatePipelineCommandError = function (output, context
|
|
|
3369
3369
|
case 0:
|
|
3370
3370
|
_a = [__assign({}, output)];
|
|
3371
3371
|
_j = {};
|
|
3372
|
-
return [4
|
|
3372
|
+
return [4, parseBody(output.body, context)];
|
|
3373
3373
|
case 1:
|
|
3374
3374
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3375
3375
|
errorCode = "UnknownError";
|
|
3376
3376
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3377
3377
|
_b = errorCode;
|
|
3378
3378
|
switch (_b) {
|
|
3379
|
-
case "InvalidActionDeclarationException": return [3
|
|
3380
|
-
case "com.amazonaws.codepipeline#InvalidActionDeclarationException": return [3
|
|
3381
|
-
case "InvalidBlockerDeclarationException": return [3
|
|
3382
|
-
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException": return [3
|
|
3383
|
-
case "InvalidStageDeclarationException": return [3
|
|
3384
|
-
case "com.amazonaws.codepipeline#InvalidStageDeclarationException": return [3
|
|
3385
|
-
case "InvalidStructureException": return [3
|
|
3386
|
-
case "com.amazonaws.codepipeline#InvalidStructureException": return [3
|
|
3387
|
-
case "LimitExceededException": return [3
|
|
3388
|
-
case "com.amazonaws.codepipeline#LimitExceededException": return [3
|
|
3389
|
-
case "ValidationException": return [3
|
|
3390
|
-
case "com.amazonaws.codepipeline#ValidationException": return [3
|
|
3379
|
+
case "InvalidActionDeclarationException": return [3, 2];
|
|
3380
|
+
case "com.amazonaws.codepipeline#InvalidActionDeclarationException": return [3, 2];
|
|
3381
|
+
case "InvalidBlockerDeclarationException": return [3, 4];
|
|
3382
|
+
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException": return [3, 4];
|
|
3383
|
+
case "InvalidStageDeclarationException": return [3, 6];
|
|
3384
|
+
case "com.amazonaws.codepipeline#InvalidStageDeclarationException": return [3, 6];
|
|
3385
|
+
case "InvalidStructureException": return [3, 8];
|
|
3386
|
+
case "com.amazonaws.codepipeline#InvalidStructureException": return [3, 8];
|
|
3387
|
+
case "LimitExceededException": return [3, 10];
|
|
3388
|
+
case "com.amazonaws.codepipeline#LimitExceededException": return [3, 10];
|
|
3389
|
+
case "ValidationException": return [3, 12];
|
|
3390
|
+
case "com.amazonaws.codepipeline#ValidationException": return [3, 12];
|
|
3391
3391
|
}
|
|
3392
|
-
return [3
|
|
3392
|
+
return [3, 14];
|
|
3393
3393
|
case 2:
|
|
3394
3394
|
_c = [{}];
|
|
3395
|
-
return [4
|
|
3395
|
+
return [4, deserializeAws_json1_1InvalidActionDeclarationExceptionResponse(parsedOutput, context)];
|
|
3396
3396
|
case 3:
|
|
3397
3397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3398
|
-
return [3
|
|
3398
|
+
return [3, 15];
|
|
3399
3399
|
case 4:
|
|
3400
3400
|
_d = [{}];
|
|
3401
|
-
return [4
|
|
3401
|
+
return [4, deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse(parsedOutput, context)];
|
|
3402
3402
|
case 5:
|
|
3403
3403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3404
|
-
return [3
|
|
3404
|
+
return [3, 15];
|
|
3405
3405
|
case 6:
|
|
3406
3406
|
_e = [{}];
|
|
3407
|
-
return [4
|
|
3407
|
+
return [4, deserializeAws_json1_1InvalidStageDeclarationExceptionResponse(parsedOutput, context)];
|
|
3408
3408
|
case 7:
|
|
3409
3409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3410
|
-
return [3
|
|
3410
|
+
return [3, 15];
|
|
3411
3411
|
case 8:
|
|
3412
3412
|
_f = [{}];
|
|
3413
|
-
return [4
|
|
3413
|
+
return [4, deserializeAws_json1_1InvalidStructureExceptionResponse(parsedOutput, context)];
|
|
3414
3414
|
case 9:
|
|
3415
3415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3416
|
-
return [3
|
|
3416
|
+
return [3, 15];
|
|
3417
3417
|
case 10:
|
|
3418
3418
|
_g = [{}];
|
|
3419
|
-
return [4
|
|
3419
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3420
3420
|
case 11:
|
|
3421
3421
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3422
|
-
return [3
|
|
3422
|
+
return [3, 15];
|
|
3423
3423
|
case 12:
|
|
3424
3424
|
_h = [{}];
|
|
3425
|
-
return [4
|
|
3425
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
3426
3426
|
case 13:
|
|
3427
3427
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3428
|
-
return [3
|
|
3428
|
+
return [3, 15];
|
|
3429
3429
|
case 14:
|
|
3430
3430
|
parsedBody = parsedOutput.body;
|
|
3431
3431
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3435,7 +3435,7 @@ var deserializeAws_json1_1UpdatePipelineCommandError = function (output, context
|
|
|
3435
3435
|
message = response.message || response.Message || errorCode;
|
|
3436
3436
|
response.message = message;
|
|
3437
3437
|
delete response.Message;
|
|
3438
|
-
return [2
|
|
3438
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3439
3439
|
}
|
|
3440
3440
|
});
|
|
3441
3441
|
}); };
|
|
@@ -3445,7 +3445,7 @@ var deserializeAws_json1_1ActionNotFoundExceptionResponse = function (parsedOutp
|
|
|
3445
3445
|
body = parsedOutput.body;
|
|
3446
3446
|
deserialized = deserializeAws_json1_1ActionNotFoundException(body, context);
|
|
3447
3447
|
contents = __assign({ name: "ActionNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3448
|
-
return [2
|
|
3448
|
+
return [2, contents];
|
|
3449
3449
|
});
|
|
3450
3450
|
}); };
|
|
3451
3451
|
var deserializeAws_json1_1ActionTypeNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3454,7 +3454,7 @@ var deserializeAws_json1_1ActionTypeNotFoundExceptionResponse = function (parsed
|
|
|
3454
3454
|
body = parsedOutput.body;
|
|
3455
3455
|
deserialized = deserializeAws_json1_1ActionTypeNotFoundException(body, context);
|
|
3456
3456
|
contents = __assign({ name: "ActionTypeNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3457
|
-
return [2
|
|
3457
|
+
return [2, contents];
|
|
3458
3458
|
});
|
|
3459
3459
|
}); };
|
|
3460
3460
|
var deserializeAws_json1_1ApprovalAlreadyCompletedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3463,7 +3463,7 @@ var deserializeAws_json1_1ApprovalAlreadyCompletedExceptionResponse = function (
|
|
|
3463
3463
|
body = parsedOutput.body;
|
|
3464
3464
|
deserialized = deserializeAws_json1_1ApprovalAlreadyCompletedException(body, context);
|
|
3465
3465
|
contents = __assign({ name: "ApprovalAlreadyCompletedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3466
|
-
return [2
|
|
3466
|
+
return [2, contents];
|
|
3467
3467
|
});
|
|
3468
3468
|
}); };
|
|
3469
3469
|
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3472,7 +3472,7 @@ var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (pa
|
|
|
3472
3472
|
body = parsedOutput.body;
|
|
3473
3473
|
deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
3474
3474
|
contents = __assign({ name: "ConcurrentModificationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3475
|
-
return [2
|
|
3475
|
+
return [2, contents];
|
|
3476
3476
|
});
|
|
3477
3477
|
}); };
|
|
3478
3478
|
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3481,7 +3481,7 @@ var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, co
|
|
|
3481
3481
|
body = parsedOutput.body;
|
|
3482
3482
|
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
3483
3483
|
contents = __assign({ name: "ConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3484
|
-
return [2
|
|
3484
|
+
return [2, contents];
|
|
3485
3485
|
});
|
|
3486
3486
|
}); };
|
|
3487
3487
|
var deserializeAws_json1_1DuplicatedStopRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3490,7 +3490,7 @@ var deserializeAws_json1_1DuplicatedStopRequestExceptionResponse = function (par
|
|
|
3490
3490
|
body = parsedOutput.body;
|
|
3491
3491
|
deserialized = deserializeAws_json1_1DuplicatedStopRequestException(body, context);
|
|
3492
3492
|
contents = __assign({ name: "DuplicatedStopRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3493
|
-
return [2
|
|
3493
|
+
return [2, contents];
|
|
3494
3494
|
});
|
|
3495
3495
|
}); };
|
|
3496
3496
|
var deserializeAws_json1_1InvalidActionDeclarationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3499,7 +3499,7 @@ var deserializeAws_json1_1InvalidActionDeclarationExceptionResponse = function (
|
|
|
3499
3499
|
body = parsedOutput.body;
|
|
3500
3500
|
deserialized = deserializeAws_json1_1InvalidActionDeclarationException(body, context);
|
|
3501
3501
|
contents = __assign({ name: "InvalidActionDeclarationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3502
|
-
return [2
|
|
3502
|
+
return [2, contents];
|
|
3503
3503
|
});
|
|
3504
3504
|
}); };
|
|
3505
3505
|
var deserializeAws_json1_1InvalidApprovalTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3508,7 +3508,7 @@ var deserializeAws_json1_1InvalidApprovalTokenExceptionResponse = function (pars
|
|
|
3508
3508
|
body = parsedOutput.body;
|
|
3509
3509
|
deserialized = deserializeAws_json1_1InvalidApprovalTokenException(body, context);
|
|
3510
3510
|
contents = __assign({ name: "InvalidApprovalTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3511
|
-
return [2
|
|
3511
|
+
return [2, contents];
|
|
3512
3512
|
});
|
|
3513
3513
|
}); };
|
|
3514
3514
|
var deserializeAws_json1_1InvalidArnExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3517,7 +3517,7 @@ var deserializeAws_json1_1InvalidArnExceptionResponse = function (parsedOutput,
|
|
|
3517
3517
|
body = parsedOutput.body;
|
|
3518
3518
|
deserialized = deserializeAws_json1_1InvalidArnException(body, context);
|
|
3519
3519
|
contents = __assign({ name: "InvalidArnException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3520
|
-
return [2
|
|
3520
|
+
return [2, contents];
|
|
3521
3521
|
});
|
|
3522
3522
|
}); };
|
|
3523
3523
|
var deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3526,7 +3526,7 @@ var deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse = function
|
|
|
3526
3526
|
body = parsedOutput.body;
|
|
3527
3527
|
deserialized = deserializeAws_json1_1InvalidBlockerDeclarationException(body, context);
|
|
3528
3528
|
contents = __assign({ name: "InvalidBlockerDeclarationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3529
|
-
return [2
|
|
3529
|
+
return [2, contents];
|
|
3530
3530
|
});
|
|
3531
3531
|
}); };
|
|
3532
3532
|
var deserializeAws_json1_1InvalidClientTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3535,7 +3535,7 @@ var deserializeAws_json1_1InvalidClientTokenExceptionResponse = function (parsed
|
|
|
3535
3535
|
body = parsedOutput.body;
|
|
3536
3536
|
deserialized = deserializeAws_json1_1InvalidClientTokenException(body, context);
|
|
3537
3537
|
contents = __assign({ name: "InvalidClientTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3538
|
-
return [2
|
|
3538
|
+
return [2, contents];
|
|
3539
3539
|
});
|
|
3540
3540
|
}); };
|
|
3541
3541
|
var deserializeAws_json1_1InvalidJobExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3544,7 +3544,7 @@ var deserializeAws_json1_1InvalidJobExceptionResponse = function (parsedOutput,
|
|
|
3544
3544
|
body = parsedOutput.body;
|
|
3545
3545
|
deserialized = deserializeAws_json1_1InvalidJobException(body, context);
|
|
3546
3546
|
contents = __assign({ name: "InvalidJobException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3547
|
-
return [2
|
|
3547
|
+
return [2, contents];
|
|
3548
3548
|
});
|
|
3549
3549
|
}); };
|
|
3550
3550
|
var deserializeAws_json1_1InvalidJobStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3553,7 +3553,7 @@ var deserializeAws_json1_1InvalidJobStateExceptionResponse = function (parsedOut
|
|
|
3553
3553
|
body = parsedOutput.body;
|
|
3554
3554
|
deserialized = deserializeAws_json1_1InvalidJobStateException(body, context);
|
|
3555
3555
|
contents = __assign({ name: "InvalidJobStateException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3556
|
-
return [2
|
|
3556
|
+
return [2, contents];
|
|
3557
3557
|
});
|
|
3558
3558
|
}); };
|
|
3559
3559
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3562,7 +3562,7 @@ var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOu
|
|
|
3562
3562
|
body = parsedOutput.body;
|
|
3563
3563
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
3564
3564
|
contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3565
|
-
return [2
|
|
3565
|
+
return [2, contents];
|
|
3566
3566
|
});
|
|
3567
3567
|
}); };
|
|
3568
3568
|
var deserializeAws_json1_1InvalidNonceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3571,7 +3571,7 @@ var deserializeAws_json1_1InvalidNonceExceptionResponse = function (parsedOutput
|
|
|
3571
3571
|
body = parsedOutput.body;
|
|
3572
3572
|
deserialized = deserializeAws_json1_1InvalidNonceException(body, context);
|
|
3573
3573
|
contents = __assign({ name: "InvalidNonceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3574
|
-
return [2
|
|
3574
|
+
return [2, contents];
|
|
3575
3575
|
});
|
|
3576
3576
|
}); };
|
|
3577
3577
|
var deserializeAws_json1_1InvalidStageDeclarationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3580,7 +3580,7 @@ var deserializeAws_json1_1InvalidStageDeclarationExceptionResponse = function (p
|
|
|
3580
3580
|
body = parsedOutput.body;
|
|
3581
3581
|
deserialized = deserializeAws_json1_1InvalidStageDeclarationException(body, context);
|
|
3582
3582
|
contents = __assign({ name: "InvalidStageDeclarationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3583
|
-
return [2
|
|
3583
|
+
return [2, contents];
|
|
3584
3584
|
});
|
|
3585
3585
|
}); };
|
|
3586
3586
|
var deserializeAws_json1_1InvalidStructureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3589,7 +3589,7 @@ var deserializeAws_json1_1InvalidStructureExceptionResponse = function (parsedOu
|
|
|
3589
3589
|
body = parsedOutput.body;
|
|
3590
3590
|
deserialized = deserializeAws_json1_1InvalidStructureException(body, context);
|
|
3591
3591
|
contents = __assign({ name: "InvalidStructureException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3592
|
-
return [2
|
|
3592
|
+
return [2, contents];
|
|
3593
3593
|
});
|
|
3594
3594
|
}); };
|
|
3595
3595
|
var deserializeAws_json1_1InvalidTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3598,7 +3598,7 @@ var deserializeAws_json1_1InvalidTagsExceptionResponse = function (parsedOutput,
|
|
|
3598
3598
|
body = parsedOutput.body;
|
|
3599
3599
|
deserialized = deserializeAws_json1_1InvalidTagsException(body, context);
|
|
3600
3600
|
contents = __assign({ name: "InvalidTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3601
|
-
return [2
|
|
3601
|
+
return [2, contents];
|
|
3602
3602
|
});
|
|
3603
3603
|
}); };
|
|
3604
3604
|
var deserializeAws_json1_1InvalidWebhookAuthenticationParametersExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3607,7 +3607,7 @@ var deserializeAws_json1_1InvalidWebhookAuthenticationParametersExceptionRespons
|
|
|
3607
3607
|
body = parsedOutput.body;
|
|
3608
3608
|
deserialized = deserializeAws_json1_1InvalidWebhookAuthenticationParametersException(body, context);
|
|
3609
3609
|
contents = __assign({ name: "InvalidWebhookAuthenticationParametersException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3610
|
-
return [2
|
|
3610
|
+
return [2, contents];
|
|
3611
3611
|
});
|
|
3612
3612
|
}); };
|
|
3613
3613
|
var deserializeAws_json1_1InvalidWebhookFilterPatternExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3616,7 +3616,7 @@ var deserializeAws_json1_1InvalidWebhookFilterPatternExceptionResponse = functio
|
|
|
3616
3616
|
body = parsedOutput.body;
|
|
3617
3617
|
deserialized = deserializeAws_json1_1InvalidWebhookFilterPatternException(body, context);
|
|
3618
3618
|
contents = __assign({ name: "InvalidWebhookFilterPatternException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3619
|
-
return [2
|
|
3619
|
+
return [2, contents];
|
|
3620
3620
|
});
|
|
3621
3621
|
}); };
|
|
3622
3622
|
var deserializeAws_json1_1JobNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3625,7 +3625,7 @@ var deserializeAws_json1_1JobNotFoundExceptionResponse = function (parsedOutput,
|
|
|
3625
3625
|
body = parsedOutput.body;
|
|
3626
3626
|
deserialized = deserializeAws_json1_1JobNotFoundException(body, context);
|
|
3627
3627
|
contents = __assign({ name: "JobNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3628
|
-
return [2
|
|
3628
|
+
return [2, contents];
|
|
3629
3629
|
});
|
|
3630
3630
|
}); };
|
|
3631
3631
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3634,7 +3634,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
3634
3634
|
body = parsedOutput.body;
|
|
3635
3635
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3636
3636
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3637
|
-
return [2
|
|
3637
|
+
return [2, contents];
|
|
3638
3638
|
});
|
|
3639
3639
|
}); };
|
|
3640
3640
|
var deserializeAws_json1_1NotLatestPipelineExecutionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3643,7 +3643,7 @@ var deserializeAws_json1_1NotLatestPipelineExecutionExceptionResponse = function
|
|
|
3643
3643
|
body = parsedOutput.body;
|
|
3644
3644
|
deserialized = deserializeAws_json1_1NotLatestPipelineExecutionException(body, context);
|
|
3645
3645
|
contents = __assign({ name: "NotLatestPipelineExecutionException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3646
|
-
return [2
|
|
3646
|
+
return [2, contents];
|
|
3647
3647
|
});
|
|
3648
3648
|
}); };
|
|
3649
3649
|
var deserializeAws_json1_1OutputVariablesSizeExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3652,7 +3652,7 @@ var deserializeAws_json1_1OutputVariablesSizeExceededExceptionResponse = functio
|
|
|
3652
3652
|
body = parsedOutput.body;
|
|
3653
3653
|
deserialized = deserializeAws_json1_1OutputVariablesSizeExceededException(body, context);
|
|
3654
3654
|
contents = __assign({ name: "OutputVariablesSizeExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3655
|
-
return [2
|
|
3655
|
+
return [2, contents];
|
|
3656
3656
|
});
|
|
3657
3657
|
}); };
|
|
3658
3658
|
var deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3661,7 +3661,7 @@ var deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse = function
|
|
|
3661
3661
|
body = parsedOutput.body;
|
|
3662
3662
|
deserialized = deserializeAws_json1_1PipelineExecutionNotFoundException(body, context);
|
|
3663
3663
|
contents = __assign({ name: "PipelineExecutionNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3664
|
-
return [2
|
|
3664
|
+
return [2, contents];
|
|
3665
3665
|
});
|
|
3666
3666
|
}); };
|
|
3667
3667
|
var deserializeAws_json1_1PipelineExecutionNotStoppableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3670,7 +3670,7 @@ var deserializeAws_json1_1PipelineExecutionNotStoppableExceptionResponse = funct
|
|
|
3670
3670
|
body = parsedOutput.body;
|
|
3671
3671
|
deserialized = deserializeAws_json1_1PipelineExecutionNotStoppableException(body, context);
|
|
3672
3672
|
contents = __assign({ name: "PipelineExecutionNotStoppableException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3673
|
-
return [2
|
|
3673
|
+
return [2, contents];
|
|
3674
3674
|
});
|
|
3675
3675
|
}); };
|
|
3676
3676
|
var deserializeAws_json1_1PipelineNameInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3679,7 +3679,7 @@ var deserializeAws_json1_1PipelineNameInUseExceptionResponse = function (parsedO
|
|
|
3679
3679
|
body = parsedOutput.body;
|
|
3680
3680
|
deserialized = deserializeAws_json1_1PipelineNameInUseException(body, context);
|
|
3681
3681
|
contents = __assign({ name: "PipelineNameInUseException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3682
|
-
return [2
|
|
3682
|
+
return [2, contents];
|
|
3683
3683
|
});
|
|
3684
3684
|
}); };
|
|
3685
3685
|
var deserializeAws_json1_1PipelineNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3688,7 +3688,7 @@ var deserializeAws_json1_1PipelineNotFoundExceptionResponse = function (parsedOu
|
|
|
3688
3688
|
body = parsedOutput.body;
|
|
3689
3689
|
deserialized = deserializeAws_json1_1PipelineNotFoundException(body, context);
|
|
3690
3690
|
contents = __assign({ name: "PipelineNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3691
|
-
return [2
|
|
3691
|
+
return [2, contents];
|
|
3692
3692
|
});
|
|
3693
3693
|
}); };
|
|
3694
3694
|
var deserializeAws_json1_1PipelineVersionNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3697,7 +3697,7 @@ var deserializeAws_json1_1PipelineVersionNotFoundExceptionResponse = function (p
|
|
|
3697
3697
|
body = parsedOutput.body;
|
|
3698
3698
|
deserialized = deserializeAws_json1_1PipelineVersionNotFoundException(body, context);
|
|
3699
3699
|
contents = __assign({ name: "PipelineVersionNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3700
|
-
return [2
|
|
3700
|
+
return [2, contents];
|
|
3701
3701
|
});
|
|
3702
3702
|
}); };
|
|
3703
3703
|
var deserializeAws_json1_1RequestFailedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3706,7 +3706,7 @@ var deserializeAws_json1_1RequestFailedExceptionResponse = function (parsedOutpu
|
|
|
3706
3706
|
body = parsedOutput.body;
|
|
3707
3707
|
deserialized = deserializeAws_json1_1RequestFailedException(body, context);
|
|
3708
3708
|
contents = __assign({ name: "RequestFailedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3709
|
-
return [2
|
|
3709
|
+
return [2, contents];
|
|
3710
3710
|
});
|
|
3711
3711
|
}); };
|
|
3712
3712
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3715,7 +3715,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
3715
3715
|
body = parsedOutput.body;
|
|
3716
3716
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3717
3717
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3718
|
-
return [2
|
|
3718
|
+
return [2, contents];
|
|
3719
3719
|
});
|
|
3720
3720
|
}); };
|
|
3721
3721
|
var deserializeAws_json1_1StageNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3724,7 +3724,7 @@ var deserializeAws_json1_1StageNotFoundExceptionResponse = function (parsedOutpu
|
|
|
3724
3724
|
body = parsedOutput.body;
|
|
3725
3725
|
deserialized = deserializeAws_json1_1StageNotFoundException(body, context);
|
|
3726
3726
|
contents = __assign({ name: "StageNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3727
|
-
return [2
|
|
3727
|
+
return [2, contents];
|
|
3728
3728
|
});
|
|
3729
3729
|
}); };
|
|
3730
3730
|
var deserializeAws_json1_1StageNotRetryableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3733,7 +3733,7 @@ var deserializeAws_json1_1StageNotRetryableExceptionResponse = function (parsedO
|
|
|
3733
3733
|
body = parsedOutput.body;
|
|
3734
3734
|
deserialized = deserializeAws_json1_1StageNotRetryableException(body, context);
|
|
3735
3735
|
contents = __assign({ name: "StageNotRetryableException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3736
|
-
return [2
|
|
3736
|
+
return [2, contents];
|
|
3737
3737
|
});
|
|
3738
3738
|
}); };
|
|
3739
3739
|
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3742,7 +3742,7 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
|
|
|
3742
3742
|
body = parsedOutput.body;
|
|
3743
3743
|
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
3744
3744
|
contents = __assign({ name: "TooManyTagsException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3745
|
-
return [2
|
|
3745
|
+
return [2, contents];
|
|
3746
3746
|
});
|
|
3747
3747
|
}); };
|
|
3748
3748
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3751,7 +3751,7 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
3751
3751
|
body = parsedOutput.body;
|
|
3752
3752
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
3753
3753
|
contents = __assign({ name: "ValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3754
|
-
return [2
|
|
3754
|
+
return [2, contents];
|
|
3755
3755
|
});
|
|
3756
3756
|
}); };
|
|
3757
3757
|
var deserializeAws_json1_1WebhookNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3760,7 +3760,7 @@ var deserializeAws_json1_1WebhookNotFoundExceptionResponse = function (parsedOut
|
|
|
3760
3760
|
body = parsedOutput.body;
|
|
3761
3761
|
deserialized = deserializeAws_json1_1WebhookNotFoundException(body, context);
|
|
3762
3762
|
contents = __assign({ name: "WebhookNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3763
|
-
return [2
|
|
3763
|
+
return [2, contents];
|
|
3764
3764
|
});
|
|
3765
3765
|
}); };
|
|
3766
3766
|
var serializeAws_json1_1AcknowledgeJobInput = function (input, context) {
|
|
@@ -4366,7 +4366,7 @@ var deserializeAws_json1_1ActionExecution = function (output, context) {
|
|
|
4366
4366
|
externalExecutionId: __expectString(output.externalExecutionId),
|
|
4367
4367
|
externalExecutionUrl: __expectString(output.externalExecutionUrl),
|
|
4368
4368
|
lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
|
|
4369
|
-
?
|
|
4369
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChange)))
|
|
4370
4370
|
: undefined,
|
|
4371
4371
|
lastUpdatedBy: __expectString(output.lastUpdatedBy),
|
|
4372
4372
|
percentComplete: __expectInt32(output.percentComplete),
|
|
@@ -4383,7 +4383,7 @@ var deserializeAws_json1_1ActionExecutionDetail = function (output, context) {
|
|
|
4383
4383
|
? deserializeAws_json1_1ActionExecutionInput(output.input, context)
|
|
4384
4384
|
: undefined,
|
|
4385
4385
|
lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
|
|
4386
|
-
?
|
|
4386
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
4387
4387
|
: undefined,
|
|
4388
4388
|
output: output.output !== undefined && output.output !== null
|
|
4389
4389
|
? deserializeAws_json1_1ActionExecutionOutput(output.output, context)
|
|
@@ -4392,7 +4392,7 @@ var deserializeAws_json1_1ActionExecutionDetail = function (output, context) {
|
|
|
4392
4392
|
pipelineVersion: __expectInt32(output.pipelineVersion),
|
|
4393
4393
|
stageName: __expectString(output.stageName),
|
|
4394
4394
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
4395
|
-
?
|
|
4395
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
4396
4396
|
: undefined,
|
|
4397
4397
|
status: __expectString(output.status),
|
|
4398
4398
|
};
|
|
@@ -4453,7 +4453,9 @@ var deserializeAws_json1_1ActionNotFoundException = function (output, context) {
|
|
|
4453
4453
|
};
|
|
4454
4454
|
var deserializeAws_json1_1ActionRevision = function (output, context) {
|
|
4455
4455
|
return {
|
|
4456
|
-
created: output.created !== undefined && output.created !== null
|
|
4456
|
+
created: output.created !== undefined && output.created !== null
|
|
4457
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
4458
|
+
: undefined,
|
|
4457
4459
|
revisionChangeId: __expectString(output.revisionChangeId),
|
|
4458
4460
|
revisionId: __expectString(output.revisionId),
|
|
4459
4461
|
};
|
|
@@ -4684,7 +4686,9 @@ var deserializeAws_json1_1ArtifactLocation = function (output, context) {
|
|
|
4684
4686
|
};
|
|
4685
4687
|
var deserializeAws_json1_1ArtifactRevision = function (output, context) {
|
|
4686
4688
|
return {
|
|
4687
|
-
created: output.created !== undefined && output.created !== null
|
|
4689
|
+
created: output.created !== undefined && output.created !== null
|
|
4690
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
4691
|
+
: undefined,
|
|
4688
4692
|
name: __expectString(output.name),
|
|
4689
4693
|
revisionChangeIdentifier: __expectString(output.revisionChangeIdentifier),
|
|
4690
4694
|
revisionId: __expectString(output.revisionId),
|
|
@@ -4836,13 +4840,17 @@ var deserializeAws_json1_1GetPipelineOutput = function (output, context) {
|
|
|
4836
4840
|
};
|
|
4837
4841
|
var deserializeAws_json1_1GetPipelineStateOutput = function (output, context) {
|
|
4838
4842
|
return {
|
|
4839
|
-
created: output.created !== undefined && output.created !== null
|
|
4843
|
+
created: output.created !== undefined && output.created !== null
|
|
4844
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
4845
|
+
: undefined,
|
|
4840
4846
|
pipelineName: __expectString(output.pipelineName),
|
|
4841
4847
|
pipelineVersion: __expectInt32(output.pipelineVersion),
|
|
4842
4848
|
stageStates: output.stageStates !== undefined && output.stageStates !== null
|
|
4843
4849
|
? deserializeAws_json1_1StageStateList(output.stageStates, context)
|
|
4844
4850
|
: undefined,
|
|
4845
|
-
updated: output.updated !== undefined && output.updated !== null
|
|
4851
|
+
updated: output.updated !== undefined && output.updated !== null
|
|
4852
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated)))
|
|
4853
|
+
: undefined,
|
|
4846
4854
|
};
|
|
4847
4855
|
};
|
|
4848
4856
|
var deserializeAws_json1_1GetThirdPartyJobDetailsOutput = function (output, context) {
|
|
@@ -5066,7 +5074,7 @@ var deserializeAws_json1_1ListWebhookItem = function (output, context) {
|
|
|
5066
5074
|
errorCode: __expectString(output.errorCode),
|
|
5067
5075
|
errorMessage: __expectString(output.errorMessage),
|
|
5068
5076
|
lastTriggered: output.lastTriggered !== undefined && output.lastTriggered !== null
|
|
5069
|
-
?
|
|
5077
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastTriggered)))
|
|
5070
5078
|
: undefined,
|
|
5071
5079
|
tags: output.tags !== undefined && output.tags !== null
|
|
5072
5080
|
? deserializeAws_json1_1TagList(output.tags, context)
|
|
@@ -5171,14 +5179,14 @@ var deserializeAws_json1_1PipelineExecutionNotStoppableException = function (out
|
|
|
5171
5179
|
var deserializeAws_json1_1PipelineExecutionSummary = function (output, context) {
|
|
5172
5180
|
return {
|
|
5173
5181
|
lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
|
|
5174
|
-
?
|
|
5182
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
5175
5183
|
: undefined,
|
|
5176
5184
|
pipelineExecutionId: __expectString(output.pipelineExecutionId),
|
|
5177
5185
|
sourceRevisions: output.sourceRevisions !== undefined && output.sourceRevisions !== null
|
|
5178
5186
|
? deserializeAws_json1_1SourceRevisionList(output.sourceRevisions, context)
|
|
5179
5187
|
: undefined,
|
|
5180
5188
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
5181
|
-
?
|
|
5189
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
5182
5190
|
: undefined,
|
|
5183
5191
|
status: __expectString(output.status),
|
|
5184
5192
|
stopTrigger: output.stopTrigger !== undefined && output.stopTrigger !== null
|
|
@@ -5211,9 +5219,13 @@ var deserializeAws_json1_1PipelineList = function (output, context) {
|
|
|
5211
5219
|
};
|
|
5212
5220
|
var deserializeAws_json1_1PipelineMetadata = function (output, context) {
|
|
5213
5221
|
return {
|
|
5214
|
-
created: output.created !== undefined && output.created !== null
|
|
5222
|
+
created: output.created !== undefined && output.created !== null
|
|
5223
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
5224
|
+
: undefined,
|
|
5215
5225
|
pipelineArn: __expectString(output.pipelineArn),
|
|
5216
|
-
updated: output.updated !== undefined && output.updated !== null
|
|
5226
|
+
updated: output.updated !== undefined && output.updated !== null
|
|
5227
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated)))
|
|
5228
|
+
: undefined,
|
|
5217
5229
|
};
|
|
5218
5230
|
};
|
|
5219
5231
|
var deserializeAws_json1_1PipelineNameInUseException = function (output, context) {
|
|
@@ -5238,9 +5250,13 @@ var deserializeAws_json1_1PipelineStageDeclarationList = function (output, conte
|
|
|
5238
5250
|
};
|
|
5239
5251
|
var deserializeAws_json1_1PipelineSummary = function (output, context) {
|
|
5240
5252
|
return {
|
|
5241
|
-
created: output.created !== undefined && output.created !== null
|
|
5253
|
+
created: output.created !== undefined && output.created !== null
|
|
5254
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
5255
|
+
: undefined,
|
|
5242
5256
|
name: __expectString(output.name),
|
|
5243
|
-
updated: output.updated !== undefined && output.updated !== null
|
|
5257
|
+
updated: output.updated !== undefined && output.updated !== null
|
|
5258
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updated)))
|
|
5259
|
+
: undefined,
|
|
5244
5260
|
version: __expectInt32(output.version),
|
|
5245
5261
|
};
|
|
5246
5262
|
};
|
|
@@ -5292,7 +5308,7 @@ var deserializeAws_json1_1PutActionRevisionOutput = function (output, context) {
|
|
|
5292
5308
|
var deserializeAws_json1_1PutApprovalResultOutput = function (output, context) {
|
|
5293
5309
|
return {
|
|
5294
5310
|
approvedAt: output.approvedAt !== undefined && output.approvedAt !== null
|
|
5295
|
-
?
|
|
5311
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.approvedAt)))
|
|
5296
5312
|
: undefined,
|
|
5297
5313
|
};
|
|
5298
5314
|
};
|
|
@@ -5535,7 +5551,7 @@ var deserializeAws_json1_1TransitionState = function (output, context) {
|
|
|
5535
5551
|
disabledReason: __expectString(output.disabledReason),
|
|
5536
5552
|
enabled: __expectBoolean(output.enabled),
|
|
5537
5553
|
lastChangedAt: output.lastChangedAt !== undefined && output.lastChangedAt !== null
|
|
5538
|
-
?
|
|
5554
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastChangedAt)))
|
|
5539
5555
|
: undefined,
|
|
5540
5556
|
lastChangedBy: __expectString(output.lastChangedBy),
|
|
5541
5557
|
};
|
|
@@ -5613,7 +5629,6 @@ var deserializeMetadata = function (output) {
|
|
|
5613
5629
|
cfId: output.headers["x-amz-cf-id"],
|
|
5614
5630
|
});
|
|
5615
5631
|
};
|
|
5616
|
-
// Collect low-level response body stream to Uint8Array.
|
|
5617
5632
|
var collectBody = function (streamBody, context) {
|
|
5618
5633
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
5619
5634
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -5621,7 +5636,6 @@ var collectBody = function (streamBody, context) {
|
|
|
5621
5636
|
}
|
|
5622
5637
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5623
5638
|
};
|
|
5624
|
-
// Encode Uint8Array data into string with utf-8.
|
|
5625
5639
|
var collectBodyString = function (streamBody, context) {
|
|
5626
5640
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
5627
5641
|
};
|
|
@@ -5629,7 +5643,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
5629
5643
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
5630
5644
|
return __generator(this, function (_c) {
|
|
5631
5645
|
switch (_c.label) {
|
|
5632
|
-
case 0: return [4
|
|
5646
|
+
case 0: return [4, context.endpoint()];
|
|
5633
5647
|
case 1:
|
|
5634
5648
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5635
5649
|
contents = {
|
|
@@ -5646,7 +5660,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
5646
5660
|
if (body !== undefined) {
|
|
5647
5661
|
contents.body = body;
|
|
5648
5662
|
}
|
|
5649
|
-
return [2
|
|
5663
|
+
return [2, new __HttpRequest(contents)];
|
|
5650
5664
|
}
|
|
5651
5665
|
});
|
|
5652
5666
|
}); };
|
|
@@ -5658,9 +5672,6 @@ var parseBody = function (streamBody, context) {
|
|
|
5658
5672
|
return {};
|
|
5659
5673
|
});
|
|
5660
5674
|
};
|
|
5661
|
-
/**
|
|
5662
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
5663
|
-
*/
|
|
5664
5675
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5665
5676
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5666
5677
|
var sanitizeErrorCode = function (rawValue) {
|