@aws-sdk/client-amplify 3.28.0 → 3.32.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,38 @@
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.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-amplify
9
+
10
+
11
+
12
+
13
+
14
+ # [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-amplify
17
+
18
+
19
+
20
+
21
+
22
+ # [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-amplify
25
+
26
+
27
+
28
+
29
+
30
+ # [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/client-amplify
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
7
39
 
8
40
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplify",
3
3
  "description": "AWS SDK for JavaScript Amplify Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -1432,7 +1432,7 @@ const deserializeAws_restJson1CreateAppCommand = async (output, context) => {
1432
1432
  $metadata: deserializeMetadata(output),
1433
1433
  app: undefined,
1434
1434
  };
1435
- const data = await parseBody(output.body, context);
1435
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1436
1436
  if (data.app !== undefined && data.app !== null) {
1437
1437
  contents.app = deserializeAws_restJson1App(data.app, context);
1438
1438
  }
@@ -1512,7 +1512,7 @@ const deserializeAws_restJson1CreateBackendEnvironmentCommand = async (output, c
1512
1512
  $metadata: deserializeMetadata(output),
1513
1513
  backendEnvironment: undefined,
1514
1514
  };
1515
- const data = await parseBody(output.body, context);
1515
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1516
1516
  if (data.backendEnvironment !== undefined && data.backendEnvironment !== null) {
1517
1517
  contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
1518
1518
  }
@@ -1592,7 +1592,7 @@ const deserializeAws_restJson1CreateBranchCommand = async (output, context) => {
1592
1592
  $metadata: deserializeMetadata(output),
1593
1593
  branch: undefined,
1594
1594
  };
1595
- const data = await parseBody(output.body, context);
1595
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1596
1596
  if (data.branch !== undefined && data.branch !== null) {
1597
1597
  contents.branch = deserializeAws_restJson1Branch(data.branch, context);
1598
1598
  }
@@ -1682,7 +1682,7 @@ const deserializeAws_restJson1CreateDeploymentCommand = async (output, context)
1682
1682
  jobId: undefined,
1683
1683
  zipUploadUrl: undefined,
1684
1684
  };
1685
- const data = await parseBody(output.body, context);
1685
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1686
1686
  if (data.fileUploadUrls !== undefined && data.fileUploadUrls !== null) {
1687
1687
  contents.fileUploadUrls = deserializeAws_restJson1FileUploadUrls(data.fileUploadUrls, context);
1688
1688
  }
@@ -1760,7 +1760,7 @@ const deserializeAws_restJson1CreateDomainAssociationCommand = async (output, co
1760
1760
  $metadata: deserializeMetadata(output),
1761
1761
  domainAssociation: undefined,
1762
1762
  };
1763
- const data = await parseBody(output.body, context);
1763
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1764
1764
  if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
1765
1765
  contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
1766
1766
  }
@@ -1848,7 +1848,7 @@ const deserializeAws_restJson1CreateWebhookCommand = async (output, context) =>
1848
1848
  $metadata: deserializeMetadata(output),
1849
1849
  webhook: undefined,
1850
1850
  };
1851
- const data = await parseBody(output.body, context);
1851
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1852
1852
  if (data.webhook !== undefined && data.webhook !== null) {
1853
1853
  contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
1854
1854
  }
@@ -1936,7 +1936,7 @@ const deserializeAws_restJson1DeleteAppCommand = async (output, context) => {
1936
1936
  $metadata: deserializeMetadata(output),
1937
1937
  app: undefined,
1938
1938
  };
1939
- const data = await parseBody(output.body, context);
1939
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1940
1940
  if (data.app !== undefined && data.app !== null) {
1941
1941
  contents.app = deserializeAws_restJson1App(data.app, context);
1942
1942
  }
@@ -2016,7 +2016,7 @@ const deserializeAws_restJson1DeleteBackendEnvironmentCommand = async (output, c
2016
2016
  $metadata: deserializeMetadata(output),
2017
2017
  backendEnvironment: undefined,
2018
2018
  };
2019
- const data = await parseBody(output.body, context);
2019
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2020
2020
  if (data.backendEnvironment !== undefined && data.backendEnvironment !== null) {
2021
2021
  contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
2022
2022
  }
@@ -2096,7 +2096,7 @@ const deserializeAws_restJson1DeleteBranchCommand = async (output, context) => {
2096
2096
  $metadata: deserializeMetadata(output),
2097
2097
  branch: undefined,
2098
2098
  };
2099
- const data = await parseBody(output.body, context);
2099
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2100
2100
  if (data.branch !== undefined && data.branch !== null) {
2101
2101
  contents.branch = deserializeAws_restJson1Branch(data.branch, context);
2102
2102
  }
@@ -2176,7 +2176,7 @@ const deserializeAws_restJson1DeleteDomainAssociationCommand = async (output, co
2176
2176
  $metadata: deserializeMetadata(output),
2177
2177
  domainAssociation: undefined,
2178
2178
  };
2179
- const data = await parseBody(output.body, context);
2179
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2180
2180
  if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
2181
2181
  contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
2182
2182
  }
@@ -2256,7 +2256,7 @@ const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
2256
2256
  $metadata: deserializeMetadata(output),
2257
2257
  jobSummary: undefined,
2258
2258
  };
2259
- const data = await parseBody(output.body, context);
2259
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2260
2260
  if (data.jobSummary !== undefined && data.jobSummary !== null) {
2261
2261
  contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
2262
2262
  }
@@ -2336,7 +2336,7 @@ const deserializeAws_restJson1DeleteWebhookCommand = async (output, context) =>
2336
2336
  $metadata: deserializeMetadata(output),
2337
2337
  webhook: undefined,
2338
2338
  };
2339
- const data = await parseBody(output.body, context);
2339
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2340
2340
  if (data.webhook !== undefined && data.webhook !== null) {
2341
2341
  contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
2342
2342
  }
@@ -2416,7 +2416,7 @@ const deserializeAws_restJson1GenerateAccessLogsCommand = async (output, context
2416
2416
  $metadata: deserializeMetadata(output),
2417
2417
  logUrl: undefined,
2418
2418
  };
2419
- const data = await parseBody(output.body, context);
2419
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2420
2420
  if (data.logUrl !== undefined && data.logUrl !== null) {
2421
2421
  contents.logUrl = smithy_client_1.expectString(data.logUrl);
2422
2422
  }
@@ -2488,7 +2488,7 @@ const deserializeAws_restJson1GetAppCommand = async (output, context) => {
2488
2488
  $metadata: deserializeMetadata(output),
2489
2489
  app: undefined,
2490
2490
  };
2491
- const data = await parseBody(output.body, context);
2491
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2492
2492
  if (data.app !== undefined && data.app !== null) {
2493
2493
  contents.app = deserializeAws_restJson1App(data.app, context);
2494
2494
  }
@@ -2561,7 +2561,7 @@ const deserializeAws_restJson1GetArtifactUrlCommand = async (output, context) =>
2561
2561
  artifactId: undefined,
2562
2562
  artifactUrl: undefined,
2563
2563
  };
2564
- const data = await parseBody(output.body, context);
2564
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2565
2565
  if (data.artifactId !== undefined && data.artifactId !== null) {
2566
2566
  contents.artifactId = smithy_client_1.expectString(data.artifactId);
2567
2567
  }
@@ -2644,7 +2644,7 @@ const deserializeAws_restJson1GetBackendEnvironmentCommand = async (output, cont
2644
2644
  $metadata: deserializeMetadata(output),
2645
2645
  backendEnvironment: undefined,
2646
2646
  };
2647
- const data = await parseBody(output.body, context);
2647
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2648
2648
  if (data.backendEnvironment !== undefined && data.backendEnvironment !== null) {
2649
2649
  contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
2650
2650
  }
@@ -2716,7 +2716,7 @@ const deserializeAws_restJson1GetBranchCommand = async (output, context) => {
2716
2716
  $metadata: deserializeMetadata(output),
2717
2717
  branch: undefined,
2718
2718
  };
2719
- const data = await parseBody(output.body, context);
2719
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2720
2720
  if (data.branch !== undefined && data.branch !== null) {
2721
2721
  contents.branch = deserializeAws_restJson1Branch(data.branch, context);
2722
2722
  }
@@ -2788,7 +2788,7 @@ const deserializeAws_restJson1GetDomainAssociationCommand = async (output, conte
2788
2788
  $metadata: deserializeMetadata(output),
2789
2789
  domainAssociation: undefined,
2790
2790
  };
2791
- const data = await parseBody(output.body, context);
2791
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2792
2792
  if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
2793
2793
  contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
2794
2794
  }
@@ -2860,7 +2860,7 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
2860
2860
  $metadata: deserializeMetadata(output),
2861
2861
  job: undefined,
2862
2862
  };
2863
- const data = await parseBody(output.body, context);
2863
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2864
2864
  if (data.job !== undefined && data.job !== null) {
2865
2865
  contents.job = deserializeAws_restJson1Job(data.job, context);
2866
2866
  }
@@ -2940,7 +2940,7 @@ const deserializeAws_restJson1GetWebhookCommand = async (output, context) => {
2940
2940
  $metadata: deserializeMetadata(output),
2941
2941
  webhook: undefined,
2942
2942
  };
2943
- const data = await parseBody(output.body, context);
2943
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2944
2944
  if (data.webhook !== undefined && data.webhook !== null) {
2945
2945
  contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
2946
2946
  }
@@ -3021,7 +3021,7 @@ const deserializeAws_restJson1ListAppsCommand = async (output, context) => {
3021
3021
  apps: undefined,
3022
3022
  nextToken: undefined,
3023
3023
  };
3024
- const data = await parseBody(output.body, context);
3024
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3025
3025
  if (data.apps !== undefined && data.apps !== null) {
3026
3026
  contents.apps = deserializeAws_restJson1Apps(data.apps, context);
3027
3027
  }
@@ -3089,7 +3089,7 @@ const deserializeAws_restJson1ListArtifactsCommand = async (output, context) =>
3089
3089
  artifacts: undefined,
3090
3090
  nextToken: undefined,
3091
3091
  };
3092
- const data = await parseBody(output.body, context);
3092
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3093
3093
  if (data.artifacts !== undefined && data.artifacts !== null) {
3094
3094
  contents.artifacts = deserializeAws_restJson1Artifacts(data.artifacts, context);
3095
3095
  }
@@ -3165,7 +3165,7 @@ const deserializeAws_restJson1ListBackendEnvironmentsCommand = async (output, co
3165
3165
  backendEnvironments: undefined,
3166
3166
  nextToken: undefined,
3167
3167
  };
3168
- const data = await parseBody(output.body, context);
3168
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3169
3169
  if (data.backendEnvironments !== undefined && data.backendEnvironments !== null) {
3170
3170
  contents.backendEnvironments = deserializeAws_restJson1BackendEnvironments(data.backendEnvironments, context);
3171
3171
  }
@@ -3233,7 +3233,7 @@ const deserializeAws_restJson1ListBranchesCommand = async (output, context) => {
3233
3233
  branches: undefined,
3234
3234
  nextToken: undefined,
3235
3235
  };
3236
- const data = await parseBody(output.body, context);
3236
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3237
3237
  if (data.branches !== undefined && data.branches !== null) {
3238
3238
  contents.branches = deserializeAws_restJson1Branches(data.branches, context);
3239
3239
  }
@@ -3301,7 +3301,7 @@ const deserializeAws_restJson1ListDomainAssociationsCommand = async (output, con
3301
3301
  domainAssociations: undefined,
3302
3302
  nextToken: undefined,
3303
3303
  };
3304
- const data = await parseBody(output.body, context);
3304
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3305
3305
  if (data.domainAssociations !== undefined && data.domainAssociations !== null) {
3306
3306
  contents.domainAssociations = deserializeAws_restJson1DomainAssociations(data.domainAssociations, context);
3307
3307
  }
@@ -3369,7 +3369,7 @@ const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
3369
3369
  jobSummaries: undefined,
3370
3370
  nextToken: undefined,
3371
3371
  };
3372
- const data = await parseBody(output.body, context);
3372
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3373
3373
  if (data.jobSummaries !== undefined && data.jobSummaries !== null) {
3374
3374
  contents.jobSummaries = deserializeAws_restJson1JobSummaries(data.jobSummaries, context);
3375
3375
  }
@@ -3444,7 +3444,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
3444
3444
  $metadata: deserializeMetadata(output),
3445
3445
  tags: undefined,
3446
3446
  };
3447
- const data = await parseBody(output.body, context);
3447
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3448
3448
  if (data.tags !== undefined && data.tags !== null) {
3449
3449
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3450
3450
  }
@@ -3509,7 +3509,7 @@ const deserializeAws_restJson1ListWebhooksCommand = async (output, context) => {
3509
3509
  nextToken: undefined,
3510
3510
  webhooks: undefined,
3511
3511
  };
3512
- const data = await parseBody(output.body, context);
3512
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3513
3513
  if (data.nextToken !== undefined && data.nextToken !== null) {
3514
3514
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
3515
3515
  }
@@ -3584,7 +3584,7 @@ const deserializeAws_restJson1StartDeploymentCommand = async (output, context) =
3584
3584
  $metadata: deserializeMetadata(output),
3585
3585
  jobSummary: undefined,
3586
3586
  };
3587
- const data = await parseBody(output.body, context);
3587
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3588
3588
  if (data.jobSummary !== undefined && data.jobSummary !== null) {
3589
3589
  contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
3590
3590
  }
@@ -3664,7 +3664,7 @@ const deserializeAws_restJson1StartJobCommand = async (output, context) => {
3664
3664
  $metadata: deserializeMetadata(output),
3665
3665
  jobSummary: undefined,
3666
3666
  };
3667
- const data = await parseBody(output.body, context);
3667
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3668
3668
  if (data.jobSummary !== undefined && data.jobSummary !== null) {
3669
3669
  contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
3670
3670
  }
@@ -3744,7 +3744,7 @@ const deserializeAws_restJson1StopJobCommand = async (output, context) => {
3744
3744
  $metadata: deserializeMetadata(output),
3745
3745
  jobSummary: undefined,
3746
3746
  };
3747
- const data = await parseBody(output.body, context);
3747
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3748
3748
  if (data.jobSummary !== undefined && data.jobSummary !== null) {
3749
3749
  contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
3750
3750
  }
@@ -3944,7 +3944,7 @@ const deserializeAws_restJson1UpdateAppCommand = async (output, context) => {
3944
3944
  $metadata: deserializeMetadata(output),
3945
3945
  app: undefined,
3946
3946
  };
3947
- const data = await parseBody(output.body, context);
3947
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3948
3948
  if (data.app !== undefined && data.app !== null) {
3949
3949
  contents.app = deserializeAws_restJson1App(data.app, context);
3950
3950
  }
@@ -4016,7 +4016,7 @@ const deserializeAws_restJson1UpdateBranchCommand = async (output, context) => {
4016
4016
  $metadata: deserializeMetadata(output),
4017
4017
  branch: undefined,
4018
4018
  };
4019
- const data = await parseBody(output.body, context);
4019
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4020
4020
  if (data.branch !== undefined && data.branch !== null) {
4021
4021
  contents.branch = deserializeAws_restJson1Branch(data.branch, context);
4022
4022
  }
@@ -4096,7 +4096,7 @@ const deserializeAws_restJson1UpdateDomainAssociationCommand = async (output, co
4096
4096
  $metadata: deserializeMetadata(output),
4097
4097
  domainAssociation: undefined,
4098
4098
  };
4099
- const data = await parseBody(output.body, context);
4099
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4100
4100
  if (data.domainAssociation !== undefined && data.domainAssociation !== null) {
4101
4101
  contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
4102
4102
  }
@@ -4176,7 +4176,7 @@ const deserializeAws_restJson1UpdateWebhookCommand = async (output, context) =>
4176
4176
  $metadata: deserializeMetadata(output),
4177
4177
  webhook: undefined,
4178
4178
  };
4179
- const data = await parseBody(output.body, context);
4179
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4180
4180
  if (data.webhook !== undefined && data.webhook !== null) {
4181
4181
  contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
4182
4182
  }
@@ -4466,7 +4466,7 @@ const deserializeAws_restJson1App = (output, context) => {
4466
4466
  basicAuthCredentials: smithy_client_1.expectString(output.basicAuthCredentials),
4467
4467
  buildSpec: smithy_client_1.expectString(output.buildSpec),
4468
4468
  createTime: output.createTime !== undefined && output.createTime !== null
4469
- ? new Date(Math.round(output.createTime * 1000))
4469
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createTime)))
4470
4470
  : undefined,
4471
4471
  customHeaders: smithy_client_1.expectString(output.customHeaders),
4472
4472
  customRules: output.customRules !== undefined && output.customRules !== null
@@ -4492,7 +4492,7 @@ const deserializeAws_restJson1App = (output, context) => {
4492
4492
  ? deserializeAws_restJson1TagMap(output.tags, context)
4493
4493
  : undefined,
4494
4494
  updateTime: output.updateTime !== undefined && output.updateTime !== null
4495
- ? new Date(Math.round(output.updateTime * 1000))
4495
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updateTime)))
4496
4496
  : undefined,
4497
4497
  };
4498
4498
  };
@@ -4572,13 +4572,13 @@ const deserializeAws_restJson1BackendEnvironment = (output, context) => {
4572
4572
  return {
4573
4573
  backendEnvironmentArn: smithy_client_1.expectString(output.backendEnvironmentArn),
4574
4574
  createTime: output.createTime !== undefined && output.createTime !== null
4575
- ? new Date(Math.round(output.createTime * 1000))
4575
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createTime)))
4576
4576
  : undefined,
4577
4577
  deploymentArtifacts: smithy_client_1.expectString(output.deploymentArtifacts),
4578
4578
  environmentName: smithy_client_1.expectString(output.environmentName),
4579
4579
  stackName: smithy_client_1.expectString(output.stackName),
4580
4580
  updateTime: output.updateTime !== undefined && output.updateTime !== null
4581
- ? new Date(Math.round(output.updateTime * 1000))
4581
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updateTime)))
4582
4582
  : undefined,
4583
4583
  };
4584
4584
  };
@@ -4604,7 +4604,7 @@ const deserializeAws_restJson1Branch = (output, context) => {
4604
4604
  branchName: smithy_client_1.expectString(output.branchName),
4605
4605
  buildSpec: smithy_client_1.expectString(output.buildSpec),
4606
4606
  createTime: output.createTime !== undefined && output.createTime !== null
4607
- ? new Date(Math.round(output.createTime * 1000))
4607
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createTime)))
4608
4608
  : undefined,
4609
4609
  customDomains: output.customDomains !== undefined && output.customDomains !== null
4610
4610
  ? deserializeAws_restJson1CustomDomains(output.customDomains, context)
@@ -4631,7 +4631,7 @@ const deserializeAws_restJson1Branch = (output, context) => {
4631
4631
  totalNumberOfJobs: smithy_client_1.expectString(output.totalNumberOfJobs),
4632
4632
  ttl: smithy_client_1.expectString(output.ttl),
4633
4633
  updateTime: output.updateTime !== undefined && output.updateTime !== null
4634
- ? new Date(Math.round(output.updateTime * 1000))
4634
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updateTime)))
4635
4635
  : undefined,
4636
4636
  };
4637
4637
  };
@@ -4747,14 +4747,16 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
4747
4747
  commitId: smithy_client_1.expectString(output.commitId),
4748
4748
  commitMessage: smithy_client_1.expectString(output.commitMessage),
4749
4749
  commitTime: output.commitTime !== undefined && output.commitTime !== null
4750
- ? new Date(Math.round(output.commitTime * 1000))
4750
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.commitTime)))
4751
+ : undefined,
4752
+ endTime: output.endTime !== undefined && output.endTime !== null
4753
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
4751
4754
  : undefined,
4752
- endTime: output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
4753
4755
  jobArn: smithy_client_1.expectString(output.jobArn),
4754
4756
  jobId: smithy_client_1.expectString(output.jobId),
4755
4757
  jobType: smithy_client_1.expectString(output.jobType),
4756
4758
  startTime: output.startTime !== undefined && output.startTime !== null
4757
- ? new Date(Math.round(output.startTime * 1000))
4759
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
4758
4760
  : undefined,
4759
4761
  status: smithy_client_1.expectString(output.status),
4760
4762
  };
@@ -4763,7 +4765,7 @@ const deserializeAws_restJson1ProductionBranch = (output, context) => {
4763
4765
  return {
4764
4766
  branchName: smithy_client_1.expectString(output.branchName),
4765
4767
  lastDeployTime: output.lastDeployTime !== undefined && output.lastDeployTime !== null
4766
- ? new Date(Math.round(output.lastDeployTime * 1000))
4768
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastDeployTime)))
4767
4769
  : undefined,
4768
4770
  status: smithy_client_1.expectString(output.status),
4769
4771
  thumbnailUrl: smithy_client_1.expectString(output.thumbnailUrl),
@@ -4784,13 +4786,15 @@ const deserializeAws_restJson1Step = (output, context) => {
4784
4786
  return {
4785
4787
  artifactsUrl: smithy_client_1.expectString(output.artifactsUrl),
4786
4788
  context: smithy_client_1.expectString(output.context),
4787
- endTime: output.endTime !== undefined && output.endTime !== null ? new Date(Math.round(output.endTime * 1000)) : undefined,
4789
+ endTime: output.endTime !== undefined && output.endTime !== null
4790
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
4791
+ : undefined,
4788
4792
  logUrl: smithy_client_1.expectString(output.logUrl),
4789
4793
  screenshots: output.screenshots !== undefined && output.screenshots !== null
4790
4794
  ? deserializeAws_restJson1Screenshots(output.screenshots, context)
4791
4795
  : undefined,
4792
4796
  startTime: output.startTime !== undefined && output.startTime !== null
4793
- ? new Date(Math.round(output.startTime * 1000))
4797
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
4794
4798
  : undefined,
4795
4799
  status: smithy_client_1.expectString(output.status),
4796
4800
  statusReason: smithy_client_1.expectString(output.statusReason),
@@ -4849,11 +4853,11 @@ const deserializeAws_restJson1Webhook = (output, context) => {
4849
4853
  return {
4850
4854
  branchName: smithy_client_1.expectString(output.branchName),
4851
4855
  createTime: output.createTime !== undefined && output.createTime !== null
4852
- ? new Date(Math.round(output.createTime * 1000))
4856
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createTime)))
4853
4857
  : undefined,
4854
4858
  description: smithy_client_1.expectString(output.description),
4855
4859
  updateTime: output.updateTime !== undefined && output.updateTime !== null
4856
- ? new Date(Math.round(output.updateTime * 1000))
4860
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updateTime)))
4857
4861
  : undefined,
4858
4862
  webhookArn: smithy_client_1.expectString(output.webhookArn),
4859
4863
  webhookId: smithy_client_1.expectString(output.webhookId),