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