@aws-sdk/client-braket 3.303.0 → 3.309.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/dist-cjs/commands/CancelJobCommand.js +2 -2
- package/dist-cjs/commands/CancelQuantumTaskCommand.js +2 -2
- package/dist-cjs/commands/CreateJobCommand.js +2 -2
- package/dist-cjs/commands/CreateQuantumTaskCommand.js +2 -2
- package/dist-cjs/commands/GetDeviceCommand.js +2 -2
- package/dist-cjs/commands/GetJobCommand.js +2 -2
- package/dist-cjs/commands/GetQuantumTaskCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/SearchDevicesCommand.js +2 -2
- package/dist-cjs/commands/SearchJobsCommand.js +2 -2
- package/dist-cjs/commands/SearchQuantumTasksCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +244 -264
- package/dist-es/commands/CancelJobCommand.js +3 -3
- package/dist-es/commands/CancelQuantumTaskCommand.js +3 -3
- package/dist-es/commands/CreateJobCommand.js +3 -3
- package/dist-es/commands/CreateQuantumTaskCommand.js +3 -3
- package/dist-es/commands/GetDeviceCommand.js +3 -3
- package/dist-es/commands/GetJobCommand.js +3 -3
- package/dist-es/commands/GetQuantumTaskCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/SearchDevicesCommand.js +3 -3
- package/dist-es/commands/SearchJobsCommand.js +3 -3
- package/dist-es/commands/SearchQuantumTasksCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +217 -237
- package/dist-types/protocols/Aws_restJson1.d.ts +104 -26
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -26
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { BraketServiceException as __BaseException } from "../models/BraketServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, DeviceOfflineException, DeviceRetiredException, InternalServiceException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CancelJobCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {};
|
|
9
9
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job/{jobArn}/cancel";
|
|
@@ -19,7 +19,7 @@ export const serializeAws_restJson1CancelJobCommand = async (input, context) =>
|
|
|
19
19
|
body,
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
export const
|
|
22
|
+
export const se_CancelQuantumTaskCommand = async (input, context) => {
|
|
23
23
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/json",
|
|
@@ -40,7 +40,7 @@ export const serializeAws_restJson1CancelQuantumTaskCommand = async (input, cont
|
|
|
40
40
|
body,
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
export const
|
|
43
|
+
export const se_CreateJobCommand = async (input, context) => {
|
|
44
44
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
45
|
const headers = {
|
|
46
46
|
"content-type": "application/json",
|
|
@@ -49,33 +49,25 @@ export const serializeAws_restJson1CreateJobCommand = async (input, context) =>
|
|
|
49
49
|
let body;
|
|
50
50
|
body = JSON.stringify({
|
|
51
51
|
...(input.algorithmSpecification != null && {
|
|
52
|
-
algorithmSpecification:
|
|
52
|
+
algorithmSpecification: se_AlgorithmSpecification(input.algorithmSpecification, context),
|
|
53
53
|
}),
|
|
54
54
|
...(input.checkpointConfig != null && {
|
|
55
|
-
checkpointConfig:
|
|
55
|
+
checkpointConfig: se_JobCheckpointConfig(input.checkpointConfig, context),
|
|
56
56
|
}),
|
|
57
57
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
58
|
-
...(input.deviceConfig != null && {
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
...(input.
|
|
62
|
-
hyperParameters: serializeAws_restJson1HyperParameters(input.hyperParameters, context),
|
|
63
|
-
}),
|
|
64
|
-
...(input.inputDataConfig != null && {
|
|
65
|
-
inputDataConfig: serializeAws_restJson1InputConfigList(input.inputDataConfig, context),
|
|
66
|
-
}),
|
|
67
|
-
...(input.instanceConfig != null && {
|
|
68
|
-
instanceConfig: serializeAws_restJson1InstanceConfig(input.instanceConfig, context),
|
|
69
|
-
}),
|
|
58
|
+
...(input.deviceConfig != null && { deviceConfig: se_DeviceConfig(input.deviceConfig, context) }),
|
|
59
|
+
...(input.hyperParameters != null && { hyperParameters: se_HyperParameters(input.hyperParameters, context) }),
|
|
60
|
+
...(input.inputDataConfig != null && { inputDataConfig: se_InputConfigList(input.inputDataConfig, context) }),
|
|
61
|
+
...(input.instanceConfig != null && { instanceConfig: se_InstanceConfig(input.instanceConfig, context) }),
|
|
70
62
|
...(input.jobName != null && { jobName: input.jobName }),
|
|
71
63
|
...(input.outputDataConfig != null && {
|
|
72
|
-
outputDataConfig:
|
|
64
|
+
outputDataConfig: se_JobOutputDataConfig(input.outputDataConfig, context),
|
|
73
65
|
}),
|
|
74
66
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
75
67
|
...(input.stoppingCondition != null && {
|
|
76
|
-
stoppingCondition:
|
|
68
|
+
stoppingCondition: se_JobStoppingCondition(input.stoppingCondition, context),
|
|
77
69
|
}),
|
|
78
|
-
...(input.tags != null && { tags:
|
|
70
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
79
71
|
});
|
|
80
72
|
return new __HttpRequest({
|
|
81
73
|
protocol,
|
|
@@ -87,7 +79,7 @@ export const serializeAws_restJson1CreateJobCommand = async (input, context) =>
|
|
|
87
79
|
body,
|
|
88
80
|
});
|
|
89
81
|
};
|
|
90
|
-
export const
|
|
82
|
+
export const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
91
83
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
84
|
const headers = {
|
|
93
85
|
"content-type": "application/json",
|
|
@@ -103,7 +95,7 @@ export const serializeAws_restJson1CreateQuantumTaskCommand = async (input, cont
|
|
|
103
95
|
...(input.outputS3Bucket != null && { outputS3Bucket: input.outputS3Bucket }),
|
|
104
96
|
...(input.outputS3KeyPrefix != null && { outputS3KeyPrefix: input.outputS3KeyPrefix }),
|
|
105
97
|
...(input.shots != null && { shots: input.shots }),
|
|
106
|
-
...(input.tags != null && { tags:
|
|
98
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
107
99
|
});
|
|
108
100
|
return new __HttpRequest({
|
|
109
101
|
protocol,
|
|
@@ -115,7 +107,7 @@ export const serializeAws_restJson1CreateQuantumTaskCommand = async (input, cont
|
|
|
115
107
|
body,
|
|
116
108
|
});
|
|
117
109
|
};
|
|
118
|
-
export const
|
|
110
|
+
export const se_GetDeviceCommand = async (input, context) => {
|
|
119
111
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
112
|
const headers = {};
|
|
121
113
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device/{deviceArn}";
|
|
@@ -131,7 +123,7 @@ export const serializeAws_restJson1GetDeviceCommand = async (input, context) =>
|
|
|
131
123
|
body,
|
|
132
124
|
});
|
|
133
125
|
};
|
|
134
|
-
export const
|
|
126
|
+
export const se_GetJobCommand = async (input, context) => {
|
|
135
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
128
|
const headers = {};
|
|
137
129
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/job/{jobArn}";
|
|
@@ -147,7 +139,7 @@ export const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
|
147
139
|
body,
|
|
148
140
|
});
|
|
149
141
|
};
|
|
150
|
-
export const
|
|
142
|
+
export const se_GetQuantumTaskCommand = async (input, context) => {
|
|
151
143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
144
|
const headers = {};
|
|
153
145
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-task/{quantumTaskArn}";
|
|
@@ -163,7 +155,7 @@ export const serializeAws_restJson1GetQuantumTaskCommand = async (input, context
|
|
|
163
155
|
body,
|
|
164
156
|
});
|
|
165
157
|
};
|
|
166
|
-
export const
|
|
158
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
167
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
160
|
const headers = {};
|
|
169
161
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -179,7 +171,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
179
171
|
body,
|
|
180
172
|
});
|
|
181
173
|
};
|
|
182
|
-
export const
|
|
174
|
+
export const se_SearchDevicesCommand = async (input, context) => {
|
|
183
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
184
176
|
const headers = {
|
|
185
177
|
"content-type": "application/json",
|
|
@@ -187,7 +179,7 @@ export const serializeAws_restJson1SearchDevicesCommand = async (input, context)
|
|
|
187
179
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/devices";
|
|
188
180
|
let body;
|
|
189
181
|
body = JSON.stringify({
|
|
190
|
-
...(input.filters != null && { filters:
|
|
182
|
+
...(input.filters != null && { filters: se_SearchDevicesFilterList(input.filters, context) }),
|
|
191
183
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
192
184
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
193
185
|
});
|
|
@@ -201,7 +193,7 @@ export const serializeAws_restJson1SearchDevicesCommand = async (input, context)
|
|
|
201
193
|
body,
|
|
202
194
|
});
|
|
203
195
|
};
|
|
204
|
-
export const
|
|
196
|
+
export const se_SearchJobsCommand = async (input, context) => {
|
|
205
197
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
206
198
|
const headers = {
|
|
207
199
|
"content-type": "application/json",
|
|
@@ -209,7 +201,7 @@ export const serializeAws_restJson1SearchJobsCommand = async (input, context) =>
|
|
|
209
201
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
210
202
|
let body;
|
|
211
203
|
body = JSON.stringify({
|
|
212
|
-
...(input.filters != null && { filters:
|
|
204
|
+
...(input.filters != null && { filters: se_SearchJobsFilterList(input.filters, context) }),
|
|
213
205
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
214
206
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
215
207
|
});
|
|
@@ -223,7 +215,7 @@ export const serializeAws_restJson1SearchJobsCommand = async (input, context) =>
|
|
|
223
215
|
body,
|
|
224
216
|
});
|
|
225
217
|
};
|
|
226
|
-
export const
|
|
218
|
+
export const se_SearchQuantumTasksCommand = async (input, context) => {
|
|
227
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
228
220
|
const headers = {
|
|
229
221
|
"content-type": "application/json",
|
|
@@ -231,9 +223,7 @@ export const serializeAws_restJson1SearchQuantumTasksCommand = async (input, con
|
|
|
231
223
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-tasks";
|
|
232
224
|
let body;
|
|
233
225
|
body = JSON.stringify({
|
|
234
|
-
...(input.filters != null && {
|
|
235
|
-
filters: serializeAws_restJson1SearchQuantumTasksFilterList(input.filters, context),
|
|
236
|
-
}),
|
|
226
|
+
...(input.filters != null && { filters: se_SearchQuantumTasksFilterList(input.filters, context) }),
|
|
237
227
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
238
228
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
239
229
|
});
|
|
@@ -247,7 +237,7 @@ export const serializeAws_restJson1SearchQuantumTasksCommand = async (input, con
|
|
|
247
237
|
body,
|
|
248
238
|
});
|
|
249
239
|
};
|
|
250
|
-
export const
|
|
240
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
251
241
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
242
|
const headers = {
|
|
253
243
|
"content-type": "application/json",
|
|
@@ -256,7 +246,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
256
246
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
257
247
|
let body;
|
|
258
248
|
body = JSON.stringify({
|
|
259
|
-
...(input.tags != null && { tags:
|
|
249
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
260
250
|
});
|
|
261
251
|
return new __HttpRequest({
|
|
262
252
|
protocol,
|
|
@@ -268,7 +258,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
268
258
|
body,
|
|
269
259
|
});
|
|
270
260
|
};
|
|
271
|
-
export const
|
|
261
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
272
262
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
263
|
const headers = {};
|
|
274
264
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -291,9 +281,9 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
291
281
|
body,
|
|
292
282
|
});
|
|
293
283
|
};
|
|
294
|
-
export const
|
|
284
|
+
export const de_CancelJobCommand = async (output, context) => {
|
|
295
285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
296
|
-
return
|
|
286
|
+
return de_CancelJobCommandError(output, context);
|
|
297
287
|
}
|
|
298
288
|
const contents = map({
|
|
299
289
|
$metadata: deserializeMetadata(output),
|
|
@@ -307,7 +297,7 @@ export const deserializeAws_restJson1CancelJobCommand = async (output, context)
|
|
|
307
297
|
}
|
|
308
298
|
return contents;
|
|
309
299
|
};
|
|
310
|
-
const
|
|
300
|
+
const de_CancelJobCommandError = async (output, context) => {
|
|
311
301
|
const parsedOutput = {
|
|
312
302
|
...output,
|
|
313
303
|
body: await parseErrorBody(output.body, context),
|
|
@@ -316,22 +306,22 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
316
306
|
switch (errorCode) {
|
|
317
307
|
case "AccessDeniedException":
|
|
318
308
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
319
|
-
throw await
|
|
309
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
320
310
|
case "ConflictException":
|
|
321
311
|
case "com.amazonaws.braket#ConflictException":
|
|
322
|
-
throw await
|
|
312
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
323
313
|
case "InternalServiceException":
|
|
324
314
|
case "com.amazonaws.braket#InternalServiceException":
|
|
325
|
-
throw await
|
|
315
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
326
316
|
case "ResourceNotFoundException":
|
|
327
317
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
328
|
-
throw await
|
|
318
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
329
319
|
case "ThrottlingException":
|
|
330
320
|
case "com.amazonaws.braket#ThrottlingException":
|
|
331
|
-
throw await
|
|
321
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
332
322
|
case "ValidationException":
|
|
333
323
|
case "com.amazonaws.braket#ValidationException":
|
|
334
|
-
throw await
|
|
324
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
335
325
|
default:
|
|
336
326
|
const parsedBody = parsedOutput.body;
|
|
337
327
|
throwDefaultError({
|
|
@@ -342,9 +332,9 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
342
332
|
});
|
|
343
333
|
}
|
|
344
334
|
};
|
|
345
|
-
export const
|
|
335
|
+
export const de_CancelQuantumTaskCommand = async (output, context) => {
|
|
346
336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
|
-
return
|
|
337
|
+
return de_CancelQuantumTaskCommandError(output, context);
|
|
348
338
|
}
|
|
349
339
|
const contents = map({
|
|
350
340
|
$metadata: deserializeMetadata(output),
|
|
@@ -358,7 +348,7 @@ export const deserializeAws_restJson1CancelQuantumTaskCommand = async (output, c
|
|
|
358
348
|
}
|
|
359
349
|
return contents;
|
|
360
350
|
};
|
|
361
|
-
const
|
|
351
|
+
const de_CancelQuantumTaskCommandError = async (output, context) => {
|
|
362
352
|
const parsedOutput = {
|
|
363
353
|
...output,
|
|
364
354
|
body: await parseErrorBody(output.body, context),
|
|
@@ -367,22 +357,22 @@ const deserializeAws_restJson1CancelQuantumTaskCommandError = async (output, con
|
|
|
367
357
|
switch (errorCode) {
|
|
368
358
|
case "AccessDeniedException":
|
|
369
359
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
370
|
-
throw await
|
|
360
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
371
361
|
case "ConflictException":
|
|
372
362
|
case "com.amazonaws.braket#ConflictException":
|
|
373
|
-
throw await
|
|
363
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
374
364
|
case "InternalServiceException":
|
|
375
365
|
case "com.amazonaws.braket#InternalServiceException":
|
|
376
|
-
throw await
|
|
366
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
377
367
|
case "ResourceNotFoundException":
|
|
378
368
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
379
|
-
throw await
|
|
369
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
380
370
|
case "ThrottlingException":
|
|
381
371
|
case "com.amazonaws.braket#ThrottlingException":
|
|
382
|
-
throw await
|
|
372
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
383
373
|
case "ValidationException":
|
|
384
374
|
case "com.amazonaws.braket#ValidationException":
|
|
385
|
-
throw await
|
|
375
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
386
376
|
default:
|
|
387
377
|
const parsedBody = parsedOutput.body;
|
|
388
378
|
throwDefaultError({
|
|
@@ -393,9 +383,9 @@ const deserializeAws_restJson1CancelQuantumTaskCommandError = async (output, con
|
|
|
393
383
|
});
|
|
394
384
|
}
|
|
395
385
|
};
|
|
396
|
-
export const
|
|
386
|
+
export const de_CreateJobCommand = async (output, context) => {
|
|
397
387
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
398
|
-
return
|
|
388
|
+
return de_CreateJobCommandError(output, context);
|
|
399
389
|
}
|
|
400
390
|
const contents = map({
|
|
401
391
|
$metadata: deserializeMetadata(output),
|
|
@@ -406,7 +396,7 @@ export const deserializeAws_restJson1CreateJobCommand = async (output, context)
|
|
|
406
396
|
}
|
|
407
397
|
return contents;
|
|
408
398
|
};
|
|
409
|
-
const
|
|
399
|
+
const de_CreateJobCommandError = async (output, context) => {
|
|
410
400
|
const parsedOutput = {
|
|
411
401
|
...output,
|
|
412
402
|
body: await parseErrorBody(output.body, context),
|
|
@@ -415,25 +405,25 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
415
405
|
switch (errorCode) {
|
|
416
406
|
case "AccessDeniedException":
|
|
417
407
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
418
|
-
throw await
|
|
408
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
419
409
|
case "ConflictException":
|
|
420
410
|
case "com.amazonaws.braket#ConflictException":
|
|
421
|
-
throw await
|
|
411
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
422
412
|
case "DeviceRetiredException":
|
|
423
413
|
case "com.amazonaws.braket#DeviceRetiredException":
|
|
424
|
-
throw await
|
|
414
|
+
throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
|
|
425
415
|
case "InternalServiceException":
|
|
426
416
|
case "com.amazonaws.braket#InternalServiceException":
|
|
427
|
-
throw await
|
|
417
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
428
418
|
case "ServiceQuotaExceededException":
|
|
429
419
|
case "com.amazonaws.braket#ServiceQuotaExceededException":
|
|
430
|
-
throw await
|
|
420
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
431
421
|
case "ThrottlingException":
|
|
432
422
|
case "com.amazonaws.braket#ThrottlingException":
|
|
433
|
-
throw await
|
|
423
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
434
424
|
case "ValidationException":
|
|
435
425
|
case "com.amazonaws.braket#ValidationException":
|
|
436
|
-
throw await
|
|
426
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
437
427
|
default:
|
|
438
428
|
const parsedBody = parsedOutput.body;
|
|
439
429
|
throwDefaultError({
|
|
@@ -444,9 +434,9 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
444
434
|
});
|
|
445
435
|
}
|
|
446
436
|
};
|
|
447
|
-
export const
|
|
437
|
+
export const de_CreateQuantumTaskCommand = async (output, context) => {
|
|
448
438
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
449
|
-
return
|
|
439
|
+
return de_CreateQuantumTaskCommandError(output, context);
|
|
450
440
|
}
|
|
451
441
|
const contents = map({
|
|
452
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -457,7 +447,7 @@ export const deserializeAws_restJson1CreateQuantumTaskCommand = async (output, c
|
|
|
457
447
|
}
|
|
458
448
|
return contents;
|
|
459
449
|
};
|
|
460
|
-
const
|
|
450
|
+
const de_CreateQuantumTaskCommandError = async (output, context) => {
|
|
461
451
|
const parsedOutput = {
|
|
462
452
|
...output,
|
|
463
453
|
body: await parseErrorBody(output.body, context),
|
|
@@ -466,25 +456,25 @@ const deserializeAws_restJson1CreateQuantumTaskCommandError = async (output, con
|
|
|
466
456
|
switch (errorCode) {
|
|
467
457
|
case "AccessDeniedException":
|
|
468
458
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
469
|
-
throw await
|
|
459
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
470
460
|
case "DeviceOfflineException":
|
|
471
461
|
case "com.amazonaws.braket#DeviceOfflineException":
|
|
472
|
-
throw await
|
|
462
|
+
throw await de_DeviceOfflineExceptionRes(parsedOutput, context);
|
|
473
463
|
case "DeviceRetiredException":
|
|
474
464
|
case "com.amazonaws.braket#DeviceRetiredException":
|
|
475
|
-
throw await
|
|
465
|
+
throw await de_DeviceRetiredExceptionRes(parsedOutput, context);
|
|
476
466
|
case "InternalServiceException":
|
|
477
467
|
case "com.amazonaws.braket#InternalServiceException":
|
|
478
|
-
throw await
|
|
468
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
479
469
|
case "ServiceQuotaExceededException":
|
|
480
470
|
case "com.amazonaws.braket#ServiceQuotaExceededException":
|
|
481
|
-
throw await
|
|
471
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
482
472
|
case "ThrottlingException":
|
|
483
473
|
case "com.amazonaws.braket#ThrottlingException":
|
|
484
|
-
throw await
|
|
474
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
485
475
|
case "ValidationException":
|
|
486
476
|
case "com.amazonaws.braket#ValidationException":
|
|
487
|
-
throw await
|
|
477
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
488
478
|
default:
|
|
489
479
|
const parsedBody = parsedOutput.body;
|
|
490
480
|
throwDefaultError({
|
|
@@ -495,9 +485,9 @@ const deserializeAws_restJson1CreateQuantumTaskCommandError = async (output, con
|
|
|
495
485
|
});
|
|
496
486
|
}
|
|
497
487
|
};
|
|
498
|
-
export const
|
|
488
|
+
export const de_GetDeviceCommand = async (output, context) => {
|
|
499
489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
500
|
-
return
|
|
490
|
+
return de_GetDeviceCommandError(output, context);
|
|
501
491
|
}
|
|
502
492
|
const contents = map({
|
|
503
493
|
$metadata: deserializeMetadata(output),
|
|
@@ -523,7 +513,7 @@ export const deserializeAws_restJson1GetDeviceCommand = async (output, context)
|
|
|
523
513
|
}
|
|
524
514
|
return contents;
|
|
525
515
|
};
|
|
526
|
-
const
|
|
516
|
+
const de_GetDeviceCommandError = async (output, context) => {
|
|
527
517
|
const parsedOutput = {
|
|
528
518
|
...output,
|
|
529
519
|
body: await parseErrorBody(output.body, context),
|
|
@@ -532,19 +522,19 @@ const deserializeAws_restJson1GetDeviceCommandError = async (output, context) =>
|
|
|
532
522
|
switch (errorCode) {
|
|
533
523
|
case "AccessDeniedException":
|
|
534
524
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
535
|
-
throw await
|
|
525
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
536
526
|
case "InternalServiceException":
|
|
537
527
|
case "com.amazonaws.braket#InternalServiceException":
|
|
538
|
-
throw await
|
|
528
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
539
529
|
case "ResourceNotFoundException":
|
|
540
530
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
541
|
-
throw await
|
|
531
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
542
532
|
case "ThrottlingException":
|
|
543
533
|
case "com.amazonaws.braket#ThrottlingException":
|
|
544
|
-
throw await
|
|
534
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
545
535
|
case "ValidationException":
|
|
546
536
|
case "com.amazonaws.braket#ValidationException":
|
|
547
|
-
throw await
|
|
537
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
548
538
|
default:
|
|
549
539
|
const parsedBody = parsedOutput.body;
|
|
550
540
|
throwDefaultError({
|
|
@@ -555,46 +545,46 @@ const deserializeAws_restJson1GetDeviceCommandError = async (output, context) =>
|
|
|
555
545
|
});
|
|
556
546
|
}
|
|
557
547
|
};
|
|
558
|
-
export const
|
|
548
|
+
export const de_GetJobCommand = async (output, context) => {
|
|
559
549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
560
|
-
return
|
|
550
|
+
return de_GetJobCommandError(output, context);
|
|
561
551
|
}
|
|
562
552
|
const contents = map({
|
|
563
553
|
$metadata: deserializeMetadata(output),
|
|
564
554
|
});
|
|
565
555
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
566
556
|
if (data.algorithmSpecification != null) {
|
|
567
|
-
contents.algorithmSpecification =
|
|
557
|
+
contents.algorithmSpecification = de_AlgorithmSpecification(data.algorithmSpecification, context);
|
|
568
558
|
}
|
|
569
559
|
if (data.billableDuration != null) {
|
|
570
560
|
contents.billableDuration = __expectInt32(data.billableDuration);
|
|
571
561
|
}
|
|
572
562
|
if (data.checkpointConfig != null) {
|
|
573
|
-
contents.checkpointConfig =
|
|
563
|
+
contents.checkpointConfig = de_JobCheckpointConfig(data.checkpointConfig, context);
|
|
574
564
|
}
|
|
575
565
|
if (data.createdAt != null) {
|
|
576
566
|
contents.createdAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.createdAt));
|
|
577
567
|
}
|
|
578
568
|
if (data.deviceConfig != null) {
|
|
579
|
-
contents.deviceConfig =
|
|
569
|
+
contents.deviceConfig = de_DeviceConfig(data.deviceConfig, context);
|
|
580
570
|
}
|
|
581
571
|
if (data.endedAt != null) {
|
|
582
572
|
contents.endedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.endedAt));
|
|
583
573
|
}
|
|
584
574
|
if (data.events != null) {
|
|
585
|
-
contents.events =
|
|
575
|
+
contents.events = de_JobEvents(data.events, context);
|
|
586
576
|
}
|
|
587
577
|
if (data.failureReason != null) {
|
|
588
578
|
contents.failureReason = __expectString(data.failureReason);
|
|
589
579
|
}
|
|
590
580
|
if (data.hyperParameters != null) {
|
|
591
|
-
contents.hyperParameters =
|
|
581
|
+
contents.hyperParameters = de_HyperParameters(data.hyperParameters, context);
|
|
592
582
|
}
|
|
593
583
|
if (data.inputDataConfig != null) {
|
|
594
|
-
contents.inputDataConfig =
|
|
584
|
+
contents.inputDataConfig = de_InputConfigList(data.inputDataConfig, context);
|
|
595
585
|
}
|
|
596
586
|
if (data.instanceConfig != null) {
|
|
597
|
-
contents.instanceConfig =
|
|
587
|
+
contents.instanceConfig = de_InstanceConfig(data.instanceConfig, context);
|
|
598
588
|
}
|
|
599
589
|
if (data.jobArn != null) {
|
|
600
590
|
contents.jobArn = __expectString(data.jobArn);
|
|
@@ -603,7 +593,7 @@ export const deserializeAws_restJson1GetJobCommand = async (output, context) =>
|
|
|
603
593
|
contents.jobName = __expectString(data.jobName);
|
|
604
594
|
}
|
|
605
595
|
if (data.outputDataConfig != null) {
|
|
606
|
-
contents.outputDataConfig =
|
|
596
|
+
contents.outputDataConfig = de_JobOutputDataConfig(data.outputDataConfig, context);
|
|
607
597
|
}
|
|
608
598
|
if (data.roleArn != null) {
|
|
609
599
|
contents.roleArn = __expectString(data.roleArn);
|
|
@@ -615,14 +605,14 @@ export const deserializeAws_restJson1GetJobCommand = async (output, context) =>
|
|
|
615
605
|
contents.status = __expectString(data.status);
|
|
616
606
|
}
|
|
617
607
|
if (data.stoppingCondition != null) {
|
|
618
|
-
contents.stoppingCondition =
|
|
608
|
+
contents.stoppingCondition = de_JobStoppingCondition(data.stoppingCondition, context);
|
|
619
609
|
}
|
|
620
610
|
if (data.tags != null) {
|
|
621
|
-
contents.tags =
|
|
611
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
622
612
|
}
|
|
623
613
|
return contents;
|
|
624
614
|
};
|
|
625
|
-
const
|
|
615
|
+
const de_GetJobCommandError = async (output, context) => {
|
|
626
616
|
const parsedOutput = {
|
|
627
617
|
...output,
|
|
628
618
|
body: await parseErrorBody(output.body, context),
|
|
@@ -631,19 +621,19 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
631
621
|
switch (errorCode) {
|
|
632
622
|
case "AccessDeniedException":
|
|
633
623
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
634
|
-
throw await
|
|
624
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
635
625
|
case "InternalServiceException":
|
|
636
626
|
case "com.amazonaws.braket#InternalServiceException":
|
|
637
|
-
throw await
|
|
627
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
638
628
|
case "ResourceNotFoundException":
|
|
639
629
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
640
|
-
throw await
|
|
630
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
641
631
|
case "ThrottlingException":
|
|
642
632
|
case "com.amazonaws.braket#ThrottlingException":
|
|
643
|
-
throw await
|
|
633
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
644
634
|
case "ValidationException":
|
|
645
635
|
case "com.amazonaws.braket#ValidationException":
|
|
646
|
-
throw await
|
|
636
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
647
637
|
default:
|
|
648
638
|
const parsedBody = parsedOutput.body;
|
|
649
639
|
throwDefaultError({
|
|
@@ -654,9 +644,9 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
654
644
|
});
|
|
655
645
|
}
|
|
656
646
|
};
|
|
657
|
-
export const
|
|
647
|
+
export const de_GetQuantumTaskCommand = async (output, context) => {
|
|
658
648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
659
|
-
return
|
|
649
|
+
return de_GetQuantumTaskCommandError(output, context);
|
|
660
650
|
}
|
|
661
651
|
const contents = map({
|
|
662
652
|
$metadata: deserializeMetadata(output),
|
|
@@ -696,11 +686,11 @@ export const deserializeAws_restJson1GetQuantumTaskCommand = async (output, cont
|
|
|
696
686
|
contents.status = __expectString(data.status);
|
|
697
687
|
}
|
|
698
688
|
if (data.tags != null) {
|
|
699
|
-
contents.tags =
|
|
689
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
700
690
|
}
|
|
701
691
|
return contents;
|
|
702
692
|
};
|
|
703
|
-
const
|
|
693
|
+
const de_GetQuantumTaskCommandError = async (output, context) => {
|
|
704
694
|
const parsedOutput = {
|
|
705
695
|
...output,
|
|
706
696
|
body: await parseErrorBody(output.body, context),
|
|
@@ -709,19 +699,19 @@ const deserializeAws_restJson1GetQuantumTaskCommandError = async (output, contex
|
|
|
709
699
|
switch (errorCode) {
|
|
710
700
|
case "AccessDeniedException":
|
|
711
701
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
712
|
-
throw await
|
|
702
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
703
|
case "InternalServiceException":
|
|
714
704
|
case "com.amazonaws.braket#InternalServiceException":
|
|
715
|
-
throw await
|
|
705
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
716
706
|
case "ResourceNotFoundException":
|
|
717
707
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
718
|
-
throw await
|
|
708
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
709
|
case "ThrottlingException":
|
|
720
710
|
case "com.amazonaws.braket#ThrottlingException":
|
|
721
|
-
throw await
|
|
711
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
712
|
case "ValidationException":
|
|
723
713
|
case "com.amazonaws.braket#ValidationException":
|
|
724
|
-
throw await
|
|
714
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
715
|
default:
|
|
726
716
|
const parsedBody = parsedOutput.body;
|
|
727
717
|
throwDefaultError({
|
|
@@ -732,20 +722,20 @@ const deserializeAws_restJson1GetQuantumTaskCommandError = async (output, contex
|
|
|
732
722
|
});
|
|
733
723
|
}
|
|
734
724
|
};
|
|
735
|
-
export const
|
|
725
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
736
726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return
|
|
727
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
738
728
|
}
|
|
739
729
|
const contents = map({
|
|
740
730
|
$metadata: deserializeMetadata(output),
|
|
741
731
|
});
|
|
742
732
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
743
733
|
if (data.tags != null) {
|
|
744
|
-
contents.tags =
|
|
734
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
745
735
|
}
|
|
746
736
|
return contents;
|
|
747
737
|
};
|
|
748
|
-
const
|
|
738
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
749
739
|
const parsedOutput = {
|
|
750
740
|
...output,
|
|
751
741
|
body: await parseErrorBody(output.body, context),
|
|
@@ -754,13 +744,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
754
744
|
switch (errorCode) {
|
|
755
745
|
case "InternalServiceException":
|
|
756
746
|
case "com.amazonaws.braket#InternalServiceException":
|
|
757
|
-
throw await
|
|
747
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
758
748
|
case "ResourceNotFoundException":
|
|
759
749
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
760
|
-
throw await
|
|
750
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
761
751
|
case "ValidationException":
|
|
762
752
|
case "com.amazonaws.braket#ValidationException":
|
|
763
|
-
throw await
|
|
753
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
764
754
|
default:
|
|
765
755
|
const parsedBody = parsedOutput.body;
|
|
766
756
|
throwDefaultError({
|
|
@@ -771,23 +761,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
771
761
|
});
|
|
772
762
|
}
|
|
773
763
|
};
|
|
774
|
-
export const
|
|
764
|
+
export const de_SearchDevicesCommand = async (output, context) => {
|
|
775
765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return
|
|
766
|
+
return de_SearchDevicesCommandError(output, context);
|
|
777
767
|
}
|
|
778
768
|
const contents = map({
|
|
779
769
|
$metadata: deserializeMetadata(output),
|
|
780
770
|
});
|
|
781
771
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
782
772
|
if (data.devices != null) {
|
|
783
|
-
contents.devices =
|
|
773
|
+
contents.devices = de_DeviceSummaryList(data.devices, context);
|
|
784
774
|
}
|
|
785
775
|
if (data.nextToken != null) {
|
|
786
776
|
contents.nextToken = __expectString(data.nextToken);
|
|
787
777
|
}
|
|
788
778
|
return contents;
|
|
789
779
|
};
|
|
790
|
-
const
|
|
780
|
+
const de_SearchDevicesCommandError = async (output, context) => {
|
|
791
781
|
const parsedOutput = {
|
|
792
782
|
...output,
|
|
793
783
|
body: await parseErrorBody(output.body, context),
|
|
@@ -796,16 +786,16 @@ const deserializeAws_restJson1SearchDevicesCommandError = async (output, context
|
|
|
796
786
|
switch (errorCode) {
|
|
797
787
|
case "AccessDeniedException":
|
|
798
788
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
799
|
-
throw await
|
|
789
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
800
790
|
case "InternalServiceException":
|
|
801
791
|
case "com.amazonaws.braket#InternalServiceException":
|
|
802
|
-
throw await
|
|
792
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
803
793
|
case "ThrottlingException":
|
|
804
794
|
case "com.amazonaws.braket#ThrottlingException":
|
|
805
|
-
throw await
|
|
795
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
806
796
|
case "ValidationException":
|
|
807
797
|
case "com.amazonaws.braket#ValidationException":
|
|
808
|
-
throw await
|
|
798
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
809
799
|
default:
|
|
810
800
|
const parsedBody = parsedOutput.body;
|
|
811
801
|
throwDefaultError({
|
|
@@ -816,23 +806,23 @@ const deserializeAws_restJson1SearchDevicesCommandError = async (output, context
|
|
|
816
806
|
});
|
|
817
807
|
}
|
|
818
808
|
};
|
|
819
|
-
export const
|
|
809
|
+
export const de_SearchJobsCommand = async (output, context) => {
|
|
820
810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
821
|
-
return
|
|
811
|
+
return de_SearchJobsCommandError(output, context);
|
|
822
812
|
}
|
|
823
813
|
const contents = map({
|
|
824
814
|
$metadata: deserializeMetadata(output),
|
|
825
815
|
});
|
|
826
816
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
827
817
|
if (data.jobs != null) {
|
|
828
|
-
contents.jobs =
|
|
818
|
+
contents.jobs = de_JobSummaryList(data.jobs, context);
|
|
829
819
|
}
|
|
830
820
|
if (data.nextToken != null) {
|
|
831
821
|
contents.nextToken = __expectString(data.nextToken);
|
|
832
822
|
}
|
|
833
823
|
return contents;
|
|
834
824
|
};
|
|
835
|
-
const
|
|
825
|
+
const de_SearchJobsCommandError = async (output, context) => {
|
|
836
826
|
const parsedOutput = {
|
|
837
827
|
...output,
|
|
838
828
|
body: await parseErrorBody(output.body, context),
|
|
@@ -841,16 +831,16 @@ const deserializeAws_restJson1SearchJobsCommandError = async (output, context) =
|
|
|
841
831
|
switch (errorCode) {
|
|
842
832
|
case "AccessDeniedException":
|
|
843
833
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
844
|
-
throw await
|
|
834
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
845
835
|
case "InternalServiceException":
|
|
846
836
|
case "com.amazonaws.braket#InternalServiceException":
|
|
847
|
-
throw await
|
|
837
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
848
838
|
case "ThrottlingException":
|
|
849
839
|
case "com.amazonaws.braket#ThrottlingException":
|
|
850
|
-
throw await
|
|
840
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
851
841
|
case "ValidationException":
|
|
852
842
|
case "com.amazonaws.braket#ValidationException":
|
|
853
|
-
throw await
|
|
843
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
854
844
|
default:
|
|
855
845
|
const parsedBody = parsedOutput.body;
|
|
856
846
|
throwDefaultError({
|
|
@@ -861,9 +851,9 @@ const deserializeAws_restJson1SearchJobsCommandError = async (output, context) =
|
|
|
861
851
|
});
|
|
862
852
|
}
|
|
863
853
|
};
|
|
864
|
-
export const
|
|
854
|
+
export const de_SearchQuantumTasksCommand = async (output, context) => {
|
|
865
855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return
|
|
856
|
+
return de_SearchQuantumTasksCommandError(output, context);
|
|
867
857
|
}
|
|
868
858
|
const contents = map({
|
|
869
859
|
$metadata: deserializeMetadata(output),
|
|
@@ -873,11 +863,11 @@ export const deserializeAws_restJson1SearchQuantumTasksCommand = async (output,
|
|
|
873
863
|
contents.nextToken = __expectString(data.nextToken);
|
|
874
864
|
}
|
|
875
865
|
if (data.quantumTasks != null) {
|
|
876
|
-
contents.quantumTasks =
|
|
866
|
+
contents.quantumTasks = de_QuantumTaskSummaryList(data.quantumTasks, context);
|
|
877
867
|
}
|
|
878
868
|
return contents;
|
|
879
869
|
};
|
|
880
|
-
const
|
|
870
|
+
const de_SearchQuantumTasksCommandError = async (output, context) => {
|
|
881
871
|
const parsedOutput = {
|
|
882
872
|
...output,
|
|
883
873
|
body: await parseErrorBody(output.body, context),
|
|
@@ -886,16 +876,16 @@ const deserializeAws_restJson1SearchQuantumTasksCommandError = async (output, co
|
|
|
886
876
|
switch (errorCode) {
|
|
887
877
|
case "AccessDeniedException":
|
|
888
878
|
case "com.amazonaws.braket#AccessDeniedException":
|
|
889
|
-
throw await
|
|
879
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
890
880
|
case "InternalServiceException":
|
|
891
881
|
case "com.amazonaws.braket#InternalServiceException":
|
|
892
|
-
throw await
|
|
882
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
893
883
|
case "ThrottlingException":
|
|
894
884
|
case "com.amazonaws.braket#ThrottlingException":
|
|
895
|
-
throw await
|
|
885
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
896
886
|
case "ValidationException":
|
|
897
887
|
case "com.amazonaws.braket#ValidationException":
|
|
898
|
-
throw await
|
|
888
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
899
889
|
default:
|
|
900
890
|
const parsedBody = parsedOutput.body;
|
|
901
891
|
throwDefaultError({
|
|
@@ -906,9 +896,9 @@ const deserializeAws_restJson1SearchQuantumTasksCommandError = async (output, co
|
|
|
906
896
|
});
|
|
907
897
|
}
|
|
908
898
|
};
|
|
909
|
-
export const
|
|
899
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
910
900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
911
|
-
return
|
|
901
|
+
return de_TagResourceCommandError(output, context);
|
|
912
902
|
}
|
|
913
903
|
const contents = map({
|
|
914
904
|
$metadata: deserializeMetadata(output),
|
|
@@ -916,7 +906,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
916
906
|
await collectBody(output.body, context);
|
|
917
907
|
return contents;
|
|
918
908
|
};
|
|
919
|
-
const
|
|
909
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
920
910
|
const parsedOutput = {
|
|
921
911
|
...output,
|
|
922
912
|
body: await parseErrorBody(output.body, context),
|
|
@@ -925,13 +915,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
925
915
|
switch (errorCode) {
|
|
926
916
|
case "InternalServiceException":
|
|
927
917
|
case "com.amazonaws.braket#InternalServiceException":
|
|
928
|
-
throw await
|
|
918
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
929
919
|
case "ResourceNotFoundException":
|
|
930
920
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
931
|
-
throw await
|
|
921
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
932
922
|
case "ValidationException":
|
|
933
923
|
case "com.amazonaws.braket#ValidationException":
|
|
934
|
-
throw await
|
|
924
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
935
925
|
default:
|
|
936
926
|
const parsedBody = parsedOutput.body;
|
|
937
927
|
throwDefaultError({
|
|
@@ -942,9 +932,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
942
932
|
});
|
|
943
933
|
}
|
|
944
934
|
};
|
|
945
|
-
export const
|
|
935
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
946
936
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return
|
|
937
|
+
return de_UntagResourceCommandError(output, context);
|
|
948
938
|
}
|
|
949
939
|
const contents = map({
|
|
950
940
|
$metadata: deserializeMetadata(output),
|
|
@@ -952,7 +942,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
952
942
|
await collectBody(output.body, context);
|
|
953
943
|
return contents;
|
|
954
944
|
};
|
|
955
|
-
const
|
|
945
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
956
946
|
const parsedOutput = {
|
|
957
947
|
...output,
|
|
958
948
|
body: await parseErrorBody(output.body, context),
|
|
@@ -961,13 +951,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
961
951
|
switch (errorCode) {
|
|
962
952
|
case "InternalServiceException":
|
|
963
953
|
case "com.amazonaws.braket#InternalServiceException":
|
|
964
|
-
throw await
|
|
954
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
965
955
|
case "ResourceNotFoundException":
|
|
966
956
|
case "com.amazonaws.braket#ResourceNotFoundException":
|
|
967
|
-
throw await
|
|
957
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
958
|
case "ValidationException":
|
|
969
959
|
case "com.amazonaws.braket#ValidationException":
|
|
970
|
-
throw await
|
|
960
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
961
|
default:
|
|
972
962
|
const parsedBody = parsedOutput.body;
|
|
973
963
|
throwDefaultError({
|
|
@@ -979,7 +969,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
979
969
|
}
|
|
980
970
|
};
|
|
981
971
|
const map = __map;
|
|
982
|
-
const
|
|
972
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
983
973
|
const contents = map({});
|
|
984
974
|
const data = parsedOutput.body;
|
|
985
975
|
if (data.message != null) {
|
|
@@ -991,7 +981,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
991
981
|
});
|
|
992
982
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
993
983
|
};
|
|
994
|
-
const
|
|
984
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
995
985
|
const contents = map({});
|
|
996
986
|
const data = parsedOutput.body;
|
|
997
987
|
if (data.message != null) {
|
|
@@ -1003,7 +993,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1003
993
|
});
|
|
1004
994
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1005
995
|
};
|
|
1006
|
-
const
|
|
996
|
+
const de_DeviceOfflineExceptionRes = async (parsedOutput, context) => {
|
|
1007
997
|
const contents = map({});
|
|
1008
998
|
const data = parsedOutput.body;
|
|
1009
999
|
if (data.message != null) {
|
|
@@ -1015,7 +1005,7 @@ const deserializeAws_restJson1DeviceOfflineExceptionResponse = async (parsedOutp
|
|
|
1015
1005
|
});
|
|
1016
1006
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1017
1007
|
};
|
|
1018
|
-
const
|
|
1008
|
+
const de_DeviceRetiredExceptionRes = async (parsedOutput, context) => {
|
|
1019
1009
|
const contents = map({});
|
|
1020
1010
|
const data = parsedOutput.body;
|
|
1021
1011
|
if (data.message != null) {
|
|
@@ -1027,7 +1017,7 @@ const deserializeAws_restJson1DeviceRetiredExceptionResponse = async (parsedOutp
|
|
|
1027
1017
|
});
|
|
1028
1018
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1029
1019
|
};
|
|
1030
|
-
const
|
|
1020
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
1031
1021
|
const contents = map({});
|
|
1032
1022
|
const data = parsedOutput.body;
|
|
1033
1023
|
if (data.message != null) {
|
|
@@ -1039,7 +1029,7 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
|
|
|
1039
1029
|
});
|
|
1040
1030
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1041
1031
|
};
|
|
1042
|
-
const
|
|
1032
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1043
1033
|
const contents = map({});
|
|
1044
1034
|
const data = parsedOutput.body;
|
|
1045
1035
|
if (data.message != null) {
|
|
@@ -1051,7 +1041,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1051
1041
|
});
|
|
1052
1042
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1053
1043
|
};
|
|
1054
|
-
const
|
|
1044
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1055
1045
|
const contents = map({});
|
|
1056
1046
|
const data = parsedOutput.body;
|
|
1057
1047
|
if (data.message != null) {
|
|
@@ -1063,7 +1053,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1063
1053
|
});
|
|
1064
1054
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1065
1055
|
};
|
|
1066
|
-
const
|
|
1056
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1067
1057
|
const contents = map({});
|
|
1068
1058
|
const data = parsedOutput.body;
|
|
1069
1059
|
if (data.message != null) {
|
|
@@ -1075,7 +1065,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1075
1065
|
});
|
|
1076
1066
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1077
1067
|
};
|
|
1078
|
-
const
|
|
1068
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1079
1069
|
const contents = map({});
|
|
1080
1070
|
const data = parsedOutput.body;
|
|
1081
1071
|
if (data.message != null) {
|
|
@@ -1087,34 +1077,28 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1087
1077
|
});
|
|
1088
1078
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1089
1079
|
};
|
|
1090
|
-
const
|
|
1080
|
+
const se_AlgorithmSpecification = (input, context) => {
|
|
1091
1081
|
return {
|
|
1092
|
-
...(input.containerImage != null && {
|
|
1093
|
-
|
|
1094
|
-
}),
|
|
1095
|
-
...(input.scriptModeConfig != null && {
|
|
1096
|
-
scriptModeConfig: serializeAws_restJson1ScriptModeConfig(input.scriptModeConfig, context),
|
|
1097
|
-
}),
|
|
1082
|
+
...(input.containerImage != null && { containerImage: se_ContainerImage(input.containerImage, context) }),
|
|
1083
|
+
...(input.scriptModeConfig != null && { scriptModeConfig: se_ScriptModeConfig(input.scriptModeConfig, context) }),
|
|
1098
1084
|
};
|
|
1099
1085
|
};
|
|
1100
|
-
const
|
|
1086
|
+
const se_ContainerImage = (input, context) => {
|
|
1101
1087
|
return {
|
|
1102
1088
|
...(input.uri != null && { uri: input.uri }),
|
|
1103
1089
|
};
|
|
1104
1090
|
};
|
|
1105
|
-
const
|
|
1091
|
+
const se_DataSource = (input, context) => {
|
|
1106
1092
|
return {
|
|
1107
|
-
...(input.s3DataSource != null && {
|
|
1108
|
-
s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context),
|
|
1109
|
-
}),
|
|
1093
|
+
...(input.s3DataSource != null && { s3DataSource: se_S3DataSource(input.s3DataSource, context) }),
|
|
1110
1094
|
};
|
|
1111
1095
|
};
|
|
1112
|
-
const
|
|
1096
|
+
const se_DeviceConfig = (input, context) => {
|
|
1113
1097
|
return {
|
|
1114
1098
|
...(input.device != null && { device: input.device }),
|
|
1115
1099
|
};
|
|
1116
1100
|
};
|
|
1117
|
-
const
|
|
1101
|
+
const se_HyperParameters = (input, context) => {
|
|
1118
1102
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1119
1103
|
if (value === null) {
|
|
1120
1104
|
return acc;
|
|
@@ -1123,105 +1107,105 @@ const serializeAws_restJson1HyperParameters = (input, context) => {
|
|
|
1123
1107
|
return acc;
|
|
1124
1108
|
}, {});
|
|
1125
1109
|
};
|
|
1126
|
-
const
|
|
1110
|
+
const se_InputConfigList = (input, context) => {
|
|
1127
1111
|
return input
|
|
1128
1112
|
.filter((e) => e != null)
|
|
1129
1113
|
.map((entry) => {
|
|
1130
|
-
return
|
|
1114
|
+
return se_InputFileConfig(entry, context);
|
|
1131
1115
|
});
|
|
1132
1116
|
};
|
|
1133
|
-
const
|
|
1117
|
+
const se_InputFileConfig = (input, context) => {
|
|
1134
1118
|
return {
|
|
1135
1119
|
...(input.channelName != null && { channelName: input.channelName }),
|
|
1136
1120
|
...(input.contentType != null && { contentType: input.contentType }),
|
|
1137
|
-
...(input.dataSource != null && { dataSource:
|
|
1121
|
+
...(input.dataSource != null && { dataSource: se_DataSource(input.dataSource, context) }),
|
|
1138
1122
|
};
|
|
1139
1123
|
};
|
|
1140
|
-
const
|
|
1124
|
+
const se_InstanceConfig = (input, context) => {
|
|
1141
1125
|
return {
|
|
1142
1126
|
...(input.instanceCount != null && { instanceCount: input.instanceCount }),
|
|
1143
1127
|
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
1144
1128
|
...(input.volumeSizeInGb != null && { volumeSizeInGb: input.volumeSizeInGb }),
|
|
1145
1129
|
};
|
|
1146
1130
|
};
|
|
1147
|
-
const
|
|
1131
|
+
const se_JobCheckpointConfig = (input, context) => {
|
|
1148
1132
|
return {
|
|
1149
1133
|
...(input.localPath != null && { localPath: input.localPath }),
|
|
1150
1134
|
...(input.s3Uri != null && { s3Uri: input.s3Uri }),
|
|
1151
1135
|
};
|
|
1152
1136
|
};
|
|
1153
|
-
const
|
|
1137
|
+
const se_JobOutputDataConfig = (input, context) => {
|
|
1154
1138
|
return {
|
|
1155
1139
|
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
1156
1140
|
...(input.s3Path != null && { s3Path: input.s3Path }),
|
|
1157
1141
|
};
|
|
1158
1142
|
};
|
|
1159
|
-
const
|
|
1143
|
+
const se_JobStoppingCondition = (input, context) => {
|
|
1160
1144
|
return {
|
|
1161
1145
|
...(input.maxRuntimeInSeconds != null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }),
|
|
1162
1146
|
};
|
|
1163
1147
|
};
|
|
1164
|
-
const
|
|
1148
|
+
const se_S3DataSource = (input, context) => {
|
|
1165
1149
|
return {
|
|
1166
1150
|
...(input.s3Uri != null && { s3Uri: input.s3Uri }),
|
|
1167
1151
|
};
|
|
1168
1152
|
};
|
|
1169
|
-
const
|
|
1153
|
+
const se_ScriptModeConfig = (input, context) => {
|
|
1170
1154
|
return {
|
|
1171
1155
|
...(input.compressionType != null && { compressionType: input.compressionType }),
|
|
1172
1156
|
...(input.entryPoint != null && { entryPoint: input.entryPoint }),
|
|
1173
1157
|
...(input.s3Uri != null && { s3Uri: input.s3Uri }),
|
|
1174
1158
|
};
|
|
1175
1159
|
};
|
|
1176
|
-
const
|
|
1160
|
+
const se_SearchDevicesFilter = (input, context) => {
|
|
1177
1161
|
return {
|
|
1178
1162
|
...(input.name != null && { name: input.name }),
|
|
1179
|
-
...(input.values != null && { values:
|
|
1163
|
+
...(input.values != null && { values: se_String256List(input.values, context) }),
|
|
1180
1164
|
};
|
|
1181
1165
|
};
|
|
1182
|
-
const
|
|
1166
|
+
const se_SearchDevicesFilterList = (input, context) => {
|
|
1183
1167
|
return input
|
|
1184
1168
|
.filter((e) => e != null)
|
|
1185
1169
|
.map((entry) => {
|
|
1186
|
-
return
|
|
1170
|
+
return se_SearchDevicesFilter(entry, context);
|
|
1187
1171
|
});
|
|
1188
1172
|
};
|
|
1189
|
-
const
|
|
1173
|
+
const se_SearchJobsFilter = (input, context) => {
|
|
1190
1174
|
return {
|
|
1191
1175
|
...(input.name != null && { name: input.name }),
|
|
1192
1176
|
...(input.operator != null && { operator: input.operator }),
|
|
1193
|
-
...(input.values != null && { values:
|
|
1177
|
+
...(input.values != null && { values: se_String256List(input.values, context) }),
|
|
1194
1178
|
};
|
|
1195
1179
|
};
|
|
1196
|
-
const
|
|
1180
|
+
const se_SearchJobsFilterList = (input, context) => {
|
|
1197
1181
|
return input
|
|
1198
1182
|
.filter((e) => e != null)
|
|
1199
1183
|
.map((entry) => {
|
|
1200
|
-
return
|
|
1184
|
+
return se_SearchJobsFilter(entry, context);
|
|
1201
1185
|
});
|
|
1202
1186
|
};
|
|
1203
|
-
const
|
|
1187
|
+
const se_SearchQuantumTasksFilter = (input, context) => {
|
|
1204
1188
|
return {
|
|
1205
1189
|
...(input.name != null && { name: input.name }),
|
|
1206
1190
|
...(input.operator != null && { operator: input.operator }),
|
|
1207
|
-
...(input.values != null && { values:
|
|
1191
|
+
...(input.values != null && { values: se_String256List(input.values, context) }),
|
|
1208
1192
|
};
|
|
1209
1193
|
};
|
|
1210
|
-
const
|
|
1194
|
+
const se_SearchQuantumTasksFilterList = (input, context) => {
|
|
1211
1195
|
return input
|
|
1212
1196
|
.filter((e) => e != null)
|
|
1213
1197
|
.map((entry) => {
|
|
1214
|
-
return
|
|
1198
|
+
return se_SearchQuantumTasksFilter(entry, context);
|
|
1215
1199
|
});
|
|
1216
1200
|
};
|
|
1217
|
-
const
|
|
1201
|
+
const se_String256List = (input, context) => {
|
|
1218
1202
|
return input
|
|
1219
1203
|
.filter((e) => e != null)
|
|
1220
1204
|
.map((entry) => {
|
|
1221
1205
|
return entry;
|
|
1222
1206
|
});
|
|
1223
1207
|
};
|
|
1224
|
-
const
|
|
1208
|
+
const se_TagsMap = (input, context) => {
|
|
1225
1209
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1226
1210
|
if (value === null) {
|
|
1227
1211
|
return acc;
|
|
@@ -1230,32 +1214,28 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
1230
1214
|
return acc;
|
|
1231
1215
|
}, {});
|
|
1232
1216
|
};
|
|
1233
|
-
const
|
|
1217
|
+
const de_AlgorithmSpecification = (output, context) => {
|
|
1234
1218
|
return {
|
|
1235
|
-
containerImage: output.containerImage != null
|
|
1236
|
-
|
|
1237
|
-
: undefined,
|
|
1238
|
-
scriptModeConfig: output.scriptModeConfig != null
|
|
1239
|
-
? deserializeAws_restJson1ScriptModeConfig(output.scriptModeConfig, context)
|
|
1240
|
-
: undefined,
|
|
1219
|
+
containerImage: output.containerImage != null ? de_ContainerImage(output.containerImage, context) : undefined,
|
|
1220
|
+
scriptModeConfig: output.scriptModeConfig != null ? de_ScriptModeConfig(output.scriptModeConfig, context) : undefined,
|
|
1241
1221
|
};
|
|
1242
1222
|
};
|
|
1243
|
-
const
|
|
1223
|
+
const de_ContainerImage = (output, context) => {
|
|
1244
1224
|
return {
|
|
1245
1225
|
uri: __expectString(output.uri),
|
|
1246
1226
|
};
|
|
1247
1227
|
};
|
|
1248
|
-
const
|
|
1228
|
+
const de_DataSource = (output, context) => {
|
|
1249
1229
|
return {
|
|
1250
|
-
s3DataSource: output.s3DataSource != null ?
|
|
1230
|
+
s3DataSource: output.s3DataSource != null ? de_S3DataSource(output.s3DataSource, context) : undefined,
|
|
1251
1231
|
};
|
|
1252
1232
|
};
|
|
1253
|
-
const
|
|
1233
|
+
const de_DeviceConfig = (output, context) => {
|
|
1254
1234
|
return {
|
|
1255
1235
|
device: __expectString(output.device),
|
|
1256
1236
|
};
|
|
1257
1237
|
};
|
|
1258
|
-
const
|
|
1238
|
+
const de_DeviceSummary = (output, context) => {
|
|
1259
1239
|
return {
|
|
1260
1240
|
deviceArn: __expectString(output.deviceArn),
|
|
1261
1241
|
deviceName: __expectString(output.deviceName),
|
|
@@ -1264,18 +1244,18 @@ const deserializeAws_restJson1DeviceSummary = (output, context) => {
|
|
|
1264
1244
|
providerName: __expectString(output.providerName),
|
|
1265
1245
|
};
|
|
1266
1246
|
};
|
|
1267
|
-
const
|
|
1247
|
+
const de_DeviceSummaryList = (output, context) => {
|
|
1268
1248
|
const retVal = (output || [])
|
|
1269
1249
|
.filter((e) => e != null)
|
|
1270
1250
|
.map((entry) => {
|
|
1271
1251
|
if (entry === null) {
|
|
1272
1252
|
return null;
|
|
1273
1253
|
}
|
|
1274
|
-
return
|
|
1254
|
+
return de_DeviceSummary(entry, context);
|
|
1275
1255
|
});
|
|
1276
1256
|
return retVal;
|
|
1277
1257
|
};
|
|
1278
|
-
const
|
|
1258
|
+
const de_HyperParameters = (output, context) => {
|
|
1279
1259
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1280
1260
|
if (value === null) {
|
|
1281
1261
|
return acc;
|
|
@@ -1284,67 +1264,67 @@ const deserializeAws_restJson1HyperParameters = (output, context) => {
|
|
|
1284
1264
|
return acc;
|
|
1285
1265
|
}, {});
|
|
1286
1266
|
};
|
|
1287
|
-
const
|
|
1267
|
+
const de_InputConfigList = (output, context) => {
|
|
1288
1268
|
const retVal = (output || [])
|
|
1289
1269
|
.filter((e) => e != null)
|
|
1290
1270
|
.map((entry) => {
|
|
1291
1271
|
if (entry === null) {
|
|
1292
1272
|
return null;
|
|
1293
1273
|
}
|
|
1294
|
-
return
|
|
1274
|
+
return de_InputFileConfig(entry, context);
|
|
1295
1275
|
});
|
|
1296
1276
|
return retVal;
|
|
1297
1277
|
};
|
|
1298
|
-
const
|
|
1278
|
+
const de_InputFileConfig = (output, context) => {
|
|
1299
1279
|
return {
|
|
1300
1280
|
channelName: __expectString(output.channelName),
|
|
1301
1281
|
contentType: __expectString(output.contentType),
|
|
1302
|
-
dataSource: output.dataSource != null ?
|
|
1282
|
+
dataSource: output.dataSource != null ? de_DataSource(output.dataSource, context) : undefined,
|
|
1303
1283
|
};
|
|
1304
1284
|
};
|
|
1305
|
-
const
|
|
1285
|
+
const de_InstanceConfig = (output, context) => {
|
|
1306
1286
|
return {
|
|
1307
1287
|
instanceCount: __expectInt32(output.instanceCount),
|
|
1308
1288
|
instanceType: __expectString(output.instanceType),
|
|
1309
1289
|
volumeSizeInGb: __expectInt32(output.volumeSizeInGb),
|
|
1310
1290
|
};
|
|
1311
1291
|
};
|
|
1312
|
-
const
|
|
1292
|
+
const de_JobCheckpointConfig = (output, context) => {
|
|
1313
1293
|
return {
|
|
1314
1294
|
localPath: __expectString(output.localPath),
|
|
1315
1295
|
s3Uri: __expectString(output.s3Uri),
|
|
1316
1296
|
};
|
|
1317
1297
|
};
|
|
1318
|
-
const
|
|
1298
|
+
const de_JobEventDetails = (output, context) => {
|
|
1319
1299
|
return {
|
|
1320
1300
|
eventType: __expectString(output.eventType),
|
|
1321
1301
|
message: __expectString(output.message),
|
|
1322
1302
|
timeOfEvent: output.timeOfEvent != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.timeOfEvent)) : undefined,
|
|
1323
1303
|
};
|
|
1324
1304
|
};
|
|
1325
|
-
const
|
|
1305
|
+
const de_JobEvents = (output, context) => {
|
|
1326
1306
|
const retVal = (output || [])
|
|
1327
1307
|
.filter((e) => e != null)
|
|
1328
1308
|
.map((entry) => {
|
|
1329
1309
|
if (entry === null) {
|
|
1330
1310
|
return null;
|
|
1331
1311
|
}
|
|
1332
|
-
return
|
|
1312
|
+
return de_JobEventDetails(entry, context);
|
|
1333
1313
|
});
|
|
1334
1314
|
return retVal;
|
|
1335
1315
|
};
|
|
1336
|
-
const
|
|
1316
|
+
const de_JobOutputDataConfig = (output, context) => {
|
|
1337
1317
|
return {
|
|
1338
1318
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
1339
1319
|
s3Path: __expectString(output.s3Path),
|
|
1340
1320
|
};
|
|
1341
1321
|
};
|
|
1342
|
-
const
|
|
1322
|
+
const de_JobStoppingCondition = (output, context) => {
|
|
1343
1323
|
return {
|
|
1344
1324
|
maxRuntimeInSeconds: __expectInt32(output.maxRuntimeInSeconds),
|
|
1345
1325
|
};
|
|
1346
1326
|
};
|
|
1347
|
-
const
|
|
1327
|
+
const de_JobSummary = (output, context) => {
|
|
1348
1328
|
return {
|
|
1349
1329
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1350
1330
|
device: __expectString(output.device),
|
|
@@ -1353,21 +1333,21 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
1353
1333
|
jobName: __expectString(output.jobName),
|
|
1354
1334
|
startedAt: output.startedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startedAt)) : undefined,
|
|
1355
1335
|
status: __expectString(output.status),
|
|
1356
|
-
tags: output.tags != null ?
|
|
1336
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
1357
1337
|
};
|
|
1358
1338
|
};
|
|
1359
|
-
const
|
|
1339
|
+
const de_JobSummaryList = (output, context) => {
|
|
1360
1340
|
const retVal = (output || [])
|
|
1361
1341
|
.filter((e) => e != null)
|
|
1362
1342
|
.map((entry) => {
|
|
1363
1343
|
if (entry === null) {
|
|
1364
1344
|
return null;
|
|
1365
1345
|
}
|
|
1366
|
-
return
|
|
1346
|
+
return de_JobSummary(entry, context);
|
|
1367
1347
|
});
|
|
1368
1348
|
return retVal;
|
|
1369
1349
|
};
|
|
1370
|
-
const
|
|
1350
|
+
const de_QuantumTaskSummary = (output, context) => {
|
|
1371
1351
|
return {
|
|
1372
1352
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
1373
1353
|
deviceArn: __expectString(output.deviceArn),
|
|
@@ -1377,33 +1357,33 @@ const deserializeAws_restJson1QuantumTaskSummary = (output, context) => {
|
|
|
1377
1357
|
quantumTaskArn: __expectString(output.quantumTaskArn),
|
|
1378
1358
|
shots: __expectLong(output.shots),
|
|
1379
1359
|
status: __expectString(output.status),
|
|
1380
|
-
tags: output.tags != null ?
|
|
1360
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
1381
1361
|
};
|
|
1382
1362
|
};
|
|
1383
|
-
const
|
|
1363
|
+
const de_QuantumTaskSummaryList = (output, context) => {
|
|
1384
1364
|
const retVal = (output || [])
|
|
1385
1365
|
.filter((e) => e != null)
|
|
1386
1366
|
.map((entry) => {
|
|
1387
1367
|
if (entry === null) {
|
|
1388
1368
|
return null;
|
|
1389
1369
|
}
|
|
1390
|
-
return
|
|
1370
|
+
return de_QuantumTaskSummary(entry, context);
|
|
1391
1371
|
});
|
|
1392
1372
|
return retVal;
|
|
1393
1373
|
};
|
|
1394
|
-
const
|
|
1374
|
+
const de_S3DataSource = (output, context) => {
|
|
1395
1375
|
return {
|
|
1396
1376
|
s3Uri: __expectString(output.s3Uri),
|
|
1397
1377
|
};
|
|
1398
1378
|
};
|
|
1399
|
-
const
|
|
1379
|
+
const de_ScriptModeConfig = (output, context) => {
|
|
1400
1380
|
return {
|
|
1401
1381
|
compressionType: __expectString(output.compressionType),
|
|
1402
1382
|
entryPoint: __expectString(output.entryPoint),
|
|
1403
1383
|
s3Uri: __expectString(output.s3Uri),
|
|
1404
1384
|
};
|
|
1405
1385
|
};
|
|
1406
|
-
const
|
|
1386
|
+
const de_TagsMap = (output, context) => {
|
|
1407
1387
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1408
1388
|
if (value === null) {
|
|
1409
1389
|
return acc;
|