@aws-sdk/client-batch 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/BatchClient.js +13 -13
- package/dist/cjs/BatchClient.js.map +1 -1
- package/dist/cjs/commands/CancelJobCommand.js +3 -3
- package/dist/cjs/commands/CancelJobCommand.js.map +1 -1
- package/dist/cjs/commands/CreateComputeEnvironmentCommand.js +3 -3
- package/dist/cjs/commands/CreateComputeEnvironmentCommand.js.map +1 -1
- package/dist/cjs/commands/CreateJobQueueCommand.js +3 -3
- package/dist/cjs/commands/CreateJobQueueCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteComputeEnvironmentCommand.js +3 -3
- package/dist/cjs/commands/DeleteComputeEnvironmentCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteJobQueueCommand.js +3 -3
- package/dist/cjs/commands/DeleteJobQueueCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterJobDefinitionCommand.js +3 -3
- package/dist/cjs/commands/DeregisterJobDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeComputeEnvironmentsCommand.js +3 -3
- package/dist/cjs/commands/DescribeComputeEnvironmentsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeJobDefinitionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeJobDefinitionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeJobQueuesCommand.js +3 -3
- package/dist/cjs/commands/DescribeJobQueuesCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeJobsCommand.js +3 -3
- package/dist/cjs/commands/DescribeJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListJobsCommand.js +3 -3
- package/dist/cjs/commands/ListJobsCommand.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/RegisterJobDefinitionCommand.js +3 -3
- package/dist/cjs/commands/RegisterJobDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/SubmitJobCommand.js +3 -3
- package/dist/cjs/commands/SubmitJobCommand.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/TerminateJobCommand.js +3 -3
- package/dist/cjs/commands/TerminateJobCommand.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/UpdateComputeEnvironmentCommand.js +3 -3
- package/dist/cjs/commands/UpdateComputeEnvironmentCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateJobQueueCommand.js +3 -3
- package/dist/cjs/commands/UpdateJobQueueCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +27 -27
- 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_restJson1.js +188 -188
- package/dist/cjs/protocols/Aws_restJson1.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/Batch.js +1 -14
- package/dist/es/Batch.js.map +1 -1
- package/dist/es/BatchClient.js +1 -19
- package/dist/es/BatchClient.js.map +1 -1
- package/dist/es/commands/CancelJobCommand.js +2 -30
- package/dist/es/commands/CancelJobCommand.js.map +1 -1
- package/dist/es/commands/CreateComputeEnvironmentCommand.js +2 -66
- package/dist/es/commands/CreateComputeEnvironmentCommand.js.map +1 -1
- package/dist/es/commands/CreateJobQueueCommand.js +2 -32
- package/dist/es/commands/CreateJobQueueCommand.js.map +1 -1
- package/dist/es/commands/DeleteComputeEnvironmentCommand.js +2 -30
- package/dist/es/commands/DeleteComputeEnvironmentCommand.js.map +1 -1
- package/dist/es/commands/DeleteJobQueueCommand.js +2 -30
- package/dist/es/commands/DeleteJobQueueCommand.js.map +1 -1
- package/dist/es/commands/DeregisterJobDefinitionCommand.js +2 -27
- package/dist/es/commands/DeregisterJobDefinitionCommand.js.map +1 -1
- package/dist/es/commands/DescribeComputeEnvironmentsCommand.js +2 -30
- package/dist/es/commands/DescribeComputeEnvironmentsCommand.js.map +1 -1
- package/dist/es/commands/DescribeJobDefinitionsCommand.js +2 -28
- package/dist/es/commands/DescribeJobDefinitionsCommand.js.map +1 -1
- package/dist/es/commands/DescribeJobQueuesCommand.js +2 -27
- package/dist/es/commands/DescribeJobQueuesCommand.js.map +1 -1
- package/dist/es/commands/DescribeJobsCommand.js +2 -27
- package/dist/es/commands/DescribeJobsCommand.js.map +1 -1
- package/dist/es/commands/ListJobsCommand.js +2 -41
- package/dist/es/commands/ListJobsCommand.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/RegisterJobDefinitionCommand.js +2 -27
- package/dist/es/commands/RegisterJobDefinitionCommand.js.map +1 -1
- package/dist/es/commands/SubmitJobCommand.js +2 -36
- package/dist/es/commands/SubmitJobCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -30
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/TerminateJobCommand.js +2 -29
- package/dist/es/commands/TerminateJobCommand.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/UpdateComputeEnvironmentCommand.js +2 -27
- package/dist/es/commands/UpdateComputeEnvironmentCommand.js.map +1 -1
- package/dist/es/commands/UpdateJobQueueCommand.js +2 -27
- package/dist/es/commands/UpdateJobQueueCommand.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 -258
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/DescribeComputeEnvironmentsPaginator.js +16 -28
- package/dist/es/pagination/DescribeComputeEnvironmentsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeJobDefinitionsPaginator.js +16 -28
- package/dist/es/pagination/DescribeJobDefinitionsPaginator.js.map +1 -1
- package/dist/es/pagination/DescribeJobQueuesPaginator.js +16 -28
- package/dist/es/pagination/DescribeJobQueuesPaginator.js.map +1 -1
- package/dist/es/pagination/ListJobsPaginator.js +16 -28
- package/dist/es/pagination/ListJobsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +306 -311
- package/dist/es/protocols/Aws_restJson1.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/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
13
13
|
};
|
|
14
14
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/canceljob";
|
|
15
15
|
body = JSON.stringify(__assign(__assign({}, (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })));
|
|
16
|
-
return [2
|
|
16
|
+
return [2, new __HttpRequest({
|
|
17
17
|
protocol: protocol,
|
|
18
18
|
hostname: hostname,
|
|
19
19
|
port: port,
|
|
@@ -29,7 +29,7 @@ export var serializeAws_restJson1CreateComputeEnvironmentCommand = function (inp
|
|
|
29
29
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
30
30
|
return __generator(this, function (_c) {
|
|
31
31
|
switch (_c.label) {
|
|
32
|
-
case 0: return [4
|
|
32
|
+
case 0: return [4, context.endpoint()];
|
|
33
33
|
case 1:
|
|
34
34
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
35
35
|
headers = {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_restJson1CreateComputeEnvironmentCommand = function (inp
|
|
|
42
42
|
computeResources: serializeAws_restJson1ComputeResource(input.computeResources, context),
|
|
43
43
|
})), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.tags !== undefined &&
|
|
44
44
|
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, new __HttpRequest({
|
|
46
46
|
protocol: protocol,
|
|
47
47
|
hostname: hostname,
|
|
48
48
|
port: port,
|
|
@@ -58,7 +58,7 @@ export var serializeAws_restJson1CreateJobQueueCommand = function (input, contex
|
|
|
58
58
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
59
59
|
return __generator(this, function (_c) {
|
|
60
60
|
switch (_c.label) {
|
|
61
|
-
case 0: return [4
|
|
61
|
+
case 0: return [4, context.endpoint()];
|
|
62
62
|
case 1:
|
|
63
63
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
64
64
|
headers = {
|
|
@@ -70,7 +70,7 @@ export var serializeAws_restJson1CreateJobQueueCommand = function (input, contex
|
|
|
70
70
|
computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
|
|
71
71
|
})), (input.jobQueueName !== undefined && input.jobQueueName !== null && { jobQueueName: input.jobQueueName })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.tags !== undefined &&
|
|
72
72
|
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
73
|
-
return [2
|
|
73
|
+
return [2, new __HttpRequest({
|
|
74
74
|
protocol: protocol,
|
|
75
75
|
hostname: hostname,
|
|
76
76
|
port: port,
|
|
@@ -86,7 +86,7 @@ export var serializeAws_restJson1DeleteComputeEnvironmentCommand = function (inp
|
|
|
86
86
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
87
87
|
return __generator(this, function (_c) {
|
|
88
88
|
switch (_c.label) {
|
|
89
|
-
case 0: return [4
|
|
89
|
+
case 0: return [4, context.endpoint()];
|
|
90
90
|
case 1:
|
|
91
91
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
92
92
|
headers = {
|
|
@@ -95,7 +95,7 @@ export var serializeAws_restJson1DeleteComputeEnvironmentCommand = function (inp
|
|
|
95
95
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deletecomputeenvironment";
|
|
96
96
|
body = JSON.stringify(__assign({}, (input.computeEnvironment !== undefined &&
|
|
97
97
|
input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment })));
|
|
98
|
-
return [2
|
|
98
|
+
return [2, new __HttpRequest({
|
|
99
99
|
protocol: protocol,
|
|
100
100
|
hostname: hostname,
|
|
101
101
|
port: port,
|
|
@@ -111,7 +111,7 @@ export var serializeAws_restJson1DeleteJobQueueCommand = function (input, contex
|
|
|
111
111
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
112
112
|
return __generator(this, function (_c) {
|
|
113
113
|
switch (_c.label) {
|
|
114
|
-
case 0: return [4
|
|
114
|
+
case 0: return [4, context.endpoint()];
|
|
115
115
|
case 1:
|
|
116
116
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
117
117
|
headers = {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_restJson1DeleteJobQueueCommand = function (input, contex
|
|
|
119
119
|
};
|
|
120
120
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deletejobqueue";
|
|
121
121
|
body = JSON.stringify(__assign({}, (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, new __HttpRequest({
|
|
123
123
|
protocol: protocol,
|
|
124
124
|
hostname: hostname,
|
|
125
125
|
port: port,
|
|
@@ -135,7 +135,7 @@ export var serializeAws_restJson1DeregisterJobDefinitionCommand = function (inpu
|
|
|
135
135
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
136
136
|
return __generator(this, function (_c) {
|
|
137
137
|
switch (_c.label) {
|
|
138
|
-
case 0: return [4
|
|
138
|
+
case 0: return [4, context.endpoint()];
|
|
139
139
|
case 1:
|
|
140
140
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
141
141
|
headers = {
|
|
@@ -143,7 +143,7 @@ export var serializeAws_restJson1DeregisterJobDefinitionCommand = function (inpu
|
|
|
143
143
|
};
|
|
144
144
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deregisterjobdefinition";
|
|
145
145
|
body = JSON.stringify(__assign({}, (input.jobDefinition !== undefined && input.jobDefinition !== null && { jobDefinition: input.jobDefinition })));
|
|
146
|
-
return [2
|
|
146
|
+
return [2, new __HttpRequest({
|
|
147
147
|
protocol: protocol,
|
|
148
148
|
hostname: hostname,
|
|
149
149
|
port: port,
|
|
@@ -159,7 +159,7 @@ export var serializeAws_restJson1DescribeComputeEnvironmentsCommand = function (
|
|
|
159
159
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
160
160
|
return __generator(this, function (_c) {
|
|
161
161
|
switch (_c.label) {
|
|
162
|
-
case 0: return [4
|
|
162
|
+
case 0: return [4, context.endpoint()];
|
|
163
163
|
case 1:
|
|
164
164
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
165
165
|
headers = {
|
|
@@ -170,7 +170,7 @@ export var serializeAws_restJson1DescribeComputeEnvironmentsCommand = function (
|
|
|
170
170
|
input.computeEnvironments !== null && {
|
|
171
171
|
computeEnvironments: serializeAws_restJson1StringList(input.computeEnvironments, context),
|
|
172
172
|
})), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
173
|
-
return [2
|
|
173
|
+
return [2, new __HttpRequest({
|
|
174
174
|
protocol: protocol,
|
|
175
175
|
hostname: hostname,
|
|
176
176
|
port: port,
|
|
@@ -186,7 +186,7 @@ export var serializeAws_restJson1DescribeJobDefinitionsCommand = function (input
|
|
|
186
186
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
187
187
|
return __generator(this, function (_c) {
|
|
188
188
|
switch (_c.label) {
|
|
189
|
-
case 0: return [4
|
|
189
|
+
case 0: return [4, context.endpoint()];
|
|
190
190
|
case 1:
|
|
191
191
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
192
192
|
headers = {
|
|
@@ -198,7 +198,7 @@ export var serializeAws_restJson1DescribeJobDefinitionsCommand = function (input
|
|
|
198
198
|
input.jobDefinitions !== null && {
|
|
199
199
|
jobDefinitions: serializeAws_restJson1StringList(input.jobDefinitions, context),
|
|
200
200
|
})), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
201
|
-
return [2
|
|
201
|
+
return [2, new __HttpRequest({
|
|
202
202
|
protocol: protocol,
|
|
203
203
|
hostname: hostname,
|
|
204
204
|
port: port,
|
|
@@ -214,7 +214,7 @@ export var serializeAws_restJson1DescribeJobQueuesCommand = function (input, con
|
|
|
214
214
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
215
215
|
return __generator(this, function (_c) {
|
|
216
216
|
switch (_c.label) {
|
|
217
|
-
case 0: return [4
|
|
217
|
+
case 0: return [4, context.endpoint()];
|
|
218
218
|
case 1:
|
|
219
219
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
220
220
|
headers = {
|
|
@@ -223,7 +223,7 @@ export var serializeAws_restJson1DescribeJobQueuesCommand = function (input, con
|
|
|
223
223
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describejobqueues";
|
|
224
224
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.jobQueues !== undefined &&
|
|
225
225
|
input.jobQueues !== null && { jobQueues: serializeAws_restJson1StringList(input.jobQueues, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
226
|
-
return [2
|
|
226
|
+
return [2, new __HttpRequest({
|
|
227
227
|
protocol: protocol,
|
|
228
228
|
hostname: hostname,
|
|
229
229
|
port: port,
|
|
@@ -239,7 +239,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
|
|
|
239
239
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
240
240
|
return __generator(this, function (_c) {
|
|
241
241
|
switch (_c.label) {
|
|
242
|
-
case 0: return [4
|
|
242
|
+
case 0: return [4, context.endpoint()];
|
|
243
243
|
case 1:
|
|
244
244
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
245
245
|
headers = {
|
|
@@ -248,7 +248,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
|
|
|
248
248
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describejobs";
|
|
249
249
|
body = JSON.stringify(__assign({}, (input.jobs !== undefined &&
|
|
250
250
|
input.jobs !== null && { jobs: serializeAws_restJson1StringList(input.jobs, context) })));
|
|
251
|
-
return [2
|
|
251
|
+
return [2, new __HttpRequest({
|
|
252
252
|
protocol: protocol,
|
|
253
253
|
hostname: hostname,
|
|
254
254
|
port: port,
|
|
@@ -264,7 +264,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
264
264
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
265
265
|
return __generator(this, function (_c) {
|
|
266
266
|
switch (_c.label) {
|
|
267
|
-
case 0: return [4
|
|
267
|
+
case 0: return [4, context.endpoint()];
|
|
268
268
|
case 1:
|
|
269
269
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
270
270
|
headers = {
|
|
@@ -274,7 +274,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
274
274
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayJobId !== undefined && input.arrayJobId !== null && { arrayJobId: input.arrayJobId })), (input.filters !== undefined &&
|
|
275
275
|
input.filters !== null && { filters: serializeAws_restJson1ListJobsFilterList(input.filters, context) })), (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })), (input.jobStatus !== undefined && input.jobStatus !== null && { jobStatus: input.jobStatus })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.multiNodeJobId !== undefined &&
|
|
276
276
|
input.multiNodeJobId !== null && { multiNodeJobId: input.multiNodeJobId })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
277
|
-
return [2
|
|
277
|
+
return [2, new __HttpRequest({
|
|
278
278
|
protocol: protocol,
|
|
279
279
|
hostname: hostname,
|
|
280
280
|
port: port,
|
|
@@ -290,7 +290,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
290
290
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
291
291
|
return __generator(this, function (_c) {
|
|
292
292
|
switch (_c.label) {
|
|
293
|
-
case 0: return [4
|
|
293
|
+
case 0: return [4, context.endpoint()];
|
|
294
294
|
case 1:
|
|
295
295
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
296
296
|
headers = {};
|
|
@@ -305,7 +305,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
305
305
|
else {
|
|
306
306
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
307
307
|
}
|
|
308
|
-
return [2
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
309
|
protocol: protocol,
|
|
310
310
|
hostname: hostname,
|
|
311
311
|
port: port,
|
|
@@ -321,7 +321,7 @@ export var serializeAws_restJson1RegisterJobDefinitionCommand = function (input,
|
|
|
321
321
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
322
322
|
return __generator(this, function (_c) {
|
|
323
323
|
switch (_c.label) {
|
|
324
|
-
case 0: return [4
|
|
324
|
+
case 0: return [4, context.endpoint()];
|
|
325
325
|
case 1:
|
|
326
326
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
327
327
|
headers = {
|
|
@@ -345,7 +345,7 @@ export var serializeAws_restJson1RegisterJobDefinitionCommand = function (input,
|
|
|
345
345
|
})), (input.tags !== undefined &&
|
|
346
346
|
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout !== undefined &&
|
|
347
347
|
input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
348
|
-
return [2
|
|
348
|
+
return [2, new __HttpRequest({
|
|
349
349
|
protocol: protocol,
|
|
350
350
|
hostname: hostname,
|
|
351
351
|
port: port,
|
|
@@ -361,7 +361,7 @@ export var serializeAws_restJson1SubmitJobCommand = function (input, context) {
|
|
|
361
361
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
362
362
|
return __generator(this, function (_c) {
|
|
363
363
|
switch (_c.label) {
|
|
364
|
-
case 0: return [4
|
|
364
|
+
case 0: return [4, context.endpoint()];
|
|
365
365
|
case 1:
|
|
366
366
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
367
367
|
headers = {
|
|
@@ -385,7 +385,7 @@ export var serializeAws_restJson1SubmitJobCommand = function (input, context) {
|
|
|
385
385
|
})), (input.tags !== undefined &&
|
|
386
386
|
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout !== undefined &&
|
|
387
387
|
input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })));
|
|
388
|
-
return [2
|
|
388
|
+
return [2, new __HttpRequest({
|
|
389
389
|
protocol: protocol,
|
|
390
390
|
hostname: hostname,
|
|
391
391
|
port: port,
|
|
@@ -401,7 +401,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
401
401
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
402
402
|
return __generator(this, function (_c) {
|
|
403
403
|
switch (_c.label) {
|
|
404
|
-
case 0: return [4
|
|
404
|
+
case 0: return [4, context.endpoint()];
|
|
405
405
|
case 1:
|
|
406
406
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
407
407
|
headers = {
|
|
@@ -420,7 +420,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
420
420
|
}
|
|
421
421
|
body = JSON.stringify(__assign({}, (input.tags !== undefined &&
|
|
422
422
|
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
423
|
-
return [2
|
|
423
|
+
return [2, new __HttpRequest({
|
|
424
424
|
protocol: protocol,
|
|
425
425
|
hostname: hostname,
|
|
426
426
|
port: port,
|
|
@@ -436,7 +436,7 @@ export var serializeAws_restJson1TerminateJobCommand = function (input, context)
|
|
|
436
436
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
437
437
|
return __generator(this, function (_c) {
|
|
438
438
|
switch (_c.label) {
|
|
439
|
-
case 0: return [4
|
|
439
|
+
case 0: return [4, context.endpoint()];
|
|
440
440
|
case 1:
|
|
441
441
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
442
442
|
headers = {
|
|
@@ -444,7 +444,7 @@ export var serializeAws_restJson1TerminateJobCommand = function (input, context)
|
|
|
444
444
|
};
|
|
445
445
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/terminatejob";
|
|
446
446
|
body = JSON.stringify(__assign(__assign({}, (input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId })), (input.reason !== undefined && input.reason !== null && { reason: input.reason })));
|
|
447
|
-
return [2
|
|
447
|
+
return [2, new __HttpRequest({
|
|
448
448
|
protocol: protocol,
|
|
449
449
|
hostname: hostname,
|
|
450
450
|
port: port,
|
|
@@ -460,7 +460,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
460
460
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
461
461
|
return __generator(this, function (_c) {
|
|
462
462
|
switch (_c.label) {
|
|
463
|
-
case 0: return [4
|
|
463
|
+
case 0: return [4, context.endpoint()];
|
|
464
464
|
case 1:
|
|
465
465
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
466
466
|
headers = {};
|
|
@@ -476,7 +476,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
476
476
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
477
477
|
}
|
|
478
478
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
479
|
-
return [2
|
|
479
|
+
return [2, new __HttpRequest({
|
|
480
480
|
protocol: protocol,
|
|
481
481
|
hostname: hostname,
|
|
482
482
|
port: port,
|
|
@@ -493,7 +493,7 @@ export var serializeAws_restJson1UpdateComputeEnvironmentCommand = function (inp
|
|
|
493
493
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
494
494
|
return __generator(this, function (_c) {
|
|
495
495
|
switch (_c.label) {
|
|
496
|
-
case 0: return [4
|
|
496
|
+
case 0: return [4, context.endpoint()];
|
|
497
497
|
case 1:
|
|
498
498
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
499
499
|
headers = {
|
|
@@ -505,7 +505,7 @@ export var serializeAws_restJson1UpdateComputeEnvironmentCommand = function (inp
|
|
|
505
505
|
input.computeResources !== null && {
|
|
506
506
|
computeResources: serializeAws_restJson1ComputeResourceUpdate(input.computeResources, context),
|
|
507
507
|
})), (input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole })), (input.state !== undefined && input.state !== null && { state: input.state })));
|
|
508
|
-
return [2
|
|
508
|
+
return [2, new __HttpRequest({
|
|
509
509
|
protocol: protocol,
|
|
510
510
|
hostname: hostname,
|
|
511
511
|
port: port,
|
|
@@ -521,7 +521,7 @@ export var serializeAws_restJson1UpdateJobQueueCommand = function (input, contex
|
|
|
521
521
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
522
522
|
return __generator(this, function (_c) {
|
|
523
523
|
switch (_c.label) {
|
|
524
|
-
case 0: return [4
|
|
524
|
+
case 0: return [4, context.endpoint()];
|
|
525
525
|
case 1:
|
|
526
526
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
527
527
|
headers = {
|
|
@@ -532,7 +532,7 @@ export var serializeAws_restJson1UpdateJobQueueCommand = function (input, contex
|
|
|
532
532
|
input.computeEnvironmentOrder !== null && {
|
|
533
533
|
computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
|
|
534
534
|
})), (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })), (input.priority !== undefined && input.priority !== null && { priority: input.priority })), (input.state !== undefined && input.state !== null && { state: input.state })));
|
|
535
|
-
return [2
|
|
535
|
+
return [2, new __HttpRequest({
|
|
536
536
|
protocol: protocol,
|
|
537
537
|
hostname: hostname,
|
|
538
538
|
port: port,
|
|
@@ -550,15 +550,15 @@ export var deserializeAws_restJson1CancelJobCommand = function (output, context)
|
|
|
550
550
|
switch (_a.label) {
|
|
551
551
|
case 0:
|
|
552
552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
-
return [2
|
|
553
|
+
return [2, deserializeAws_restJson1CancelJobCommandError(output, context)];
|
|
554
554
|
}
|
|
555
555
|
contents = {
|
|
556
556
|
$metadata: deserializeMetadata(output),
|
|
557
557
|
};
|
|
558
|
-
return [4
|
|
558
|
+
return [4, collectBody(output.body, context)];
|
|
559
559
|
case 1:
|
|
560
560
|
_a.sent();
|
|
561
|
-
return [2
|
|
561
|
+
return [2, Promise.resolve(contents)];
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
}); };
|
|
@@ -570,31 +570,31 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
570
570
|
case 0:
|
|
571
571
|
_a = [__assign({}, output)];
|
|
572
572
|
_e = {};
|
|
573
|
-
return [4
|
|
573
|
+
return [4, parseBody(output.body, context)];
|
|
574
574
|
case 1:
|
|
575
575
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
576
576
|
errorCode = "UnknownError";
|
|
577
577
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
578
|
_b = errorCode;
|
|
579
579
|
switch (_b) {
|
|
580
|
-
case "ClientException": return [3
|
|
581
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
582
|
-
case "ServerException": return [3
|
|
583
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
580
|
+
case "ClientException": return [3, 2];
|
|
581
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
582
|
+
case "ServerException": return [3, 4];
|
|
583
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
584
584
|
}
|
|
585
|
-
return [3
|
|
585
|
+
return [3, 6];
|
|
586
586
|
case 2:
|
|
587
587
|
_c = [{}];
|
|
588
|
-
return [4
|
|
588
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
589
589
|
case 3:
|
|
590
590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
591
|
-
return [3
|
|
591
|
+
return [3, 7];
|
|
592
592
|
case 4:
|
|
593
593
|
_d = [{}];
|
|
594
|
-
return [4
|
|
594
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
595
595
|
case 5:
|
|
596
596
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
597
|
-
return [3
|
|
597
|
+
return [3, 7];
|
|
598
598
|
case 6:
|
|
599
599
|
parsedBody = parsedOutput.body;
|
|
600
600
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -604,7 +604,7 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
604
604
|
message = response.message || response.Message || errorCode;
|
|
605
605
|
response.message = message;
|
|
606
606
|
delete response.Message;
|
|
607
|
-
return [2
|
|
607
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
610
|
}); };
|
|
@@ -614,7 +614,7 @@ export var deserializeAws_restJson1CreateComputeEnvironmentCommand = function (o
|
|
|
614
614
|
switch (_c.label) {
|
|
615
615
|
case 0:
|
|
616
616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
-
return [2
|
|
617
|
+
return [2, deserializeAws_restJson1CreateComputeEnvironmentCommandError(output, context)];
|
|
618
618
|
}
|
|
619
619
|
contents = {
|
|
620
620
|
$metadata: deserializeMetadata(output),
|
|
@@ -623,7 +623,7 @@ export var deserializeAws_restJson1CreateComputeEnvironmentCommand = function (o
|
|
|
623
623
|
};
|
|
624
624
|
_a = __expectNonNull;
|
|
625
625
|
_b = __expectObject;
|
|
626
|
-
return [4
|
|
626
|
+
return [4, parseBody(output.body, context)];
|
|
627
627
|
case 1:
|
|
628
628
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
629
629
|
if (data.computeEnvironmentArn !== undefined && data.computeEnvironmentArn !== null) {
|
|
@@ -632,7 +632,7 @@ export var deserializeAws_restJson1CreateComputeEnvironmentCommand = function (o
|
|
|
632
632
|
if (data.computeEnvironmentName !== undefined && data.computeEnvironmentName !== null) {
|
|
633
633
|
contents.computeEnvironmentName = __expectString(data.computeEnvironmentName);
|
|
634
634
|
}
|
|
635
|
-
return [2
|
|
635
|
+
return [2, Promise.resolve(contents)];
|
|
636
636
|
}
|
|
637
637
|
});
|
|
638
638
|
}); };
|
|
@@ -644,31 +644,31 @@ var deserializeAws_restJson1CreateComputeEnvironmentCommandError = function (out
|
|
|
644
644
|
case 0:
|
|
645
645
|
_a = [__assign({}, output)];
|
|
646
646
|
_e = {};
|
|
647
|
-
return [4
|
|
647
|
+
return [4, parseBody(output.body, context)];
|
|
648
648
|
case 1:
|
|
649
649
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
650
650
|
errorCode = "UnknownError";
|
|
651
651
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
652
|
_b = errorCode;
|
|
653
653
|
switch (_b) {
|
|
654
|
-
case "ClientException": return [3
|
|
655
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
656
|
-
case "ServerException": return [3
|
|
657
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
654
|
+
case "ClientException": return [3, 2];
|
|
655
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
656
|
+
case "ServerException": return [3, 4];
|
|
657
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
658
658
|
}
|
|
659
|
-
return [3
|
|
659
|
+
return [3, 6];
|
|
660
660
|
case 2:
|
|
661
661
|
_c = [{}];
|
|
662
|
-
return [4
|
|
662
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
663
663
|
case 3:
|
|
664
664
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
665
|
-
return [3
|
|
665
|
+
return [3, 7];
|
|
666
666
|
case 4:
|
|
667
667
|
_d = [{}];
|
|
668
|
-
return [4
|
|
668
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
669
669
|
case 5:
|
|
670
670
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
671
|
-
return [3
|
|
671
|
+
return [3, 7];
|
|
672
672
|
case 6:
|
|
673
673
|
parsedBody = parsedOutput.body;
|
|
674
674
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -678,7 +678,7 @@ var deserializeAws_restJson1CreateComputeEnvironmentCommandError = function (out
|
|
|
678
678
|
message = response.message || response.Message || errorCode;
|
|
679
679
|
response.message = message;
|
|
680
680
|
delete response.Message;
|
|
681
|
-
return [2
|
|
681
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
682
682
|
}
|
|
683
683
|
});
|
|
684
684
|
}); };
|
|
@@ -688,7 +688,7 @@ export var deserializeAws_restJson1CreateJobQueueCommand = function (output, con
|
|
|
688
688
|
switch (_c.label) {
|
|
689
689
|
case 0:
|
|
690
690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
|
-
return [2
|
|
691
|
+
return [2, deserializeAws_restJson1CreateJobQueueCommandError(output, context)];
|
|
692
692
|
}
|
|
693
693
|
contents = {
|
|
694
694
|
$metadata: deserializeMetadata(output),
|
|
@@ -697,7 +697,7 @@ export var deserializeAws_restJson1CreateJobQueueCommand = function (output, con
|
|
|
697
697
|
};
|
|
698
698
|
_a = __expectNonNull;
|
|
699
699
|
_b = __expectObject;
|
|
700
|
-
return [4
|
|
700
|
+
return [4, parseBody(output.body, context)];
|
|
701
701
|
case 1:
|
|
702
702
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
703
703
|
if (data.jobQueueArn !== undefined && data.jobQueueArn !== null) {
|
|
@@ -706,7 +706,7 @@ export var deserializeAws_restJson1CreateJobQueueCommand = function (output, con
|
|
|
706
706
|
if (data.jobQueueName !== undefined && data.jobQueueName !== null) {
|
|
707
707
|
contents.jobQueueName = __expectString(data.jobQueueName);
|
|
708
708
|
}
|
|
709
|
-
return [2
|
|
709
|
+
return [2, Promise.resolve(contents)];
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
}); };
|
|
@@ -718,31 +718,31 @@ var deserializeAws_restJson1CreateJobQueueCommandError = function (output, conte
|
|
|
718
718
|
case 0:
|
|
719
719
|
_a = [__assign({}, output)];
|
|
720
720
|
_e = {};
|
|
721
|
-
return [4
|
|
721
|
+
return [4, parseBody(output.body, context)];
|
|
722
722
|
case 1:
|
|
723
723
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
724
724
|
errorCode = "UnknownError";
|
|
725
725
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
726
|
_b = errorCode;
|
|
727
727
|
switch (_b) {
|
|
728
|
-
case "ClientException": return [3
|
|
729
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
730
|
-
case "ServerException": return [3
|
|
731
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
728
|
+
case "ClientException": return [3, 2];
|
|
729
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
730
|
+
case "ServerException": return [3, 4];
|
|
731
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
732
732
|
}
|
|
733
|
-
return [3
|
|
733
|
+
return [3, 6];
|
|
734
734
|
case 2:
|
|
735
735
|
_c = [{}];
|
|
736
|
-
return [4
|
|
736
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
737
737
|
case 3:
|
|
738
738
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
739
|
-
return [3
|
|
739
|
+
return [3, 7];
|
|
740
740
|
case 4:
|
|
741
741
|
_d = [{}];
|
|
742
|
-
return [4
|
|
742
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
743
743
|
case 5:
|
|
744
744
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
745
|
-
return [3
|
|
745
|
+
return [3, 7];
|
|
746
746
|
case 6:
|
|
747
747
|
parsedBody = parsedOutput.body;
|
|
748
748
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -752,7 +752,7 @@ var deserializeAws_restJson1CreateJobQueueCommandError = function (output, conte
|
|
|
752
752
|
message = response.message || response.Message || errorCode;
|
|
753
753
|
response.message = message;
|
|
754
754
|
delete response.Message;
|
|
755
|
-
return [2
|
|
755
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
756
756
|
}
|
|
757
757
|
});
|
|
758
758
|
}); };
|
|
@@ -762,15 +762,15 @@ export var deserializeAws_restJson1DeleteComputeEnvironmentCommand = function (o
|
|
|
762
762
|
switch (_a.label) {
|
|
763
763
|
case 0:
|
|
764
764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
765
|
-
return [2
|
|
765
|
+
return [2, deserializeAws_restJson1DeleteComputeEnvironmentCommandError(output, context)];
|
|
766
766
|
}
|
|
767
767
|
contents = {
|
|
768
768
|
$metadata: deserializeMetadata(output),
|
|
769
769
|
};
|
|
770
|
-
return [4
|
|
770
|
+
return [4, collectBody(output.body, context)];
|
|
771
771
|
case 1:
|
|
772
772
|
_a.sent();
|
|
773
|
-
return [2
|
|
773
|
+
return [2, Promise.resolve(contents)];
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
}); };
|
|
@@ -782,31 +782,31 @@ var deserializeAws_restJson1DeleteComputeEnvironmentCommandError = function (out
|
|
|
782
782
|
case 0:
|
|
783
783
|
_a = [__assign({}, output)];
|
|
784
784
|
_e = {};
|
|
785
|
-
return [4
|
|
785
|
+
return [4, parseBody(output.body, context)];
|
|
786
786
|
case 1:
|
|
787
787
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
788
788
|
errorCode = "UnknownError";
|
|
789
789
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
790
790
|
_b = errorCode;
|
|
791
791
|
switch (_b) {
|
|
792
|
-
case "ClientException": return [3
|
|
793
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
794
|
-
case "ServerException": return [3
|
|
795
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
792
|
+
case "ClientException": return [3, 2];
|
|
793
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
794
|
+
case "ServerException": return [3, 4];
|
|
795
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
796
796
|
}
|
|
797
|
-
return [3
|
|
797
|
+
return [3, 6];
|
|
798
798
|
case 2:
|
|
799
799
|
_c = [{}];
|
|
800
|
-
return [4
|
|
800
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
801
801
|
case 3:
|
|
802
802
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
803
|
-
return [3
|
|
803
|
+
return [3, 7];
|
|
804
804
|
case 4:
|
|
805
805
|
_d = [{}];
|
|
806
|
-
return [4
|
|
806
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
807
807
|
case 5:
|
|
808
808
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
809
|
-
return [3
|
|
809
|
+
return [3, 7];
|
|
810
810
|
case 6:
|
|
811
811
|
parsedBody = parsedOutput.body;
|
|
812
812
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -816,7 +816,7 @@ var deserializeAws_restJson1DeleteComputeEnvironmentCommandError = function (out
|
|
|
816
816
|
message = response.message || response.Message || errorCode;
|
|
817
817
|
response.message = message;
|
|
818
818
|
delete response.Message;
|
|
819
|
-
return [2
|
|
819
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
820
820
|
}
|
|
821
821
|
});
|
|
822
822
|
}); };
|
|
@@ -826,15 +826,15 @@ export var deserializeAws_restJson1DeleteJobQueueCommand = function (output, con
|
|
|
826
826
|
switch (_a.label) {
|
|
827
827
|
case 0:
|
|
828
828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return [2
|
|
829
|
+
return [2, deserializeAws_restJson1DeleteJobQueueCommandError(output, context)];
|
|
830
830
|
}
|
|
831
831
|
contents = {
|
|
832
832
|
$metadata: deserializeMetadata(output),
|
|
833
833
|
};
|
|
834
|
-
return [4
|
|
834
|
+
return [4, collectBody(output.body, context)];
|
|
835
835
|
case 1:
|
|
836
836
|
_a.sent();
|
|
837
|
-
return [2
|
|
837
|
+
return [2, Promise.resolve(contents)];
|
|
838
838
|
}
|
|
839
839
|
});
|
|
840
840
|
}); };
|
|
@@ -846,31 +846,31 @@ var deserializeAws_restJson1DeleteJobQueueCommandError = function (output, conte
|
|
|
846
846
|
case 0:
|
|
847
847
|
_a = [__assign({}, output)];
|
|
848
848
|
_e = {};
|
|
849
|
-
return [4
|
|
849
|
+
return [4, parseBody(output.body, context)];
|
|
850
850
|
case 1:
|
|
851
851
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
852
852
|
errorCode = "UnknownError";
|
|
853
853
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
854
|
_b = errorCode;
|
|
855
855
|
switch (_b) {
|
|
856
|
-
case "ClientException": return [3
|
|
857
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
858
|
-
case "ServerException": return [3
|
|
859
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
856
|
+
case "ClientException": return [3, 2];
|
|
857
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
858
|
+
case "ServerException": return [3, 4];
|
|
859
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
860
860
|
}
|
|
861
|
-
return [3
|
|
861
|
+
return [3, 6];
|
|
862
862
|
case 2:
|
|
863
863
|
_c = [{}];
|
|
864
|
-
return [4
|
|
864
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
865
865
|
case 3:
|
|
866
866
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
867
|
-
return [3
|
|
867
|
+
return [3, 7];
|
|
868
868
|
case 4:
|
|
869
869
|
_d = [{}];
|
|
870
|
-
return [4
|
|
870
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
871
871
|
case 5:
|
|
872
872
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
873
|
-
return [3
|
|
873
|
+
return [3, 7];
|
|
874
874
|
case 6:
|
|
875
875
|
parsedBody = parsedOutput.body;
|
|
876
876
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -880,7 +880,7 @@ var deserializeAws_restJson1DeleteJobQueueCommandError = function (output, conte
|
|
|
880
880
|
message = response.message || response.Message || errorCode;
|
|
881
881
|
response.message = message;
|
|
882
882
|
delete response.Message;
|
|
883
|
-
return [2
|
|
883
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
886
|
}); };
|
|
@@ -890,15 +890,15 @@ export var deserializeAws_restJson1DeregisterJobDefinitionCommand = function (ou
|
|
|
890
890
|
switch (_a.label) {
|
|
891
891
|
case 0:
|
|
892
892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
-
return [2
|
|
893
|
+
return [2, deserializeAws_restJson1DeregisterJobDefinitionCommandError(output, context)];
|
|
894
894
|
}
|
|
895
895
|
contents = {
|
|
896
896
|
$metadata: deserializeMetadata(output),
|
|
897
897
|
};
|
|
898
|
-
return [4
|
|
898
|
+
return [4, collectBody(output.body, context)];
|
|
899
899
|
case 1:
|
|
900
900
|
_a.sent();
|
|
901
|
-
return [2
|
|
901
|
+
return [2, Promise.resolve(contents)];
|
|
902
902
|
}
|
|
903
903
|
});
|
|
904
904
|
}); };
|
|
@@ -910,31 +910,31 @@ var deserializeAws_restJson1DeregisterJobDefinitionCommandError = function (outp
|
|
|
910
910
|
case 0:
|
|
911
911
|
_a = [__assign({}, output)];
|
|
912
912
|
_e = {};
|
|
913
|
-
return [4
|
|
913
|
+
return [4, parseBody(output.body, context)];
|
|
914
914
|
case 1:
|
|
915
915
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
916
916
|
errorCode = "UnknownError";
|
|
917
917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
918
|
_b = errorCode;
|
|
919
919
|
switch (_b) {
|
|
920
|
-
case "ClientException": return [3
|
|
921
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
922
|
-
case "ServerException": return [3
|
|
923
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
920
|
+
case "ClientException": return [3, 2];
|
|
921
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
922
|
+
case "ServerException": return [3, 4];
|
|
923
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
924
924
|
}
|
|
925
|
-
return [3
|
|
925
|
+
return [3, 6];
|
|
926
926
|
case 2:
|
|
927
927
|
_c = [{}];
|
|
928
|
-
return [4
|
|
928
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
929
929
|
case 3:
|
|
930
930
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
931
|
-
return [3
|
|
931
|
+
return [3, 7];
|
|
932
932
|
case 4:
|
|
933
933
|
_d = [{}];
|
|
934
|
-
return [4
|
|
934
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
935
935
|
case 5:
|
|
936
936
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
937
|
-
return [3
|
|
937
|
+
return [3, 7];
|
|
938
938
|
case 6:
|
|
939
939
|
parsedBody = parsedOutput.body;
|
|
940
940
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -944,7 +944,7 @@ var deserializeAws_restJson1DeregisterJobDefinitionCommandError = function (outp
|
|
|
944
944
|
message = response.message || response.Message || errorCode;
|
|
945
945
|
response.message = message;
|
|
946
946
|
delete response.Message;
|
|
947
|
-
return [2
|
|
947
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
948
948
|
}
|
|
949
949
|
});
|
|
950
950
|
}); };
|
|
@@ -954,7 +954,7 @@ export var deserializeAws_restJson1DescribeComputeEnvironmentsCommand = function
|
|
|
954
954
|
switch (_c.label) {
|
|
955
955
|
case 0:
|
|
956
956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
|
-
return [2
|
|
957
|
+
return [2, deserializeAws_restJson1DescribeComputeEnvironmentsCommandError(output, context)];
|
|
958
958
|
}
|
|
959
959
|
contents = {
|
|
960
960
|
$metadata: deserializeMetadata(output),
|
|
@@ -963,7 +963,7 @@ export var deserializeAws_restJson1DescribeComputeEnvironmentsCommand = function
|
|
|
963
963
|
};
|
|
964
964
|
_a = __expectNonNull;
|
|
965
965
|
_b = __expectObject;
|
|
966
|
-
return [4
|
|
966
|
+
return [4, parseBody(output.body, context)];
|
|
967
967
|
case 1:
|
|
968
968
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
969
969
|
if (data.computeEnvironments !== undefined && data.computeEnvironments !== null) {
|
|
@@ -972,7 +972,7 @@ export var deserializeAws_restJson1DescribeComputeEnvironmentsCommand = function
|
|
|
972
972
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
973
973
|
contents.nextToken = __expectString(data.nextToken);
|
|
974
974
|
}
|
|
975
|
-
return [2
|
|
975
|
+
return [2, Promise.resolve(contents)];
|
|
976
976
|
}
|
|
977
977
|
});
|
|
978
978
|
}); };
|
|
@@ -984,31 +984,31 @@ var deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = function (
|
|
|
984
984
|
case 0:
|
|
985
985
|
_a = [__assign({}, output)];
|
|
986
986
|
_e = {};
|
|
987
|
-
return [4
|
|
987
|
+
return [4, parseBody(output.body, context)];
|
|
988
988
|
case 1:
|
|
989
989
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
990
990
|
errorCode = "UnknownError";
|
|
991
991
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
992
|
_b = errorCode;
|
|
993
993
|
switch (_b) {
|
|
994
|
-
case "ClientException": return [3
|
|
995
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
996
|
-
case "ServerException": return [3
|
|
997
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
994
|
+
case "ClientException": return [3, 2];
|
|
995
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
996
|
+
case "ServerException": return [3, 4];
|
|
997
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
998
998
|
}
|
|
999
|
-
return [3
|
|
999
|
+
return [3, 6];
|
|
1000
1000
|
case 2:
|
|
1001
1001
|
_c = [{}];
|
|
1002
|
-
return [4
|
|
1002
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1003
1003
|
case 3:
|
|
1004
1004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1005
|
-
return [3
|
|
1005
|
+
return [3, 7];
|
|
1006
1006
|
case 4:
|
|
1007
1007
|
_d = [{}];
|
|
1008
|
-
return [4
|
|
1008
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1009
1009
|
case 5:
|
|
1010
1010
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1011
|
-
return [3
|
|
1011
|
+
return [3, 7];
|
|
1012
1012
|
case 6:
|
|
1013
1013
|
parsedBody = parsedOutput.body;
|
|
1014
1014
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1018,7 +1018,7 @@ var deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = function (
|
|
|
1018
1018
|
message = response.message || response.Message || errorCode;
|
|
1019
1019
|
response.message = message;
|
|
1020
1020
|
delete response.Message;
|
|
1021
|
-
return [2
|
|
1021
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1022
1022
|
}
|
|
1023
1023
|
});
|
|
1024
1024
|
}); };
|
|
@@ -1028,7 +1028,7 @@ export var deserializeAws_restJson1DescribeJobDefinitionsCommand = function (out
|
|
|
1028
1028
|
switch (_c.label) {
|
|
1029
1029
|
case 0:
|
|
1030
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1031
|
-
return [2
|
|
1031
|
+
return [2, deserializeAws_restJson1DescribeJobDefinitionsCommandError(output, context)];
|
|
1032
1032
|
}
|
|
1033
1033
|
contents = {
|
|
1034
1034
|
$metadata: deserializeMetadata(output),
|
|
@@ -1037,7 +1037,7 @@ export var deserializeAws_restJson1DescribeJobDefinitionsCommand = function (out
|
|
|
1037
1037
|
};
|
|
1038
1038
|
_a = __expectNonNull;
|
|
1039
1039
|
_b = __expectObject;
|
|
1040
|
-
return [4
|
|
1040
|
+
return [4, parseBody(output.body, context)];
|
|
1041
1041
|
case 1:
|
|
1042
1042
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1043
1043
|
if (data.jobDefinitions !== undefined && data.jobDefinitions !== null) {
|
|
@@ -1046,7 +1046,7 @@ export var deserializeAws_restJson1DescribeJobDefinitionsCommand = function (out
|
|
|
1046
1046
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1047
1047
|
contents.nextToken = __expectString(data.nextToken);
|
|
1048
1048
|
}
|
|
1049
|
-
return [2
|
|
1049
|
+
return [2, Promise.resolve(contents)];
|
|
1050
1050
|
}
|
|
1051
1051
|
});
|
|
1052
1052
|
}); };
|
|
@@ -1058,31 +1058,31 @@ var deserializeAws_restJson1DescribeJobDefinitionsCommandError = function (outpu
|
|
|
1058
1058
|
case 0:
|
|
1059
1059
|
_a = [__assign({}, output)];
|
|
1060
1060
|
_e = {};
|
|
1061
|
-
return [4
|
|
1061
|
+
return [4, parseBody(output.body, context)];
|
|
1062
1062
|
case 1:
|
|
1063
1063
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1064
1064
|
errorCode = "UnknownError";
|
|
1065
1065
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
_b = errorCode;
|
|
1067
1067
|
switch (_b) {
|
|
1068
|
-
case "ClientException": return [3
|
|
1069
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1070
|
-
case "ServerException": return [3
|
|
1071
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1068
|
+
case "ClientException": return [3, 2];
|
|
1069
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1070
|
+
case "ServerException": return [3, 4];
|
|
1071
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1072
1072
|
}
|
|
1073
|
-
return [3
|
|
1073
|
+
return [3, 6];
|
|
1074
1074
|
case 2:
|
|
1075
1075
|
_c = [{}];
|
|
1076
|
-
return [4
|
|
1076
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1077
1077
|
case 3:
|
|
1078
1078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1079
|
-
return [3
|
|
1079
|
+
return [3, 7];
|
|
1080
1080
|
case 4:
|
|
1081
1081
|
_d = [{}];
|
|
1082
|
-
return [4
|
|
1082
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1083
1083
|
case 5:
|
|
1084
1084
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1085
|
-
return [3
|
|
1085
|
+
return [3, 7];
|
|
1086
1086
|
case 6:
|
|
1087
1087
|
parsedBody = parsedOutput.body;
|
|
1088
1088
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1092,7 +1092,7 @@ var deserializeAws_restJson1DescribeJobDefinitionsCommandError = function (outpu
|
|
|
1092
1092
|
message = response.message || response.Message || errorCode;
|
|
1093
1093
|
response.message = message;
|
|
1094
1094
|
delete response.Message;
|
|
1095
|
-
return [2
|
|
1095
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
}); };
|
|
@@ -1102,7 +1102,7 @@ export var deserializeAws_restJson1DescribeJobQueuesCommand = function (output,
|
|
|
1102
1102
|
switch (_c.label) {
|
|
1103
1103
|
case 0:
|
|
1104
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
|
-
return [2
|
|
1105
|
+
return [2, deserializeAws_restJson1DescribeJobQueuesCommandError(output, context)];
|
|
1106
1106
|
}
|
|
1107
1107
|
contents = {
|
|
1108
1108
|
$metadata: deserializeMetadata(output),
|
|
@@ -1111,7 +1111,7 @@ export var deserializeAws_restJson1DescribeJobQueuesCommand = function (output,
|
|
|
1111
1111
|
};
|
|
1112
1112
|
_a = __expectNonNull;
|
|
1113
1113
|
_b = __expectObject;
|
|
1114
|
-
return [4
|
|
1114
|
+
return [4, parseBody(output.body, context)];
|
|
1115
1115
|
case 1:
|
|
1116
1116
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1117
1117
|
if (data.jobQueues !== undefined && data.jobQueues !== null) {
|
|
@@ -1120,7 +1120,7 @@ export var deserializeAws_restJson1DescribeJobQueuesCommand = function (output,
|
|
|
1120
1120
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1121
1121
|
contents.nextToken = __expectString(data.nextToken);
|
|
1122
1122
|
}
|
|
1123
|
-
return [2
|
|
1123
|
+
return [2, Promise.resolve(contents)];
|
|
1124
1124
|
}
|
|
1125
1125
|
});
|
|
1126
1126
|
}); };
|
|
@@ -1132,31 +1132,31 @@ var deserializeAws_restJson1DescribeJobQueuesCommandError = function (output, co
|
|
|
1132
1132
|
case 0:
|
|
1133
1133
|
_a = [__assign({}, output)];
|
|
1134
1134
|
_e = {};
|
|
1135
|
-
return [4
|
|
1135
|
+
return [4, parseBody(output.body, context)];
|
|
1136
1136
|
case 1:
|
|
1137
1137
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1138
1138
|
errorCode = "UnknownError";
|
|
1139
1139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1140
1140
|
_b = errorCode;
|
|
1141
1141
|
switch (_b) {
|
|
1142
|
-
case "ClientException": return [3
|
|
1143
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1144
|
-
case "ServerException": return [3
|
|
1145
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1142
|
+
case "ClientException": return [3, 2];
|
|
1143
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1144
|
+
case "ServerException": return [3, 4];
|
|
1145
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1146
1146
|
}
|
|
1147
|
-
return [3
|
|
1147
|
+
return [3, 6];
|
|
1148
1148
|
case 2:
|
|
1149
1149
|
_c = [{}];
|
|
1150
|
-
return [4
|
|
1150
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1151
1151
|
case 3:
|
|
1152
1152
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1153
|
-
return [3
|
|
1153
|
+
return [3, 7];
|
|
1154
1154
|
case 4:
|
|
1155
1155
|
_d = [{}];
|
|
1156
|
-
return [4
|
|
1156
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1157
1157
|
case 5:
|
|
1158
1158
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1159
|
-
return [3
|
|
1159
|
+
return [3, 7];
|
|
1160
1160
|
case 6:
|
|
1161
1161
|
parsedBody = parsedOutput.body;
|
|
1162
1162
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1166,7 +1166,7 @@ var deserializeAws_restJson1DescribeJobQueuesCommandError = function (output, co
|
|
|
1166
1166
|
message = response.message || response.Message || errorCode;
|
|
1167
1167
|
response.message = message;
|
|
1168
1168
|
delete response.Message;
|
|
1169
|
-
return [2
|
|
1169
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
}); };
|
|
@@ -1176,7 +1176,7 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1176
1176
|
switch (_c.label) {
|
|
1177
1177
|
case 0:
|
|
1178
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
|
-
return [2
|
|
1179
|
+
return [2, deserializeAws_restJson1DescribeJobsCommandError(output, context)];
|
|
1180
1180
|
}
|
|
1181
1181
|
contents = {
|
|
1182
1182
|
$metadata: deserializeMetadata(output),
|
|
@@ -1184,13 +1184,13 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1184
1184
|
};
|
|
1185
1185
|
_a = __expectNonNull;
|
|
1186
1186
|
_b = __expectObject;
|
|
1187
|
-
return [4
|
|
1187
|
+
return [4, parseBody(output.body, context)];
|
|
1188
1188
|
case 1:
|
|
1189
1189
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1190
1190
|
if (data.jobs !== undefined && data.jobs !== null) {
|
|
1191
1191
|
contents.jobs = deserializeAws_restJson1JobDetailList(data.jobs, context);
|
|
1192
1192
|
}
|
|
1193
|
-
return [2
|
|
1193
|
+
return [2, Promise.resolve(contents)];
|
|
1194
1194
|
}
|
|
1195
1195
|
});
|
|
1196
1196
|
}); };
|
|
@@ -1202,31 +1202,31 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1202
1202
|
case 0:
|
|
1203
1203
|
_a = [__assign({}, output)];
|
|
1204
1204
|
_e = {};
|
|
1205
|
-
return [4
|
|
1205
|
+
return [4, parseBody(output.body, context)];
|
|
1206
1206
|
case 1:
|
|
1207
1207
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1208
1208
|
errorCode = "UnknownError";
|
|
1209
1209
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
1210
|
_b = errorCode;
|
|
1211
1211
|
switch (_b) {
|
|
1212
|
-
case "ClientException": return [3
|
|
1213
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1214
|
-
case "ServerException": return [3
|
|
1215
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1212
|
+
case "ClientException": return [3, 2];
|
|
1213
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1214
|
+
case "ServerException": return [3, 4];
|
|
1215
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1216
1216
|
}
|
|
1217
|
-
return [3
|
|
1217
|
+
return [3, 6];
|
|
1218
1218
|
case 2:
|
|
1219
1219
|
_c = [{}];
|
|
1220
|
-
return [4
|
|
1220
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1221
1221
|
case 3:
|
|
1222
1222
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
-
return [3
|
|
1223
|
+
return [3, 7];
|
|
1224
1224
|
case 4:
|
|
1225
1225
|
_d = [{}];
|
|
1226
|
-
return [4
|
|
1226
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1227
1227
|
case 5:
|
|
1228
1228
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1229
|
-
return [3
|
|
1229
|
+
return [3, 7];
|
|
1230
1230
|
case 6:
|
|
1231
1231
|
parsedBody = parsedOutput.body;
|
|
1232
1232
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1236,7 +1236,7 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1236
1236
|
message = response.message || response.Message || errorCode;
|
|
1237
1237
|
response.message = message;
|
|
1238
1238
|
delete response.Message;
|
|
1239
|
-
return [2
|
|
1239
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
1242
|
}); };
|
|
@@ -1246,7 +1246,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
1246
1246
|
switch (_c.label) {
|
|
1247
1247
|
case 0:
|
|
1248
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
-
return [2
|
|
1249
|
+
return [2, deserializeAws_restJson1ListJobsCommandError(output, context)];
|
|
1250
1250
|
}
|
|
1251
1251
|
contents = {
|
|
1252
1252
|
$metadata: deserializeMetadata(output),
|
|
@@ -1255,7 +1255,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
1255
1255
|
};
|
|
1256
1256
|
_a = __expectNonNull;
|
|
1257
1257
|
_b = __expectObject;
|
|
1258
|
-
return [4
|
|
1258
|
+
return [4, parseBody(output.body, context)];
|
|
1259
1259
|
case 1:
|
|
1260
1260
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1261
1261
|
if (data.jobSummaryList !== undefined && data.jobSummaryList !== null) {
|
|
@@ -1264,7 +1264,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
1264
1264
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1265
1265
|
contents.nextToken = __expectString(data.nextToken);
|
|
1266
1266
|
}
|
|
1267
|
-
return [2
|
|
1267
|
+
return [2, Promise.resolve(contents)];
|
|
1268
1268
|
}
|
|
1269
1269
|
});
|
|
1270
1270
|
}); };
|
|
@@ -1276,31 +1276,31 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
1276
1276
|
case 0:
|
|
1277
1277
|
_a = [__assign({}, output)];
|
|
1278
1278
|
_e = {};
|
|
1279
|
-
return [4
|
|
1279
|
+
return [4, parseBody(output.body, context)];
|
|
1280
1280
|
case 1:
|
|
1281
1281
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1282
1282
|
errorCode = "UnknownError";
|
|
1283
1283
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
_b = errorCode;
|
|
1285
1285
|
switch (_b) {
|
|
1286
|
-
case "ClientException": return [3
|
|
1287
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1288
|
-
case "ServerException": return [3
|
|
1289
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1286
|
+
case "ClientException": return [3, 2];
|
|
1287
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1288
|
+
case "ServerException": return [3, 4];
|
|
1289
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1290
1290
|
}
|
|
1291
|
-
return [3
|
|
1291
|
+
return [3, 6];
|
|
1292
1292
|
case 2:
|
|
1293
1293
|
_c = [{}];
|
|
1294
|
-
return [4
|
|
1294
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1295
1295
|
case 3:
|
|
1296
1296
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1297
|
-
return [3
|
|
1297
|
+
return [3, 7];
|
|
1298
1298
|
case 4:
|
|
1299
1299
|
_d = [{}];
|
|
1300
|
-
return [4
|
|
1300
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1301
1301
|
case 5:
|
|
1302
1302
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1303
|
-
return [3
|
|
1303
|
+
return [3, 7];
|
|
1304
1304
|
case 6:
|
|
1305
1305
|
parsedBody = parsedOutput.body;
|
|
1306
1306
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1310,7 +1310,7 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
1310
1310
|
message = response.message || response.Message || errorCode;
|
|
1311
1311
|
response.message = message;
|
|
1312
1312
|
delete response.Message;
|
|
1313
|
-
return [2
|
|
1313
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
}); };
|
|
@@ -1320,7 +1320,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1320
1320
|
switch (_c.label) {
|
|
1321
1321
|
case 0:
|
|
1322
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1323
|
-
return [2
|
|
1323
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1324
1324
|
}
|
|
1325
1325
|
contents = {
|
|
1326
1326
|
$metadata: deserializeMetadata(output),
|
|
@@ -1328,13 +1328,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1328
1328
|
};
|
|
1329
1329
|
_a = __expectNonNull;
|
|
1330
1330
|
_b = __expectObject;
|
|
1331
|
-
return [4
|
|
1331
|
+
return [4, parseBody(output.body, context)];
|
|
1332
1332
|
case 1:
|
|
1333
1333
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1334
1334
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1335
1335
|
contents.tags = deserializeAws_restJson1TagrisTagsMap(data.tags, context);
|
|
1336
1336
|
}
|
|
1337
|
-
return [2
|
|
1337
|
+
return [2, Promise.resolve(contents)];
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
1340
1340
|
}); };
|
|
@@ -1346,31 +1346,31 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1346
1346
|
case 0:
|
|
1347
1347
|
_a = [__assign({}, output)];
|
|
1348
1348
|
_e = {};
|
|
1349
|
-
return [4
|
|
1349
|
+
return [4, parseBody(output.body, context)];
|
|
1350
1350
|
case 1:
|
|
1351
1351
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1352
1352
|
errorCode = "UnknownError";
|
|
1353
1353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1354
|
_b = errorCode;
|
|
1355
1355
|
switch (_b) {
|
|
1356
|
-
case "ClientException": return [3
|
|
1357
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1358
|
-
case "ServerException": return [3
|
|
1359
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1356
|
+
case "ClientException": return [3, 2];
|
|
1357
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1358
|
+
case "ServerException": return [3, 4];
|
|
1359
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1360
1360
|
}
|
|
1361
|
-
return [3
|
|
1361
|
+
return [3, 6];
|
|
1362
1362
|
case 2:
|
|
1363
1363
|
_c = [{}];
|
|
1364
|
-
return [4
|
|
1364
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1365
1365
|
case 3:
|
|
1366
1366
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1367
|
-
return [3
|
|
1367
|
+
return [3, 7];
|
|
1368
1368
|
case 4:
|
|
1369
1369
|
_d = [{}];
|
|
1370
|
-
return [4
|
|
1370
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1371
1371
|
case 5:
|
|
1372
1372
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1373
|
-
return [3
|
|
1373
|
+
return [3, 7];
|
|
1374
1374
|
case 6:
|
|
1375
1375
|
parsedBody = parsedOutput.body;
|
|
1376
1376
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1380,7 +1380,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1380
1380
|
message = response.message || response.Message || errorCode;
|
|
1381
1381
|
response.message = message;
|
|
1382
1382
|
delete response.Message;
|
|
1383
|
-
return [2
|
|
1383
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1384
1384
|
}
|
|
1385
1385
|
});
|
|
1386
1386
|
}); };
|
|
@@ -1390,7 +1390,7 @@ export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (outp
|
|
|
1390
1390
|
switch (_c.label) {
|
|
1391
1391
|
case 0:
|
|
1392
1392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1393
|
-
return [2
|
|
1393
|
+
return [2, deserializeAws_restJson1RegisterJobDefinitionCommandError(output, context)];
|
|
1394
1394
|
}
|
|
1395
1395
|
contents = {
|
|
1396
1396
|
$metadata: deserializeMetadata(output),
|
|
@@ -1400,7 +1400,7 @@ export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (outp
|
|
|
1400
1400
|
};
|
|
1401
1401
|
_a = __expectNonNull;
|
|
1402
1402
|
_b = __expectObject;
|
|
1403
|
-
return [4
|
|
1403
|
+
return [4, parseBody(output.body, context)];
|
|
1404
1404
|
case 1:
|
|
1405
1405
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1406
1406
|
if (data.jobDefinitionArn !== undefined && data.jobDefinitionArn !== null) {
|
|
@@ -1412,7 +1412,7 @@ export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (outp
|
|
|
1412
1412
|
if (data.revision !== undefined && data.revision !== null) {
|
|
1413
1413
|
contents.revision = __expectInt32(data.revision);
|
|
1414
1414
|
}
|
|
1415
|
-
return [2
|
|
1415
|
+
return [2, Promise.resolve(contents)];
|
|
1416
1416
|
}
|
|
1417
1417
|
});
|
|
1418
1418
|
}); };
|
|
@@ -1424,31 +1424,31 @@ var deserializeAws_restJson1RegisterJobDefinitionCommandError = function (output
|
|
|
1424
1424
|
case 0:
|
|
1425
1425
|
_a = [__assign({}, output)];
|
|
1426
1426
|
_e = {};
|
|
1427
|
-
return [4
|
|
1427
|
+
return [4, parseBody(output.body, context)];
|
|
1428
1428
|
case 1:
|
|
1429
1429
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1430
1430
|
errorCode = "UnknownError";
|
|
1431
1431
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1432
|
_b = errorCode;
|
|
1433
1433
|
switch (_b) {
|
|
1434
|
-
case "ClientException": return [3
|
|
1435
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1436
|
-
case "ServerException": return [3
|
|
1437
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1434
|
+
case "ClientException": return [3, 2];
|
|
1435
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1436
|
+
case "ServerException": return [3, 4];
|
|
1437
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1438
1438
|
}
|
|
1439
|
-
return [3
|
|
1439
|
+
return [3, 6];
|
|
1440
1440
|
case 2:
|
|
1441
1441
|
_c = [{}];
|
|
1442
|
-
return [4
|
|
1442
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1443
1443
|
case 3:
|
|
1444
1444
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1445
|
-
return [3
|
|
1445
|
+
return [3, 7];
|
|
1446
1446
|
case 4:
|
|
1447
1447
|
_d = [{}];
|
|
1448
|
-
return [4
|
|
1448
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1449
1449
|
case 5:
|
|
1450
1450
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1451
|
-
return [3
|
|
1451
|
+
return [3, 7];
|
|
1452
1452
|
case 6:
|
|
1453
1453
|
parsedBody = parsedOutput.body;
|
|
1454
1454
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1458,7 +1458,7 @@ var deserializeAws_restJson1RegisterJobDefinitionCommandError = function (output
|
|
|
1458
1458
|
message = response.message || response.Message || errorCode;
|
|
1459
1459
|
response.message = message;
|
|
1460
1460
|
delete response.Message;
|
|
1461
|
-
return [2
|
|
1461
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1462
1462
|
}
|
|
1463
1463
|
});
|
|
1464
1464
|
}); };
|
|
@@ -1468,7 +1468,7 @@ export var deserializeAws_restJson1SubmitJobCommand = function (output, context)
|
|
|
1468
1468
|
switch (_c.label) {
|
|
1469
1469
|
case 0:
|
|
1470
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
-
return [2
|
|
1471
|
+
return [2, deserializeAws_restJson1SubmitJobCommandError(output, context)];
|
|
1472
1472
|
}
|
|
1473
1473
|
contents = {
|
|
1474
1474
|
$metadata: deserializeMetadata(output),
|
|
@@ -1478,7 +1478,7 @@ export var deserializeAws_restJson1SubmitJobCommand = function (output, context)
|
|
|
1478
1478
|
};
|
|
1479
1479
|
_a = __expectNonNull;
|
|
1480
1480
|
_b = __expectObject;
|
|
1481
|
-
return [4
|
|
1481
|
+
return [4, parseBody(output.body, context)];
|
|
1482
1482
|
case 1:
|
|
1483
1483
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1484
1484
|
if (data.jobArn !== undefined && data.jobArn !== null) {
|
|
@@ -1490,7 +1490,7 @@ export var deserializeAws_restJson1SubmitJobCommand = function (output, context)
|
|
|
1490
1490
|
if (data.jobName !== undefined && data.jobName !== null) {
|
|
1491
1491
|
contents.jobName = __expectString(data.jobName);
|
|
1492
1492
|
}
|
|
1493
|
-
return [2
|
|
1493
|
+
return [2, Promise.resolve(contents)];
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
1496
|
}); };
|
|
@@ -1502,31 +1502,31 @@ var deserializeAws_restJson1SubmitJobCommandError = function (output, context) {
|
|
|
1502
1502
|
case 0:
|
|
1503
1503
|
_a = [__assign({}, output)];
|
|
1504
1504
|
_e = {};
|
|
1505
|
-
return [4
|
|
1505
|
+
return [4, parseBody(output.body, context)];
|
|
1506
1506
|
case 1:
|
|
1507
1507
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1508
1508
|
errorCode = "UnknownError";
|
|
1509
1509
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
1510
|
_b = errorCode;
|
|
1511
1511
|
switch (_b) {
|
|
1512
|
-
case "ClientException": return [3
|
|
1513
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1514
|
-
case "ServerException": return [3
|
|
1515
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1512
|
+
case "ClientException": return [3, 2];
|
|
1513
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1514
|
+
case "ServerException": return [3, 4];
|
|
1515
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1516
1516
|
}
|
|
1517
|
-
return [3
|
|
1517
|
+
return [3, 6];
|
|
1518
1518
|
case 2:
|
|
1519
1519
|
_c = [{}];
|
|
1520
|
-
return [4
|
|
1520
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1521
1521
|
case 3:
|
|
1522
1522
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1523
|
-
return [3
|
|
1523
|
+
return [3, 7];
|
|
1524
1524
|
case 4:
|
|
1525
1525
|
_d = [{}];
|
|
1526
|
-
return [4
|
|
1526
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1527
1527
|
case 5:
|
|
1528
1528
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1529
|
-
return [3
|
|
1529
|
+
return [3, 7];
|
|
1530
1530
|
case 6:
|
|
1531
1531
|
parsedBody = parsedOutput.body;
|
|
1532
1532
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1536,7 +1536,7 @@ var deserializeAws_restJson1SubmitJobCommandError = function (output, context) {
|
|
|
1536
1536
|
message = response.message || response.Message || errorCode;
|
|
1537
1537
|
response.message = message;
|
|
1538
1538
|
delete response.Message;
|
|
1539
|
-
return [2
|
|
1539
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1540
1540
|
}
|
|
1541
1541
|
});
|
|
1542
1542
|
}); };
|
|
@@ -1546,15 +1546,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1546
1546
|
switch (_a.label) {
|
|
1547
1547
|
case 0:
|
|
1548
1548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
-
return [2
|
|
1549
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1550
1550
|
}
|
|
1551
1551
|
contents = {
|
|
1552
1552
|
$metadata: deserializeMetadata(output),
|
|
1553
1553
|
};
|
|
1554
|
-
return [4
|
|
1554
|
+
return [4, collectBody(output.body, context)];
|
|
1555
1555
|
case 1:
|
|
1556
1556
|
_a.sent();
|
|
1557
|
-
return [2
|
|
1557
|
+
return [2, Promise.resolve(contents)];
|
|
1558
1558
|
}
|
|
1559
1559
|
});
|
|
1560
1560
|
}); };
|
|
@@ -1566,31 +1566,31 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1566
1566
|
case 0:
|
|
1567
1567
|
_a = [__assign({}, output)];
|
|
1568
1568
|
_e = {};
|
|
1569
|
-
return [4
|
|
1569
|
+
return [4, parseBody(output.body, context)];
|
|
1570
1570
|
case 1:
|
|
1571
1571
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1572
1572
|
errorCode = "UnknownError";
|
|
1573
1573
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1574
|
_b = errorCode;
|
|
1575
1575
|
switch (_b) {
|
|
1576
|
-
case "ClientException": return [3
|
|
1577
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1578
|
-
case "ServerException": return [3
|
|
1579
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1576
|
+
case "ClientException": return [3, 2];
|
|
1577
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1578
|
+
case "ServerException": return [3, 4];
|
|
1579
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1580
1580
|
}
|
|
1581
|
-
return [3
|
|
1581
|
+
return [3, 6];
|
|
1582
1582
|
case 2:
|
|
1583
1583
|
_c = [{}];
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1585
1585
|
case 3:
|
|
1586
1586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1587
|
-
return [3
|
|
1587
|
+
return [3, 7];
|
|
1588
1588
|
case 4:
|
|
1589
1589
|
_d = [{}];
|
|
1590
|
-
return [4
|
|
1590
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1591
1591
|
case 5:
|
|
1592
1592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
-
return [3
|
|
1593
|
+
return [3, 7];
|
|
1594
1594
|
case 6:
|
|
1595
1595
|
parsedBody = parsedOutput.body;
|
|
1596
1596
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1600,7 +1600,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1600
1600
|
message = response.message || response.Message || errorCode;
|
|
1601
1601
|
response.message = message;
|
|
1602
1602
|
delete response.Message;
|
|
1603
|
-
return [2
|
|
1603
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1604
1604
|
}
|
|
1605
1605
|
});
|
|
1606
1606
|
}); };
|
|
@@ -1610,15 +1610,15 @@ export var deserializeAws_restJson1TerminateJobCommand = function (output, conte
|
|
|
1610
1610
|
switch (_a.label) {
|
|
1611
1611
|
case 0:
|
|
1612
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1613
|
-
return [2
|
|
1613
|
+
return [2, deserializeAws_restJson1TerminateJobCommandError(output, context)];
|
|
1614
1614
|
}
|
|
1615
1615
|
contents = {
|
|
1616
1616
|
$metadata: deserializeMetadata(output),
|
|
1617
1617
|
};
|
|
1618
|
-
return [4
|
|
1618
|
+
return [4, collectBody(output.body, context)];
|
|
1619
1619
|
case 1:
|
|
1620
1620
|
_a.sent();
|
|
1621
|
-
return [2
|
|
1621
|
+
return [2, Promise.resolve(contents)];
|
|
1622
1622
|
}
|
|
1623
1623
|
});
|
|
1624
1624
|
}); };
|
|
@@ -1630,31 +1630,31 @@ var deserializeAws_restJson1TerminateJobCommandError = function (output, context
|
|
|
1630
1630
|
case 0:
|
|
1631
1631
|
_a = [__assign({}, output)];
|
|
1632
1632
|
_e = {};
|
|
1633
|
-
return [4
|
|
1633
|
+
return [4, parseBody(output.body, context)];
|
|
1634
1634
|
case 1:
|
|
1635
1635
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1636
1636
|
errorCode = "UnknownError";
|
|
1637
1637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
1638
|
_b = errorCode;
|
|
1639
1639
|
switch (_b) {
|
|
1640
|
-
case "ClientException": return [3
|
|
1641
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1642
|
-
case "ServerException": return [3
|
|
1643
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1640
|
+
case "ClientException": return [3, 2];
|
|
1641
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1642
|
+
case "ServerException": return [3, 4];
|
|
1643
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1644
1644
|
}
|
|
1645
|
-
return [3
|
|
1645
|
+
return [3, 6];
|
|
1646
1646
|
case 2:
|
|
1647
1647
|
_c = [{}];
|
|
1648
|
-
return [4
|
|
1648
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1649
1649
|
case 3:
|
|
1650
1650
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1651
|
-
return [3
|
|
1651
|
+
return [3, 7];
|
|
1652
1652
|
case 4:
|
|
1653
1653
|
_d = [{}];
|
|
1654
|
-
return [4
|
|
1654
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1655
1655
|
case 5:
|
|
1656
1656
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1657
|
-
return [3
|
|
1657
|
+
return [3, 7];
|
|
1658
1658
|
case 6:
|
|
1659
1659
|
parsedBody = parsedOutput.body;
|
|
1660
1660
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1664,7 +1664,7 @@ var deserializeAws_restJson1TerminateJobCommandError = function (output, context
|
|
|
1664
1664
|
message = response.message || response.Message || errorCode;
|
|
1665
1665
|
response.message = message;
|
|
1666
1666
|
delete response.Message;
|
|
1667
|
-
return [2
|
|
1667
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1668
1668
|
}
|
|
1669
1669
|
});
|
|
1670
1670
|
}); };
|
|
@@ -1674,15 +1674,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1674
1674
|
switch (_a.label) {
|
|
1675
1675
|
case 0:
|
|
1676
1676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1677
|
-
return [2
|
|
1677
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1678
1678
|
}
|
|
1679
1679
|
contents = {
|
|
1680
1680
|
$metadata: deserializeMetadata(output),
|
|
1681
1681
|
};
|
|
1682
|
-
return [4
|
|
1682
|
+
return [4, collectBody(output.body, context)];
|
|
1683
1683
|
case 1:
|
|
1684
1684
|
_a.sent();
|
|
1685
|
-
return [2
|
|
1685
|
+
return [2, Promise.resolve(contents)];
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
}); };
|
|
@@ -1694,31 +1694,31 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1694
1694
|
case 0:
|
|
1695
1695
|
_a = [__assign({}, output)];
|
|
1696
1696
|
_e = {};
|
|
1697
|
-
return [4
|
|
1697
|
+
return [4, parseBody(output.body, context)];
|
|
1698
1698
|
case 1:
|
|
1699
1699
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1700
1700
|
errorCode = "UnknownError";
|
|
1701
1701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
1702
|
_b = errorCode;
|
|
1703
1703
|
switch (_b) {
|
|
1704
|
-
case "ClientException": return [3
|
|
1705
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1706
|
-
case "ServerException": return [3
|
|
1707
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1704
|
+
case "ClientException": return [3, 2];
|
|
1705
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1706
|
+
case "ServerException": return [3, 4];
|
|
1707
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1708
1708
|
}
|
|
1709
|
-
return [3
|
|
1709
|
+
return [3, 6];
|
|
1710
1710
|
case 2:
|
|
1711
1711
|
_c = [{}];
|
|
1712
|
-
return [4
|
|
1712
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1713
1713
|
case 3:
|
|
1714
1714
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1715
|
-
return [3
|
|
1715
|
+
return [3, 7];
|
|
1716
1716
|
case 4:
|
|
1717
1717
|
_d = [{}];
|
|
1718
|
-
return [4
|
|
1718
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1719
1719
|
case 5:
|
|
1720
1720
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1721
|
-
return [3
|
|
1721
|
+
return [3, 7];
|
|
1722
1722
|
case 6:
|
|
1723
1723
|
parsedBody = parsedOutput.body;
|
|
1724
1724
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1728,7 +1728,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1728
1728
|
message = response.message || response.Message || errorCode;
|
|
1729
1729
|
response.message = message;
|
|
1730
1730
|
delete response.Message;
|
|
1731
|
-
return [2
|
|
1731
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1732
1732
|
}
|
|
1733
1733
|
});
|
|
1734
1734
|
}); };
|
|
@@ -1738,7 +1738,7 @@ export var deserializeAws_restJson1UpdateComputeEnvironmentCommand = function (o
|
|
|
1738
1738
|
switch (_c.label) {
|
|
1739
1739
|
case 0:
|
|
1740
1740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return [2
|
|
1741
|
+
return [2, deserializeAws_restJson1UpdateComputeEnvironmentCommandError(output, context)];
|
|
1742
1742
|
}
|
|
1743
1743
|
contents = {
|
|
1744
1744
|
$metadata: deserializeMetadata(output),
|
|
@@ -1747,7 +1747,7 @@ export var deserializeAws_restJson1UpdateComputeEnvironmentCommand = function (o
|
|
|
1747
1747
|
};
|
|
1748
1748
|
_a = __expectNonNull;
|
|
1749
1749
|
_b = __expectObject;
|
|
1750
|
-
return [4
|
|
1750
|
+
return [4, parseBody(output.body, context)];
|
|
1751
1751
|
case 1:
|
|
1752
1752
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1753
1753
|
if (data.computeEnvironmentArn !== undefined && data.computeEnvironmentArn !== null) {
|
|
@@ -1756,7 +1756,7 @@ export var deserializeAws_restJson1UpdateComputeEnvironmentCommand = function (o
|
|
|
1756
1756
|
if (data.computeEnvironmentName !== undefined && data.computeEnvironmentName !== null) {
|
|
1757
1757
|
contents.computeEnvironmentName = __expectString(data.computeEnvironmentName);
|
|
1758
1758
|
}
|
|
1759
|
-
return [2
|
|
1759
|
+
return [2, Promise.resolve(contents)];
|
|
1760
1760
|
}
|
|
1761
1761
|
});
|
|
1762
1762
|
}); };
|
|
@@ -1768,31 +1768,31 @@ var deserializeAws_restJson1UpdateComputeEnvironmentCommandError = function (out
|
|
|
1768
1768
|
case 0:
|
|
1769
1769
|
_a = [__assign({}, output)];
|
|
1770
1770
|
_e = {};
|
|
1771
|
-
return [4
|
|
1771
|
+
return [4, parseBody(output.body, context)];
|
|
1772
1772
|
case 1:
|
|
1773
1773
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1774
1774
|
errorCode = "UnknownError";
|
|
1775
1775
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
1776
|
_b = errorCode;
|
|
1777
1777
|
switch (_b) {
|
|
1778
|
-
case "ClientException": return [3
|
|
1779
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1780
|
-
case "ServerException": return [3
|
|
1781
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1778
|
+
case "ClientException": return [3, 2];
|
|
1779
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1780
|
+
case "ServerException": return [3, 4];
|
|
1781
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1782
1782
|
}
|
|
1783
|
-
return [3
|
|
1783
|
+
return [3, 6];
|
|
1784
1784
|
case 2:
|
|
1785
1785
|
_c = [{}];
|
|
1786
|
-
return [4
|
|
1786
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1787
1787
|
case 3:
|
|
1788
1788
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1789
|
-
return [3
|
|
1789
|
+
return [3, 7];
|
|
1790
1790
|
case 4:
|
|
1791
1791
|
_d = [{}];
|
|
1792
|
-
return [4
|
|
1792
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1793
1793
|
case 5:
|
|
1794
1794
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
-
return [3
|
|
1795
|
+
return [3, 7];
|
|
1796
1796
|
case 6:
|
|
1797
1797
|
parsedBody = parsedOutput.body;
|
|
1798
1798
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1802,7 +1802,7 @@ var deserializeAws_restJson1UpdateComputeEnvironmentCommandError = function (out
|
|
|
1802
1802
|
message = response.message || response.Message || errorCode;
|
|
1803
1803
|
response.message = message;
|
|
1804
1804
|
delete response.Message;
|
|
1805
|
-
return [2
|
|
1805
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1806
1806
|
}
|
|
1807
1807
|
});
|
|
1808
1808
|
}); };
|
|
@@ -1812,7 +1812,7 @@ export var deserializeAws_restJson1UpdateJobQueueCommand = function (output, con
|
|
|
1812
1812
|
switch (_c.label) {
|
|
1813
1813
|
case 0:
|
|
1814
1814
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
|
-
return [2
|
|
1815
|
+
return [2, deserializeAws_restJson1UpdateJobQueueCommandError(output, context)];
|
|
1816
1816
|
}
|
|
1817
1817
|
contents = {
|
|
1818
1818
|
$metadata: deserializeMetadata(output),
|
|
@@ -1821,7 +1821,7 @@ export var deserializeAws_restJson1UpdateJobQueueCommand = function (output, con
|
|
|
1821
1821
|
};
|
|
1822
1822
|
_a = __expectNonNull;
|
|
1823
1823
|
_b = __expectObject;
|
|
1824
|
-
return [4
|
|
1824
|
+
return [4, parseBody(output.body, context)];
|
|
1825
1825
|
case 1:
|
|
1826
1826
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1827
1827
|
if (data.jobQueueArn !== undefined && data.jobQueueArn !== null) {
|
|
@@ -1830,7 +1830,7 @@ export var deserializeAws_restJson1UpdateJobQueueCommand = function (output, con
|
|
|
1830
1830
|
if (data.jobQueueName !== undefined && data.jobQueueName !== null) {
|
|
1831
1831
|
contents.jobQueueName = __expectString(data.jobQueueName);
|
|
1832
1832
|
}
|
|
1833
|
-
return [2
|
|
1833
|
+
return [2, Promise.resolve(contents)];
|
|
1834
1834
|
}
|
|
1835
1835
|
});
|
|
1836
1836
|
}); };
|
|
@@ -1842,31 +1842,31 @@ var deserializeAws_restJson1UpdateJobQueueCommandError = function (output, conte
|
|
|
1842
1842
|
case 0:
|
|
1843
1843
|
_a = [__assign({}, output)];
|
|
1844
1844
|
_e = {};
|
|
1845
|
-
return [4
|
|
1845
|
+
return [4, parseBody(output.body, context)];
|
|
1846
1846
|
case 1:
|
|
1847
1847
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1848
1848
|
errorCode = "UnknownError";
|
|
1849
1849
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1850
|
_b = errorCode;
|
|
1851
1851
|
switch (_b) {
|
|
1852
|
-
case "ClientException": return [3
|
|
1853
|
-
case "com.amazonaws.batch#ClientException": return [3
|
|
1854
|
-
case "ServerException": return [3
|
|
1855
|
-
case "com.amazonaws.batch#ServerException": return [3
|
|
1852
|
+
case "ClientException": return [3, 2];
|
|
1853
|
+
case "com.amazonaws.batch#ClientException": return [3, 2];
|
|
1854
|
+
case "ServerException": return [3, 4];
|
|
1855
|
+
case "com.amazonaws.batch#ServerException": return [3, 4];
|
|
1856
1856
|
}
|
|
1857
|
-
return [3
|
|
1857
|
+
return [3, 6];
|
|
1858
1858
|
case 2:
|
|
1859
1859
|
_c = [{}];
|
|
1860
|
-
return [4
|
|
1860
|
+
return [4, deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context)];
|
|
1861
1861
|
case 3:
|
|
1862
1862
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1863
|
-
return [3
|
|
1863
|
+
return [3, 7];
|
|
1864
1864
|
case 4:
|
|
1865
1865
|
_d = [{}];
|
|
1866
|
-
return [4
|
|
1866
|
+
return [4, deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context)];
|
|
1867
1867
|
case 5:
|
|
1868
1868
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1869
|
-
return [3
|
|
1869
|
+
return [3, 7];
|
|
1870
1870
|
case 6:
|
|
1871
1871
|
parsedBody = parsedOutput.body;
|
|
1872
1872
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1876,7 +1876,7 @@ var deserializeAws_restJson1UpdateJobQueueCommandError = function (output, conte
|
|
|
1876
1876
|
message = response.message || response.Message || errorCode;
|
|
1877
1877
|
response.message = message;
|
|
1878
1878
|
delete response.Message;
|
|
1879
|
-
return [2
|
|
1879
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1880
1880
|
}
|
|
1881
1881
|
});
|
|
1882
1882
|
}); };
|
|
@@ -1893,7 +1893,7 @@ var deserializeAws_restJson1ClientExceptionResponse = function (parsedOutput, co
|
|
|
1893
1893
|
if (data.message !== undefined && data.message !== null) {
|
|
1894
1894
|
contents.message = __expectString(data.message);
|
|
1895
1895
|
}
|
|
1896
|
-
return [2
|
|
1896
|
+
return [2, contents];
|
|
1897
1897
|
});
|
|
1898
1898
|
}); };
|
|
1899
1899
|
var deserializeAws_restJson1ServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1909,7 +1909,7 @@ var deserializeAws_restJson1ServerExceptionResponse = function (parsedOutput, co
|
|
|
1909
1909
|
if (data.message !== undefined && data.message !== null) {
|
|
1910
1910
|
contents.message = __expectString(data.message);
|
|
1911
1911
|
}
|
|
1912
|
-
return [2
|
|
1912
|
+
return [2, contents];
|
|
1913
1913
|
});
|
|
1914
1914
|
}); };
|
|
1915
1915
|
var serializeAws_restJson1ArrayProperties = function (input, context) {
|
|
@@ -3124,7 +3124,6 @@ var deserializeMetadata = function (output) {
|
|
|
3124
3124
|
cfId: output.headers["x-amz-cf-id"],
|
|
3125
3125
|
});
|
|
3126
3126
|
};
|
|
3127
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3128
3127
|
var collectBody = function (streamBody, context) {
|
|
3129
3128
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3130
3129
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3132,7 +3131,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3132
3131
|
}
|
|
3133
3132
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3134
3133
|
};
|
|
3135
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3136
3134
|
var collectBodyString = function (streamBody, context) {
|
|
3137
3135
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3138
3136
|
};
|
|
@@ -3151,9 +3149,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3151
3149
|
return {};
|
|
3152
3150
|
});
|
|
3153
3151
|
};
|
|
3154
|
-
/**
|
|
3155
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3156
|
-
*/
|
|
3157
3152
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3158
3153
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3159
3154
|
var sanitizeErrorCode = function (rawValue) {
|