@aws-sdk/client-braket 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-braket
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-braket
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -73,41 +73,34 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
73
73
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/job";
74
74
  let body;
75
75
  body = JSON.stringify({
76
- ...(input.algorithmSpecification !== undefined &&
77
- input.algorithmSpecification !== null && {
76
+ ...(input.algorithmSpecification != null && {
78
77
  algorithmSpecification: serializeAws_restJson1AlgorithmSpecification(input.algorithmSpecification, context),
79
78
  }),
80
- ...(input.checkpointConfig !== undefined &&
81
- input.checkpointConfig !== null && {
79
+ ...(input.checkpointConfig != null && {
82
80
  checkpointConfig: serializeAws_restJson1JobCheckpointConfig(input.checkpointConfig, context),
83
81
  }),
84
82
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
85
- ...(input.deviceConfig !== undefined &&
86
- input.deviceConfig !== null && { deviceConfig: serializeAws_restJson1DeviceConfig(input.deviceConfig, context) }),
87
- ...(input.hyperParameters !== undefined &&
88
- input.hyperParameters !== null && {
83
+ ...(input.deviceConfig != null && {
84
+ deviceConfig: serializeAws_restJson1DeviceConfig(input.deviceConfig, context),
85
+ }),
86
+ ...(input.hyperParameters != null && {
89
87
  hyperParameters: serializeAws_restJson1HyperParameters(input.hyperParameters, context),
90
88
  }),
91
- ...(input.inputDataConfig !== undefined &&
92
- input.inputDataConfig !== null && {
89
+ ...(input.inputDataConfig != null && {
93
90
  inputDataConfig: serializeAws_restJson1InputConfigList(input.inputDataConfig, context),
94
91
  }),
95
- ...(input.instanceConfig !== undefined &&
96
- input.instanceConfig !== null && {
92
+ ...(input.instanceConfig != null && {
97
93
  instanceConfig: serializeAws_restJson1InstanceConfig(input.instanceConfig, context),
98
94
  }),
99
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
100
- ...(input.outputDataConfig !== undefined &&
101
- input.outputDataConfig !== null && {
95
+ ...(input.jobName != null && { jobName: input.jobName }),
96
+ ...(input.outputDataConfig != null && {
102
97
  outputDataConfig: serializeAws_restJson1JobOutputDataConfig(input.outputDataConfig, context),
103
98
  }),
104
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
105
- ...(input.stoppingCondition !== undefined &&
106
- input.stoppingCondition !== null && {
99
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
100
+ ...(input.stoppingCondition != null && {
107
101
  stoppingCondition: serializeAws_restJson1JobStoppingCondition(input.stoppingCondition, context),
108
102
  }),
109
- ...(input.tags !== undefined &&
110
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
103
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
111
104
  });
112
105
  return new protocol_http_1.HttpRequest({
113
106
  protocol,
@@ -129,19 +122,15 @@ const serializeAws_restJson1CreateQuantumTaskCommand = async (input, context) =>
129
122
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-task";
130
123
  let body;
131
124
  body = JSON.stringify({
132
- ...(input.action !== undefined && input.action !== null && { action: smithy_client_1.LazyJsonString.fromObject(input.action) }),
125
+ ...(input.action != null && { action: smithy_client_1.LazyJsonString.fromObject(input.action) }),
133
126
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
134
- ...(input.deviceArn !== undefined && input.deviceArn !== null && { deviceArn: input.deviceArn }),
135
- ...(input.deviceParameters !== undefined &&
136
- input.deviceParameters !== null && { deviceParameters: smithy_client_1.LazyJsonString.fromObject(input.deviceParameters) }),
137
- ...(input.jobToken !== undefined && input.jobToken !== null && { jobToken: input.jobToken }),
138
- ...(input.outputS3Bucket !== undefined &&
139
- input.outputS3Bucket !== null && { outputS3Bucket: input.outputS3Bucket }),
140
- ...(input.outputS3KeyPrefix !== undefined &&
141
- input.outputS3KeyPrefix !== null && { outputS3KeyPrefix: input.outputS3KeyPrefix }),
142
- ...(input.shots !== undefined && input.shots !== null && { shots: input.shots }),
143
- ...(input.tags !== undefined &&
144
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
127
+ ...(input.deviceArn != null && { deviceArn: input.deviceArn }),
128
+ ...(input.deviceParameters != null && { deviceParameters: smithy_client_1.LazyJsonString.fromObject(input.deviceParameters) }),
129
+ ...(input.jobToken != null && { jobToken: input.jobToken }),
130
+ ...(input.outputS3Bucket != null && { outputS3Bucket: input.outputS3Bucket }),
131
+ ...(input.outputS3KeyPrefix != null && { outputS3KeyPrefix: input.outputS3KeyPrefix }),
132
+ ...(input.shots != null && { shots: input.shots }),
133
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
145
134
  });
146
135
  return new protocol_http_1.HttpRequest({
147
136
  protocol,
@@ -266,10 +255,9 @@ const serializeAws_restJson1SearchDevicesCommand = async (input, context) => {
266
255
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/devices";
267
256
  let body;
268
257
  body = JSON.stringify({
269
- ...(input.filters !== undefined &&
270
- input.filters !== null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) }),
271
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
272
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
258
+ ...(input.filters != null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) }),
259
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
260
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
273
261
  });
274
262
  return new protocol_http_1.HttpRequest({
275
263
  protocol,
@@ -290,10 +278,9 @@ const serializeAws_restJson1SearchJobsCommand = async (input, context) => {
290
278
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
291
279
  let body;
292
280
  body = JSON.stringify({
293
- ...(input.filters !== undefined &&
294
- input.filters !== null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) }),
295
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
296
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
281
+ ...(input.filters != null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) }),
282
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
283
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
297
284
  });
298
285
  return new protocol_http_1.HttpRequest({
299
286
  protocol,
@@ -314,12 +301,11 @@ const serializeAws_restJson1SearchQuantumTasksCommand = async (input, context) =
314
301
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/quantum-tasks";
315
302
  let body;
316
303
  body = JSON.stringify({
317
- ...(input.filters !== undefined &&
318
- input.filters !== null && {
304
+ ...(input.filters != null && {
319
305
  filters: serializeAws_restJson1SearchQuantumTasksFilterList(input.filters, context),
320
306
  }),
321
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
322
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
307
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
308
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
323
309
  });
324
310
  return new protocol_http_1.HttpRequest({
325
311
  protocol,
@@ -350,8 +336,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
350
336
  }
351
337
  let body;
352
338
  body = JSON.stringify({
353
- ...(input.tags !== undefined &&
354
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
339
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
355
340
  });
356
341
  return new protocol_http_1.HttpRequest({
357
342
  protocol,
@@ -1293,30 +1278,29 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1293
1278
  };
1294
1279
  const serializeAws_restJson1AlgorithmSpecification = (input, context) => {
1295
1280
  return {
1296
- ...(input.containerImage !== undefined &&
1297
- input.containerImage !== null && {
1281
+ ...(input.containerImage != null && {
1298
1282
  containerImage: serializeAws_restJson1ContainerImage(input.containerImage, context),
1299
1283
  }),
1300
- ...(input.scriptModeConfig !== undefined &&
1301
- input.scriptModeConfig !== null && {
1284
+ ...(input.scriptModeConfig != null && {
1302
1285
  scriptModeConfig: serializeAws_restJson1ScriptModeConfig(input.scriptModeConfig, context),
1303
1286
  }),
1304
1287
  };
1305
1288
  };
1306
1289
  const serializeAws_restJson1ContainerImage = (input, context) => {
1307
1290
  return {
1308
- ...(input.uri !== undefined && input.uri !== null && { uri: input.uri }),
1291
+ ...(input.uri != null && { uri: input.uri }),
1309
1292
  };
1310
1293
  };
1311
1294
  const serializeAws_restJson1DataSource = (input, context) => {
1312
1295
  return {
1313
- ...(input.s3DataSource !== undefined &&
1314
- input.s3DataSource !== null && { s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context) }),
1296
+ ...(input.s3DataSource != null && {
1297
+ s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context),
1298
+ }),
1315
1299
  };
1316
1300
  };
1317
1301
  const serializeAws_restJson1DeviceConfig = (input, context) => {
1318
1302
  return {
1319
- ...(input.device !== undefined && input.device !== null && { device: input.device }),
1303
+ ...(input.device != null && { device: input.device }),
1320
1304
  };
1321
1305
  };
1322
1306
  const serializeAws_restJson1HyperParameters = (input, context) => {
@@ -1342,56 +1326,51 @@ const serializeAws_restJson1InputConfigList = (input, context) => {
1342
1326
  };
1343
1327
  const serializeAws_restJson1InputFileConfig = (input, context) => {
1344
1328
  return {
1345
- ...(input.channelName !== undefined && input.channelName !== null && { channelName: input.channelName }),
1346
- ...(input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType }),
1347
- ...(input.dataSource !== undefined &&
1348
- input.dataSource !== null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }),
1329
+ ...(input.channelName != null && { channelName: input.channelName }),
1330
+ ...(input.contentType != null && { contentType: input.contentType }),
1331
+ ...(input.dataSource != null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }),
1349
1332
  };
1350
1333
  };
1351
1334
  const serializeAws_restJson1InstanceConfig = (input, context) => {
1352
1335
  return {
1353
- ...(input.instanceCount !== undefined && input.instanceCount !== null && { instanceCount: input.instanceCount }),
1354
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
1355
- ...(input.volumeSizeInGb !== undefined &&
1356
- input.volumeSizeInGb !== null && { volumeSizeInGb: input.volumeSizeInGb }),
1336
+ ...(input.instanceCount != null && { instanceCount: input.instanceCount }),
1337
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
1338
+ ...(input.volumeSizeInGb != null && { volumeSizeInGb: input.volumeSizeInGb }),
1357
1339
  };
1358
1340
  };
1359
1341
  const serializeAws_restJson1JobCheckpointConfig = (input, context) => {
1360
1342
  return {
1361
- ...(input.localPath !== undefined && input.localPath !== null && { localPath: input.localPath }),
1362
- ...(input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }),
1343
+ ...(input.localPath != null && { localPath: input.localPath }),
1344
+ ...(input.s3Uri != null && { s3Uri: input.s3Uri }),
1363
1345
  };
1364
1346
  };
1365
1347
  const serializeAws_restJson1JobOutputDataConfig = (input, context) => {
1366
1348
  return {
1367
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
1368
- ...(input.s3Path !== undefined && input.s3Path !== null && { s3Path: input.s3Path }),
1349
+ ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
1350
+ ...(input.s3Path != null && { s3Path: input.s3Path }),
1369
1351
  };
1370
1352
  };
1371
1353
  const serializeAws_restJson1JobStoppingCondition = (input, context) => {
1372
1354
  return {
1373
- ...(input.maxRuntimeInSeconds !== undefined &&
1374
- input.maxRuntimeInSeconds !== null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }),
1355
+ ...(input.maxRuntimeInSeconds != null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }),
1375
1356
  };
1376
1357
  };
1377
1358
  const serializeAws_restJson1S3DataSource = (input, context) => {
1378
1359
  return {
1379
- ...(input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }),
1360
+ ...(input.s3Uri != null && { s3Uri: input.s3Uri }),
1380
1361
  };
1381
1362
  };
1382
1363
  const serializeAws_restJson1ScriptModeConfig = (input, context) => {
1383
1364
  return {
1384
- ...(input.compressionType !== undefined &&
1385
- input.compressionType !== null && { compressionType: input.compressionType }),
1386
- ...(input.entryPoint !== undefined && input.entryPoint !== null && { entryPoint: input.entryPoint }),
1387
- ...(input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }),
1365
+ ...(input.compressionType != null && { compressionType: input.compressionType }),
1366
+ ...(input.entryPoint != null && { entryPoint: input.entryPoint }),
1367
+ ...(input.s3Uri != null && { s3Uri: input.s3Uri }),
1388
1368
  };
1389
1369
  };
1390
1370
  const serializeAws_restJson1SearchDevicesFilter = (input, context) => {
1391
1371
  return {
1392
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1393
- ...(input.values !== undefined &&
1394
- input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }),
1372
+ ...(input.name != null && { name: input.name }),
1373
+ ...(input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }),
1395
1374
  };
1396
1375
  };
1397
1376
  const serializeAws_restJson1SearchDevicesFilterList = (input, context) => {
@@ -1406,10 +1385,9 @@ const serializeAws_restJson1SearchDevicesFilterList = (input, context) => {
1406
1385
  };
1407
1386
  const serializeAws_restJson1SearchJobsFilter = (input, context) => {
1408
1387
  return {
1409
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1410
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
1411
- ...(input.values !== undefined &&
1412
- input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }),
1388
+ ...(input.name != null && { name: input.name }),
1389
+ ...(input.operator != null && { operator: input.operator }),
1390
+ ...(input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }),
1413
1391
  };
1414
1392
  };
1415
1393
  const serializeAws_restJson1SearchJobsFilterList = (input, context) => {
@@ -1424,10 +1402,9 @@ const serializeAws_restJson1SearchJobsFilterList = (input, context) => {
1424
1402
  };
1425
1403
  const serializeAws_restJson1SearchQuantumTasksFilter = (input, context) => {
1426
1404
  return {
1427
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1428
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
1429
- ...(input.values !== undefined &&
1430
- input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }),
1405
+ ...(input.name != null && { name: input.name }),
1406
+ ...(input.operator != null && { operator: input.operator }),
1407
+ ...(input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }),
1431
1408
  };
1432
1409
  };
1433
1410
  const serializeAws_restJson1SearchQuantumTasksFilterList = (input, context) => {
@@ -1463,10 +1440,10 @@ const serializeAws_restJson1TagsMap = (input, context) => {
1463
1440
  };
1464
1441
  const deserializeAws_restJson1AlgorithmSpecification = (output, context) => {
1465
1442
  return {
1466
- containerImage: output.containerImage !== undefined && output.containerImage !== null
1443
+ containerImage: output.containerImage != null
1467
1444
  ? deserializeAws_restJson1ContainerImage(output.containerImage, context)
1468
1445
  : undefined,
1469
- scriptModeConfig: output.scriptModeConfig !== undefined && output.scriptModeConfig !== null
1446
+ scriptModeConfig: output.scriptModeConfig != null
1470
1447
  ? deserializeAws_restJson1ScriptModeConfig(output.scriptModeConfig, context)
1471
1448
  : undefined,
1472
1449
  };
@@ -1478,9 +1455,7 @@ const deserializeAws_restJson1ContainerImage = (output, context) => {
1478
1455
  };
1479
1456
  const deserializeAws_restJson1DataSource = (output, context) => {
1480
1457
  return {
1481
- s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
1482
- ? deserializeAws_restJson1S3DataSource(output.s3DataSource, context)
1483
- : undefined,
1458
+ s3DataSource: output.s3DataSource != null ? deserializeAws_restJson1S3DataSource(output.s3DataSource, context) : undefined,
1484
1459
  };
1485
1460
  };
1486
1461
  const deserializeAws_restJson1DeviceConfig = (output, context) => {
@@ -1534,9 +1509,7 @@ const deserializeAws_restJson1InputFileConfig = (output, context) => {
1534
1509
  return {
1535
1510
  channelName: (0, smithy_client_1.expectString)(output.channelName),
1536
1511
  contentType: (0, smithy_client_1.expectString)(output.contentType),
1537
- dataSource: output.dataSource !== undefined && output.dataSource !== null
1538
- ? deserializeAws_restJson1DataSource(output.dataSource, context)
1539
- : undefined,
1512
+ dataSource: output.dataSource != null ? deserializeAws_restJson1DataSource(output.dataSource, context) : undefined,
1540
1513
  };
1541
1514
  };
1542
1515
  const deserializeAws_restJson1InstanceConfig = (output, context) => {
@@ -1556,9 +1529,7 @@ const deserializeAws_restJson1JobEventDetails = (output, context) => {
1556
1529
  return {
1557
1530
  eventType: (0, smithy_client_1.expectString)(output.eventType),
1558
1531
  message: (0, smithy_client_1.expectString)(output.message),
1559
- timeOfEvent: output.timeOfEvent !== undefined && output.timeOfEvent !== null
1560
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.timeOfEvent))
1561
- : undefined,
1532
+ timeOfEvent: output.timeOfEvent != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.timeOfEvent)) : undefined,
1562
1533
  };
1563
1534
  };
1564
1535
  const deserializeAws_restJson1JobEvents = (output, context) => {
@@ -1585,22 +1556,14 @@ const deserializeAws_restJson1JobStoppingCondition = (output, context) => {
1585
1556
  };
1586
1557
  const deserializeAws_restJson1JobSummary = (output, context) => {
1587
1558
  return {
1588
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1589
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
1590
- : undefined,
1559
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
1591
1560
  device: (0, smithy_client_1.expectString)(output.device),
1592
- endedAt: output.endedAt !== undefined && output.endedAt !== null
1593
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endedAt))
1594
- : undefined,
1561
+ endedAt: output.endedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endedAt)) : undefined,
1595
1562
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
1596
1563
  jobName: (0, smithy_client_1.expectString)(output.jobName),
1597
- startedAt: output.startedAt !== undefined && output.startedAt !== null
1598
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedAt))
1599
- : undefined,
1564
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startedAt)) : undefined,
1600
1565
  status: (0, smithy_client_1.expectString)(output.status),
1601
- tags: output.tags !== undefined && output.tags !== null
1602
- ? deserializeAws_restJson1TagsMap(output.tags, context)
1603
- : undefined,
1566
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1604
1567
  };
1605
1568
  };
1606
1569
  const deserializeAws_restJson1JobSummaryList = (output, context) => {
@@ -1616,21 +1579,15 @@ const deserializeAws_restJson1JobSummaryList = (output, context) => {
1616
1579
  };
1617
1580
  const deserializeAws_restJson1QuantumTaskSummary = (output, context) => {
1618
1581
  return {
1619
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1620
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
1621
- : undefined,
1582
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
1622
1583
  deviceArn: (0, smithy_client_1.expectString)(output.deviceArn),
1623
- endedAt: output.endedAt !== undefined && output.endedAt !== null
1624
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endedAt))
1625
- : undefined,
1584
+ endedAt: output.endedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endedAt)) : undefined,
1626
1585
  outputS3Bucket: (0, smithy_client_1.expectString)(output.outputS3Bucket),
1627
1586
  outputS3Directory: (0, smithy_client_1.expectString)(output.outputS3Directory),
1628
1587
  quantumTaskArn: (0, smithy_client_1.expectString)(output.quantumTaskArn),
1629
1588
  shots: (0, smithy_client_1.expectLong)(output.shots),
1630
1589
  status: (0, smithy_client_1.expectString)(output.status),
1631
- tags: output.tags !== undefined && output.tags !== null
1632
- ? deserializeAws_restJson1TagsMap(output.tags, context)
1633
- : undefined,
1590
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1634
1591
  };
1635
1592
  };
1636
1593
  const deserializeAws_restJson1QuantumTaskSummaryList = (output, context) => {
@@ -1698,6 +1655,9 @@ const loadRestJsonErrorCode = (output, data) => {
1698
1655
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1699
1656
  const sanitizeErrorCode = (rawValue) => {
1700
1657
  let cleanValue = rawValue;
1658
+ if (typeof cleanValue === "number") {
1659
+ cleanValue = cleanValue.toString();
1660
+ }
1701
1661
  if (cleanValue.indexOf(":") >= 0) {
1702
1662
  cleanValue = cleanValue.split(":")[0];
1703
1663
  }
@@ -84,30 +84,23 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
84
84
  "content-type": "application/json",
85
85
  };
86
86
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/job";
87
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.algorithmSpecification !== undefined &&
88
- input.algorithmSpecification !== null && {
87
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.algorithmSpecification != null && {
89
88
  algorithmSpecification: serializeAws_restJson1AlgorithmSpecification(input.algorithmSpecification, context),
90
- })), (input.checkpointConfig !== undefined &&
91
- input.checkpointConfig !== null && {
89
+ })), (input.checkpointConfig != null && {
92
90
  checkpointConfig: serializeAws_restJson1JobCheckpointConfig(input.checkpointConfig, context),
93
- })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceConfig !== undefined &&
94
- input.deviceConfig !== null && { deviceConfig: serializeAws_restJson1DeviceConfig(input.deviceConfig, context) })), (input.hyperParameters !== undefined &&
95
- input.hyperParameters !== null && {
91
+ })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceConfig != null && {
92
+ deviceConfig: serializeAws_restJson1DeviceConfig(input.deviceConfig, context),
93
+ })), (input.hyperParameters != null && {
96
94
  hyperParameters: serializeAws_restJson1HyperParameters(input.hyperParameters, context),
97
- })), (input.inputDataConfig !== undefined &&
98
- input.inputDataConfig !== null && {
95
+ })), (input.inputDataConfig != null && {
99
96
  inputDataConfig: serializeAws_restJson1InputConfigList(input.inputDataConfig, context),
100
- })), (input.instanceConfig !== undefined &&
101
- input.instanceConfig !== null && {
97
+ })), (input.instanceConfig != null && {
102
98
  instanceConfig: serializeAws_restJson1InstanceConfig(input.instanceConfig, context),
103
- })), (input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName })), (input.outputDataConfig !== undefined &&
104
- input.outputDataConfig !== null && {
99
+ })), (input.jobName != null && { jobName: input.jobName })), (input.outputDataConfig != null && {
105
100
  outputDataConfig: serializeAws_restJson1JobOutputDataConfig(input.outputDataConfig, context),
106
- })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.stoppingCondition !== undefined &&
107
- input.stoppingCondition !== null && {
101
+ })), (input.roleArn != null && { roleArn: input.roleArn })), (input.stoppingCondition != null && {
108
102
  stoppingCondition: serializeAws_restJson1JobStoppingCondition(input.stoppingCondition, context),
109
- })), (input.tags !== undefined &&
110
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
103
+ })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
111
104
  return [2, new __HttpRequest({
112
105
  protocol: protocol,
113
106
  hostname: hostname,
@@ -132,11 +125,7 @@ export var serializeAws_restJson1CreateQuantumTaskCommand = function (input, con
132
125
  "content-type": "application/json",
133
126
  };
134
127
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/quantum-task";
135
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action !== undefined && input.action !== null && { action: __LazyJsonString.fromObject(input.action) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceArn !== undefined && input.deviceArn !== null && { deviceArn: input.deviceArn })), (input.deviceParameters !== undefined &&
136
- input.deviceParameters !== null && { deviceParameters: __LazyJsonString.fromObject(input.deviceParameters) })), (input.jobToken !== undefined && input.jobToken !== null && { jobToken: input.jobToken })), (input.outputS3Bucket !== undefined &&
137
- input.outputS3Bucket !== null && { outputS3Bucket: input.outputS3Bucket })), (input.outputS3KeyPrefix !== undefined &&
138
- input.outputS3KeyPrefix !== null && { outputS3KeyPrefix: input.outputS3KeyPrefix })), (input.shots !== undefined && input.shots !== null && { shots: input.shots })), (input.tags !== undefined &&
139
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
128
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.action != null && { action: __LazyJsonString.fromObject(input.action) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deviceArn != null && { deviceArn: input.deviceArn })), (input.deviceParameters != null && { deviceParameters: __LazyJsonString.fromObject(input.deviceParameters) })), (input.jobToken != null && { jobToken: input.jobToken })), (input.outputS3Bucket != null && { outputS3Bucket: input.outputS3Bucket })), (input.outputS3KeyPrefix != null && { outputS3KeyPrefix: input.outputS3KeyPrefix })), (input.shots != null && { shots: input.shots })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
140
129
  return [2, new __HttpRequest({
141
130
  protocol: protocol,
142
131
  hostname: hostname,
@@ -284,8 +273,7 @@ export var serializeAws_restJson1SearchDevicesCommand = function (input, context
284
273
  "content-type": "application/json",
285
274
  };
286
275
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/devices";
287
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
288
- input.filters !== null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
276
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1SearchDevicesFilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
289
277
  return [2, new __HttpRequest({
290
278
  protocol: protocol,
291
279
  hostname: hostname,
@@ -309,8 +297,7 @@ export var serializeAws_restJson1SearchJobsCommand = function (input, context) {
309
297
  "content-type": "application/json",
310
298
  };
311
299
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
312
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
313
- input.filters !== null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
300
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1SearchJobsFilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
314
301
  return [2, new __HttpRequest({
315
302
  protocol: protocol,
316
303
  hostname: hostname,
@@ -334,10 +321,9 @@ export var serializeAws_restJson1SearchQuantumTasksCommand = function (input, co
334
321
  "content-type": "application/json",
335
322
  };
336
323
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/quantum-tasks";
337
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
338
- input.filters !== null && {
324
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && {
339
325
  filters: serializeAws_restJson1SearchQuantumTasksFilterList(input.filters, context),
340
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
326
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
341
327
  return [2, new __HttpRequest({
342
328
  protocol: protocol,
343
329
  hostname: hostname,
@@ -371,8 +357,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
371
357
  else {
372
358
  throw new Error("No value provided for input HTTP label: resourceArn.");
373
359
  }
374
- body = JSON.stringify(__assign({}, (input.tags !== undefined &&
375
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
360
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
376
361
  return [2, new __HttpRequest({
377
362
  protocol: protocol,
378
363
  hostname: hostname,
@@ -1608,23 +1593,22 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
1608
1593
  });
1609
1594
  }); };
1610
1595
  var serializeAws_restJson1AlgorithmSpecification = function (input, context) {
1611
- return __assign(__assign({}, (input.containerImage !== undefined &&
1612
- input.containerImage !== null && {
1596
+ return __assign(__assign({}, (input.containerImage != null && {
1613
1597
  containerImage: serializeAws_restJson1ContainerImage(input.containerImage, context),
1614
- })), (input.scriptModeConfig !== undefined &&
1615
- input.scriptModeConfig !== null && {
1598
+ })), (input.scriptModeConfig != null && {
1616
1599
  scriptModeConfig: serializeAws_restJson1ScriptModeConfig(input.scriptModeConfig, context),
1617
1600
  }));
1618
1601
  };
1619
1602
  var serializeAws_restJson1ContainerImage = function (input, context) {
1620
- return __assign({}, (input.uri !== undefined && input.uri !== null && { uri: input.uri }));
1603
+ return __assign({}, (input.uri != null && { uri: input.uri }));
1621
1604
  };
1622
1605
  var serializeAws_restJson1DataSource = function (input, context) {
1623
- return __assign({}, (input.s3DataSource !== undefined &&
1624
- input.s3DataSource !== null && { s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context) }));
1606
+ return __assign({}, (input.s3DataSource != null && {
1607
+ s3DataSource: serializeAws_restJson1S3DataSource(input.s3DataSource, context),
1608
+ }));
1625
1609
  };
1626
1610
  var serializeAws_restJson1DeviceConfig = function (input, context) {
1627
- return __assign({}, (input.device !== undefined && input.device !== null && { device: input.device }));
1611
+ return __assign({}, (input.device != null && { device: input.device }));
1628
1612
  };
1629
1613
  var serializeAws_restJson1HyperParameters = function (input, context) {
1630
1614
  return Object.entries(input).reduce(function (acc, _a) {
@@ -1647,33 +1631,28 @@ var serializeAws_restJson1InputConfigList = function (input, context) {
1647
1631
  });
1648
1632
  };
1649
1633
  var serializeAws_restJson1InputFileConfig = function (input, context) {
1650
- return __assign(__assign(__assign({}, (input.channelName !== undefined && input.channelName !== null && { channelName: input.channelName })), (input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType })), (input.dataSource !== undefined &&
1651
- input.dataSource !== null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }));
1634
+ return __assign(__assign(__assign({}, (input.channelName != null && { channelName: input.channelName })), (input.contentType != null && { contentType: input.contentType })), (input.dataSource != null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }));
1652
1635
  };
1653
1636
  var serializeAws_restJson1InstanceConfig = function (input, context) {
1654
- return __assign(__assign(__assign({}, (input.instanceCount !== undefined && input.instanceCount !== null && { instanceCount: input.instanceCount })), (input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType })), (input.volumeSizeInGb !== undefined &&
1655
- input.volumeSizeInGb !== null && { volumeSizeInGb: input.volumeSizeInGb }));
1637
+ return __assign(__assign(__assign({}, (input.instanceCount != null && { instanceCount: input.instanceCount })), (input.instanceType != null && { instanceType: input.instanceType })), (input.volumeSizeInGb != null && { volumeSizeInGb: input.volumeSizeInGb }));
1656
1638
  };
1657
1639
  var serializeAws_restJson1JobCheckpointConfig = function (input, context) {
1658
- return __assign(__assign({}, (input.localPath !== undefined && input.localPath !== null && { localPath: input.localPath })), (input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }));
1640
+ return __assign(__assign({}, (input.localPath != null && { localPath: input.localPath })), (input.s3Uri != null && { s3Uri: input.s3Uri }));
1659
1641
  };
1660
1642
  var serializeAws_restJson1JobOutputDataConfig = function (input, context) {
1661
- return __assign(__assign({}, (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.s3Path !== undefined && input.s3Path !== null && { s3Path: input.s3Path }));
1643
+ return __assign(__assign({}, (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.s3Path != null && { s3Path: input.s3Path }));
1662
1644
  };
1663
1645
  var serializeAws_restJson1JobStoppingCondition = function (input, context) {
1664
- return __assign({}, (input.maxRuntimeInSeconds !== undefined &&
1665
- input.maxRuntimeInSeconds !== null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }));
1646
+ return __assign({}, (input.maxRuntimeInSeconds != null && { maxRuntimeInSeconds: input.maxRuntimeInSeconds }));
1666
1647
  };
1667
1648
  var serializeAws_restJson1S3DataSource = function (input, context) {
1668
- return __assign({}, (input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }));
1649
+ return __assign({}, (input.s3Uri != null && { s3Uri: input.s3Uri }));
1669
1650
  };
1670
1651
  var serializeAws_restJson1ScriptModeConfig = function (input, context) {
1671
- return __assign(__assign(__assign({}, (input.compressionType !== undefined &&
1672
- input.compressionType !== null && { compressionType: input.compressionType })), (input.entryPoint !== undefined && input.entryPoint !== null && { entryPoint: input.entryPoint })), (input.s3Uri !== undefined && input.s3Uri !== null && { s3Uri: input.s3Uri }));
1652
+ return __assign(__assign(__assign({}, (input.compressionType != null && { compressionType: input.compressionType })), (input.entryPoint != null && { entryPoint: input.entryPoint })), (input.s3Uri != null && { s3Uri: input.s3Uri }));
1673
1653
  };
1674
1654
  var serializeAws_restJson1SearchDevicesFilter = function (input, context) {
1675
- return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.values !== undefined &&
1676
- input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }));
1655
+ return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }));
1677
1656
  };
1678
1657
  var serializeAws_restJson1SearchDevicesFilterList = function (input, context) {
1679
1658
  return input
@@ -1686,8 +1665,7 @@ var serializeAws_restJson1SearchDevicesFilterList = function (input, context) {
1686
1665
  });
1687
1666
  };
1688
1667
  var serializeAws_restJson1SearchJobsFilter = function (input, context) {
1689
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
1690
- input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }));
1668
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }));
1691
1669
  };
1692
1670
  var serializeAws_restJson1SearchJobsFilterList = function (input, context) {
1693
1671
  return input
@@ -1700,8 +1678,7 @@ var serializeAws_restJson1SearchJobsFilterList = function (input, context) {
1700
1678
  });
1701
1679
  };
1702
1680
  var serializeAws_restJson1SearchQuantumTasksFilter = function (input, context) {
1703
- return __assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.values !== undefined &&
1704
- input.values !== null && { values: serializeAws_restJson1String256List(input.values, context) }));
1681
+ return __assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.operator != null && { operator: input.operator })), (input.values != null && { values: serializeAws_restJson1String256List(input.values, context) }));
1705
1682
  };
1706
1683
  var serializeAws_restJson1SearchQuantumTasksFilterList = function (input, context) {
1707
1684
  return input
@@ -1735,10 +1712,10 @@ var serializeAws_restJson1TagsMap = function (input, context) {
1735
1712
  };
1736
1713
  var deserializeAws_restJson1AlgorithmSpecification = function (output, context) {
1737
1714
  return {
1738
- containerImage: output.containerImage !== undefined && output.containerImage !== null
1715
+ containerImage: output.containerImage != null
1739
1716
  ? deserializeAws_restJson1ContainerImage(output.containerImage, context)
1740
1717
  : undefined,
1741
- scriptModeConfig: output.scriptModeConfig !== undefined && output.scriptModeConfig !== null
1718
+ scriptModeConfig: output.scriptModeConfig != null
1742
1719
  ? deserializeAws_restJson1ScriptModeConfig(output.scriptModeConfig, context)
1743
1720
  : undefined,
1744
1721
  };
@@ -1750,9 +1727,7 @@ var deserializeAws_restJson1ContainerImage = function (output, context) {
1750
1727
  };
1751
1728
  var deserializeAws_restJson1DataSource = function (output, context) {
1752
1729
  return {
1753
- s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
1754
- ? deserializeAws_restJson1S3DataSource(output.s3DataSource, context)
1755
- : undefined,
1730
+ s3DataSource: output.s3DataSource != null ? deserializeAws_restJson1S3DataSource(output.s3DataSource, context) : undefined,
1756
1731
  };
1757
1732
  };
1758
1733
  var deserializeAws_restJson1DeviceConfig = function (output, context) {
@@ -1805,9 +1780,7 @@ var deserializeAws_restJson1InputFileConfig = function (output, context) {
1805
1780
  return {
1806
1781
  channelName: __expectString(output.channelName),
1807
1782
  contentType: __expectString(output.contentType),
1808
- dataSource: output.dataSource !== undefined && output.dataSource !== null
1809
- ? deserializeAws_restJson1DataSource(output.dataSource, context)
1810
- : undefined,
1783
+ dataSource: output.dataSource != null ? deserializeAws_restJson1DataSource(output.dataSource, context) : undefined,
1811
1784
  };
1812
1785
  };
1813
1786
  var deserializeAws_restJson1InstanceConfig = function (output, context) {
@@ -1827,9 +1800,7 @@ var deserializeAws_restJson1JobEventDetails = function (output, context) {
1827
1800
  return {
1828
1801
  eventType: __expectString(output.eventType),
1829
1802
  message: __expectString(output.message),
1830
- timeOfEvent: output.timeOfEvent !== undefined && output.timeOfEvent !== null
1831
- ? __expectNonNull(__parseRfc3339DateTime(output.timeOfEvent))
1832
- : undefined,
1803
+ timeOfEvent: output.timeOfEvent != null ? __expectNonNull(__parseRfc3339DateTime(output.timeOfEvent)) : undefined,
1833
1804
  };
1834
1805
  };
1835
1806
  var deserializeAws_restJson1JobEvents = function (output, context) {
@@ -1856,22 +1827,14 @@ var deserializeAws_restJson1JobStoppingCondition = function (output, context) {
1856
1827
  };
1857
1828
  var deserializeAws_restJson1JobSummary = function (output, context) {
1858
1829
  return {
1859
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1860
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
1861
- : undefined,
1830
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
1862
1831
  device: __expectString(output.device),
1863
- endedAt: output.endedAt !== undefined && output.endedAt !== null
1864
- ? __expectNonNull(__parseRfc3339DateTime(output.endedAt))
1865
- : undefined,
1832
+ endedAt: output.endedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.endedAt)) : undefined,
1866
1833
  jobArn: __expectString(output.jobArn),
1867
1834
  jobName: __expectString(output.jobName),
1868
- startedAt: output.startedAt !== undefined && output.startedAt !== null
1869
- ? __expectNonNull(__parseRfc3339DateTime(output.startedAt))
1870
- : undefined,
1835
+ startedAt: output.startedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.startedAt)) : undefined,
1871
1836
  status: __expectString(output.status),
1872
- tags: output.tags !== undefined && output.tags !== null
1873
- ? deserializeAws_restJson1TagsMap(output.tags, context)
1874
- : undefined,
1837
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1875
1838
  };
1876
1839
  };
1877
1840
  var deserializeAws_restJson1JobSummaryList = function (output, context) {
@@ -1887,21 +1850,15 @@ var deserializeAws_restJson1JobSummaryList = function (output, context) {
1887
1850
  };
1888
1851
  var deserializeAws_restJson1QuantumTaskSummary = function (output, context) {
1889
1852
  return {
1890
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1891
- ? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
1892
- : undefined,
1853
+ createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTime(output.createdAt)) : undefined,
1893
1854
  deviceArn: __expectString(output.deviceArn),
1894
- endedAt: output.endedAt !== undefined && output.endedAt !== null
1895
- ? __expectNonNull(__parseRfc3339DateTime(output.endedAt))
1896
- : undefined,
1855
+ endedAt: output.endedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.endedAt)) : undefined,
1897
1856
  outputS3Bucket: __expectString(output.outputS3Bucket),
1898
1857
  outputS3Directory: __expectString(output.outputS3Directory),
1899
1858
  quantumTaskArn: __expectString(output.quantumTaskArn),
1900
1859
  shots: __expectLong(output.shots),
1901
1860
  status: __expectString(output.status),
1902
- tags: output.tags !== undefined && output.tags !== null
1903
- ? deserializeAws_restJson1TagsMap(output.tags, context)
1904
- : undefined,
1861
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
1905
1862
  };
1906
1863
  };
1907
1864
  var deserializeAws_restJson1QuantumTaskSummaryList = function (output, context) {
@@ -1975,6 +1932,9 @@ var loadRestJsonErrorCode = function (output, data) {
1975
1932
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1976
1933
  var sanitizeErrorCode = function (rawValue) {
1977
1934
  var cleanValue = rawValue;
1935
+ if (typeof cleanValue === "number") {
1936
+ cleanValue = cleanValue.toString();
1937
+ }
1978
1938
  if (cleanValue.indexOf(":") >= 0) {
1979
1939
  cleanValue = cleanValue.split(":")[0];
1980
1940
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-braket",
3
3
  "description": "AWS SDK for JavaScript Braket Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1",