@aws-sdk/client-synthetics 3.124.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-synthetics
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-synthetics
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.124.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.123.0...v3.124.0) (2022-07-06)
7
34
 
8
35
 
@@ -23,7 +23,7 @@ const serializeAws_restJson1AssociateResourceCommand = async (input, context) =>
23
23
  }
24
24
  let body;
25
25
  body = JSON.stringify({
26
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
26
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
27
27
  });
28
28
  return new protocol_http_1.HttpRequest({
29
29
  protocol,
@@ -44,34 +44,24 @@ const serializeAws_restJson1CreateCanaryCommand = async (input, context) => {
44
44
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/canary";
45
45
  let body;
46
46
  body = JSON.stringify({
47
- ...(input.ArtifactConfig !== undefined &&
48
- input.ArtifactConfig !== null && {
47
+ ...(input.ArtifactConfig != null && {
49
48
  ArtifactConfig: serializeAws_restJson1ArtifactConfigInput(input.ArtifactConfig, context),
50
49
  }),
51
- ...(input.ArtifactS3Location !== undefined &&
52
- input.ArtifactS3Location !== null && { ArtifactS3Location: input.ArtifactS3Location }),
53
- ...(input.Code !== undefined &&
54
- input.Code !== null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) }),
55
- ...(input.ExecutionRoleArn !== undefined &&
56
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn }),
57
- ...(input.FailureRetentionPeriodInDays !== undefined &&
58
- input.FailureRetentionPeriodInDays !== null && {
50
+ ...(input.ArtifactS3Location != null && { ArtifactS3Location: input.ArtifactS3Location }),
51
+ ...(input.Code != null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) }),
52
+ ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
53
+ ...(input.FailureRetentionPeriodInDays != null && {
59
54
  FailureRetentionPeriodInDays: input.FailureRetentionPeriodInDays,
60
55
  }),
61
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
62
- ...(input.RunConfig !== undefined &&
63
- input.RunConfig !== null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) }),
64
- ...(input.RuntimeVersion !== undefined &&
65
- input.RuntimeVersion !== null && { RuntimeVersion: input.RuntimeVersion }),
66
- ...(input.Schedule !== undefined &&
67
- input.Schedule !== null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) }),
68
- ...(input.SuccessRetentionPeriodInDays !== undefined &&
69
- input.SuccessRetentionPeriodInDays !== null && {
56
+ ...(input.Name != null && { Name: input.Name }),
57
+ ...(input.RunConfig != null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) }),
58
+ ...(input.RuntimeVersion != null && { RuntimeVersion: input.RuntimeVersion }),
59
+ ...(input.Schedule != null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) }),
60
+ ...(input.SuccessRetentionPeriodInDays != null && {
70
61
  SuccessRetentionPeriodInDays: input.SuccessRetentionPeriodInDays,
71
62
  }),
72
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
73
- ...(input.VpcConfig !== undefined &&
74
- input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) }),
63
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
64
+ ...(input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) }),
75
65
  });
76
66
  return new protocol_http_1.HttpRequest({
77
67
  protocol,
@@ -92,8 +82,8 @@ const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
92
82
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/group";
93
83
  let body;
94
84
  body = JSON.stringify({
95
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
96
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
85
+ ...(input.Name != null && { Name: input.Name }),
86
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
97
87
  });
98
88
  return new protocol_http_1.HttpRequest({
99
89
  protocol,
@@ -170,10 +160,9 @@ const serializeAws_restJson1DescribeCanariesCommand = async (input, context) =>
170
160
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/canaries";
171
161
  let body;
172
162
  body = JSON.stringify({
173
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
174
- ...(input.Names !== undefined &&
175
- input.Names !== null && { Names: serializeAws_restJson1DescribeCanariesNameFilter(input.Names, context) }),
176
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
163
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
164
+ ...(input.Names != null && { Names: serializeAws_restJson1DescribeCanariesNameFilter(input.Names, context) }),
165
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
177
166
  });
178
167
  return new protocol_http_1.HttpRequest({
179
168
  protocol,
@@ -194,10 +183,11 @@ const serializeAws_restJson1DescribeCanariesLastRunCommand = async (input, conte
194
183
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/canaries/last-run";
195
184
  let body;
196
185
  body = JSON.stringify({
197
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
198
- ...(input.Names !== undefined &&
199
- input.Names !== null && { Names: serializeAws_restJson1DescribeCanariesLastRunNameFilter(input.Names, context) }),
200
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
186
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
187
+ ...(input.Names != null && {
188
+ Names: serializeAws_restJson1DescribeCanariesLastRunNameFilter(input.Names, context),
189
+ }),
190
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
201
191
  });
202
192
  return new protocol_http_1.HttpRequest({
203
193
  protocol,
@@ -218,8 +208,8 @@ const serializeAws_restJson1DescribeRuntimeVersionsCommand = async (input, conte
218
208
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/runtime-versions";
219
209
  let body;
220
210
  body = JSON.stringify({
221
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
222
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
211
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
212
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
223
213
  });
224
214
  return new protocol_http_1.HttpRequest({
225
215
  protocol,
@@ -250,7 +240,7 @@ const serializeAws_restJson1DisassociateResourceCommand = async (input, context)
250
240
  }
251
241
  let body;
252
242
  body = JSON.stringify({
253
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
243
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
254
244
  });
255
245
  return new protocol_http_1.HttpRequest({
256
246
  protocol,
@@ -307,8 +297,8 @@ const serializeAws_restJson1GetCanaryRunsCommand = async (input, context) => {
307
297
  }
308
298
  let body;
309
299
  body = JSON.stringify({
310
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
311
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
300
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
301
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
312
302
  });
313
303
  return new protocol_http_1.HttpRequest({
314
304
  protocol,
@@ -365,8 +355,8 @@ const serializeAws_restJson1ListAssociatedGroupsCommand = async (input, context)
365
355
  }
366
356
  let body;
367
357
  body = JSON.stringify({
368
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
369
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
358
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
359
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
370
360
  });
371
361
  return new protocol_http_1.HttpRequest({
372
362
  protocol,
@@ -397,8 +387,8 @@ const serializeAws_restJson1ListGroupResourcesCommand = async (input, context) =
397
387
  }
398
388
  let body;
399
389
  body = JSON.stringify({
400
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
401
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
390
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
391
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
402
392
  });
403
393
  return new protocol_http_1.HttpRequest({
404
394
  protocol,
@@ -419,8 +409,8 @@ const serializeAws_restJson1ListGroupsCommand = async (input, context) => {
419
409
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/groups";
420
410
  let body;
421
411
  body = JSON.stringify({
422
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
423
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
412
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
413
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
424
414
  });
425
415
  return new protocol_http_1.HttpRequest({
426
416
  protocol,
@@ -529,7 +519,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
529
519
  }
530
520
  let body;
531
521
  body = JSON.stringify({
532
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
522
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
533
523
  });
534
524
  return new protocol_http_1.HttpRequest({
535
525
  protocol,
@@ -590,36 +580,25 @@ const serializeAws_restJson1UpdateCanaryCommand = async (input, context) => {
590
580
  }
591
581
  let body;
592
582
  body = JSON.stringify({
593
- ...(input.ArtifactConfig !== undefined &&
594
- input.ArtifactConfig !== null && {
583
+ ...(input.ArtifactConfig != null && {
595
584
  ArtifactConfig: serializeAws_restJson1ArtifactConfigInput(input.ArtifactConfig, context),
596
585
  }),
597
- ...(input.ArtifactS3Location !== undefined &&
598
- input.ArtifactS3Location !== null && { ArtifactS3Location: input.ArtifactS3Location }),
599
- ...(input.Code !== undefined &&
600
- input.Code !== null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) }),
601
- ...(input.ExecutionRoleArn !== undefined &&
602
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn }),
603
- ...(input.FailureRetentionPeriodInDays !== undefined &&
604
- input.FailureRetentionPeriodInDays !== null && {
586
+ ...(input.ArtifactS3Location != null && { ArtifactS3Location: input.ArtifactS3Location }),
587
+ ...(input.Code != null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) }),
588
+ ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
589
+ ...(input.FailureRetentionPeriodInDays != null && {
605
590
  FailureRetentionPeriodInDays: input.FailureRetentionPeriodInDays,
606
591
  }),
607
- ...(input.RunConfig !== undefined &&
608
- input.RunConfig !== null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) }),
609
- ...(input.RuntimeVersion !== undefined &&
610
- input.RuntimeVersion !== null && { RuntimeVersion: input.RuntimeVersion }),
611
- ...(input.Schedule !== undefined &&
612
- input.Schedule !== null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) }),
613
- ...(input.SuccessRetentionPeriodInDays !== undefined &&
614
- input.SuccessRetentionPeriodInDays !== null && {
592
+ ...(input.RunConfig != null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) }),
593
+ ...(input.RuntimeVersion != null && { RuntimeVersion: input.RuntimeVersion }),
594
+ ...(input.Schedule != null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) }),
595
+ ...(input.SuccessRetentionPeriodInDays != null && {
615
596
  SuccessRetentionPeriodInDays: input.SuccessRetentionPeriodInDays,
616
597
  }),
617
- ...(input.VisualReference !== undefined &&
618
- input.VisualReference !== null && {
598
+ ...(input.VisualReference != null && {
619
599
  VisualReference: serializeAws_restJson1VisualReferenceInput(input.VisualReference, context),
620
600
  }),
621
- ...(input.VpcConfig !== undefined &&
622
- input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) }),
601
+ ...(input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) }),
623
602
  });
624
603
  return new protocol_http_1.HttpRequest({
625
604
  protocol,
@@ -1709,20 +1688,17 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1709
1688
  };
1710
1689
  const serializeAws_restJson1ArtifactConfigInput = (input, context) => {
1711
1690
  return {
1712
- ...(input.S3Encryption !== undefined &&
1713
- input.S3Encryption !== null && {
1691
+ ...(input.S3Encryption != null && {
1714
1692
  S3Encryption: serializeAws_restJson1S3EncryptionConfig(input.S3Encryption, context),
1715
1693
  }),
1716
1694
  };
1717
1695
  };
1718
1696
  const serializeAws_restJson1BaseScreenshot = (input, context) => {
1719
1697
  return {
1720
- ...(input.IgnoreCoordinates !== undefined &&
1721
- input.IgnoreCoordinates !== null && {
1698
+ ...(input.IgnoreCoordinates != null && {
1722
1699
  IgnoreCoordinates: serializeAws_restJson1BaseScreenshotIgnoreCoordinates(input.IgnoreCoordinates, context),
1723
1700
  }),
1724
- ...(input.ScreenshotName !== undefined &&
1725
- input.ScreenshotName !== null && { ScreenshotName: input.ScreenshotName }),
1701
+ ...(input.ScreenshotName != null && { ScreenshotName: input.ScreenshotName }),
1726
1702
  };
1727
1703
  };
1728
1704
  const serializeAws_restJson1BaseScreenshotIgnoreCoordinates = (input, context) => {
@@ -1747,30 +1723,27 @@ const serializeAws_restJson1BaseScreenshots = (input, context) => {
1747
1723
  };
1748
1724
  const serializeAws_restJson1CanaryCodeInput = (input, context) => {
1749
1725
  return {
1750
- ...(input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler }),
1751
- ...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
1752
- ...(input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }),
1753
- ...(input.S3Version !== undefined && input.S3Version !== null && { S3Version: input.S3Version }),
1754
- ...(input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }),
1726
+ ...(input.Handler != null && { Handler: input.Handler }),
1727
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
1728
+ ...(input.S3Key != null && { S3Key: input.S3Key }),
1729
+ ...(input.S3Version != null && { S3Version: input.S3Version }),
1730
+ ...(input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }),
1755
1731
  };
1756
1732
  };
1757
1733
  const serializeAws_restJson1CanaryRunConfigInput = (input, context) => {
1758
1734
  return {
1759
- ...(input.ActiveTracing !== undefined && input.ActiveTracing !== null && { ActiveTracing: input.ActiveTracing }),
1760
- ...(input.EnvironmentVariables !== undefined &&
1761
- input.EnvironmentVariables !== null && {
1735
+ ...(input.ActiveTracing != null && { ActiveTracing: input.ActiveTracing }),
1736
+ ...(input.EnvironmentVariables != null && {
1762
1737
  EnvironmentVariables: serializeAws_restJson1EnvironmentVariablesMap(input.EnvironmentVariables, context),
1763
1738
  }),
1764
- ...(input.MemoryInMB !== undefined && input.MemoryInMB !== null && { MemoryInMB: input.MemoryInMB }),
1765
- ...(input.TimeoutInSeconds !== undefined &&
1766
- input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }),
1739
+ ...(input.MemoryInMB != null && { MemoryInMB: input.MemoryInMB }),
1740
+ ...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
1767
1741
  };
1768
1742
  };
1769
1743
  const serializeAws_restJson1CanaryScheduleInput = (input, context) => {
1770
1744
  return {
1771
- ...(input.DurationInSeconds !== undefined &&
1772
- input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds }),
1773
- ...(input.Expression !== undefined && input.Expression !== null && { Expression: input.Expression }),
1745
+ ...(input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds }),
1746
+ ...(input.Expression != null && { Expression: input.Expression }),
1774
1747
  };
1775
1748
  };
1776
1749
  const serializeAws_restJson1DescribeCanariesLastRunNameFilter = (input, context) => {
@@ -1806,9 +1779,8 @@ const serializeAws_restJson1EnvironmentVariablesMap = (input, context) => {
1806
1779
  };
1807
1780
  const serializeAws_restJson1S3EncryptionConfig = (input, context) => {
1808
1781
  return {
1809
- ...(input.EncryptionMode !== undefined &&
1810
- input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
1811
- ...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }),
1782
+ ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
1783
+ ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
1812
1784
  };
1813
1785
  };
1814
1786
  const serializeAws_restJson1SecurityGroupIds = (input, context) => {
@@ -1844,34 +1816,30 @@ const serializeAws_restJson1TagMap = (input, context) => {
1844
1816
  };
1845
1817
  const serializeAws_restJson1VisualReferenceInput = (input, context) => {
1846
1818
  return {
1847
- ...(input.BaseCanaryRunId !== undefined &&
1848
- input.BaseCanaryRunId !== null && { BaseCanaryRunId: input.BaseCanaryRunId }),
1849
- ...(input.BaseScreenshots !== undefined &&
1850
- input.BaseScreenshots !== null && {
1819
+ ...(input.BaseCanaryRunId != null && { BaseCanaryRunId: input.BaseCanaryRunId }),
1820
+ ...(input.BaseScreenshots != null && {
1851
1821
  BaseScreenshots: serializeAws_restJson1BaseScreenshots(input.BaseScreenshots, context),
1852
1822
  }),
1853
1823
  };
1854
1824
  };
1855
1825
  const serializeAws_restJson1VpcConfigInput = (input, context) => {
1856
1826
  return {
1857
- ...(input.SecurityGroupIds !== undefined &&
1858
- input.SecurityGroupIds !== null && {
1827
+ ...(input.SecurityGroupIds != null && {
1859
1828
  SecurityGroupIds: serializeAws_restJson1SecurityGroupIds(input.SecurityGroupIds, context),
1860
1829
  }),
1861
- ...(input.SubnetIds !== undefined &&
1862
- input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }),
1830
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }),
1863
1831
  };
1864
1832
  };
1865
1833
  const deserializeAws_restJson1ArtifactConfigOutput = (output, context) => {
1866
1834
  return {
1867
- S3Encryption: output.S3Encryption !== undefined && output.S3Encryption !== null
1835
+ S3Encryption: output.S3Encryption != null
1868
1836
  ? deserializeAws_restJson1S3EncryptionConfig(output.S3Encryption, context)
1869
1837
  : undefined,
1870
1838
  };
1871
1839
  };
1872
1840
  const deserializeAws_restJson1BaseScreenshot = (output, context) => {
1873
1841
  return {
1874
- IgnoreCoordinates: output.IgnoreCoordinates !== undefined && output.IgnoreCoordinates !== null
1842
+ IgnoreCoordinates: output.IgnoreCoordinates != null
1875
1843
  ? deserializeAws_restJson1BaseScreenshotIgnoreCoordinates(output.IgnoreCoordinates, context)
1876
1844
  : undefined,
1877
1845
  ScreenshotName: (0, smithy_client_1.expectString)(output.ScreenshotName),
@@ -1923,41 +1891,27 @@ const deserializeAws_restJson1CanariesLastRun = (output, context) => {
1923
1891
  };
1924
1892
  const deserializeAws_restJson1Canary = (output, context) => {
1925
1893
  return {
1926
- ArtifactConfig: output.ArtifactConfig !== undefined && output.ArtifactConfig !== null
1894
+ ArtifactConfig: output.ArtifactConfig != null
1927
1895
  ? deserializeAws_restJson1ArtifactConfigOutput(output.ArtifactConfig, context)
1928
1896
  : undefined,
1929
1897
  ArtifactS3Location: (0, smithy_client_1.expectString)(output.ArtifactS3Location),
1930
- Code: output.Code !== undefined && output.Code !== null
1931
- ? deserializeAws_restJson1CanaryCodeOutput(output.Code, context)
1932
- : undefined,
1898
+ Code: output.Code != null ? deserializeAws_restJson1CanaryCodeOutput(output.Code, context) : undefined,
1933
1899
  EngineArn: (0, smithy_client_1.expectString)(output.EngineArn),
1934
1900
  ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
1935
1901
  FailureRetentionPeriodInDays: (0, smithy_client_1.expectInt32)(output.FailureRetentionPeriodInDays),
1936
1902
  Id: (0, smithy_client_1.expectString)(output.Id),
1937
1903
  Name: (0, smithy_client_1.expectString)(output.Name),
1938
- RunConfig: output.RunConfig !== undefined && output.RunConfig !== null
1939
- ? deserializeAws_restJson1CanaryRunConfigOutput(output.RunConfig, context)
1940
- : undefined,
1904
+ RunConfig: output.RunConfig != null ? deserializeAws_restJson1CanaryRunConfigOutput(output.RunConfig, context) : undefined,
1941
1905
  RuntimeVersion: (0, smithy_client_1.expectString)(output.RuntimeVersion),
1942
- Schedule: output.Schedule !== undefined && output.Schedule !== null
1943
- ? deserializeAws_restJson1CanaryScheduleOutput(output.Schedule, context)
1944
- : undefined,
1945
- Status: output.Status !== undefined && output.Status !== null
1946
- ? deserializeAws_restJson1CanaryStatus(output.Status, context)
1947
- : undefined,
1906
+ Schedule: output.Schedule != null ? deserializeAws_restJson1CanaryScheduleOutput(output.Schedule, context) : undefined,
1907
+ Status: output.Status != null ? deserializeAws_restJson1CanaryStatus(output.Status, context) : undefined,
1948
1908
  SuccessRetentionPeriodInDays: (0, smithy_client_1.expectInt32)(output.SuccessRetentionPeriodInDays),
1949
- Tags: output.Tags !== undefined && output.Tags !== null
1950
- ? deserializeAws_restJson1TagMap(output.Tags, context)
1951
- : undefined,
1952
- Timeline: output.Timeline !== undefined && output.Timeline !== null
1953
- ? deserializeAws_restJson1CanaryTimeline(output.Timeline, context)
1954
- : undefined,
1955
- VisualReference: output.VisualReference !== undefined && output.VisualReference !== null
1909
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
1910
+ Timeline: output.Timeline != null ? deserializeAws_restJson1CanaryTimeline(output.Timeline, context) : undefined,
1911
+ VisualReference: output.VisualReference != null
1956
1912
  ? deserializeAws_restJson1VisualReferenceOutput(output.VisualReference, context)
1957
1913
  : undefined,
1958
- VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
1959
- ? deserializeAws_restJson1VpcConfigOutput(output.VpcConfig, context)
1960
- : undefined,
1914
+ VpcConfig: output.VpcConfig != null ? deserializeAws_restJson1VpcConfigOutput(output.VpcConfig, context) : undefined,
1961
1915
  };
1962
1916
  };
1963
1917
  const deserializeAws_restJson1CanaryCodeOutput = (output, context) => {
@@ -1969,9 +1923,7 @@ const deserializeAws_restJson1CanaryCodeOutput = (output, context) => {
1969
1923
  const deserializeAws_restJson1CanaryLastRun = (output, context) => {
1970
1924
  return {
1971
1925
  CanaryName: (0, smithy_client_1.expectString)(output.CanaryName),
1972
- LastRun: output.LastRun !== undefined && output.LastRun !== null
1973
- ? deserializeAws_restJson1CanaryRun(output.LastRun, context)
1974
- : undefined,
1926
+ LastRun: output.LastRun != null ? deserializeAws_restJson1CanaryRun(output.LastRun, context) : undefined,
1975
1927
  };
1976
1928
  };
1977
1929
  const deserializeAws_restJson1CanaryRun = (output, context) => {
@@ -1979,12 +1931,8 @@ const deserializeAws_restJson1CanaryRun = (output, context) => {
1979
1931
  ArtifactS3Location: (0, smithy_client_1.expectString)(output.ArtifactS3Location),
1980
1932
  Id: (0, smithy_client_1.expectString)(output.Id),
1981
1933
  Name: (0, smithy_client_1.expectString)(output.Name),
1982
- Status: output.Status !== undefined && output.Status !== null
1983
- ? deserializeAws_restJson1CanaryRunStatus(output.Status, context)
1984
- : undefined,
1985
- Timeline: output.Timeline !== undefined && output.Timeline !== null
1986
- ? deserializeAws_restJson1CanaryRunTimeline(output.Timeline, context)
1987
- : undefined,
1934
+ Status: output.Status != null ? deserializeAws_restJson1CanaryRunStatus(output.Status, context) : undefined,
1935
+ Timeline: output.Timeline != null ? deserializeAws_restJson1CanaryRunTimeline(output.Timeline, context) : undefined,
1988
1936
  };
1989
1937
  };
1990
1938
  const deserializeAws_restJson1CanaryRunConfigOutput = (output, context) => {
@@ -2014,12 +1962,8 @@ const deserializeAws_restJson1CanaryRunStatus = (output, context) => {
2014
1962
  };
2015
1963
  const deserializeAws_restJson1CanaryRunTimeline = (output, context) => {
2016
1964
  return {
2017
- Completed: output.Completed !== undefined && output.Completed !== null
2018
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Completed)))
2019
- : undefined,
2020
- Started: output.Started !== undefined && output.Started !== null
2021
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Started)))
2022
- : undefined,
1965
+ Completed: output.Completed != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Completed))) : undefined,
1966
+ Started: output.Started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Started))) : undefined,
2023
1967
  };
2024
1968
  };
2025
1969
  const deserializeAws_restJson1CanaryScheduleOutput = (output, context) => {
@@ -2037,16 +1981,14 @@ const deserializeAws_restJson1CanaryStatus = (output, context) => {
2037
1981
  };
2038
1982
  const deserializeAws_restJson1CanaryTimeline = (output, context) => {
2039
1983
  return {
2040
- Created: output.Created !== undefined && output.Created !== null
2041
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created)))
2042
- : undefined,
2043
- LastModified: output.LastModified !== undefined && output.LastModified !== null
1984
+ Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
1985
+ LastModified: output.LastModified != null
2044
1986
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModified)))
2045
1987
  : undefined,
2046
- LastStarted: output.LastStarted !== undefined && output.LastStarted !== null
1988
+ LastStarted: output.LastStarted != null
2047
1989
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastStarted)))
2048
1990
  : undefined,
2049
- LastStopped: output.LastStopped !== undefined && output.LastStopped !== null
1991
+ LastStopped: output.LastStopped != null
2050
1992
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastStopped)))
2051
1993
  : undefined,
2052
1994
  };
@@ -2054,17 +1996,15 @@ const deserializeAws_restJson1CanaryTimeline = (output, context) => {
2054
1996
  const deserializeAws_restJson1Group = (output, context) => {
2055
1997
  return {
2056
1998
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2057
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
1999
+ CreatedTime: output.CreatedTime != null
2058
2000
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
2059
2001
  : undefined,
2060
2002
  Id: (0, smithy_client_1.expectString)(output.Id),
2061
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
2003
+ LastModifiedTime: output.LastModifiedTime != null
2062
2004
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
2063
2005
  : undefined,
2064
2006
  Name: (0, smithy_client_1.expectString)(output.Name),
2065
- Tags: output.Tags !== undefined && output.Tags !== null
2066
- ? deserializeAws_restJson1TagMap(output.Tags, context)
2067
- : undefined,
2007
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
2068
2008
  };
2069
2009
  };
2070
2010
  const deserializeAws_restJson1GroupSummary = (output, context) => {
@@ -2087,11 +2027,11 @@ const deserializeAws_restJson1GroupSummaryList = (output, context) => {
2087
2027
  };
2088
2028
  const deserializeAws_restJson1RuntimeVersion = (output, context) => {
2089
2029
  return {
2090
- DeprecationDate: output.DeprecationDate !== undefined && output.DeprecationDate !== null
2030
+ DeprecationDate: output.DeprecationDate != null
2091
2031
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeprecationDate)))
2092
2032
  : undefined,
2093
2033
  Description: (0, smithy_client_1.expectString)(output.Description),
2094
- ReleaseDate: output.ReleaseDate !== undefined && output.ReleaseDate !== null
2034
+ ReleaseDate: output.ReleaseDate != null
2095
2035
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReleaseDate)))
2096
2036
  : undefined,
2097
2037
  VersionName: (0, smithy_client_1.expectString)(output.VersionName),
@@ -2161,19 +2101,17 @@ const deserializeAws_restJson1TagMap = (output, context) => {
2161
2101
  const deserializeAws_restJson1VisualReferenceOutput = (output, context) => {
2162
2102
  return {
2163
2103
  BaseCanaryRunId: (0, smithy_client_1.expectString)(output.BaseCanaryRunId),
2164
- BaseScreenshots: output.BaseScreenshots !== undefined && output.BaseScreenshots !== null
2104
+ BaseScreenshots: output.BaseScreenshots != null
2165
2105
  ? deserializeAws_restJson1BaseScreenshots(output.BaseScreenshots, context)
2166
2106
  : undefined,
2167
2107
  };
2168
2108
  };
2169
2109
  const deserializeAws_restJson1VpcConfigOutput = (output, context) => {
2170
2110
  return {
2171
- SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
2111
+ SecurityGroupIds: output.SecurityGroupIds != null
2172
2112
  ? deserializeAws_restJson1SecurityGroupIds(output.SecurityGroupIds, context)
2173
2113
  : undefined,
2174
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
2175
- ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
2176
- : undefined,
2114
+ SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context) : undefined,
2177
2115
  VpcId: (0, smithy_client_1.expectString)(output.VpcId),
2178
2116
  };
2179
2117
  };
@@ -2208,6 +2146,9 @@ const loadRestJsonErrorCode = (output, data) => {
2208
2146
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2209
2147
  const sanitizeErrorCode = (rawValue) => {
2210
2148
  let cleanValue = rawValue;
2149
+ if (typeof cleanValue === "number") {
2150
+ cleanValue = cleanValue.toString();
2151
+ }
2211
2152
  if (cleanValue.indexOf(":") >= 0) {
2212
2153
  cleanValue = cleanValue.split(":")[0];
2213
2154
  }
@@ -24,7 +24,7 @@ export var serializeAws_restJson1AssociateResourceCommand = function (input, con
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: GroupIdentifier.");
26
26
  }
27
- body = JSON.stringify(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })));
27
+ body = JSON.stringify(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })));
28
28
  return [2, new __HttpRequest({
29
29
  protocol: protocol,
30
30
  hostname: hostname,
@@ -48,23 +48,13 @@ export var serializeAws_restJson1CreateCanaryCommand = function (input, context)
48
48
  "content-type": "application/json",
49
49
  };
50
50
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary";
51
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ArtifactConfig !== undefined &&
52
- input.ArtifactConfig !== null && {
51
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ArtifactConfig != null && {
53
52
  ArtifactConfig: serializeAws_restJson1ArtifactConfigInput(input.ArtifactConfig, context),
54
- })), (input.ArtifactS3Location !== undefined &&
55
- input.ArtifactS3Location !== null && { ArtifactS3Location: input.ArtifactS3Location })), (input.Code !== undefined &&
56
- input.Code !== null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) })), (input.ExecutionRoleArn !== undefined &&
57
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.FailureRetentionPeriodInDays !== undefined &&
58
- input.FailureRetentionPeriodInDays !== null && {
53
+ })), (input.ArtifactS3Location != null && { ArtifactS3Location: input.ArtifactS3Location })), (input.Code != null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.FailureRetentionPeriodInDays != null && {
59
54
  FailureRetentionPeriodInDays: input.FailureRetentionPeriodInDays,
60
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RunConfig !== undefined &&
61
- input.RunConfig !== null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) })), (input.RuntimeVersion !== undefined &&
62
- input.RuntimeVersion !== null && { RuntimeVersion: input.RuntimeVersion })), (input.Schedule !== undefined &&
63
- input.Schedule !== null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) })), (input.SuccessRetentionPeriodInDays !== undefined &&
64
- input.SuccessRetentionPeriodInDays !== null && {
55
+ })), (input.Name != null && { Name: input.Name })), (input.RunConfig != null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) })), (input.RuntimeVersion != null && { RuntimeVersion: input.RuntimeVersion })), (input.Schedule != null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) })), (input.SuccessRetentionPeriodInDays != null && {
65
56
  SuccessRetentionPeriodInDays: input.SuccessRetentionPeriodInDays,
66
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.VpcConfig !== undefined &&
67
- input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) })));
57
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) })));
68
58
  return [2, new __HttpRequest({
69
59
  protocol: protocol,
70
60
  hostname: hostname,
@@ -88,7 +78,7 @@ export var serializeAws_restJson1CreateGroupCommand = function (input, context)
88
78
  "content-type": "application/json",
89
79
  };
90
80
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group";
91
- body = JSON.stringify(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
81
+ body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
92
82
  return [2, new __HttpRequest({
93
83
  protocol: protocol,
94
84
  hostname: hostname,
@@ -176,8 +166,7 @@ export var serializeAws_restJson1DescribeCanariesCommand = function (input, cont
176
166
  "content-type": "application/json",
177
167
  };
178
168
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canaries";
179
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Names !== undefined &&
180
- input.Names !== null && { Names: serializeAws_restJson1DescribeCanariesNameFilter(input.Names, context) })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
169
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Names != null && { Names: serializeAws_restJson1DescribeCanariesNameFilter(input.Names, context) })), (input.NextToken != null && { NextToken: input.NextToken })));
181
170
  return [2, new __HttpRequest({
182
171
  protocol: protocol,
183
172
  hostname: hostname,
@@ -201,8 +190,9 @@ export var serializeAws_restJson1DescribeCanariesLastRunCommand = function (inpu
201
190
  "content-type": "application/json",
202
191
  };
203
192
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canaries/last-run";
204
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Names !== undefined &&
205
- input.Names !== null && { Names: serializeAws_restJson1DescribeCanariesLastRunNameFilter(input.Names, context) })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
193
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Names != null && {
194
+ Names: serializeAws_restJson1DescribeCanariesLastRunNameFilter(input.Names, context),
195
+ })), (input.NextToken != null && { NextToken: input.NextToken })));
206
196
  return [2, new __HttpRequest({
207
197
  protocol: protocol,
208
198
  hostname: hostname,
@@ -226,7 +216,7 @@ export var serializeAws_restJson1DescribeRuntimeVersionsCommand = function (inpu
226
216
  "content-type": "application/json",
227
217
  };
228
218
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/runtime-versions";
229
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
219
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
230
220
  return [2, new __HttpRequest({
231
221
  protocol: protocol,
232
222
  hostname: hostname,
@@ -260,7 +250,7 @@ export var serializeAws_restJson1DisassociateResourceCommand = function (input,
260
250
  else {
261
251
  throw new Error("No value provided for input HTTP label: GroupIdentifier.");
262
252
  }
263
- body = JSON.stringify(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })));
253
+ body = JSON.stringify(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })));
264
254
  return [2, new __HttpRequest({
265
255
  protocol: protocol,
266
256
  hostname: hostname,
@@ -325,7 +315,7 @@ export var serializeAws_restJson1GetCanaryRunsCommand = function (input, context
325
315
  else {
326
316
  throw new Error("No value provided for input HTTP label: Name.");
327
317
  }
328
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
318
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
329
319
  return [2, new __HttpRequest({
330
320
  protocol: protocol,
331
321
  hostname: hostname,
@@ -390,7 +380,7 @@ export var serializeAws_restJson1ListAssociatedGroupsCommand = function (input,
390
380
  else {
391
381
  throw new Error("No value provided for input HTTP label: ResourceArn.");
392
382
  }
393
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
383
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
394
384
  return [2, new __HttpRequest({
395
385
  protocol: protocol,
396
386
  hostname: hostname,
@@ -424,7 +414,7 @@ export var serializeAws_restJson1ListGroupResourcesCommand = function (input, co
424
414
  else {
425
415
  throw new Error("No value provided for input HTTP label: GroupIdentifier.");
426
416
  }
427
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
417
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
428
418
  return [2, new __HttpRequest({
429
419
  protocol: protocol,
430
420
  hostname: hostname,
@@ -448,7 +438,7 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
448
438
  "content-type": "application/json",
449
439
  };
450
440
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groups";
451
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
441
+ body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
452
442
  return [2, new __HttpRequest({
453
443
  protocol: protocol,
454
444
  hostname: hostname,
@@ -575,7 +565,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
575
565
  else {
576
566
  throw new Error("No value provided for input HTTP label: ResourceArn.");
577
567
  }
578
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
568
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
579
569
  return [2, new __HttpRequest({
580
570
  protocol: protocol,
581
571
  hostname: hostname,
@@ -642,26 +632,15 @@ export var serializeAws_restJson1UpdateCanaryCommand = function (input, context)
642
632
  else {
643
633
  throw new Error("No value provided for input HTTP label: Name.");
644
634
  }
645
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ArtifactConfig !== undefined &&
646
- input.ArtifactConfig !== null && {
635
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ArtifactConfig != null && {
647
636
  ArtifactConfig: serializeAws_restJson1ArtifactConfigInput(input.ArtifactConfig, context),
648
- })), (input.ArtifactS3Location !== undefined &&
649
- input.ArtifactS3Location !== null && { ArtifactS3Location: input.ArtifactS3Location })), (input.Code !== undefined &&
650
- input.Code !== null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) })), (input.ExecutionRoleArn !== undefined &&
651
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.FailureRetentionPeriodInDays !== undefined &&
652
- input.FailureRetentionPeriodInDays !== null && {
637
+ })), (input.ArtifactS3Location != null && { ArtifactS3Location: input.ArtifactS3Location })), (input.Code != null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.FailureRetentionPeriodInDays != null && {
653
638
  FailureRetentionPeriodInDays: input.FailureRetentionPeriodInDays,
654
- })), (input.RunConfig !== undefined &&
655
- input.RunConfig !== null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) })), (input.RuntimeVersion !== undefined &&
656
- input.RuntimeVersion !== null && { RuntimeVersion: input.RuntimeVersion })), (input.Schedule !== undefined &&
657
- input.Schedule !== null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) })), (input.SuccessRetentionPeriodInDays !== undefined &&
658
- input.SuccessRetentionPeriodInDays !== null && {
639
+ })), (input.RunConfig != null && { RunConfig: serializeAws_restJson1CanaryRunConfigInput(input.RunConfig, context) })), (input.RuntimeVersion != null && { RuntimeVersion: input.RuntimeVersion })), (input.Schedule != null && { Schedule: serializeAws_restJson1CanaryScheduleInput(input.Schedule, context) })), (input.SuccessRetentionPeriodInDays != null && {
659
640
  SuccessRetentionPeriodInDays: input.SuccessRetentionPeriodInDays,
660
- })), (input.VisualReference !== undefined &&
661
- input.VisualReference !== null && {
641
+ })), (input.VisualReference != null && {
662
642
  VisualReference: serializeAws_restJson1VisualReferenceInput(input.VisualReference, context),
663
- })), (input.VpcConfig !== undefined &&
664
- input.VpcConfig !== null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) })));
643
+ })), (input.VpcConfig != null && { VpcConfig: serializeAws_restJson1VpcConfigInput(input.VpcConfig, context) })));
665
644
  return [2, new __HttpRequest({
666
645
  protocol: protocol,
667
646
  hostname: hostname,
@@ -2186,17 +2165,14 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2186
2165
  });
2187
2166
  }); };
2188
2167
  var serializeAws_restJson1ArtifactConfigInput = function (input, context) {
2189
- return __assign({}, (input.S3Encryption !== undefined &&
2190
- input.S3Encryption !== null && {
2168
+ return __assign({}, (input.S3Encryption != null && {
2191
2169
  S3Encryption: serializeAws_restJson1S3EncryptionConfig(input.S3Encryption, context),
2192
2170
  }));
2193
2171
  };
2194
2172
  var serializeAws_restJson1BaseScreenshot = function (input, context) {
2195
- return __assign(__assign({}, (input.IgnoreCoordinates !== undefined &&
2196
- input.IgnoreCoordinates !== null && {
2173
+ return __assign(__assign({}, (input.IgnoreCoordinates != null && {
2197
2174
  IgnoreCoordinates: serializeAws_restJson1BaseScreenshotIgnoreCoordinates(input.IgnoreCoordinates, context),
2198
- })), (input.ScreenshotName !== undefined &&
2199
- input.ScreenshotName !== null && { ScreenshotName: input.ScreenshotName }));
2175
+ })), (input.ScreenshotName != null && { ScreenshotName: input.ScreenshotName }));
2200
2176
  };
2201
2177
  var serializeAws_restJson1BaseScreenshotIgnoreCoordinates = function (input, context) {
2202
2178
  return input
@@ -2219,18 +2195,15 @@ var serializeAws_restJson1BaseScreenshots = function (input, context) {
2219
2195
  });
2220
2196
  };
2221
2197
  var serializeAws_restJson1CanaryCodeInput = function (input, context) {
2222
- return __assign(__assign(__assign(__assign(__assign({}, (input.Handler !== undefined && input.Handler !== null && { Handler: input.Handler })), (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key })), (input.S3Version !== undefined && input.S3Version !== null && { S3Version: input.S3Version })), (input.ZipFile !== undefined && input.ZipFile !== null && { ZipFile: context.base64Encoder(input.ZipFile) }));
2198
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Handler != null && { Handler: input.Handler })), (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Key != null && { S3Key: input.S3Key })), (input.S3Version != null && { S3Version: input.S3Version })), (input.ZipFile != null && { ZipFile: context.base64Encoder(input.ZipFile) }));
2223
2199
  };
2224
2200
  var serializeAws_restJson1CanaryRunConfigInput = function (input, context) {
2225
- return __assign(__assign(__assign(__assign({}, (input.ActiveTracing !== undefined && input.ActiveTracing !== null && { ActiveTracing: input.ActiveTracing })), (input.EnvironmentVariables !== undefined &&
2226
- input.EnvironmentVariables !== null && {
2201
+ return __assign(__assign(__assign(__assign({}, (input.ActiveTracing != null && { ActiveTracing: input.ActiveTracing })), (input.EnvironmentVariables != null && {
2227
2202
  EnvironmentVariables: serializeAws_restJson1EnvironmentVariablesMap(input.EnvironmentVariables, context),
2228
- })), (input.MemoryInMB !== undefined && input.MemoryInMB !== null && { MemoryInMB: input.MemoryInMB })), (input.TimeoutInSeconds !== undefined &&
2229
- input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }));
2203
+ })), (input.MemoryInMB != null && { MemoryInMB: input.MemoryInMB })), (input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }));
2230
2204
  };
2231
2205
  var serializeAws_restJson1CanaryScheduleInput = function (input, context) {
2232
- return __assign(__assign({}, (input.DurationInSeconds !== undefined &&
2233
- input.DurationInSeconds !== null && { DurationInSeconds: input.DurationInSeconds })), (input.Expression !== undefined && input.Expression !== null && { Expression: input.Expression }));
2206
+ return __assign(__assign({}, (input.DurationInSeconds != null && { DurationInSeconds: input.DurationInSeconds })), (input.Expression != null && { Expression: input.Expression }));
2234
2207
  };
2235
2208
  var serializeAws_restJson1DescribeCanariesLastRunNameFilter = function (input, context) {
2236
2209
  return input
@@ -2263,8 +2236,7 @@ var serializeAws_restJson1EnvironmentVariablesMap = function (input, context) {
2263
2236
  }, {});
2264
2237
  };
2265
2238
  var serializeAws_restJson1S3EncryptionConfig = function (input, context) {
2266
- return __assign(__assign({}, (input.EncryptionMode !== undefined &&
2267
- input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode })), (input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }));
2239
+ return __assign(__assign({}, (input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode })), (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }));
2268
2240
  };
2269
2241
  var serializeAws_restJson1SecurityGroupIds = function (input, context) {
2270
2242
  return input
@@ -2297,29 +2269,25 @@ var serializeAws_restJson1TagMap = function (input, context) {
2297
2269
  }, {});
2298
2270
  };
2299
2271
  var serializeAws_restJson1VisualReferenceInput = function (input, context) {
2300
- return __assign(__assign({}, (input.BaseCanaryRunId !== undefined &&
2301
- input.BaseCanaryRunId !== null && { BaseCanaryRunId: input.BaseCanaryRunId })), (input.BaseScreenshots !== undefined &&
2302
- input.BaseScreenshots !== null && {
2272
+ return __assign(__assign({}, (input.BaseCanaryRunId != null && { BaseCanaryRunId: input.BaseCanaryRunId })), (input.BaseScreenshots != null && {
2303
2273
  BaseScreenshots: serializeAws_restJson1BaseScreenshots(input.BaseScreenshots, context),
2304
2274
  }));
2305
2275
  };
2306
2276
  var serializeAws_restJson1VpcConfigInput = function (input, context) {
2307
- return __assign(__assign({}, (input.SecurityGroupIds !== undefined &&
2308
- input.SecurityGroupIds !== null && {
2277
+ return __assign(__assign({}, (input.SecurityGroupIds != null && {
2309
2278
  SecurityGroupIds: serializeAws_restJson1SecurityGroupIds(input.SecurityGroupIds, context),
2310
- })), (input.SubnetIds !== undefined &&
2311
- input.SubnetIds !== null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }));
2279
+ })), (input.SubnetIds != null && { SubnetIds: serializeAws_restJson1SubnetIds(input.SubnetIds, context) }));
2312
2280
  };
2313
2281
  var deserializeAws_restJson1ArtifactConfigOutput = function (output, context) {
2314
2282
  return {
2315
- S3Encryption: output.S3Encryption !== undefined && output.S3Encryption !== null
2283
+ S3Encryption: output.S3Encryption != null
2316
2284
  ? deserializeAws_restJson1S3EncryptionConfig(output.S3Encryption, context)
2317
2285
  : undefined,
2318
2286
  };
2319
2287
  };
2320
2288
  var deserializeAws_restJson1BaseScreenshot = function (output, context) {
2321
2289
  return {
2322
- IgnoreCoordinates: output.IgnoreCoordinates !== undefined && output.IgnoreCoordinates !== null
2290
+ IgnoreCoordinates: output.IgnoreCoordinates != null
2323
2291
  ? deserializeAws_restJson1BaseScreenshotIgnoreCoordinates(output.IgnoreCoordinates, context)
2324
2292
  : undefined,
2325
2293
  ScreenshotName: __expectString(output.ScreenshotName),
@@ -2371,41 +2339,27 @@ var deserializeAws_restJson1CanariesLastRun = function (output, context) {
2371
2339
  };
2372
2340
  var deserializeAws_restJson1Canary = function (output, context) {
2373
2341
  return {
2374
- ArtifactConfig: output.ArtifactConfig !== undefined && output.ArtifactConfig !== null
2342
+ ArtifactConfig: output.ArtifactConfig != null
2375
2343
  ? deserializeAws_restJson1ArtifactConfigOutput(output.ArtifactConfig, context)
2376
2344
  : undefined,
2377
2345
  ArtifactS3Location: __expectString(output.ArtifactS3Location),
2378
- Code: output.Code !== undefined && output.Code !== null
2379
- ? deserializeAws_restJson1CanaryCodeOutput(output.Code, context)
2380
- : undefined,
2346
+ Code: output.Code != null ? deserializeAws_restJson1CanaryCodeOutput(output.Code, context) : undefined,
2381
2347
  EngineArn: __expectString(output.EngineArn),
2382
2348
  ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
2383
2349
  FailureRetentionPeriodInDays: __expectInt32(output.FailureRetentionPeriodInDays),
2384
2350
  Id: __expectString(output.Id),
2385
2351
  Name: __expectString(output.Name),
2386
- RunConfig: output.RunConfig !== undefined && output.RunConfig !== null
2387
- ? deserializeAws_restJson1CanaryRunConfigOutput(output.RunConfig, context)
2388
- : undefined,
2352
+ RunConfig: output.RunConfig != null ? deserializeAws_restJson1CanaryRunConfigOutput(output.RunConfig, context) : undefined,
2389
2353
  RuntimeVersion: __expectString(output.RuntimeVersion),
2390
- Schedule: output.Schedule !== undefined && output.Schedule !== null
2391
- ? deserializeAws_restJson1CanaryScheduleOutput(output.Schedule, context)
2392
- : undefined,
2393
- Status: output.Status !== undefined && output.Status !== null
2394
- ? deserializeAws_restJson1CanaryStatus(output.Status, context)
2395
- : undefined,
2354
+ Schedule: output.Schedule != null ? deserializeAws_restJson1CanaryScheduleOutput(output.Schedule, context) : undefined,
2355
+ Status: output.Status != null ? deserializeAws_restJson1CanaryStatus(output.Status, context) : undefined,
2396
2356
  SuccessRetentionPeriodInDays: __expectInt32(output.SuccessRetentionPeriodInDays),
2397
- Tags: output.Tags !== undefined && output.Tags !== null
2398
- ? deserializeAws_restJson1TagMap(output.Tags, context)
2399
- : undefined,
2400
- Timeline: output.Timeline !== undefined && output.Timeline !== null
2401
- ? deserializeAws_restJson1CanaryTimeline(output.Timeline, context)
2402
- : undefined,
2403
- VisualReference: output.VisualReference !== undefined && output.VisualReference !== null
2357
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
2358
+ Timeline: output.Timeline != null ? deserializeAws_restJson1CanaryTimeline(output.Timeline, context) : undefined,
2359
+ VisualReference: output.VisualReference != null
2404
2360
  ? deserializeAws_restJson1VisualReferenceOutput(output.VisualReference, context)
2405
2361
  : undefined,
2406
- VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
2407
- ? deserializeAws_restJson1VpcConfigOutput(output.VpcConfig, context)
2408
- : undefined,
2362
+ VpcConfig: output.VpcConfig != null ? deserializeAws_restJson1VpcConfigOutput(output.VpcConfig, context) : undefined,
2409
2363
  };
2410
2364
  };
2411
2365
  var deserializeAws_restJson1CanaryCodeOutput = function (output, context) {
@@ -2417,9 +2371,7 @@ var deserializeAws_restJson1CanaryCodeOutput = function (output, context) {
2417
2371
  var deserializeAws_restJson1CanaryLastRun = function (output, context) {
2418
2372
  return {
2419
2373
  CanaryName: __expectString(output.CanaryName),
2420
- LastRun: output.LastRun !== undefined && output.LastRun !== null
2421
- ? deserializeAws_restJson1CanaryRun(output.LastRun, context)
2422
- : undefined,
2374
+ LastRun: output.LastRun != null ? deserializeAws_restJson1CanaryRun(output.LastRun, context) : undefined,
2423
2375
  };
2424
2376
  };
2425
2377
  var deserializeAws_restJson1CanaryRun = function (output, context) {
@@ -2427,12 +2379,8 @@ var deserializeAws_restJson1CanaryRun = function (output, context) {
2427
2379
  ArtifactS3Location: __expectString(output.ArtifactS3Location),
2428
2380
  Id: __expectString(output.Id),
2429
2381
  Name: __expectString(output.Name),
2430
- Status: output.Status !== undefined && output.Status !== null
2431
- ? deserializeAws_restJson1CanaryRunStatus(output.Status, context)
2432
- : undefined,
2433
- Timeline: output.Timeline !== undefined && output.Timeline !== null
2434
- ? deserializeAws_restJson1CanaryRunTimeline(output.Timeline, context)
2435
- : undefined,
2382
+ Status: output.Status != null ? deserializeAws_restJson1CanaryRunStatus(output.Status, context) : undefined,
2383
+ Timeline: output.Timeline != null ? deserializeAws_restJson1CanaryRunTimeline(output.Timeline, context) : undefined,
2436
2384
  };
2437
2385
  };
2438
2386
  var deserializeAws_restJson1CanaryRunConfigOutput = function (output, context) {
@@ -2462,12 +2410,8 @@ var deserializeAws_restJson1CanaryRunStatus = function (output, context) {
2462
2410
  };
2463
2411
  var deserializeAws_restJson1CanaryRunTimeline = function (output, context) {
2464
2412
  return {
2465
- Completed: output.Completed !== undefined && output.Completed !== null
2466
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Completed)))
2467
- : undefined,
2468
- Started: output.Started !== undefined && output.Started !== null
2469
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Started)))
2470
- : undefined,
2413
+ Completed: output.Completed != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Completed))) : undefined,
2414
+ Started: output.Started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Started))) : undefined,
2471
2415
  };
2472
2416
  };
2473
2417
  var deserializeAws_restJson1CanaryScheduleOutput = function (output, context) {
@@ -2485,16 +2429,14 @@ var deserializeAws_restJson1CanaryStatus = function (output, context) {
2485
2429
  };
2486
2430
  var deserializeAws_restJson1CanaryTimeline = function (output, context) {
2487
2431
  return {
2488
- Created: output.Created !== undefined && output.Created !== null
2489
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Created)))
2490
- : undefined,
2491
- LastModified: output.LastModified !== undefined && output.LastModified !== null
2432
+ Created: output.Created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Created))) : undefined,
2433
+ LastModified: output.LastModified != null
2492
2434
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModified)))
2493
2435
  : undefined,
2494
- LastStarted: output.LastStarted !== undefined && output.LastStarted !== null
2436
+ LastStarted: output.LastStarted != null
2495
2437
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastStarted)))
2496
2438
  : undefined,
2497
- LastStopped: output.LastStopped !== undefined && output.LastStopped !== null
2439
+ LastStopped: output.LastStopped != null
2498
2440
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastStopped)))
2499
2441
  : undefined,
2500
2442
  };
@@ -2502,17 +2444,15 @@ var deserializeAws_restJson1CanaryTimeline = function (output, context) {
2502
2444
  var deserializeAws_restJson1Group = function (output, context) {
2503
2445
  return {
2504
2446
  Arn: __expectString(output.Arn),
2505
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
2447
+ CreatedTime: output.CreatedTime != null
2506
2448
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
2507
2449
  : undefined,
2508
2450
  Id: __expectString(output.Id),
2509
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
2451
+ LastModifiedTime: output.LastModifiedTime != null
2510
2452
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
2511
2453
  : undefined,
2512
2454
  Name: __expectString(output.Name),
2513
- Tags: output.Tags !== undefined && output.Tags !== null
2514
- ? deserializeAws_restJson1TagMap(output.Tags, context)
2515
- : undefined,
2455
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
2516
2456
  };
2517
2457
  };
2518
2458
  var deserializeAws_restJson1GroupSummary = function (output, context) {
@@ -2535,11 +2475,11 @@ var deserializeAws_restJson1GroupSummaryList = function (output, context) {
2535
2475
  };
2536
2476
  var deserializeAws_restJson1RuntimeVersion = function (output, context) {
2537
2477
  return {
2538
- DeprecationDate: output.DeprecationDate !== undefined && output.DeprecationDate !== null
2478
+ DeprecationDate: output.DeprecationDate != null
2539
2479
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeprecationDate)))
2540
2480
  : undefined,
2541
2481
  Description: __expectString(output.Description),
2542
- ReleaseDate: output.ReleaseDate !== undefined && output.ReleaseDate !== null
2482
+ ReleaseDate: output.ReleaseDate != null
2543
2483
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReleaseDate)))
2544
2484
  : undefined,
2545
2485
  VersionName: __expectString(output.VersionName),
@@ -2608,19 +2548,17 @@ var deserializeAws_restJson1TagMap = function (output, context) {
2608
2548
  var deserializeAws_restJson1VisualReferenceOutput = function (output, context) {
2609
2549
  return {
2610
2550
  BaseCanaryRunId: __expectString(output.BaseCanaryRunId),
2611
- BaseScreenshots: output.BaseScreenshots !== undefined && output.BaseScreenshots !== null
2551
+ BaseScreenshots: output.BaseScreenshots != null
2612
2552
  ? deserializeAws_restJson1BaseScreenshots(output.BaseScreenshots, context)
2613
2553
  : undefined,
2614
2554
  };
2615
2555
  };
2616
2556
  var deserializeAws_restJson1VpcConfigOutput = function (output, context) {
2617
2557
  return {
2618
- SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
2558
+ SecurityGroupIds: output.SecurityGroupIds != null
2619
2559
  ? deserializeAws_restJson1SecurityGroupIds(output.SecurityGroupIds, context)
2620
2560
  : undefined,
2621
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
2622
- ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context)
2623
- : undefined,
2561
+ SubnetIds: output.SubnetIds != null ? deserializeAws_restJson1SubnetIds(output.SubnetIds, context) : undefined,
2624
2562
  VpcId: __expectString(output.VpcId),
2625
2563
  };
2626
2564
  };
@@ -2662,6 +2600,9 @@ var loadRestJsonErrorCode = function (output, data) {
2662
2600
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2663
2601
  var sanitizeErrorCode = function (rawValue) {
2664
2602
  var cleanValue = rawValue;
2603
+ if (typeof cleanValue === "number") {
2604
+ cleanValue = cleanValue.toString();
2605
+ }
2665
2606
  if (cleanValue.indexOf(":") >= 0) {
2666
2607
  cleanValue = cleanValue.split(":")[0];
2667
2608
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-synthetics",
3
3
  "description": "AWS SDK for JavaScript Synthetics Client for Node.js, Browser and React Native",
4
- "version": "3.124.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"