@aws-sdk/client-wellarchitected 3.928.0 → 3.930.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.
Files changed (93) hide show
  1. package/dist-cjs/index.js +3065 -3099
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/WellArchitectedClient.js +2 -0
  4. package/dist-es/commands/AssociateLensesCommand.js +3 -9
  5. package/dist-es/commands/AssociateProfilesCommand.js +3 -9
  6. package/dist-es/commands/CreateLensShareCommand.js +3 -9
  7. package/dist-es/commands/CreateLensVersionCommand.js +3 -9
  8. package/dist-es/commands/CreateMilestoneCommand.js +3 -9
  9. package/dist-es/commands/CreateProfileCommand.js +3 -9
  10. package/dist-es/commands/CreateProfileShareCommand.js +3 -9
  11. package/dist-es/commands/CreateReviewTemplateCommand.js +3 -9
  12. package/dist-es/commands/CreateTemplateShareCommand.js +3 -9
  13. package/dist-es/commands/CreateWorkloadCommand.js +3 -9
  14. package/dist-es/commands/CreateWorkloadShareCommand.js +3 -9
  15. package/dist-es/commands/DeleteLensCommand.js +3 -9
  16. package/dist-es/commands/DeleteLensShareCommand.js +3 -9
  17. package/dist-es/commands/DeleteProfileCommand.js +3 -9
  18. package/dist-es/commands/DeleteProfileShareCommand.js +3 -9
  19. package/dist-es/commands/DeleteReviewTemplateCommand.js +3 -9
  20. package/dist-es/commands/DeleteTemplateShareCommand.js +3 -9
  21. package/dist-es/commands/DeleteWorkloadCommand.js +3 -9
  22. package/dist-es/commands/DeleteWorkloadShareCommand.js +3 -9
  23. package/dist-es/commands/DisassociateLensesCommand.js +3 -9
  24. package/dist-es/commands/DisassociateProfilesCommand.js +3 -9
  25. package/dist-es/commands/ExportLensCommand.js +3 -9
  26. package/dist-es/commands/GetAnswerCommand.js +3 -9
  27. package/dist-es/commands/GetConsolidatedReportCommand.js +3 -9
  28. package/dist-es/commands/GetGlobalSettingsCommand.js +3 -9
  29. package/dist-es/commands/GetLensCommand.js +3 -9
  30. package/dist-es/commands/GetLensReviewCommand.js +3 -9
  31. package/dist-es/commands/GetLensReviewReportCommand.js +3 -9
  32. package/dist-es/commands/GetLensVersionDifferenceCommand.js +3 -9
  33. package/dist-es/commands/GetMilestoneCommand.js +3 -9
  34. package/dist-es/commands/GetProfileCommand.js +3 -9
  35. package/dist-es/commands/GetProfileTemplateCommand.js +3 -9
  36. package/dist-es/commands/GetReviewTemplateAnswerCommand.js +3 -9
  37. package/dist-es/commands/GetReviewTemplateCommand.js +3 -9
  38. package/dist-es/commands/GetReviewTemplateLensReviewCommand.js +3 -9
  39. package/dist-es/commands/GetWorkloadCommand.js +3 -9
  40. package/dist-es/commands/ImportLensCommand.js +3 -9
  41. package/dist-es/commands/ListAnswersCommand.js +3 -9
  42. package/dist-es/commands/ListCheckDetailsCommand.js +3 -9
  43. package/dist-es/commands/ListCheckSummariesCommand.js +3 -9
  44. package/dist-es/commands/ListLensReviewImprovementsCommand.js +3 -9
  45. package/dist-es/commands/ListLensReviewsCommand.js +3 -9
  46. package/dist-es/commands/ListLensSharesCommand.js +3 -9
  47. package/dist-es/commands/ListLensesCommand.js +3 -9
  48. package/dist-es/commands/ListMilestonesCommand.js +3 -9
  49. package/dist-es/commands/ListNotificationsCommand.js +3 -9
  50. package/dist-es/commands/ListProfileNotificationsCommand.js +3 -9
  51. package/dist-es/commands/ListProfileSharesCommand.js +3 -9
  52. package/dist-es/commands/ListProfilesCommand.js +3 -9
  53. package/dist-es/commands/ListReviewTemplateAnswersCommand.js +3 -9
  54. package/dist-es/commands/ListReviewTemplatesCommand.js +3 -9
  55. package/dist-es/commands/ListShareInvitationsCommand.js +3 -9
  56. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  57. package/dist-es/commands/ListTemplateSharesCommand.js +3 -9
  58. package/dist-es/commands/ListWorkloadSharesCommand.js +3 -9
  59. package/dist-es/commands/ListWorkloadsCommand.js +3 -9
  60. package/dist-es/commands/TagResourceCommand.js +3 -9
  61. package/dist-es/commands/UntagResourceCommand.js +3 -9
  62. package/dist-es/commands/UpdateAnswerCommand.js +3 -9
  63. package/dist-es/commands/UpdateGlobalSettingsCommand.js +3 -9
  64. package/dist-es/commands/UpdateIntegrationCommand.js +3 -9
  65. package/dist-es/commands/UpdateLensReviewCommand.js +3 -9
  66. package/dist-es/commands/UpdateProfileCommand.js +3 -9
  67. package/dist-es/commands/UpdateReviewTemplateAnswerCommand.js +3 -9
  68. package/dist-es/commands/UpdateReviewTemplateCommand.js +3 -9
  69. package/dist-es/commands/UpdateReviewTemplateLensReviewCommand.js +3 -9
  70. package/dist-es/commands/UpdateShareInvitationCommand.js +3 -9
  71. package/dist-es/commands/UpdateWorkloadCommand.js +3 -9
  72. package/dist-es/commands/UpdateWorkloadShareCommand.js +3 -9
  73. package/dist-es/commands/UpgradeLensReviewCommand.js +3 -9
  74. package/dist-es/commands/UpgradeProfileVersionCommand.js +3 -9
  75. package/dist-es/commands/UpgradeReviewTemplateLensReviewCommand.js +3 -9
  76. package/dist-es/runtimeConfig.shared.js +2 -0
  77. package/dist-es/schemas/schemas_0.js +2945 -0
  78. package/dist-types/WellArchitectedClient.d.ts +10 -1
  79. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  80. package/dist-types/runtimeConfig.d.ts +1 -0
  81. package/dist-types/runtimeConfig.native.d.ts +1 -0
  82. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  83. package/dist-types/schemas/schemas_0.d.ts +337 -0
  84. package/dist-types/ts3.4/WellArchitectedClient.d.ts +4 -0
  85. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  86. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  87. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  88. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  89. package/dist-types/ts3.4/schemas/schemas_0.d.ts +343 -0
  90. package/package.json +33 -34
  91. package/dist-es/protocols/Aws_restJson1.js +0 -2599
  92. package/dist-types/protocols/Aws_restJson1.d.ts +0 -650
  93. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -869
@@ -1,2599 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { WellArchitectedServiceException as __BaseException } from "../models/WellArchitectedServiceException";
7
- export const se_AssociateLensesCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/workloads/{WorkloadId}/associateLenses");
13
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
14
- let body;
15
- body = JSON.stringify(take(input, {
16
- LensAliases: (_) => _json(_),
17
- }));
18
- b.m("PATCH").h(headers).b(body);
19
- return b.build();
20
- };
21
- export const se_AssociateProfilesCommand = async (input, context) => {
22
- const b = rb(input, context);
23
- const headers = {
24
- "content-type": "application/json",
25
- };
26
- b.bp("/workloads/{WorkloadId}/associateProfiles");
27
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
28
- let body;
29
- body = JSON.stringify(take(input, {
30
- ProfileArns: (_) => _json(_),
31
- }));
32
- b.m("PATCH").h(headers).b(body);
33
- return b.build();
34
- };
35
- export const se_CreateLensShareCommand = async (input, context) => {
36
- const b = rb(input, context);
37
- const headers = {
38
- "content-type": "application/json",
39
- };
40
- b.bp("/lenses/{LensAlias}/shares");
41
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
42
- let body;
43
- body = JSON.stringify(take(input, {
44
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
45
- SharedWith: [],
46
- }));
47
- b.m("POST").h(headers).b(body);
48
- return b.build();
49
- };
50
- export const se_CreateLensVersionCommand = async (input, context) => {
51
- const b = rb(input, context);
52
- const headers = {
53
- "content-type": "application/json",
54
- };
55
- b.bp("/lenses/{LensAlias}/versions");
56
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
57
- let body;
58
- body = JSON.stringify(take(input, {
59
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
60
- IsMajorVersion: [],
61
- LensVersion: [],
62
- }));
63
- b.m("POST").h(headers).b(body);
64
- return b.build();
65
- };
66
- export const se_CreateMilestoneCommand = async (input, context) => {
67
- const b = rb(input, context);
68
- const headers = {
69
- "content-type": "application/json",
70
- };
71
- b.bp("/workloads/{WorkloadId}/milestones");
72
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
73
- let body;
74
- body = JSON.stringify(take(input, {
75
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
76
- MilestoneName: [],
77
- }));
78
- b.m("POST").h(headers).b(body);
79
- return b.build();
80
- };
81
- export const se_CreateProfileCommand = async (input, context) => {
82
- const b = rb(input, context);
83
- const headers = {
84
- "content-type": "application/json",
85
- };
86
- b.bp("/profiles");
87
- let body;
88
- body = JSON.stringify(take(input, {
89
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
90
- ProfileDescription: [],
91
- ProfileName: [],
92
- ProfileQuestions: (_) => _json(_),
93
- Tags: (_) => _json(_),
94
- }));
95
- b.m("POST").h(headers).b(body);
96
- return b.build();
97
- };
98
- export const se_CreateProfileShareCommand = async (input, context) => {
99
- const b = rb(input, context);
100
- const headers = {
101
- "content-type": "application/json",
102
- };
103
- b.bp("/profiles/{ProfileArn}/shares");
104
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
105
- let body;
106
- body = JSON.stringify(take(input, {
107
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
108
- SharedWith: [],
109
- }));
110
- b.m("POST").h(headers).b(body);
111
- return b.build();
112
- };
113
- export const se_CreateReviewTemplateCommand = async (input, context) => {
114
- const b = rb(input, context);
115
- const headers = {
116
- "content-type": "application/json",
117
- };
118
- b.bp("/reviewTemplates");
119
- let body;
120
- body = JSON.stringify(take(input, {
121
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
122
- Description: [],
123
- Lenses: (_) => _json(_),
124
- Notes: [],
125
- Tags: (_) => _json(_),
126
- TemplateName: [],
127
- }));
128
- b.m("POST").h(headers).b(body);
129
- return b.build();
130
- };
131
- export const se_CreateTemplateShareCommand = async (input, context) => {
132
- const b = rb(input, context);
133
- const headers = {
134
- "content-type": "application/json",
135
- };
136
- b.bp("/templates/shares/{TemplateArn}");
137
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
138
- let body;
139
- body = JSON.stringify(take(input, {
140
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
141
- SharedWith: [],
142
- }));
143
- b.m("POST").h(headers).b(body);
144
- return b.build();
145
- };
146
- export const se_CreateWorkloadCommand = async (input, context) => {
147
- const b = rb(input, context);
148
- const headers = {
149
- "content-type": "application/json",
150
- };
151
- b.bp("/workloads");
152
- let body;
153
- body = JSON.stringify(take(input, {
154
- AccountIds: (_) => _json(_),
155
- Applications: (_) => _json(_),
156
- ArchitecturalDesign: [],
157
- AwsRegions: (_) => _json(_),
158
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
159
- Description: [],
160
- DiscoveryConfig: (_) => _json(_),
161
- Environment: [],
162
- Industry: [],
163
- IndustryType: [],
164
- JiraConfiguration: (_) => _json(_),
165
- Lenses: (_) => _json(_),
166
- NonAwsRegions: (_) => _json(_),
167
- Notes: [],
168
- PillarPriorities: (_) => _json(_),
169
- ProfileArns: (_) => _json(_),
170
- ReviewOwner: [],
171
- ReviewTemplateArns: (_) => _json(_),
172
- Tags: (_) => _json(_),
173
- WorkloadName: [],
174
- }));
175
- b.m("POST").h(headers).b(body);
176
- return b.build();
177
- };
178
- export const se_CreateWorkloadShareCommand = async (input, context) => {
179
- const b = rb(input, context);
180
- const headers = {
181
- "content-type": "application/json",
182
- };
183
- b.bp("/workloads/{WorkloadId}/shares");
184
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
185
- let body;
186
- body = JSON.stringify(take(input, {
187
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
188
- PermissionType: [],
189
- SharedWith: [],
190
- }));
191
- b.m("POST").h(headers).b(body);
192
- return b.build();
193
- };
194
- export const se_DeleteLensCommand = async (input, context) => {
195
- const b = rb(input, context);
196
- const headers = {};
197
- b.bp("/lenses/{LensAlias}");
198
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
199
- const query = map({
200
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
201
- [_LS]: [, __expectNonNull(input[_LS], `LensStatus`)],
202
- });
203
- let body;
204
- b.m("DELETE").h(headers).q(query).b(body);
205
- return b.build();
206
- };
207
- export const se_DeleteLensShareCommand = async (input, context) => {
208
- const b = rb(input, context);
209
- const headers = {};
210
- b.bp("/lenses/{LensAlias}/shares/{ShareId}");
211
- b.p("ShareId", () => input.ShareId, "{ShareId}", false);
212
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
213
- const query = map({
214
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
215
- });
216
- let body;
217
- b.m("DELETE").h(headers).q(query).b(body);
218
- return b.build();
219
- };
220
- export const se_DeleteProfileCommand = async (input, context) => {
221
- const b = rb(input, context);
222
- const headers = {};
223
- b.bp("/profiles/{ProfileArn}");
224
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
225
- const query = map({
226
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
227
- });
228
- let body;
229
- b.m("DELETE").h(headers).q(query).b(body);
230
- return b.build();
231
- };
232
- export const se_DeleteProfileShareCommand = async (input, context) => {
233
- const b = rb(input, context);
234
- const headers = {};
235
- b.bp("/profiles/{ProfileArn}/shares/{ShareId}");
236
- b.p("ShareId", () => input.ShareId, "{ShareId}", false);
237
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
238
- const query = map({
239
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
240
- });
241
- let body;
242
- b.m("DELETE").h(headers).q(query).b(body);
243
- return b.build();
244
- };
245
- export const se_DeleteReviewTemplateCommand = async (input, context) => {
246
- const b = rb(input, context);
247
- const headers = {};
248
- b.bp("/reviewTemplates/{TemplateArn}");
249
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
250
- const query = map({
251
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
252
- });
253
- let body;
254
- b.m("DELETE").h(headers).q(query).b(body);
255
- return b.build();
256
- };
257
- export const se_DeleteTemplateShareCommand = async (input, context) => {
258
- const b = rb(input, context);
259
- const headers = {};
260
- b.bp("/templates/shares/{TemplateArn}/{ShareId}");
261
- b.p("ShareId", () => input.ShareId, "{ShareId}", false);
262
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
263
- const query = map({
264
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
265
- });
266
- let body;
267
- b.m("DELETE").h(headers).q(query).b(body);
268
- return b.build();
269
- };
270
- export const se_DeleteWorkloadCommand = async (input, context) => {
271
- const b = rb(input, context);
272
- const headers = {};
273
- b.bp("/workloads/{WorkloadId}");
274
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
275
- const query = map({
276
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
277
- });
278
- let body;
279
- b.m("DELETE").h(headers).q(query).b(body);
280
- return b.build();
281
- };
282
- export const se_DeleteWorkloadShareCommand = async (input, context) => {
283
- const b = rb(input, context);
284
- const headers = {};
285
- b.bp("/workloads/{WorkloadId}/shares/{ShareId}");
286
- b.p("ShareId", () => input.ShareId, "{ShareId}", false);
287
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
288
- const query = map({
289
- [_CRT]: [, __expectNonNull(input[_CRT], `ClientRequestToken`)],
290
- });
291
- let body;
292
- b.m("DELETE").h(headers).q(query).b(body);
293
- return b.build();
294
- };
295
- export const se_DisassociateLensesCommand = async (input, context) => {
296
- const b = rb(input, context);
297
- const headers = {
298
- "content-type": "application/json",
299
- };
300
- b.bp("/workloads/{WorkloadId}/disassociateLenses");
301
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
302
- let body;
303
- body = JSON.stringify(take(input, {
304
- LensAliases: (_) => _json(_),
305
- }));
306
- b.m("PATCH").h(headers).b(body);
307
- return b.build();
308
- };
309
- export const se_DisassociateProfilesCommand = async (input, context) => {
310
- const b = rb(input, context);
311
- const headers = {
312
- "content-type": "application/json",
313
- };
314
- b.bp("/workloads/{WorkloadId}/disassociateProfiles");
315
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
316
- let body;
317
- body = JSON.stringify(take(input, {
318
- ProfileArns: (_) => _json(_),
319
- }));
320
- b.m("PATCH").h(headers).b(body);
321
- return b.build();
322
- };
323
- export const se_ExportLensCommand = async (input, context) => {
324
- const b = rb(input, context);
325
- const headers = {};
326
- b.bp("/lenses/{LensAlias}/export");
327
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
328
- const query = map({
329
- [_LV]: [, input[_LV]],
330
- });
331
- let body;
332
- b.m("GET").h(headers).q(query).b(body);
333
- return b.build();
334
- };
335
- export const se_GetAnswerCommand = async (input, context) => {
336
- const b = rb(input, context);
337
- const headers = {};
338
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}");
339
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
340
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
341
- b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
342
- const query = map({
343
- [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
344
- });
345
- let body;
346
- b.m("GET").h(headers).q(query).b(body);
347
- return b.build();
348
- };
349
- export const se_GetConsolidatedReportCommand = async (input, context) => {
350
- const b = rb(input, context);
351
- const headers = {};
352
- b.bp("/consolidatedReport");
353
- const query = map({
354
- [_F]: [, __expectNonNull(input[_F], `Format`)],
355
- [_ISR]: [() => input.IncludeSharedResources !== void 0, () => input[_ISR].toString()],
356
- [_NT]: [, input[_NT]],
357
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
358
- });
359
- let body;
360
- b.m("GET").h(headers).q(query).b(body);
361
- return b.build();
362
- };
363
- export const se_GetGlobalSettingsCommand = async (input, context) => {
364
- const b = rb(input, context);
365
- const headers = {};
366
- b.bp("/global-settings");
367
- let body;
368
- b.m("GET").h(headers).b(body);
369
- return b.build();
370
- };
371
- export const se_GetLensCommand = async (input, context) => {
372
- const b = rb(input, context);
373
- const headers = {};
374
- b.bp("/lenses/{LensAlias}");
375
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
376
- const query = map({
377
- [_LV]: [, input[_LV]],
378
- });
379
- let body;
380
- b.m("GET").h(headers).q(query).b(body);
381
- return b.build();
382
- };
383
- export const se_GetLensReviewCommand = async (input, context) => {
384
- const b = rb(input, context);
385
- const headers = {};
386
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}");
387
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
388
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
389
- const query = map({
390
- [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
391
- });
392
- let body;
393
- b.m("GET").h(headers).q(query).b(body);
394
- return b.build();
395
- };
396
- export const se_GetLensReviewReportCommand = async (input, context) => {
397
- const b = rb(input, context);
398
- const headers = {};
399
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/report");
400
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
401
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
402
- const query = map({
403
- [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
404
- });
405
- let body;
406
- b.m("GET").h(headers).q(query).b(body);
407
- return b.build();
408
- };
409
- export const se_GetLensVersionDifferenceCommand = async (input, context) => {
410
- const b = rb(input, context);
411
- const headers = {};
412
- b.bp("/lenses/{LensAlias}/versionDifference");
413
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
414
- const query = map({
415
- [_BLV]: [, input[_BLV]],
416
- [_TLV]: [, input[_TLV]],
417
- });
418
- let body;
419
- b.m("GET").h(headers).q(query).b(body);
420
- return b.build();
421
- };
422
- export const se_GetMilestoneCommand = async (input, context) => {
423
- const b = rb(input, context);
424
- const headers = {};
425
- b.bp("/workloads/{WorkloadId}/milestones/{MilestoneNumber}");
426
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
427
- b.p("MilestoneNumber", () => input.MilestoneNumber.toString(), "{MilestoneNumber}", false);
428
- let body;
429
- b.m("GET").h(headers).b(body);
430
- return b.build();
431
- };
432
- export const se_GetProfileCommand = async (input, context) => {
433
- const b = rb(input, context);
434
- const headers = {};
435
- b.bp("/profiles/{ProfileArn}");
436
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
437
- const query = map({
438
- [_PV]: [, input[_PV]],
439
- });
440
- let body;
441
- b.m("GET").h(headers).q(query).b(body);
442
- return b.build();
443
- };
444
- export const se_GetProfileTemplateCommand = async (input, context) => {
445
- const b = rb(input, context);
446
- const headers = {};
447
- b.bp("/profileTemplate");
448
- let body;
449
- b.m("GET").h(headers).b(body);
450
- return b.build();
451
- };
452
- export const se_GetReviewTemplateCommand = async (input, context) => {
453
- const b = rb(input, context);
454
- const headers = {};
455
- b.bp("/reviewTemplates/{TemplateArn}");
456
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
457
- let body;
458
- b.m("GET").h(headers).b(body);
459
- return b.build();
460
- };
461
- export const se_GetReviewTemplateAnswerCommand = async (input, context) => {
462
- const b = rb(input, context);
463
- const headers = {};
464
- b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}");
465
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
466
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
467
- b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
468
- let body;
469
- b.m("GET").h(headers).b(body);
470
- return b.build();
471
- };
472
- export const se_GetReviewTemplateLensReviewCommand = async (input, context) => {
473
- const b = rb(input, context);
474
- const headers = {};
475
- b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}");
476
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
477
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
478
- let body;
479
- b.m("GET").h(headers).b(body);
480
- return b.build();
481
- };
482
- export const se_GetWorkloadCommand = async (input, context) => {
483
- const b = rb(input, context);
484
- const headers = {};
485
- b.bp("/workloads/{WorkloadId}");
486
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
487
- let body;
488
- b.m("GET").h(headers).b(body);
489
- return b.build();
490
- };
491
- export const se_ImportLensCommand = async (input, context) => {
492
- const b = rb(input, context);
493
- const headers = {
494
- "content-type": "application/json",
495
- };
496
- b.bp("/importLens");
497
- let body;
498
- body = JSON.stringify(take(input, {
499
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
500
- JSONString: [],
501
- LensAlias: [],
502
- Tags: (_) => _json(_),
503
- }));
504
- b.m("PUT").h(headers).b(body);
505
- return b.build();
506
- };
507
- export const se_ListAnswersCommand = async (input, context) => {
508
- const b = rb(input, context);
509
- const headers = {};
510
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers");
511
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
512
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
513
- const query = map({
514
- [_PI]: [, input[_PI]],
515
- [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
516
- [_NT]: [, input[_NT]],
517
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
518
- [_QP]: [, input[_QP]],
519
- });
520
- let body;
521
- b.m("GET").h(headers).q(query).b(body);
522
- return b.build();
523
- };
524
- export const se_ListCheckDetailsCommand = async (input, context) => {
525
- const b = rb(input, context);
526
- const headers = {
527
- "content-type": "application/json",
528
- };
529
- b.bp("/workloads/{WorkloadId}/checks");
530
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
531
- let body;
532
- body = JSON.stringify(take(input, {
533
- ChoiceId: [],
534
- LensArn: [],
535
- MaxResults: [],
536
- NextToken: [],
537
- PillarId: [],
538
- QuestionId: [],
539
- }));
540
- b.m("POST").h(headers).b(body);
541
- return b.build();
542
- };
543
- export const se_ListCheckSummariesCommand = async (input, context) => {
544
- const b = rb(input, context);
545
- const headers = {
546
- "content-type": "application/json",
547
- };
548
- b.bp("/workloads/{WorkloadId}/checkSummaries");
549
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
550
- let body;
551
- body = JSON.stringify(take(input, {
552
- ChoiceId: [],
553
- LensArn: [],
554
- MaxResults: [],
555
- NextToken: [],
556
- PillarId: [],
557
- QuestionId: [],
558
- }));
559
- b.m("POST").h(headers).b(body);
560
- return b.build();
561
- };
562
- export const se_ListLensesCommand = async (input, context) => {
563
- const b = rb(input, context);
564
- const headers = {};
565
- b.bp("/lenses");
566
- const query = map({
567
- [_NT]: [, input[_NT]],
568
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
569
- [_LT]: [, input[_LT]],
570
- [_LS]: [, input[_LS]],
571
- [_LN]: [, input[_LN]],
572
- });
573
- let body;
574
- b.m("GET").h(headers).q(query).b(body);
575
- return b.build();
576
- };
577
- export const se_ListLensReviewImprovementsCommand = async (input, context) => {
578
- const b = rb(input, context);
579
- const headers = {};
580
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements");
581
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
582
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
583
- const query = map({
584
- [_PI]: [, input[_PI]],
585
- [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
586
- [_NT]: [, input[_NT]],
587
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
588
- [_QP]: [, input[_QP]],
589
- });
590
- let body;
591
- b.m("GET").h(headers).q(query).b(body);
592
- return b.build();
593
- };
594
- export const se_ListLensReviewsCommand = async (input, context) => {
595
- const b = rb(input, context);
596
- const headers = {};
597
- b.bp("/workloads/{WorkloadId}/lensReviews");
598
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
599
- const query = map({
600
- [_MN]: [() => input.MilestoneNumber !== void 0, () => input[_MN].toString()],
601
- [_NT]: [, input[_NT]],
602
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
603
- });
604
- let body;
605
- b.m("GET").h(headers).q(query).b(body);
606
- return b.build();
607
- };
608
- export const se_ListLensSharesCommand = async (input, context) => {
609
- const b = rb(input, context);
610
- const headers = {};
611
- b.bp("/lenses/{LensAlias}/shares");
612
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
613
- const query = map({
614
- [_SWP]: [, input[_SWP]],
615
- [_NT]: [, input[_NT]],
616
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
617
- [_S]: [, input[_S]],
618
- });
619
- let body;
620
- b.m("GET").h(headers).q(query).b(body);
621
- return b.build();
622
- };
623
- export const se_ListMilestonesCommand = async (input, context) => {
624
- const b = rb(input, context);
625
- const headers = {
626
- "content-type": "application/json",
627
- };
628
- b.bp("/workloads/{WorkloadId}/milestonesSummaries");
629
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
630
- let body;
631
- body = JSON.stringify(take(input, {
632
- MaxResults: [],
633
- NextToken: [],
634
- }));
635
- b.m("POST").h(headers).b(body);
636
- return b.build();
637
- };
638
- export const se_ListNotificationsCommand = async (input, context) => {
639
- const b = rb(input, context);
640
- const headers = {
641
- "content-type": "application/json",
642
- };
643
- b.bp("/notifications");
644
- let body;
645
- body = JSON.stringify(take(input, {
646
- MaxResults: [],
647
- NextToken: [],
648
- ResourceArn: [],
649
- WorkloadId: [],
650
- }));
651
- b.m("POST").h(headers).b(body);
652
- return b.build();
653
- };
654
- export const se_ListProfileNotificationsCommand = async (input, context) => {
655
- const b = rb(input, context);
656
- const headers = {};
657
- b.bp("/profileNotifications");
658
- const query = map({
659
- [_WI]: [, input[_WI]],
660
- [_NT]: [, input[_NT]],
661
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
662
- });
663
- let body;
664
- b.m("GET").h(headers).q(query).b(body);
665
- return b.build();
666
- };
667
- export const se_ListProfilesCommand = async (input, context) => {
668
- const b = rb(input, context);
669
- const headers = {};
670
- b.bp("/profileSummaries");
671
- const query = map({
672
- [_PNP]: [, input[_PNP]],
673
- [_POT]: [, input[_POT]],
674
- [_NT]: [, input[_NT]],
675
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
676
- });
677
- let body;
678
- b.m("GET").h(headers).q(query).b(body);
679
- return b.build();
680
- };
681
- export const se_ListProfileSharesCommand = async (input, context) => {
682
- const b = rb(input, context);
683
- const headers = {};
684
- b.bp("/profiles/{ProfileArn}/shares");
685
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
686
- const query = map({
687
- [_SWP]: [, input[_SWP]],
688
- [_NT]: [, input[_NT]],
689
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
690
- [_S]: [, input[_S]],
691
- });
692
- let body;
693
- b.m("GET").h(headers).q(query).b(body);
694
- return b.build();
695
- };
696
- export const se_ListReviewTemplateAnswersCommand = async (input, context) => {
697
- const b = rb(input, context);
698
- const headers = {};
699
- b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers");
700
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
701
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
702
- const query = map({
703
- [_PI]: [, input[_PI]],
704
- [_NT]: [, input[_NT]],
705
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
706
- });
707
- let body;
708
- b.m("GET").h(headers).q(query).b(body);
709
- return b.build();
710
- };
711
- export const se_ListReviewTemplatesCommand = async (input, context) => {
712
- const b = rb(input, context);
713
- const headers = {};
714
- b.bp("/reviewTemplates");
715
- const query = map({
716
- [_NT]: [, input[_NT]],
717
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
718
- });
719
- let body;
720
- b.m("GET").h(headers).q(query).b(body);
721
- return b.build();
722
- };
723
- export const se_ListShareInvitationsCommand = async (input, context) => {
724
- const b = rb(input, context);
725
- const headers = {};
726
- b.bp("/shareInvitations");
727
- const query = map({
728
- [_WNP]: [, input[_WNP]],
729
- [_LNP]: [, input[_LNP]],
730
- [_SRT]: [, input[_SRT]],
731
- [_NT]: [, input[_NT]],
732
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
733
- [_PNP]: [, input[_PNP]],
734
- [_TNP]: [, input[_TNP]],
735
- });
736
- let body;
737
- b.m("GET").h(headers).q(query).b(body);
738
- return b.build();
739
- };
740
- export const se_ListTagsForResourceCommand = async (input, context) => {
741
- const b = rb(input, context);
742
- const headers = {};
743
- b.bp("/tags/{WorkloadArn}");
744
- b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
745
- let body;
746
- b.m("GET").h(headers).b(body);
747
- return b.build();
748
- };
749
- export const se_ListTemplateSharesCommand = async (input, context) => {
750
- const b = rb(input, context);
751
- const headers = {};
752
- b.bp("/templates/shares/{TemplateArn}");
753
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
754
- const query = map({
755
- [_SWP]: [, input[_SWP]],
756
- [_NT]: [, input[_NT]],
757
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
758
- [_S]: [, input[_S]],
759
- });
760
- let body;
761
- b.m("GET").h(headers).q(query).b(body);
762
- return b.build();
763
- };
764
- export const se_ListWorkloadsCommand = async (input, context) => {
765
- const b = rb(input, context);
766
- const headers = {
767
- "content-type": "application/json",
768
- };
769
- b.bp("/workloadsSummaries");
770
- let body;
771
- body = JSON.stringify(take(input, {
772
- MaxResults: [],
773
- NextToken: [],
774
- WorkloadNamePrefix: [],
775
- }));
776
- b.m("POST").h(headers).b(body);
777
- return b.build();
778
- };
779
- export const se_ListWorkloadSharesCommand = async (input, context) => {
780
- const b = rb(input, context);
781
- const headers = {};
782
- b.bp("/workloads/{WorkloadId}/shares");
783
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
784
- const query = map({
785
- [_SWP]: [, input[_SWP]],
786
- [_NT]: [, input[_NT]],
787
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
788
- [_S]: [, input[_S]],
789
- });
790
- let body;
791
- b.m("GET").h(headers).q(query).b(body);
792
- return b.build();
793
- };
794
- export const se_TagResourceCommand = async (input, context) => {
795
- const b = rb(input, context);
796
- const headers = {
797
- "content-type": "application/json",
798
- };
799
- b.bp("/tags/{WorkloadArn}");
800
- b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
801
- let body;
802
- body = JSON.stringify(take(input, {
803
- Tags: (_) => _json(_),
804
- }));
805
- b.m("POST").h(headers).b(body);
806
- return b.build();
807
- };
808
- export const se_UntagResourceCommand = async (input, context) => {
809
- const b = rb(input, context);
810
- const headers = {};
811
- b.bp("/tags/{WorkloadArn}");
812
- b.p("WorkloadArn", () => input.WorkloadArn, "{WorkloadArn}", false);
813
- const query = map({
814
- [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
815
- });
816
- let body;
817
- b.m("DELETE").h(headers).q(query).b(body);
818
- return b.build();
819
- };
820
- export const se_UpdateAnswerCommand = async (input, context) => {
821
- const b = rb(input, context);
822
- const headers = {
823
- "content-type": "application/json",
824
- };
825
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}");
826
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
827
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
828
- b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
829
- let body;
830
- body = JSON.stringify(take(input, {
831
- ChoiceUpdates: (_) => _json(_),
832
- IsApplicable: [],
833
- Notes: [],
834
- Reason: [],
835
- SelectedChoices: (_) => _json(_),
836
- }));
837
- b.m("PATCH").h(headers).b(body);
838
- return b.build();
839
- };
840
- export const se_UpdateGlobalSettingsCommand = async (input, context) => {
841
- const b = rb(input, context);
842
- const headers = {
843
- "content-type": "application/json",
844
- };
845
- b.bp("/global-settings");
846
- let body;
847
- body = JSON.stringify(take(input, {
848
- DiscoveryIntegrationStatus: [],
849
- JiraConfiguration: (_) => _json(_),
850
- OrganizationSharingStatus: [],
851
- }));
852
- b.m("PATCH").h(headers).b(body);
853
- return b.build();
854
- };
855
- export const se_UpdateIntegrationCommand = async (input, context) => {
856
- const b = rb(input, context);
857
- const headers = {
858
- "content-type": "application/json",
859
- };
860
- b.bp("/workloads/{WorkloadId}/updateIntegration");
861
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
862
- let body;
863
- body = JSON.stringify(take(input, {
864
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
865
- IntegratingService: [],
866
- }));
867
- b.m("POST").h(headers).b(body);
868
- return b.build();
869
- };
870
- export const se_UpdateLensReviewCommand = async (input, context) => {
871
- const b = rb(input, context);
872
- const headers = {
873
- "content-type": "application/json",
874
- };
875
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}");
876
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
877
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
878
- let body;
879
- body = JSON.stringify(take(input, {
880
- JiraConfiguration: (_) => _json(_),
881
- LensNotes: [],
882
- PillarNotes: (_) => _json(_),
883
- }));
884
- b.m("PATCH").h(headers).b(body);
885
- return b.build();
886
- };
887
- export const se_UpdateProfileCommand = async (input, context) => {
888
- const b = rb(input, context);
889
- const headers = {
890
- "content-type": "application/json",
891
- };
892
- b.bp("/profiles/{ProfileArn}");
893
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
894
- let body;
895
- body = JSON.stringify(take(input, {
896
- ProfileDescription: [],
897
- ProfileQuestions: (_) => _json(_),
898
- }));
899
- b.m("PATCH").h(headers).b(body);
900
- return b.build();
901
- };
902
- export const se_UpdateReviewTemplateCommand = async (input, context) => {
903
- const b = rb(input, context);
904
- const headers = {
905
- "content-type": "application/json",
906
- };
907
- b.bp("/reviewTemplates/{TemplateArn}");
908
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
909
- let body;
910
- body = JSON.stringify(take(input, {
911
- Description: [],
912
- LensesToAssociate: (_) => _json(_),
913
- LensesToDisassociate: (_) => _json(_),
914
- Notes: [],
915
- TemplateName: [],
916
- }));
917
- b.m("PATCH").h(headers).b(body);
918
- return b.build();
919
- };
920
- export const se_UpdateReviewTemplateAnswerCommand = async (input, context) => {
921
- const b = rb(input, context);
922
- const headers = {
923
- "content-type": "application/json",
924
- };
925
- b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/answers/{QuestionId}");
926
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
927
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
928
- b.p("QuestionId", () => input.QuestionId, "{QuestionId}", false);
929
- let body;
930
- body = JSON.stringify(take(input, {
931
- ChoiceUpdates: (_) => _json(_),
932
- IsApplicable: [],
933
- Notes: [],
934
- Reason: [],
935
- SelectedChoices: (_) => _json(_),
936
- }));
937
- b.m("PATCH").h(headers).b(body);
938
- return b.build();
939
- };
940
- export const se_UpdateReviewTemplateLensReviewCommand = async (input, context) => {
941
- const b = rb(input, context);
942
- const headers = {
943
- "content-type": "application/json",
944
- };
945
- b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}");
946
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
947
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
948
- let body;
949
- body = JSON.stringify(take(input, {
950
- LensNotes: [],
951
- PillarNotes: (_) => _json(_),
952
- }));
953
- b.m("PATCH").h(headers).b(body);
954
- return b.build();
955
- };
956
- export const se_UpdateShareInvitationCommand = async (input, context) => {
957
- const b = rb(input, context);
958
- const headers = {
959
- "content-type": "application/json",
960
- };
961
- b.bp("/shareInvitations/{ShareInvitationId}");
962
- b.p("ShareInvitationId", () => input.ShareInvitationId, "{ShareInvitationId}", false);
963
- let body;
964
- body = JSON.stringify(take(input, {
965
- ShareInvitationAction: [],
966
- }));
967
- b.m("PATCH").h(headers).b(body);
968
- return b.build();
969
- };
970
- export const se_UpdateWorkloadCommand = async (input, context) => {
971
- const b = rb(input, context);
972
- const headers = {
973
- "content-type": "application/json",
974
- };
975
- b.bp("/workloads/{WorkloadId}");
976
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
977
- let body;
978
- body = JSON.stringify(take(input, {
979
- AccountIds: (_) => _json(_),
980
- Applications: (_) => _json(_),
981
- ArchitecturalDesign: [],
982
- AwsRegions: (_) => _json(_),
983
- Description: [],
984
- DiscoveryConfig: (_) => _json(_),
985
- Environment: [],
986
- ImprovementStatus: [],
987
- Industry: [],
988
- IndustryType: [],
989
- IsReviewOwnerUpdateAcknowledged: [],
990
- JiraConfiguration: (_) => _json(_),
991
- NonAwsRegions: (_) => _json(_),
992
- Notes: [],
993
- PillarPriorities: (_) => _json(_),
994
- ReviewOwner: [],
995
- WorkloadName: [],
996
- }));
997
- b.m("PATCH").h(headers).b(body);
998
- return b.build();
999
- };
1000
- export const se_UpdateWorkloadShareCommand = async (input, context) => {
1001
- const b = rb(input, context);
1002
- const headers = {
1003
- "content-type": "application/json",
1004
- };
1005
- b.bp("/workloads/{WorkloadId}/shares/{ShareId}");
1006
- b.p("ShareId", () => input.ShareId, "{ShareId}", false);
1007
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1008
- let body;
1009
- body = JSON.stringify(take(input, {
1010
- PermissionType: [],
1011
- }));
1012
- b.m("PATCH").h(headers).b(body);
1013
- return b.build();
1014
- };
1015
- export const se_UpgradeLensReviewCommand = async (input, context) => {
1016
- const b = rb(input, context);
1017
- const headers = {
1018
- "content-type": "application/json",
1019
- };
1020
- b.bp("/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade");
1021
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1022
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1023
- let body;
1024
- body = JSON.stringify(take(input, {
1025
- ClientRequestToken: [],
1026
- MilestoneName: [],
1027
- }));
1028
- b.m("PUT").h(headers).b(body);
1029
- return b.build();
1030
- };
1031
- export const se_UpgradeProfileVersionCommand = async (input, context) => {
1032
- const b = rb(input, context);
1033
- const headers = {
1034
- "content-type": "application/json",
1035
- };
1036
- b.bp("/workloads/{WorkloadId}/profiles/{ProfileArn}/upgrade");
1037
- b.p("WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
1038
- b.p("ProfileArn", () => input.ProfileArn, "{ProfileArn}", false);
1039
- let body;
1040
- body = JSON.stringify(take(input, {
1041
- ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
1042
- MilestoneName: [],
1043
- }));
1044
- b.m("PUT").h(headers).b(body);
1045
- return b.build();
1046
- };
1047
- export const se_UpgradeReviewTemplateLensReviewCommand = async (input, context) => {
1048
- const b = rb(input, context);
1049
- const headers = {
1050
- "content-type": "application/json",
1051
- };
1052
- b.bp("/reviewTemplates/{TemplateArn}/lensReviews/{LensAlias}/upgrade");
1053
- b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
1054
- b.p("LensAlias", () => input.LensAlias, "{LensAlias}", false);
1055
- let body;
1056
- body = JSON.stringify(take(input, {
1057
- ClientRequestToken: [],
1058
- }));
1059
- b.m("PUT").h(headers).b(body);
1060
- return b.build();
1061
- };
1062
- export const de_AssociateLensesCommand = async (output, context) => {
1063
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1064
- return de_CommandError(output, context);
1065
- }
1066
- const contents = map({
1067
- $metadata: deserializeMetadata(output),
1068
- });
1069
- await collectBody(output.body, context);
1070
- return contents;
1071
- };
1072
- export const de_AssociateProfilesCommand = async (output, context) => {
1073
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1074
- return de_CommandError(output, context);
1075
- }
1076
- const contents = map({
1077
- $metadata: deserializeMetadata(output),
1078
- });
1079
- await collectBody(output.body, context);
1080
- return contents;
1081
- };
1082
- export const de_CreateLensShareCommand = async (output, context) => {
1083
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1084
- return de_CommandError(output, context);
1085
- }
1086
- const contents = map({
1087
- $metadata: deserializeMetadata(output),
1088
- });
1089
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1090
- const doc = take(data, {
1091
- ShareId: __expectString,
1092
- });
1093
- Object.assign(contents, doc);
1094
- return contents;
1095
- };
1096
- export const de_CreateLensVersionCommand = async (output, context) => {
1097
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1098
- return de_CommandError(output, context);
1099
- }
1100
- const contents = map({
1101
- $metadata: deserializeMetadata(output),
1102
- });
1103
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1104
- const doc = take(data, {
1105
- LensArn: __expectString,
1106
- LensVersion: __expectString,
1107
- });
1108
- Object.assign(contents, doc);
1109
- return contents;
1110
- };
1111
- export const de_CreateMilestoneCommand = async (output, context) => {
1112
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1113
- return de_CommandError(output, context);
1114
- }
1115
- const contents = map({
1116
- $metadata: deserializeMetadata(output),
1117
- });
1118
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1119
- const doc = take(data, {
1120
- MilestoneNumber: __expectInt32,
1121
- WorkloadId: __expectString,
1122
- });
1123
- Object.assign(contents, doc);
1124
- return contents;
1125
- };
1126
- export const de_CreateProfileCommand = async (output, context) => {
1127
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1128
- return de_CommandError(output, context);
1129
- }
1130
- const contents = map({
1131
- $metadata: deserializeMetadata(output),
1132
- });
1133
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1134
- const doc = take(data, {
1135
- ProfileArn: __expectString,
1136
- ProfileVersion: __expectString,
1137
- });
1138
- Object.assign(contents, doc);
1139
- return contents;
1140
- };
1141
- export const de_CreateProfileShareCommand = async (output, context) => {
1142
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1143
- return de_CommandError(output, context);
1144
- }
1145
- const contents = map({
1146
- $metadata: deserializeMetadata(output),
1147
- });
1148
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1149
- const doc = take(data, {
1150
- ProfileArn: __expectString,
1151
- ShareId: __expectString,
1152
- });
1153
- Object.assign(contents, doc);
1154
- return contents;
1155
- };
1156
- export const de_CreateReviewTemplateCommand = async (output, context) => {
1157
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1158
- return de_CommandError(output, context);
1159
- }
1160
- const contents = map({
1161
- $metadata: deserializeMetadata(output),
1162
- });
1163
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1164
- const doc = take(data, {
1165
- TemplateArn: __expectString,
1166
- });
1167
- Object.assign(contents, doc);
1168
- return contents;
1169
- };
1170
- export const de_CreateTemplateShareCommand = async (output, context) => {
1171
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1172
- return de_CommandError(output, context);
1173
- }
1174
- const contents = map({
1175
- $metadata: deserializeMetadata(output),
1176
- });
1177
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1178
- const doc = take(data, {
1179
- ShareId: __expectString,
1180
- TemplateArn: __expectString,
1181
- });
1182
- Object.assign(contents, doc);
1183
- return contents;
1184
- };
1185
- export const de_CreateWorkloadCommand = async (output, context) => {
1186
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1187
- return de_CommandError(output, context);
1188
- }
1189
- const contents = map({
1190
- $metadata: deserializeMetadata(output),
1191
- });
1192
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1193
- const doc = take(data, {
1194
- WorkloadArn: __expectString,
1195
- WorkloadId: __expectString,
1196
- });
1197
- Object.assign(contents, doc);
1198
- return contents;
1199
- };
1200
- export const de_CreateWorkloadShareCommand = async (output, context) => {
1201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1202
- return de_CommandError(output, context);
1203
- }
1204
- const contents = map({
1205
- $metadata: deserializeMetadata(output),
1206
- });
1207
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1208
- const doc = take(data, {
1209
- ShareId: __expectString,
1210
- WorkloadId: __expectString,
1211
- });
1212
- Object.assign(contents, doc);
1213
- return contents;
1214
- };
1215
- export const de_DeleteLensCommand = async (output, context) => {
1216
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1217
- return de_CommandError(output, context);
1218
- }
1219
- const contents = map({
1220
- $metadata: deserializeMetadata(output),
1221
- });
1222
- await collectBody(output.body, context);
1223
- return contents;
1224
- };
1225
- export const de_DeleteLensShareCommand = async (output, context) => {
1226
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1227
- return de_CommandError(output, context);
1228
- }
1229
- const contents = map({
1230
- $metadata: deserializeMetadata(output),
1231
- });
1232
- await collectBody(output.body, context);
1233
- return contents;
1234
- };
1235
- export const de_DeleteProfileCommand = async (output, context) => {
1236
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1237
- return de_CommandError(output, context);
1238
- }
1239
- const contents = map({
1240
- $metadata: deserializeMetadata(output),
1241
- });
1242
- await collectBody(output.body, context);
1243
- return contents;
1244
- };
1245
- export const de_DeleteProfileShareCommand = async (output, context) => {
1246
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
- return de_CommandError(output, context);
1248
- }
1249
- const contents = map({
1250
- $metadata: deserializeMetadata(output),
1251
- });
1252
- await collectBody(output.body, context);
1253
- return contents;
1254
- };
1255
- export const de_DeleteReviewTemplateCommand = async (output, context) => {
1256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1257
- return de_CommandError(output, context);
1258
- }
1259
- const contents = map({
1260
- $metadata: deserializeMetadata(output),
1261
- });
1262
- await collectBody(output.body, context);
1263
- return contents;
1264
- };
1265
- export const de_DeleteTemplateShareCommand = async (output, context) => {
1266
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1267
- return de_CommandError(output, context);
1268
- }
1269
- const contents = map({
1270
- $metadata: deserializeMetadata(output),
1271
- });
1272
- await collectBody(output.body, context);
1273
- return contents;
1274
- };
1275
- export const de_DeleteWorkloadCommand = async (output, context) => {
1276
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1277
- return de_CommandError(output, context);
1278
- }
1279
- const contents = map({
1280
- $metadata: deserializeMetadata(output),
1281
- });
1282
- await collectBody(output.body, context);
1283
- return contents;
1284
- };
1285
- export const de_DeleteWorkloadShareCommand = async (output, context) => {
1286
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1287
- return de_CommandError(output, context);
1288
- }
1289
- const contents = map({
1290
- $metadata: deserializeMetadata(output),
1291
- });
1292
- await collectBody(output.body, context);
1293
- return contents;
1294
- };
1295
- export const de_DisassociateLensesCommand = async (output, context) => {
1296
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
- return de_CommandError(output, context);
1298
- }
1299
- const contents = map({
1300
- $metadata: deserializeMetadata(output),
1301
- });
1302
- await collectBody(output.body, context);
1303
- return contents;
1304
- };
1305
- export const de_DisassociateProfilesCommand = async (output, context) => {
1306
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1307
- return de_CommandError(output, context);
1308
- }
1309
- const contents = map({
1310
- $metadata: deserializeMetadata(output),
1311
- });
1312
- await collectBody(output.body, context);
1313
- return contents;
1314
- };
1315
- export const de_ExportLensCommand = async (output, context) => {
1316
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1317
- return de_CommandError(output, context);
1318
- }
1319
- const contents = map({
1320
- $metadata: deserializeMetadata(output),
1321
- });
1322
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1323
- const doc = take(data, {
1324
- LensJSON: __expectString,
1325
- });
1326
- Object.assign(contents, doc);
1327
- return contents;
1328
- };
1329
- export const de_GetAnswerCommand = async (output, context) => {
1330
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1331
- return de_CommandError(output, context);
1332
- }
1333
- const contents = map({
1334
- $metadata: deserializeMetadata(output),
1335
- });
1336
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1337
- const doc = take(data, {
1338
- Answer: (_) => de_Answer(_, context),
1339
- LensAlias: __expectString,
1340
- LensArn: __expectString,
1341
- MilestoneNumber: __expectInt32,
1342
- WorkloadId: __expectString,
1343
- });
1344
- Object.assign(contents, doc);
1345
- return contents;
1346
- };
1347
- export const de_GetConsolidatedReportCommand = async (output, context) => {
1348
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1349
- return de_CommandError(output, context);
1350
- }
1351
- const contents = map({
1352
- $metadata: deserializeMetadata(output),
1353
- });
1354
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1355
- const doc = take(data, {
1356
- Base64String: __expectString,
1357
- Metrics: (_) => de_ConsolidatedReportMetrics(_, context),
1358
- NextToken: __expectString,
1359
- });
1360
- Object.assign(contents, doc);
1361
- return contents;
1362
- };
1363
- export const de_GetGlobalSettingsCommand = async (output, context) => {
1364
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1365
- return de_CommandError(output, context);
1366
- }
1367
- const contents = map({
1368
- $metadata: deserializeMetadata(output),
1369
- });
1370
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1371
- const doc = take(data, {
1372
- DiscoveryIntegrationStatus: __expectString,
1373
- JiraConfiguration: _json,
1374
- OrganizationSharingStatus: __expectString,
1375
- });
1376
- Object.assign(contents, doc);
1377
- return contents;
1378
- };
1379
- export const de_GetLensCommand = async (output, context) => {
1380
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1381
- return de_CommandError(output, context);
1382
- }
1383
- const contents = map({
1384
- $metadata: deserializeMetadata(output),
1385
- });
1386
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1387
- const doc = take(data, {
1388
- Lens: _json,
1389
- });
1390
- Object.assign(contents, doc);
1391
- return contents;
1392
- };
1393
- export const de_GetLensReviewCommand = async (output, context) => {
1394
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1395
- return de_CommandError(output, context);
1396
- }
1397
- const contents = map({
1398
- $metadata: deserializeMetadata(output),
1399
- });
1400
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1401
- const doc = take(data, {
1402
- LensReview: (_) => de_LensReview(_, context),
1403
- MilestoneNumber: __expectInt32,
1404
- WorkloadId: __expectString,
1405
- });
1406
- Object.assign(contents, doc);
1407
- return contents;
1408
- };
1409
- export const de_GetLensReviewReportCommand = async (output, context) => {
1410
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1411
- return de_CommandError(output, context);
1412
- }
1413
- const contents = map({
1414
- $metadata: deserializeMetadata(output),
1415
- });
1416
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1417
- const doc = take(data, {
1418
- LensReviewReport: _json,
1419
- MilestoneNumber: __expectInt32,
1420
- WorkloadId: __expectString,
1421
- });
1422
- Object.assign(contents, doc);
1423
- return contents;
1424
- };
1425
- export const de_GetLensVersionDifferenceCommand = async (output, context) => {
1426
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1427
- return de_CommandError(output, context);
1428
- }
1429
- const contents = map({
1430
- $metadata: deserializeMetadata(output),
1431
- });
1432
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1433
- const doc = take(data, {
1434
- BaseLensVersion: __expectString,
1435
- LatestLensVersion: __expectString,
1436
- LensAlias: __expectString,
1437
- LensArn: __expectString,
1438
- TargetLensVersion: __expectString,
1439
- VersionDifferences: _json,
1440
- });
1441
- Object.assign(contents, doc);
1442
- return contents;
1443
- };
1444
- export const de_GetMilestoneCommand = async (output, context) => {
1445
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1446
- return de_CommandError(output, context);
1447
- }
1448
- const contents = map({
1449
- $metadata: deserializeMetadata(output),
1450
- });
1451
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1452
- const doc = take(data, {
1453
- Milestone: (_) => de_Milestone(_, context),
1454
- WorkloadId: __expectString,
1455
- });
1456
- Object.assign(contents, doc);
1457
- return contents;
1458
- };
1459
- export const de_GetProfileCommand = async (output, context) => {
1460
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1461
- return de_CommandError(output, context);
1462
- }
1463
- const contents = map({
1464
- $metadata: deserializeMetadata(output),
1465
- });
1466
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1467
- const doc = take(data, {
1468
- Profile: (_) => de_Profile(_, context),
1469
- });
1470
- Object.assign(contents, doc);
1471
- return contents;
1472
- };
1473
- export const de_GetProfileTemplateCommand = async (output, context) => {
1474
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1475
- return de_CommandError(output, context);
1476
- }
1477
- const contents = map({
1478
- $metadata: deserializeMetadata(output),
1479
- });
1480
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1481
- const doc = take(data, {
1482
- ProfileTemplate: (_) => de_ProfileTemplate(_, context),
1483
- });
1484
- Object.assign(contents, doc);
1485
- return contents;
1486
- };
1487
- export const de_GetReviewTemplateCommand = async (output, context) => {
1488
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1489
- return de_CommandError(output, context);
1490
- }
1491
- const contents = map({
1492
- $metadata: deserializeMetadata(output),
1493
- });
1494
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1495
- const doc = take(data, {
1496
- ReviewTemplate: (_) => de_ReviewTemplate(_, context),
1497
- });
1498
- Object.assign(contents, doc);
1499
- return contents;
1500
- };
1501
- export const de_GetReviewTemplateAnswerCommand = async (output, context) => {
1502
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1503
- return de_CommandError(output, context);
1504
- }
1505
- const contents = map({
1506
- $metadata: deserializeMetadata(output),
1507
- });
1508
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1509
- const doc = take(data, {
1510
- Answer: _json,
1511
- LensAlias: __expectString,
1512
- TemplateArn: __expectString,
1513
- });
1514
- Object.assign(contents, doc);
1515
- return contents;
1516
- };
1517
- export const de_GetReviewTemplateLensReviewCommand = async (output, context) => {
1518
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1519
- return de_CommandError(output, context);
1520
- }
1521
- const contents = map({
1522
- $metadata: deserializeMetadata(output),
1523
- });
1524
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1525
- const doc = take(data, {
1526
- LensReview: (_) => de_ReviewTemplateLensReview(_, context),
1527
- TemplateArn: __expectString,
1528
- });
1529
- Object.assign(contents, doc);
1530
- return contents;
1531
- };
1532
- export const de_GetWorkloadCommand = async (output, context) => {
1533
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1534
- return de_CommandError(output, context);
1535
- }
1536
- const contents = map({
1537
- $metadata: deserializeMetadata(output),
1538
- });
1539
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1540
- const doc = take(data, {
1541
- Workload: (_) => de_Workload(_, context),
1542
- });
1543
- Object.assign(contents, doc);
1544
- return contents;
1545
- };
1546
- export const de_ImportLensCommand = async (output, context) => {
1547
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1548
- return de_CommandError(output, context);
1549
- }
1550
- const contents = map({
1551
- $metadata: deserializeMetadata(output),
1552
- });
1553
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1554
- const doc = take(data, {
1555
- LensArn: __expectString,
1556
- Status: __expectString,
1557
- });
1558
- Object.assign(contents, doc);
1559
- return contents;
1560
- };
1561
- export const de_ListAnswersCommand = async (output, context) => {
1562
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1563
- return de_CommandError(output, context);
1564
- }
1565
- const contents = map({
1566
- $metadata: deserializeMetadata(output),
1567
- });
1568
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1569
- const doc = take(data, {
1570
- AnswerSummaries: (_) => de_AnswerSummaries(_, context),
1571
- LensAlias: __expectString,
1572
- LensArn: __expectString,
1573
- MilestoneNumber: __expectInt32,
1574
- NextToken: __expectString,
1575
- WorkloadId: __expectString,
1576
- });
1577
- Object.assign(contents, doc);
1578
- return contents;
1579
- };
1580
- export const de_ListCheckDetailsCommand = async (output, context) => {
1581
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
- return de_CommandError(output, context);
1583
- }
1584
- const contents = map({
1585
- $metadata: deserializeMetadata(output),
1586
- });
1587
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1588
- const doc = take(data, {
1589
- CheckDetails: (_) => de_CheckDetails(_, context),
1590
- NextToken: __expectString,
1591
- });
1592
- Object.assign(contents, doc);
1593
- return contents;
1594
- };
1595
- export const de_ListCheckSummariesCommand = async (output, context) => {
1596
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1597
- return de_CommandError(output, context);
1598
- }
1599
- const contents = map({
1600
- $metadata: deserializeMetadata(output),
1601
- });
1602
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1603
- const doc = take(data, {
1604
- CheckSummaries: (_) => de_CheckSummaries(_, context),
1605
- NextToken: __expectString,
1606
- });
1607
- Object.assign(contents, doc);
1608
- return contents;
1609
- };
1610
- export const de_ListLensesCommand = async (output, context) => {
1611
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1612
- return de_CommandError(output, context);
1613
- }
1614
- const contents = map({
1615
- $metadata: deserializeMetadata(output),
1616
- });
1617
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1618
- const doc = take(data, {
1619
- LensSummaries: (_) => de_LensSummaries(_, context),
1620
- NextToken: __expectString,
1621
- });
1622
- Object.assign(contents, doc);
1623
- return contents;
1624
- };
1625
- export const de_ListLensReviewImprovementsCommand = async (output, context) => {
1626
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
- return de_CommandError(output, context);
1628
- }
1629
- const contents = map({
1630
- $metadata: deserializeMetadata(output),
1631
- });
1632
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1633
- const doc = take(data, {
1634
- ImprovementSummaries: (_) => de_ImprovementSummaries(_, context),
1635
- LensAlias: __expectString,
1636
- LensArn: __expectString,
1637
- MilestoneNumber: __expectInt32,
1638
- NextToken: __expectString,
1639
- WorkloadId: __expectString,
1640
- });
1641
- Object.assign(contents, doc);
1642
- return contents;
1643
- };
1644
- export const de_ListLensReviewsCommand = async (output, context) => {
1645
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1646
- return de_CommandError(output, context);
1647
- }
1648
- const contents = map({
1649
- $metadata: deserializeMetadata(output),
1650
- });
1651
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1652
- const doc = take(data, {
1653
- LensReviewSummaries: (_) => de_LensReviewSummaries(_, context),
1654
- MilestoneNumber: __expectInt32,
1655
- NextToken: __expectString,
1656
- WorkloadId: __expectString,
1657
- });
1658
- Object.assign(contents, doc);
1659
- return contents;
1660
- };
1661
- export const de_ListLensSharesCommand = async (output, context) => {
1662
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1663
- return de_CommandError(output, context);
1664
- }
1665
- const contents = map({
1666
- $metadata: deserializeMetadata(output),
1667
- });
1668
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1669
- const doc = take(data, {
1670
- LensShareSummaries: _json,
1671
- NextToken: __expectString,
1672
- });
1673
- Object.assign(contents, doc);
1674
- return contents;
1675
- };
1676
- export const de_ListMilestonesCommand = async (output, context) => {
1677
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1678
- return de_CommandError(output, context);
1679
- }
1680
- const contents = map({
1681
- $metadata: deserializeMetadata(output),
1682
- });
1683
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1684
- const doc = take(data, {
1685
- MilestoneSummaries: (_) => de_MilestoneSummaries(_, context),
1686
- NextToken: __expectString,
1687
- WorkloadId: __expectString,
1688
- });
1689
- Object.assign(contents, doc);
1690
- return contents;
1691
- };
1692
- export const de_ListNotificationsCommand = async (output, context) => {
1693
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1694
- return de_CommandError(output, context);
1695
- }
1696
- const contents = map({
1697
- $metadata: deserializeMetadata(output),
1698
- });
1699
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1700
- const doc = take(data, {
1701
- NextToken: __expectString,
1702
- NotificationSummaries: _json,
1703
- });
1704
- Object.assign(contents, doc);
1705
- return contents;
1706
- };
1707
- export const de_ListProfileNotificationsCommand = async (output, context) => {
1708
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1709
- return de_CommandError(output, context);
1710
- }
1711
- const contents = map({
1712
- $metadata: deserializeMetadata(output),
1713
- });
1714
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1715
- const doc = take(data, {
1716
- NextToken: __expectString,
1717
- NotificationSummaries: _json,
1718
- });
1719
- Object.assign(contents, doc);
1720
- return contents;
1721
- };
1722
- export const de_ListProfilesCommand = async (output, context) => {
1723
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1724
- return de_CommandError(output, context);
1725
- }
1726
- const contents = map({
1727
- $metadata: deserializeMetadata(output),
1728
- });
1729
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1730
- const doc = take(data, {
1731
- NextToken: __expectString,
1732
- ProfileSummaries: (_) => de_ProfileSummaries(_, context),
1733
- });
1734
- Object.assign(contents, doc);
1735
- return contents;
1736
- };
1737
- export const de_ListProfileSharesCommand = async (output, context) => {
1738
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
- return de_CommandError(output, context);
1740
- }
1741
- const contents = map({
1742
- $metadata: deserializeMetadata(output),
1743
- });
1744
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1745
- const doc = take(data, {
1746
- NextToken: __expectString,
1747
- ProfileShareSummaries: _json,
1748
- });
1749
- Object.assign(contents, doc);
1750
- return contents;
1751
- };
1752
- export const de_ListReviewTemplateAnswersCommand = async (output, context) => {
1753
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1754
- return de_CommandError(output, context);
1755
- }
1756
- const contents = map({
1757
- $metadata: deserializeMetadata(output),
1758
- });
1759
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1760
- const doc = take(data, {
1761
- AnswerSummaries: _json,
1762
- LensAlias: __expectString,
1763
- NextToken: __expectString,
1764
- TemplateArn: __expectString,
1765
- });
1766
- Object.assign(contents, doc);
1767
- return contents;
1768
- };
1769
- export const de_ListReviewTemplatesCommand = async (output, context) => {
1770
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1771
- return de_CommandError(output, context);
1772
- }
1773
- const contents = map({
1774
- $metadata: deserializeMetadata(output),
1775
- });
1776
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1777
- const doc = take(data, {
1778
- NextToken: __expectString,
1779
- ReviewTemplates: (_) => de_ReviewTemplates(_, context),
1780
- });
1781
- Object.assign(contents, doc);
1782
- return contents;
1783
- };
1784
- export const de_ListShareInvitationsCommand = async (output, context) => {
1785
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1786
- return de_CommandError(output, context);
1787
- }
1788
- const contents = map({
1789
- $metadata: deserializeMetadata(output),
1790
- });
1791
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1792
- const doc = take(data, {
1793
- NextToken: __expectString,
1794
- ShareInvitationSummaries: _json,
1795
- });
1796
- Object.assign(contents, doc);
1797
- return contents;
1798
- };
1799
- export const de_ListTagsForResourceCommand = async (output, context) => {
1800
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1801
- return de_CommandError(output, context);
1802
- }
1803
- const contents = map({
1804
- $metadata: deserializeMetadata(output),
1805
- });
1806
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1807
- const doc = take(data, {
1808
- Tags: _json,
1809
- });
1810
- Object.assign(contents, doc);
1811
- return contents;
1812
- };
1813
- export const de_ListTemplateSharesCommand = async (output, context) => {
1814
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1815
- return de_CommandError(output, context);
1816
- }
1817
- const contents = map({
1818
- $metadata: deserializeMetadata(output),
1819
- });
1820
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1821
- const doc = take(data, {
1822
- NextToken: __expectString,
1823
- TemplateArn: __expectString,
1824
- TemplateShareSummaries: _json,
1825
- });
1826
- Object.assign(contents, doc);
1827
- return contents;
1828
- };
1829
- export const de_ListWorkloadsCommand = async (output, context) => {
1830
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
- return de_CommandError(output, context);
1832
- }
1833
- const contents = map({
1834
- $metadata: deserializeMetadata(output),
1835
- });
1836
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1837
- const doc = take(data, {
1838
- NextToken: __expectString,
1839
- WorkloadSummaries: (_) => de_WorkloadSummaries(_, context),
1840
- });
1841
- Object.assign(contents, doc);
1842
- return contents;
1843
- };
1844
- export const de_ListWorkloadSharesCommand = async (output, context) => {
1845
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1846
- return de_CommandError(output, context);
1847
- }
1848
- const contents = map({
1849
- $metadata: deserializeMetadata(output),
1850
- });
1851
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1852
- const doc = take(data, {
1853
- NextToken: __expectString,
1854
- WorkloadId: __expectString,
1855
- WorkloadShareSummaries: _json,
1856
- });
1857
- Object.assign(contents, doc);
1858
- return contents;
1859
- };
1860
- export const de_TagResourceCommand = async (output, context) => {
1861
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1862
- return de_CommandError(output, context);
1863
- }
1864
- const contents = map({
1865
- $metadata: deserializeMetadata(output),
1866
- });
1867
- await collectBody(output.body, context);
1868
- return contents;
1869
- };
1870
- export const de_UntagResourceCommand = async (output, context) => {
1871
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1872
- return de_CommandError(output, context);
1873
- }
1874
- const contents = map({
1875
- $metadata: deserializeMetadata(output),
1876
- });
1877
- await collectBody(output.body, context);
1878
- return contents;
1879
- };
1880
- export const de_UpdateAnswerCommand = async (output, context) => {
1881
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1882
- return de_CommandError(output, context);
1883
- }
1884
- const contents = map({
1885
- $metadata: deserializeMetadata(output),
1886
- });
1887
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1888
- const doc = take(data, {
1889
- Answer: (_) => de_Answer(_, context),
1890
- LensAlias: __expectString,
1891
- LensArn: __expectString,
1892
- WorkloadId: __expectString,
1893
- });
1894
- Object.assign(contents, doc);
1895
- return contents;
1896
- };
1897
- export const de_UpdateGlobalSettingsCommand = async (output, context) => {
1898
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1899
- return de_CommandError(output, context);
1900
- }
1901
- const contents = map({
1902
- $metadata: deserializeMetadata(output),
1903
- });
1904
- await collectBody(output.body, context);
1905
- return contents;
1906
- };
1907
- export const de_UpdateIntegrationCommand = async (output, context) => {
1908
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1909
- return de_CommandError(output, context);
1910
- }
1911
- const contents = map({
1912
- $metadata: deserializeMetadata(output),
1913
- });
1914
- await collectBody(output.body, context);
1915
- return contents;
1916
- };
1917
- export const de_UpdateLensReviewCommand = async (output, context) => {
1918
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1919
- return de_CommandError(output, context);
1920
- }
1921
- const contents = map({
1922
- $metadata: deserializeMetadata(output),
1923
- });
1924
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1925
- const doc = take(data, {
1926
- LensReview: (_) => de_LensReview(_, context),
1927
- WorkloadId: __expectString,
1928
- });
1929
- Object.assign(contents, doc);
1930
- return contents;
1931
- };
1932
- export const de_UpdateProfileCommand = async (output, context) => {
1933
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1934
- return de_CommandError(output, context);
1935
- }
1936
- const contents = map({
1937
- $metadata: deserializeMetadata(output),
1938
- });
1939
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1940
- const doc = take(data, {
1941
- Profile: (_) => de_Profile(_, context),
1942
- });
1943
- Object.assign(contents, doc);
1944
- return contents;
1945
- };
1946
- export const de_UpdateReviewTemplateCommand = async (output, context) => {
1947
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1948
- return de_CommandError(output, context);
1949
- }
1950
- const contents = map({
1951
- $metadata: deserializeMetadata(output),
1952
- });
1953
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1954
- const doc = take(data, {
1955
- ReviewTemplate: (_) => de_ReviewTemplate(_, context),
1956
- });
1957
- Object.assign(contents, doc);
1958
- return contents;
1959
- };
1960
- export const de_UpdateReviewTemplateAnswerCommand = async (output, context) => {
1961
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
- return de_CommandError(output, context);
1963
- }
1964
- const contents = map({
1965
- $metadata: deserializeMetadata(output),
1966
- });
1967
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1968
- const doc = take(data, {
1969
- Answer: _json,
1970
- LensAlias: __expectString,
1971
- TemplateArn: __expectString,
1972
- });
1973
- Object.assign(contents, doc);
1974
- return contents;
1975
- };
1976
- export const de_UpdateReviewTemplateLensReviewCommand = async (output, context) => {
1977
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1978
- return de_CommandError(output, context);
1979
- }
1980
- const contents = map({
1981
- $metadata: deserializeMetadata(output),
1982
- });
1983
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1984
- const doc = take(data, {
1985
- LensReview: (_) => de_ReviewTemplateLensReview(_, context),
1986
- TemplateArn: __expectString,
1987
- });
1988
- Object.assign(contents, doc);
1989
- return contents;
1990
- };
1991
- export const de_UpdateShareInvitationCommand = async (output, context) => {
1992
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1993
- return de_CommandError(output, context);
1994
- }
1995
- const contents = map({
1996
- $metadata: deserializeMetadata(output),
1997
- });
1998
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1999
- const doc = take(data, {
2000
- ShareInvitation: _json,
2001
- });
2002
- Object.assign(contents, doc);
2003
- return contents;
2004
- };
2005
- export const de_UpdateWorkloadCommand = async (output, context) => {
2006
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2007
- return de_CommandError(output, context);
2008
- }
2009
- const contents = map({
2010
- $metadata: deserializeMetadata(output),
2011
- });
2012
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2013
- const doc = take(data, {
2014
- Workload: (_) => de_Workload(_, context),
2015
- });
2016
- Object.assign(contents, doc);
2017
- return contents;
2018
- };
2019
- export const de_UpdateWorkloadShareCommand = async (output, context) => {
2020
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2021
- return de_CommandError(output, context);
2022
- }
2023
- const contents = map({
2024
- $metadata: deserializeMetadata(output),
2025
- });
2026
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2027
- const doc = take(data, {
2028
- WorkloadId: __expectString,
2029
- WorkloadShare: _json,
2030
- });
2031
- Object.assign(contents, doc);
2032
- return contents;
2033
- };
2034
- export const de_UpgradeLensReviewCommand = async (output, context) => {
2035
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2036
- return de_CommandError(output, context);
2037
- }
2038
- const contents = map({
2039
- $metadata: deserializeMetadata(output),
2040
- });
2041
- await collectBody(output.body, context);
2042
- return contents;
2043
- };
2044
- export const de_UpgradeProfileVersionCommand = async (output, context) => {
2045
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2046
- return de_CommandError(output, context);
2047
- }
2048
- const contents = map({
2049
- $metadata: deserializeMetadata(output),
2050
- });
2051
- await collectBody(output.body, context);
2052
- return contents;
2053
- };
2054
- export const de_UpgradeReviewTemplateLensReviewCommand = async (output, context) => {
2055
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2056
- return de_CommandError(output, context);
2057
- }
2058
- const contents = map({
2059
- $metadata: deserializeMetadata(output),
2060
- });
2061
- await collectBody(output.body, context);
2062
- return contents;
2063
- };
2064
- const de_CommandError = async (output, context) => {
2065
- const parsedOutput = {
2066
- ...output,
2067
- body: await parseErrorBody(output.body, context),
2068
- };
2069
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2070
- switch (errorCode) {
2071
- case "AccessDeniedException":
2072
- case "com.amazonaws.wellarchitected#AccessDeniedException":
2073
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2074
- case "ConflictException":
2075
- case "com.amazonaws.wellarchitected#ConflictException":
2076
- throw await de_ConflictExceptionRes(parsedOutput, context);
2077
- case "InternalServerException":
2078
- case "com.amazonaws.wellarchitected#InternalServerException":
2079
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2080
- case "ResourceNotFoundException":
2081
- case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2082
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2083
- case "ThrottlingException":
2084
- case "com.amazonaws.wellarchitected#ThrottlingException":
2085
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2086
- case "ValidationException":
2087
- case "com.amazonaws.wellarchitected#ValidationException":
2088
- throw await de_ValidationExceptionRes(parsedOutput, context);
2089
- case "ServiceQuotaExceededException":
2090
- case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
2091
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2092
- default:
2093
- const parsedBody = parsedOutput.body;
2094
- return throwDefaultError({
2095
- output,
2096
- parsedBody,
2097
- errorCode,
2098
- });
2099
- }
2100
- };
2101
- const throwDefaultError = withBaseException(__BaseException);
2102
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2103
- const contents = map({});
2104
- const data = parsedOutput.body;
2105
- const doc = take(data, {
2106
- Message: __expectString,
2107
- });
2108
- Object.assign(contents, doc);
2109
- const exception = new AccessDeniedException({
2110
- $metadata: deserializeMetadata(parsedOutput),
2111
- ...contents,
2112
- });
2113
- return __decorateServiceException(exception, parsedOutput.body);
2114
- };
2115
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2116
- const contents = map({});
2117
- const data = parsedOutput.body;
2118
- const doc = take(data, {
2119
- Message: __expectString,
2120
- ResourceId: __expectString,
2121
- ResourceType: __expectString,
2122
- });
2123
- Object.assign(contents, doc);
2124
- const exception = new ConflictException({
2125
- $metadata: deserializeMetadata(parsedOutput),
2126
- ...contents,
2127
- });
2128
- return __decorateServiceException(exception, parsedOutput.body);
2129
- };
2130
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2131
- const contents = map({});
2132
- const data = parsedOutput.body;
2133
- const doc = take(data, {
2134
- Message: __expectString,
2135
- });
2136
- Object.assign(contents, doc);
2137
- const exception = new InternalServerException({
2138
- $metadata: deserializeMetadata(parsedOutput),
2139
- ...contents,
2140
- });
2141
- return __decorateServiceException(exception, parsedOutput.body);
2142
- };
2143
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2144
- const contents = map({});
2145
- const data = parsedOutput.body;
2146
- const doc = take(data, {
2147
- Message: __expectString,
2148
- ResourceId: __expectString,
2149
- ResourceType: __expectString,
2150
- });
2151
- Object.assign(contents, doc);
2152
- const exception = new ResourceNotFoundException({
2153
- $metadata: deserializeMetadata(parsedOutput),
2154
- ...contents,
2155
- });
2156
- return __decorateServiceException(exception, parsedOutput.body);
2157
- };
2158
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
2159
- const contents = map({});
2160
- const data = parsedOutput.body;
2161
- const doc = take(data, {
2162
- Message: __expectString,
2163
- QuotaCode: __expectString,
2164
- ResourceId: __expectString,
2165
- ResourceType: __expectString,
2166
- ServiceCode: __expectString,
2167
- });
2168
- Object.assign(contents, doc);
2169
- const exception = new ServiceQuotaExceededException({
2170
- $metadata: deserializeMetadata(parsedOutput),
2171
- ...contents,
2172
- });
2173
- return __decorateServiceException(exception, parsedOutput.body);
2174
- };
2175
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
2176
- const contents = map({});
2177
- const data = parsedOutput.body;
2178
- const doc = take(data, {
2179
- Message: __expectString,
2180
- QuotaCode: __expectString,
2181
- ServiceCode: __expectString,
2182
- });
2183
- Object.assign(contents, doc);
2184
- const exception = new ThrottlingException({
2185
- $metadata: deserializeMetadata(parsedOutput),
2186
- ...contents,
2187
- });
2188
- return __decorateServiceException(exception, parsedOutput.body);
2189
- };
2190
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2191
- const contents = map({});
2192
- const data = parsedOutput.body;
2193
- const doc = take(data, {
2194
- Fields: _json,
2195
- Message: __expectString,
2196
- Reason: __expectString,
2197
- });
2198
- Object.assign(contents, doc);
2199
- const exception = new ValidationException({
2200
- $metadata: deserializeMetadata(parsedOutput),
2201
- ...contents,
2202
- });
2203
- return __decorateServiceException(exception, parsedOutput.body);
2204
- };
2205
- const de_Answer = (output, context) => {
2206
- return take(output, {
2207
- ChoiceAnswers: _json,
2208
- Choices: _json,
2209
- HelpfulResourceDisplayText: __expectString,
2210
- HelpfulResourceUrl: __expectString,
2211
- ImprovementPlanUrl: __expectString,
2212
- IsApplicable: __expectBoolean,
2213
- JiraConfiguration: (_) => de_JiraConfiguration(_, context),
2214
- Notes: __expectString,
2215
- PillarId: __expectString,
2216
- QuestionDescription: __expectString,
2217
- QuestionId: __expectString,
2218
- QuestionTitle: __expectString,
2219
- Reason: __expectString,
2220
- Risk: __expectString,
2221
- SelectedChoices: _json,
2222
- });
2223
- };
2224
- const de_AnswerSummaries = (output, context) => {
2225
- const retVal = (output || [])
2226
- .filter((e) => e != null)
2227
- .map((entry) => {
2228
- return de_AnswerSummary(entry, context);
2229
- });
2230
- return retVal;
2231
- };
2232
- const de_AnswerSummary = (output, context) => {
2233
- return take(output, {
2234
- ChoiceAnswerSummaries: _json,
2235
- Choices: _json,
2236
- IsApplicable: __expectBoolean,
2237
- JiraConfiguration: (_) => de_JiraConfiguration(_, context),
2238
- PillarId: __expectString,
2239
- QuestionId: __expectString,
2240
- QuestionTitle: __expectString,
2241
- QuestionType: __expectString,
2242
- Reason: __expectString,
2243
- Risk: __expectString,
2244
- SelectedChoices: _json,
2245
- });
2246
- };
2247
- const de_CheckDetail = (output, context) => {
2248
- return take(output, {
2249
- AccountId: __expectString,
2250
- ChoiceId: __expectString,
2251
- Description: __expectString,
2252
- FlaggedResources: __expectInt32,
2253
- Id: __expectString,
2254
- LensArn: __expectString,
2255
- Name: __expectString,
2256
- PillarId: __expectString,
2257
- Provider: __expectString,
2258
- QuestionId: __expectString,
2259
- Reason: __expectString,
2260
- Status: __expectString,
2261
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2262
- });
2263
- };
2264
- const de_CheckDetails = (output, context) => {
2265
- const retVal = (output || [])
2266
- .filter((e) => e != null)
2267
- .map((entry) => {
2268
- return de_CheckDetail(entry, context);
2269
- });
2270
- return retVal;
2271
- };
2272
- const de_CheckSummaries = (output, context) => {
2273
- const retVal = (output || [])
2274
- .filter((e) => e != null)
2275
- .map((entry) => {
2276
- return de_CheckSummary(entry, context);
2277
- });
2278
- return retVal;
2279
- };
2280
- const de_CheckSummary = (output, context) => {
2281
- return take(output, {
2282
- AccountSummary: _json,
2283
- ChoiceId: __expectString,
2284
- Description: __expectString,
2285
- Id: __expectString,
2286
- LensArn: __expectString,
2287
- Name: __expectString,
2288
- PillarId: __expectString,
2289
- Provider: __expectString,
2290
- QuestionId: __expectString,
2291
- Status: __expectString,
2292
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2293
- });
2294
- };
2295
- const de_ConsolidatedReportMetric = (output, context) => {
2296
- return take(output, {
2297
- Lenses: _json,
2298
- LensesAppliedCount: __expectInt32,
2299
- MetricType: __expectString,
2300
- RiskCounts: _json,
2301
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2302
- WorkloadArn: __expectString,
2303
- WorkloadId: __expectString,
2304
- WorkloadName: __expectString,
2305
- });
2306
- };
2307
- const de_ConsolidatedReportMetrics = (output, context) => {
2308
- const retVal = (output || [])
2309
- .filter((e) => e != null)
2310
- .map((entry) => {
2311
- return de_ConsolidatedReportMetric(entry, context);
2312
- });
2313
- return retVal;
2314
- };
2315
- const de_ImprovementSummaries = (output, context) => {
2316
- const retVal = (output || [])
2317
- .filter((e) => e != null)
2318
- .map((entry) => {
2319
- return de_ImprovementSummary(entry, context);
2320
- });
2321
- return retVal;
2322
- };
2323
- const de_ImprovementSummary = (output, context) => {
2324
- return take(output, {
2325
- ImprovementPlanUrl: __expectString,
2326
- ImprovementPlans: _json,
2327
- JiraConfiguration: (_) => de_JiraConfiguration(_, context),
2328
- PillarId: __expectString,
2329
- QuestionId: __expectString,
2330
- QuestionTitle: __expectString,
2331
- Risk: __expectString,
2332
- });
2333
- };
2334
- const de_JiraConfiguration = (output, context) => {
2335
- return take(output, {
2336
- JiraIssueUrl: __expectString,
2337
- LastSyncedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2338
- });
2339
- };
2340
- const de_LensReview = (output, context) => {
2341
- return take(output, {
2342
- JiraConfiguration: _json,
2343
- LensAlias: __expectString,
2344
- LensArn: __expectString,
2345
- LensName: __expectString,
2346
- LensStatus: __expectString,
2347
- LensVersion: __expectString,
2348
- NextToken: __expectString,
2349
- Notes: __expectString,
2350
- PillarReviewSummaries: _json,
2351
- PrioritizedRiskCounts: _json,
2352
- Profiles: _json,
2353
- RiskCounts: _json,
2354
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2355
- });
2356
- };
2357
- const de_LensReviewSummaries = (output, context) => {
2358
- const retVal = (output || [])
2359
- .filter((e) => e != null)
2360
- .map((entry) => {
2361
- return de_LensReviewSummary(entry, context);
2362
- });
2363
- return retVal;
2364
- };
2365
- const de_LensReviewSummary = (output, context) => {
2366
- return take(output, {
2367
- LensAlias: __expectString,
2368
- LensArn: __expectString,
2369
- LensName: __expectString,
2370
- LensStatus: __expectString,
2371
- LensVersion: __expectString,
2372
- PrioritizedRiskCounts: _json,
2373
- Profiles: _json,
2374
- RiskCounts: _json,
2375
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2376
- });
2377
- };
2378
- const de_LensSummaries = (output, context) => {
2379
- const retVal = (output || [])
2380
- .filter((e) => e != null)
2381
- .map((entry) => {
2382
- return de_LensSummary(entry, context);
2383
- });
2384
- return retVal;
2385
- };
2386
- const de_LensSummary = (output, context) => {
2387
- return take(output, {
2388
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2389
- Description: __expectString,
2390
- LensAlias: __expectString,
2391
- LensArn: __expectString,
2392
- LensName: __expectString,
2393
- LensStatus: __expectString,
2394
- LensType: __expectString,
2395
- LensVersion: __expectString,
2396
- Owner: __expectString,
2397
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2398
- });
2399
- };
2400
- const de_Milestone = (output, context) => {
2401
- return take(output, {
2402
- MilestoneName: __expectString,
2403
- MilestoneNumber: __expectInt32,
2404
- RecordedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2405
- Workload: (_) => de_Workload(_, context),
2406
- });
2407
- };
2408
- const de_MilestoneSummaries = (output, context) => {
2409
- const retVal = (output || [])
2410
- .filter((e) => e != null)
2411
- .map((entry) => {
2412
- return de_MilestoneSummary(entry, context);
2413
- });
2414
- return retVal;
2415
- };
2416
- const de_MilestoneSummary = (output, context) => {
2417
- return take(output, {
2418
- MilestoneName: __expectString,
2419
- MilestoneNumber: __expectInt32,
2420
- RecordedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2421
- WorkloadSummary: (_) => de_WorkloadSummary(_, context),
2422
- });
2423
- };
2424
- const de_Profile = (output, context) => {
2425
- return take(output, {
2426
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2427
- Owner: __expectString,
2428
- ProfileArn: __expectString,
2429
- ProfileDescription: __expectString,
2430
- ProfileName: __expectString,
2431
- ProfileQuestions: _json,
2432
- ProfileVersion: __expectString,
2433
- ShareInvitationId: __expectString,
2434
- Tags: _json,
2435
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2436
- });
2437
- };
2438
- const de_ProfileSummaries = (output, context) => {
2439
- const retVal = (output || [])
2440
- .filter((e) => e != null)
2441
- .map((entry) => {
2442
- return de_ProfileSummary(entry, context);
2443
- });
2444
- return retVal;
2445
- };
2446
- const de_ProfileSummary = (output, context) => {
2447
- return take(output, {
2448
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2449
- Owner: __expectString,
2450
- ProfileArn: __expectString,
2451
- ProfileDescription: __expectString,
2452
- ProfileName: __expectString,
2453
- ProfileVersion: __expectString,
2454
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2455
- });
2456
- };
2457
- const de_ProfileTemplate = (output, context) => {
2458
- return take(output, {
2459
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2460
- TemplateName: __expectString,
2461
- TemplateQuestions: _json,
2462
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2463
- });
2464
- };
2465
- const de_ReviewTemplate = (output, context) => {
2466
- return take(output, {
2467
- Description: __expectString,
2468
- Lenses: _json,
2469
- Notes: __expectString,
2470
- Owner: __expectString,
2471
- QuestionCounts: _json,
2472
- ShareInvitationId: __expectString,
2473
- Tags: _json,
2474
- TemplateArn: __expectString,
2475
- TemplateName: __expectString,
2476
- UpdateStatus: __expectString,
2477
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2478
- });
2479
- };
2480
- const de_ReviewTemplateLensReview = (output, context) => {
2481
- return take(output, {
2482
- LensAlias: __expectString,
2483
- LensArn: __expectString,
2484
- LensName: __expectString,
2485
- LensStatus: __expectString,
2486
- LensVersion: __expectString,
2487
- NextToken: __expectString,
2488
- Notes: __expectString,
2489
- PillarReviewSummaries: _json,
2490
- QuestionCounts: _json,
2491
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2492
- });
2493
- };
2494
- const de_ReviewTemplates = (output, context) => {
2495
- const retVal = (output || [])
2496
- .filter((e) => e != null)
2497
- .map((entry) => {
2498
- return de_ReviewTemplateSummary(entry, context);
2499
- });
2500
- return retVal;
2501
- };
2502
- const de_ReviewTemplateSummary = (output, context) => {
2503
- return take(output, {
2504
- Description: __expectString,
2505
- Lenses: _json,
2506
- Owner: __expectString,
2507
- TemplateArn: __expectString,
2508
- TemplateName: __expectString,
2509
- UpdateStatus: __expectString,
2510
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2511
- });
2512
- };
2513
- const de_Workload = (output, context) => {
2514
- return take(output, {
2515
- AccountIds: _json,
2516
- Applications: _json,
2517
- ArchitecturalDesign: __expectString,
2518
- AwsRegions: _json,
2519
- Description: __expectString,
2520
- DiscoveryConfig: _json,
2521
- Environment: __expectString,
2522
- ImprovementStatus: __expectString,
2523
- Industry: __expectString,
2524
- IndustryType: __expectString,
2525
- IsReviewOwnerUpdateAcknowledged: __expectBoolean,
2526
- JiraConfiguration: _json,
2527
- Lenses: _json,
2528
- NonAwsRegions: _json,
2529
- Notes: __expectString,
2530
- Owner: __expectString,
2531
- PillarPriorities: _json,
2532
- PrioritizedRiskCounts: _json,
2533
- Profiles: _json,
2534
- ReviewOwner: __expectString,
2535
- ReviewRestrictionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2536
- RiskCounts: _json,
2537
- ShareInvitationId: __expectString,
2538
- Tags: _json,
2539
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2540
- WorkloadArn: __expectString,
2541
- WorkloadId: __expectString,
2542
- WorkloadName: __expectString,
2543
- });
2544
- };
2545
- const de_WorkloadSummaries = (output, context) => {
2546
- const retVal = (output || [])
2547
- .filter((e) => e != null)
2548
- .map((entry) => {
2549
- return de_WorkloadSummary(entry, context);
2550
- });
2551
- return retVal;
2552
- };
2553
- const de_WorkloadSummary = (output, context) => {
2554
- return take(output, {
2555
- ImprovementStatus: __expectString,
2556
- Lenses: _json,
2557
- Owner: __expectString,
2558
- PrioritizedRiskCounts: _json,
2559
- Profiles: _json,
2560
- RiskCounts: _json,
2561
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2562
- WorkloadArn: __expectString,
2563
- WorkloadId: __expectString,
2564
- WorkloadName: __expectString,
2565
- });
2566
- };
2567
- const deserializeMetadata = (output) => ({
2568
- httpStatusCode: output.statusCode,
2569
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2570
- extendedRequestId: output.headers["x-amz-id-2"],
2571
- cfId: output.headers["x-amz-cf-id"],
2572
- });
2573
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2574
- const _BLV = "BaseLensVersion";
2575
- const _CRT = "ClientRequestToken";
2576
- const _F = "Format";
2577
- const _ISR = "IncludeSharedResources";
2578
- const _LN = "LensName";
2579
- const _LNP = "LensNamePrefix";
2580
- const _LS = "LensStatus";
2581
- const _LT = "LensType";
2582
- const _LV = "LensVersion";
2583
- const _MN = "MilestoneNumber";
2584
- const _MR = "MaxResults";
2585
- const _NT = "NextToken";
2586
- const _PI = "PillarId";
2587
- const _PNP = "ProfileNamePrefix";
2588
- const _POT = "ProfileOwnerType";
2589
- const _PV = "ProfileVersion";
2590
- const _QP = "QuestionPriority";
2591
- const _S = "Status";
2592
- const _SRT = "ShareResourceType";
2593
- const _SWP = "SharedWithPrefix";
2594
- const _TK = "TagKeys";
2595
- const _TLV = "TargetLensVersion";
2596
- const _TNP = "TemplateNamePrefix";
2597
- const _WI = "WorkloadId";
2598
- const _WNP = "WorkloadNamePrefix";
2599
- const _tK = "tagKeys";