@aws-sdk/client-wellarchitected 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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +41 -41
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +162 -114
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +46 -42
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-wellarchitected
|
|
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-wellarchitected
|
|
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-wellarchitected
|
|
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-wellarchitected
|
|
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
|
|
package/dist/cjs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-wellarchitected",
|
|
3
3
|
"description": "AWS SDK for JavaScript Wellarchitected Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.1.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.1.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
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
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.3.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
|
@@ -1216,9 +1216,9 @@ const deserializeAws_restJson1CreateMilestoneCommand = async (output, context) =
|
|
|
1216
1216
|
MilestoneNumber: undefined,
|
|
1217
1217
|
WorkloadId: undefined,
|
|
1218
1218
|
};
|
|
1219
|
-
const data = await parseBody(output.body, context);
|
|
1219
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1220
1220
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
1221
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
1221
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
1222
1222
|
}
|
|
1223
1223
|
if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
|
|
1224
1224
|
contents.WorkloadId = smithy_client_1.expectString(data.WorkloadId);
|
|
@@ -1316,7 +1316,7 @@ const deserializeAws_restJson1CreateWorkloadCommand = async (output, context) =>
|
|
|
1316
1316
|
WorkloadArn: undefined,
|
|
1317
1317
|
WorkloadId: undefined,
|
|
1318
1318
|
};
|
|
1319
|
-
const data = await parseBody(output.body, context);
|
|
1319
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1320
1320
|
if (data.WorkloadArn !== undefined && data.WorkloadArn !== null) {
|
|
1321
1321
|
contents.WorkloadArn = smithy_client_1.expectString(data.WorkloadArn);
|
|
1322
1322
|
}
|
|
@@ -1408,7 +1408,7 @@ const deserializeAws_restJson1CreateWorkloadShareCommand = async (output, contex
|
|
|
1408
1408
|
ShareId: undefined,
|
|
1409
1409
|
WorkloadId: undefined,
|
|
1410
1410
|
};
|
|
1411
|
-
const data = await parseBody(output.body, context);
|
|
1411
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1412
1412
|
if (data.ShareId !== undefined && data.ShareId !== null) {
|
|
1413
1413
|
contents.ShareId = smithy_client_1.expectString(data.ShareId);
|
|
1414
1414
|
}
|
|
@@ -1762,7 +1762,7 @@ const deserializeAws_restJson1GetAnswerCommand = async (output, context) => {
|
|
|
1762
1762
|
MilestoneNumber: undefined,
|
|
1763
1763
|
WorkloadId: undefined,
|
|
1764
1764
|
};
|
|
1765
|
-
const data = await parseBody(output.body, context);
|
|
1765
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1766
1766
|
if (data.Answer !== undefined && data.Answer !== null) {
|
|
1767
1767
|
contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
|
|
1768
1768
|
}
|
|
@@ -1770,7 +1770,7 @@ const deserializeAws_restJson1GetAnswerCommand = async (output, context) => {
|
|
|
1770
1770
|
contents.LensAlias = smithy_client_1.expectString(data.LensAlias);
|
|
1771
1771
|
}
|
|
1772
1772
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
1773
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
1773
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
1774
1774
|
}
|
|
1775
1775
|
if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
|
|
1776
1776
|
contents.WorkloadId = smithy_client_1.expectString(data.WorkloadId);
|
|
@@ -1853,12 +1853,12 @@ const deserializeAws_restJson1GetLensReviewCommand = async (output, context) =>
|
|
|
1853
1853
|
MilestoneNumber: undefined,
|
|
1854
1854
|
WorkloadId: undefined,
|
|
1855
1855
|
};
|
|
1856
|
-
const data = await parseBody(output.body, context);
|
|
1856
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1857
1857
|
if (data.LensReview !== undefined && data.LensReview !== null) {
|
|
1858
1858
|
contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
|
|
1859
1859
|
}
|
|
1860
1860
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
1861
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
1861
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
1862
1862
|
}
|
|
1863
1863
|
if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
|
|
1864
1864
|
contents.WorkloadId = smithy_client_1.expectString(data.WorkloadId);
|
|
@@ -1941,12 +1941,12 @@ const deserializeAws_restJson1GetLensReviewReportCommand = async (output, contex
|
|
|
1941
1941
|
MilestoneNumber: undefined,
|
|
1942
1942
|
WorkloadId: undefined,
|
|
1943
1943
|
};
|
|
1944
|
-
const data = await parseBody(output.body, context);
|
|
1944
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1945
1945
|
if (data.LensReviewReport !== undefined && data.LensReviewReport !== null) {
|
|
1946
1946
|
contents.LensReviewReport = deserializeAws_restJson1LensReviewReport(data.LensReviewReport, context);
|
|
1947
1947
|
}
|
|
1948
1948
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
1949
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
1949
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
1950
1950
|
}
|
|
1951
1951
|
if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
|
|
1952
1952
|
contents.WorkloadId = smithy_client_1.expectString(data.WorkloadId);
|
|
@@ -2030,7 +2030,7 @@ const deserializeAws_restJson1GetLensVersionDifferenceCommand = async (output, c
|
|
|
2030
2030
|
LensAlias: undefined,
|
|
2031
2031
|
VersionDifferences: undefined,
|
|
2032
2032
|
};
|
|
2033
|
-
const data = await parseBody(output.body, context);
|
|
2033
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2034
2034
|
if (data.BaseLensVersion !== undefined && data.BaseLensVersion !== null) {
|
|
2035
2035
|
contents.BaseLensVersion = smithy_client_1.expectString(data.BaseLensVersion);
|
|
2036
2036
|
}
|
|
@@ -2120,7 +2120,7 @@ const deserializeAws_restJson1GetMilestoneCommand = async (output, context) => {
|
|
|
2120
2120
|
Milestone: undefined,
|
|
2121
2121
|
WorkloadId: undefined,
|
|
2122
2122
|
};
|
|
2123
|
-
const data = await parseBody(output.body, context);
|
|
2123
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2124
2124
|
if (data.Milestone !== undefined && data.Milestone !== null) {
|
|
2125
2125
|
contents.Milestone = deserializeAws_restJson1Milestone(data.Milestone, context);
|
|
2126
2126
|
}
|
|
@@ -2203,7 +2203,7 @@ const deserializeAws_restJson1GetWorkloadCommand = async (output, context) => {
|
|
|
2203
2203
|
$metadata: deserializeMetadata(output),
|
|
2204
2204
|
Workload: undefined,
|
|
2205
2205
|
};
|
|
2206
|
-
const data = await parseBody(output.body, context);
|
|
2206
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2207
2207
|
if (data.Workload !== undefined && data.Workload !== null) {
|
|
2208
2208
|
contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
|
|
2209
2209
|
}
|
|
@@ -2287,7 +2287,7 @@ const deserializeAws_restJson1ListAnswersCommand = async (output, context) => {
|
|
|
2287
2287
|
NextToken: undefined,
|
|
2288
2288
|
WorkloadId: undefined,
|
|
2289
2289
|
};
|
|
2290
|
-
const data = await parseBody(output.body, context);
|
|
2290
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2291
2291
|
if (data.AnswerSummaries !== undefined && data.AnswerSummaries !== null) {
|
|
2292
2292
|
contents.AnswerSummaries = deserializeAws_restJson1AnswerSummaries(data.AnswerSummaries, context);
|
|
2293
2293
|
}
|
|
@@ -2295,7 +2295,7 @@ const deserializeAws_restJson1ListAnswersCommand = async (output, context) => {
|
|
|
2295
2295
|
contents.LensAlias = smithy_client_1.expectString(data.LensAlias);
|
|
2296
2296
|
}
|
|
2297
2297
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
2298
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
2298
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
2299
2299
|
}
|
|
2300
2300
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2301
2301
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
@@ -2380,7 +2380,7 @@ const deserializeAws_restJson1ListLensesCommand = async (output, context) => {
|
|
|
2380
2380
|
LensSummaries: undefined,
|
|
2381
2381
|
NextToken: undefined,
|
|
2382
2382
|
};
|
|
2383
|
-
const data = await parseBody(output.body, context);
|
|
2383
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2384
2384
|
if (data.LensSummaries !== undefined && data.LensSummaries !== null) {
|
|
2385
2385
|
contents.LensSummaries = deserializeAws_restJson1LensSummaries(data.LensSummaries, context);
|
|
2386
2386
|
}
|
|
@@ -2459,7 +2459,7 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommand = async (output,
|
|
|
2459
2459
|
NextToken: undefined,
|
|
2460
2460
|
WorkloadId: undefined,
|
|
2461
2461
|
};
|
|
2462
|
-
const data = await parseBody(output.body, context);
|
|
2462
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2463
2463
|
if (data.ImprovementSummaries !== undefined && data.ImprovementSummaries !== null) {
|
|
2464
2464
|
contents.ImprovementSummaries = deserializeAws_restJson1ImprovementSummaries(data.ImprovementSummaries, context);
|
|
2465
2465
|
}
|
|
@@ -2467,7 +2467,7 @@ const deserializeAws_restJson1ListLensReviewImprovementsCommand = async (output,
|
|
|
2467
2467
|
contents.LensAlias = smithy_client_1.expectString(data.LensAlias);
|
|
2468
2468
|
}
|
|
2469
2469
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
2470
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
2470
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
2471
2471
|
}
|
|
2472
2472
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2473
2473
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
@@ -2554,12 +2554,12 @@ const deserializeAws_restJson1ListLensReviewsCommand = async (output, context) =
|
|
|
2554
2554
|
NextToken: undefined,
|
|
2555
2555
|
WorkloadId: undefined,
|
|
2556
2556
|
};
|
|
2557
|
-
const data = await parseBody(output.body, context);
|
|
2557
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2558
2558
|
if (data.LensReviewSummaries !== undefined && data.LensReviewSummaries !== null) {
|
|
2559
2559
|
contents.LensReviewSummaries = deserializeAws_restJson1LensReviewSummaries(data.LensReviewSummaries, context);
|
|
2560
2560
|
}
|
|
2561
2561
|
if (data.MilestoneNumber !== undefined && data.MilestoneNumber !== null) {
|
|
2562
|
-
contents.MilestoneNumber = smithy_client_1.
|
|
2562
|
+
contents.MilestoneNumber = smithy_client_1.expectInt32(data.MilestoneNumber);
|
|
2563
2563
|
}
|
|
2564
2564
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2565
2565
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
@@ -2645,7 +2645,7 @@ const deserializeAws_restJson1ListMilestonesCommand = async (output, context) =>
|
|
|
2645
2645
|
NextToken: undefined,
|
|
2646
2646
|
WorkloadId: undefined,
|
|
2647
2647
|
};
|
|
2648
|
-
const data = await parseBody(output.body, context);
|
|
2648
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2649
2649
|
if (data.MilestoneSummaries !== undefined && data.MilestoneSummaries !== null) {
|
|
2650
2650
|
contents.MilestoneSummaries = deserializeAws_restJson1MilestoneSummaries(data.MilestoneSummaries, context);
|
|
2651
2651
|
}
|
|
@@ -2732,7 +2732,7 @@ const deserializeAws_restJson1ListNotificationsCommand = async (output, context)
|
|
|
2732
2732
|
NextToken: undefined,
|
|
2733
2733
|
NotificationSummaries: undefined,
|
|
2734
2734
|
};
|
|
2735
|
-
const data = await parseBody(output.body, context);
|
|
2735
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2736
2736
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2737
2737
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2738
2738
|
}
|
|
@@ -2808,7 +2808,7 @@ const deserializeAws_restJson1ListShareInvitationsCommand = async (output, conte
|
|
|
2808
2808
|
NextToken: undefined,
|
|
2809
2809
|
ShareInvitationSummaries: undefined,
|
|
2810
2810
|
};
|
|
2811
|
-
const data = await parseBody(output.body, context);
|
|
2811
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2812
2812
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2813
2813
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2814
2814
|
}
|
|
@@ -2883,7 +2883,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2883
2883
|
$metadata: deserializeMetadata(output),
|
|
2884
2884
|
Tags: undefined,
|
|
2885
2885
|
};
|
|
2886
|
-
const data = await parseBody(output.body, context);
|
|
2886
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2887
2887
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2888
2888
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
2889
2889
|
}
|
|
@@ -2940,7 +2940,7 @@ const deserializeAws_restJson1ListWorkloadsCommand = async (output, context) =>
|
|
|
2940
2940
|
NextToken: undefined,
|
|
2941
2941
|
WorkloadSummaries: 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.NextToken !== undefined && data.NextToken !== null) {
|
|
2945
2945
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2946
2946
|
}
|
|
@@ -3017,7 +3017,7 @@ const deserializeAws_restJson1ListWorkloadSharesCommand = async (output, context
|
|
|
3017
3017
|
WorkloadId: undefined,
|
|
3018
3018
|
WorkloadShareSummaries: undefined,
|
|
3019
3019
|
};
|
|
3020
|
-
const data = await parseBody(output.body, context);
|
|
3020
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3021
3021
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3022
3022
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
3023
3023
|
}
|
|
@@ -3209,7 +3209,7 @@ const deserializeAws_restJson1UpdateAnswerCommand = async (output, context) => {
|
|
|
3209
3209
|
LensAlias: undefined,
|
|
3210
3210
|
WorkloadId: undefined,
|
|
3211
3211
|
};
|
|
3212
|
-
const data = await parseBody(output.body, context);
|
|
3212
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3213
3213
|
if (data.Answer !== undefined && data.Answer !== null) {
|
|
3214
3214
|
contents.Answer = deserializeAws_restJson1Answer(data.Answer, context);
|
|
3215
3215
|
}
|
|
@@ -3304,7 +3304,7 @@ const deserializeAws_restJson1UpdateLensReviewCommand = async (output, context)
|
|
|
3304
3304
|
LensReview: undefined,
|
|
3305
3305
|
WorkloadId: undefined,
|
|
3306
3306
|
};
|
|
3307
|
-
const data = await parseBody(output.body, context);
|
|
3307
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3308
3308
|
if (data.LensReview !== undefined && data.LensReview !== null) {
|
|
3309
3309
|
contents.LensReview = deserializeAws_restJson1LensReview(data.LensReview, context);
|
|
3310
3310
|
}
|
|
@@ -3395,7 +3395,7 @@ const deserializeAws_restJson1UpdateShareInvitationCommand = async (output, cont
|
|
|
3395
3395
|
$metadata: deserializeMetadata(output),
|
|
3396
3396
|
ShareInvitation: undefined,
|
|
3397
3397
|
};
|
|
3398
|
-
const data = await parseBody(output.body, context);
|
|
3398
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3399
3399
|
if (data.ShareInvitation !== undefined && data.ShareInvitation !== null) {
|
|
3400
3400
|
contents.ShareInvitation = deserializeAws_restJson1ShareInvitation(data.ShareInvitation, context);
|
|
3401
3401
|
}
|
|
@@ -3483,7 +3483,7 @@ const deserializeAws_restJson1UpdateWorkloadCommand = async (output, context) =>
|
|
|
3483
3483
|
$metadata: deserializeMetadata(output),
|
|
3484
3484
|
Workload: undefined,
|
|
3485
3485
|
};
|
|
3486
|
-
const data = await parseBody(output.body, context);
|
|
3486
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3487
3487
|
if (data.Workload !== undefined && data.Workload !== null) {
|
|
3488
3488
|
contents.Workload = deserializeAws_restJson1Workload(data.Workload, context);
|
|
3489
3489
|
}
|
|
@@ -3572,7 +3572,7 @@ const deserializeAws_restJson1UpdateWorkloadShareCommand = async (output, contex
|
|
|
3572
3572
|
WorkloadId: undefined,
|
|
3573
3573
|
WorkloadShare: undefined,
|
|
3574
3574
|
};
|
|
3575
|
-
const data = await parseBody(output.body, context);
|
|
3575
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3576
3576
|
if (data.WorkloadId !== undefined && data.WorkloadId !== null) {
|
|
3577
3577
|
contents.WorkloadId = smithy_client_1.expectString(data.WorkloadId);
|
|
3578
3578
|
}
|
|
@@ -4126,7 +4126,7 @@ const deserializeAws_restJson1LensReview = (output, context) => {
|
|
|
4126
4126
|
? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
|
|
4127
4127
|
: undefined,
|
|
4128
4128
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4129
|
-
?
|
|
4129
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
|
|
4130
4130
|
: undefined,
|
|
4131
4131
|
};
|
|
4132
4132
|
};
|
|
@@ -4156,7 +4156,7 @@ const deserializeAws_restJson1LensReviewSummary = (output, context) => {
|
|
|
4156
4156
|
? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
|
|
4157
4157
|
: undefined,
|
|
4158
4158
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4159
|
-
?
|
|
4159
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
|
|
4160
4160
|
: undefined,
|
|
4161
4161
|
};
|
|
4162
4162
|
};
|
|
@@ -4190,9 +4190,9 @@ const deserializeAws_restJson1LensUpgradeSummary = (output, context) => {
|
|
|
4190
4190
|
const deserializeAws_restJson1Milestone = (output, context) => {
|
|
4191
4191
|
return {
|
|
4192
4192
|
MilestoneName: smithy_client_1.expectString(output.MilestoneName),
|
|
4193
|
-
MilestoneNumber: smithy_client_1.
|
|
4193
|
+
MilestoneNumber: smithy_client_1.expectInt32(output.MilestoneNumber),
|
|
4194
4194
|
RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
|
|
4195
|
-
?
|
|
4195
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.RecordedAt)))
|
|
4196
4196
|
: undefined,
|
|
4197
4197
|
Workload: output.Workload !== undefined && output.Workload !== null
|
|
4198
4198
|
? deserializeAws_restJson1Workload(output.Workload, context)
|
|
@@ -4212,9 +4212,9 @@ const deserializeAws_restJson1MilestoneSummaries = (output, context) => {
|
|
|
4212
4212
|
const deserializeAws_restJson1MilestoneSummary = (output, context) => {
|
|
4213
4213
|
return {
|
|
4214
4214
|
MilestoneName: smithy_client_1.expectString(output.MilestoneName),
|
|
4215
|
-
MilestoneNumber: smithy_client_1.
|
|
4215
|
+
MilestoneNumber: smithy_client_1.expectInt32(output.MilestoneNumber),
|
|
4216
4216
|
RecordedAt: output.RecordedAt !== undefined && output.RecordedAt !== null
|
|
4217
|
-
?
|
|
4217
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.RecordedAt)))
|
|
4218
4218
|
: undefined,
|
|
4219
4219
|
WorkloadSummary: output.WorkloadSummary !== undefined && output.WorkloadSummary !== null
|
|
4220
4220
|
? deserializeAws_restJson1WorkloadSummary(output.WorkloadSummary, context)
|
|
@@ -4302,7 +4302,7 @@ const deserializeAws_restJson1RiskCounts = (output, context) => {
|
|
|
4302
4302
|
}
|
|
4303
4303
|
return {
|
|
4304
4304
|
...acc,
|
|
4305
|
-
[key]: smithy_client_1.
|
|
4305
|
+
[key]: smithy_client_1.expectInt32(value),
|
|
4306
4306
|
};
|
|
4307
4307
|
}, {});
|
|
4308
4308
|
};
|
|
@@ -4404,7 +4404,7 @@ const deserializeAws_restJson1Workload = (output, context) => {
|
|
|
4404
4404
|
: undefined,
|
|
4405
4405
|
ReviewOwner: smithy_client_1.expectString(output.ReviewOwner),
|
|
4406
4406
|
ReviewRestrictionDate: output.ReviewRestrictionDate !== undefined && output.ReviewRestrictionDate !== null
|
|
4407
|
-
?
|
|
4407
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ReviewRestrictionDate)))
|
|
4408
4408
|
: undefined,
|
|
4409
4409
|
RiskCounts: output.RiskCounts !== undefined && output.RiskCounts !== null
|
|
4410
4410
|
? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
|
|
@@ -4414,7 +4414,7 @@ const deserializeAws_restJson1Workload = (output, context) => {
|
|
|
4414
4414
|
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
4415
4415
|
: undefined,
|
|
4416
4416
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4417
|
-
?
|
|
4417
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
|
|
4418
4418
|
: undefined,
|
|
4419
4419
|
WorkloadArn: smithy_client_1.expectString(output.WorkloadArn),
|
|
4420
4420
|
WorkloadId: smithy_client_1.expectString(output.WorkloadId),
|
|
@@ -4521,7 +4521,7 @@ const deserializeAws_restJson1WorkloadSummary = (output, context) => {
|
|
|
4521
4521
|
? deserializeAws_restJson1RiskCounts(output.RiskCounts, context)
|
|
4522
4522
|
: undefined,
|
|
4523
4523
|
UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
4524
|
-
?
|
|
4524
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedAt)))
|
|
4525
4525
|
: undefined,
|
|
4526
4526
|
WorkloadArn: smithy_client_1.expectString(output.WorkloadArn),
|
|
4527
4527
|
WorkloadId: smithy_client_1.expectString(output.WorkloadId),
|