@aws-sdk/client-trustedadvisor 3.927.0 → 3.929.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 (35) hide show
  1. package/dist-cjs/index.js +921 -759
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/TrustedAdvisorClient.js +2 -0
  4. package/dist-es/commands/BatchUpdateRecommendationResourceExclusionCommand.js +3 -9
  5. package/dist-es/commands/GetOrganizationRecommendationCommand.js +3 -10
  6. package/dist-es/commands/GetRecommendationCommand.js +3 -10
  7. package/dist-es/commands/ListChecksCommand.js +3 -9
  8. package/dist-es/commands/ListOrganizationRecommendationAccountsCommand.js +3 -10
  9. package/dist-es/commands/ListOrganizationRecommendationResourcesCommand.js +3 -9
  10. package/dist-es/commands/ListOrganizationRecommendationsCommand.js +3 -9
  11. package/dist-es/commands/ListRecommendationResourcesCommand.js +3 -9
  12. package/dist-es/commands/ListRecommendationsCommand.js +3 -9
  13. package/dist-es/commands/UpdateOrganizationRecommendationLifecycleCommand.js +3 -10
  14. package/dist-es/commands/UpdateRecommendationLifecycleCommand.js +3 -10
  15. package/dist-es/models/models_0.js +0 -37
  16. package/dist-es/runtimeConfig.shared.js +2 -0
  17. package/dist-es/schemas/schemas_0.js +894 -0
  18. package/dist-types/TrustedAdvisorClient.d.ts +10 -1
  19. package/dist-types/models/models_0.d.ts +0 -32
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  21. package/dist-types/runtimeConfig.d.ts +1 -0
  22. package/dist-types/runtimeConfig.native.d.ts +1 -0
  23. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  24. package/dist-types/schemas/schemas_0.d.ts +65 -0
  25. package/dist-types/ts3.4/TrustedAdvisorClient.d.ts +4 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +0 -24
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -0
  32. package/package.json +5 -5
  33. package/dist-es/protocols/Aws_restJson1.js +0 -633
  34. package/dist-types/protocols/Aws_restJson1.d.ts +0 -101
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -137
@@ -1,633 +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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- import { TrustedAdvisorServiceException as __BaseException } from "../models/TrustedAdvisorServiceException";
6
- export const se_BatchUpdateRecommendationResourceExclusionCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/v1/batch-update-recommendation-resource-exclusion");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- recommendationResourceExclusions: (_) => _json(_),
15
- }));
16
- b.m("PUT").h(headers).b(body);
17
- return b.build();
18
- };
19
- export const se_GetOrganizationRecommendationCommand = async (input, context) => {
20
- const b = rb(input, context);
21
- const headers = {};
22
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}");
23
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
24
- let body;
25
- b.m("GET").h(headers).b(body);
26
- return b.build();
27
- };
28
- export const se_GetRecommendationCommand = async (input, context) => {
29
- const b = rb(input, context);
30
- const headers = {};
31
- b.bp("/v1/recommendations/{recommendationIdentifier}");
32
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
33
- let body;
34
- b.m("GET").h(headers).b(body);
35
- return b.build();
36
- };
37
- export const se_ListChecksCommand = async (input, context) => {
38
- const b = rb(input, context);
39
- const headers = {};
40
- b.bp("/v1/checks");
41
- const query = map({
42
- [_nT]: [, input[_nT]],
43
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
44
- [_p]: [, input[_p]],
45
- [_aS]: [, input[_aS]],
46
- [_s]: [, input[_s]],
47
- [_l]: [, input[_l]],
48
- });
49
- let body;
50
- b.m("GET").h(headers).q(query).b(body);
51
- return b.build();
52
- };
53
- export const se_ListOrganizationRecommendationAccountsCommand = async (input, context) => {
54
- const b = rb(input, context);
55
- const headers = {};
56
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts");
57
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
58
- const query = map({
59
- [_nT]: [, input[_nT]],
60
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
61
- [_aAI]: [, input[_aAI]],
62
- });
63
- let body;
64
- b.m("GET").h(headers).q(query).b(body);
65
- return b.build();
66
- };
67
- export const se_ListOrganizationRecommendationResourcesCommand = async (input, context) => {
68
- const b = rb(input, context);
69
- const headers = {};
70
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources");
71
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
72
- const query = map({
73
- [_nT]: [, input[_nT]],
74
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
75
- [_st]: [, input[_st]],
76
- [_eS]: [, input[_eS]],
77
- [_rC]: [, input[_rC]],
78
- [_aAI]: [, input[_aAI]],
79
- });
80
- let body;
81
- b.m("GET").h(headers).q(query).b(body);
82
- return b.build();
83
- };
84
- export const se_ListOrganizationRecommendationsCommand = async (input, context) => {
85
- const b = rb(input, context);
86
- const headers = {};
87
- b.bp("/v1/organization-recommendations");
88
- const query = map({
89
- [_nT]: [, input[_nT]],
90
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
91
- [_t]: [, input[_t]],
92
- [_st]: [, input[_st]],
93
- [_p]: [, input[_p]],
94
- [_aS]: [, input[_aS]],
95
- [_s]: [, input[_s]],
96
- [_cI]: [, input[_cI]],
97
- [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => __serializeDateTime(input[_aLUA]).toString()],
98
- [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => __serializeDateTime(input[_bLUA]).toString()],
99
- });
100
- let body;
101
- b.m("GET").h(headers).q(query).b(body);
102
- return b.build();
103
- };
104
- export const se_ListRecommendationResourcesCommand = async (input, context) => {
105
- const b = rb(input, context);
106
- const headers = {};
107
- b.bp("/v1/recommendations/{recommendationIdentifier}/resources");
108
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
109
- const query = map({
110
- [_nT]: [, input[_nT]],
111
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
112
- [_st]: [, input[_st]],
113
- [_eS]: [, input[_eS]],
114
- [_rC]: [, input[_rC]],
115
- });
116
- let body;
117
- b.m("GET").h(headers).q(query).b(body);
118
- return b.build();
119
- };
120
- export const se_ListRecommendationsCommand = async (input, context) => {
121
- const b = rb(input, context);
122
- const headers = {};
123
- b.bp("/v1/recommendations");
124
- const query = map({
125
- [_nT]: [, input[_nT]],
126
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
127
- [_t]: [, input[_t]],
128
- [_st]: [, input[_st]],
129
- [_p]: [, input[_p]],
130
- [_aS]: [, input[_aS]],
131
- [_s]: [, input[_s]],
132
- [_cI]: [, input[_cI]],
133
- [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => __serializeDateTime(input[_aLUA]).toString()],
134
- [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => __serializeDateTime(input[_bLUA]).toString()],
135
- });
136
- let body;
137
- b.m("GET").h(headers).q(query).b(body);
138
- return b.build();
139
- };
140
- export const se_UpdateOrganizationRecommendationLifecycleCommand = async (input, context) => {
141
- const b = rb(input, context);
142
- const headers = {
143
- "content-type": "application/json",
144
- };
145
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle");
146
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
147
- let body;
148
- body = JSON.stringify(take(input, {
149
- lifecycleStage: [],
150
- updateReason: [],
151
- updateReasonCode: [],
152
- }));
153
- b.m("PUT").h(headers).b(body);
154
- return b.build();
155
- };
156
- export const se_UpdateRecommendationLifecycleCommand = async (input, context) => {
157
- const b = rb(input, context);
158
- const headers = {
159
- "content-type": "application/json",
160
- };
161
- b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle");
162
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
163
- let body;
164
- body = JSON.stringify(take(input, {
165
- lifecycleStage: [],
166
- updateReason: [],
167
- updateReasonCode: [],
168
- }));
169
- b.m("PUT").h(headers).b(body);
170
- return b.build();
171
- };
172
- export const de_BatchUpdateRecommendationResourceExclusionCommand = async (output, context) => {
173
- if (output.statusCode !== 200 && output.statusCode >= 300) {
174
- return de_CommandError(output, context);
175
- }
176
- const contents = map({
177
- $metadata: deserializeMetadata(output),
178
- });
179
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
180
- const doc = take(data, {
181
- batchUpdateRecommendationResourceExclusionErrors: _json,
182
- });
183
- Object.assign(contents, doc);
184
- return contents;
185
- };
186
- export const de_GetOrganizationRecommendationCommand = async (output, context) => {
187
- if (output.statusCode !== 200 && output.statusCode >= 300) {
188
- return de_CommandError(output, context);
189
- }
190
- const contents = map({
191
- $metadata: deserializeMetadata(output),
192
- });
193
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
194
- const doc = take(data, {
195
- organizationRecommendation: (_) => de_OrganizationRecommendation(_, context),
196
- });
197
- Object.assign(contents, doc);
198
- return contents;
199
- };
200
- export const de_GetRecommendationCommand = async (output, context) => {
201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return de_CommandError(output, context);
203
- }
204
- const contents = map({
205
- $metadata: deserializeMetadata(output),
206
- });
207
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
208
- const doc = take(data, {
209
- recommendation: (_) => de_Recommendation(_, context),
210
- });
211
- Object.assign(contents, doc);
212
- return contents;
213
- };
214
- export const de_ListChecksCommand = async (output, context) => {
215
- if (output.statusCode !== 200 && output.statusCode >= 300) {
216
- return de_CommandError(output, context);
217
- }
218
- const contents = map({
219
- $metadata: deserializeMetadata(output),
220
- });
221
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
222
- const doc = take(data, {
223
- checkSummaries: _json,
224
- nextToken: __expectString,
225
- });
226
- Object.assign(contents, doc);
227
- return contents;
228
- };
229
- export const de_ListOrganizationRecommendationAccountsCommand = async (output, context) => {
230
- if (output.statusCode !== 200 && output.statusCode >= 300) {
231
- return de_CommandError(output, context);
232
- }
233
- const contents = map({
234
- $metadata: deserializeMetadata(output),
235
- });
236
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
237
- const doc = take(data, {
238
- accountRecommendationLifecycleSummaries: (_) => de_AccountRecommendationLifecycleSummaryList(_, context),
239
- nextToken: __expectString,
240
- });
241
- Object.assign(contents, doc);
242
- return contents;
243
- };
244
- export const de_ListOrganizationRecommendationResourcesCommand = async (output, context) => {
245
- if (output.statusCode !== 200 && output.statusCode >= 300) {
246
- return de_CommandError(output, context);
247
- }
248
- const contents = map({
249
- $metadata: deserializeMetadata(output),
250
- });
251
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
252
- const doc = take(data, {
253
- nextToken: __expectString,
254
- organizationRecommendationResourceSummaries: (_) => de_OrganizationRecommendationResourceSummaryList(_, context),
255
- });
256
- Object.assign(contents, doc);
257
- return contents;
258
- };
259
- export const de_ListOrganizationRecommendationsCommand = async (output, context) => {
260
- if (output.statusCode !== 200 && output.statusCode >= 300) {
261
- return de_CommandError(output, context);
262
- }
263
- const contents = map({
264
- $metadata: deserializeMetadata(output),
265
- });
266
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
267
- const doc = take(data, {
268
- nextToken: __expectString,
269
- organizationRecommendationSummaries: (_) => de_OrganizationRecommendationSummaryList(_, context),
270
- });
271
- Object.assign(contents, doc);
272
- return contents;
273
- };
274
- export const de_ListRecommendationResourcesCommand = async (output, context) => {
275
- if (output.statusCode !== 200 && output.statusCode >= 300) {
276
- return de_CommandError(output, context);
277
- }
278
- const contents = map({
279
- $metadata: deserializeMetadata(output),
280
- });
281
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
282
- const doc = take(data, {
283
- nextToken: __expectString,
284
- recommendationResourceSummaries: (_) => de_RecommendationResourceSummaryList(_, context),
285
- });
286
- Object.assign(contents, doc);
287
- return contents;
288
- };
289
- export const de_ListRecommendationsCommand = async (output, context) => {
290
- if (output.statusCode !== 200 && output.statusCode >= 300) {
291
- return de_CommandError(output, context);
292
- }
293
- const contents = map({
294
- $metadata: deserializeMetadata(output),
295
- });
296
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
297
- const doc = take(data, {
298
- nextToken: __expectString,
299
- recommendationSummaries: (_) => de_RecommendationSummaryList(_, context),
300
- });
301
- Object.assign(contents, doc);
302
- return contents;
303
- };
304
- export const de_UpdateOrganizationRecommendationLifecycleCommand = async (output, context) => {
305
- if (output.statusCode !== 200 && output.statusCode >= 300) {
306
- return de_CommandError(output, context);
307
- }
308
- const contents = map({
309
- $metadata: deserializeMetadata(output),
310
- });
311
- await collectBody(output.body, context);
312
- return contents;
313
- };
314
- export const de_UpdateRecommendationLifecycleCommand = async (output, context) => {
315
- if (output.statusCode !== 200 && output.statusCode >= 300) {
316
- return de_CommandError(output, context);
317
- }
318
- const contents = map({
319
- $metadata: deserializeMetadata(output),
320
- });
321
- await collectBody(output.body, context);
322
- return contents;
323
- };
324
- const de_CommandError = async (output, context) => {
325
- const parsedOutput = {
326
- ...output,
327
- body: await parseErrorBody(output.body, context),
328
- };
329
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
330
- switch (errorCode) {
331
- case "AccessDeniedException":
332
- case "com.amazonaws.trustedadvisor#AccessDeniedException":
333
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
334
- case "ConflictException":
335
- case "com.amazonaws.trustedadvisor#ConflictException":
336
- throw await de_ConflictExceptionRes(parsedOutput, context);
337
- case "InternalServerException":
338
- case "com.amazonaws.trustedadvisor#InternalServerException":
339
- throw await de_InternalServerExceptionRes(parsedOutput, context);
340
- case "ThrottlingException":
341
- case "com.amazonaws.trustedadvisor#ThrottlingException":
342
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
343
- case "ValidationException":
344
- case "com.amazonaws.trustedadvisor#ValidationException":
345
- throw await de_ValidationExceptionRes(parsedOutput, context);
346
- case "ResourceNotFoundException":
347
- case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
348
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
349
- default:
350
- const parsedBody = parsedOutput.body;
351
- return throwDefaultError({
352
- output,
353
- parsedBody,
354
- errorCode,
355
- });
356
- }
357
- };
358
- const throwDefaultError = withBaseException(__BaseException);
359
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
360
- const contents = map({});
361
- const data = parsedOutput.body;
362
- const doc = take(data, {
363
- message: __expectString,
364
- });
365
- Object.assign(contents, doc);
366
- const exception = new AccessDeniedException({
367
- $metadata: deserializeMetadata(parsedOutput),
368
- ...contents,
369
- });
370
- return __decorateServiceException(exception, parsedOutput.body);
371
- };
372
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
373
- const contents = map({});
374
- const data = parsedOutput.body;
375
- const doc = take(data, {
376
- message: __expectString,
377
- });
378
- Object.assign(contents, doc);
379
- const exception = new ConflictException({
380
- $metadata: deserializeMetadata(parsedOutput),
381
- ...contents,
382
- });
383
- return __decorateServiceException(exception, parsedOutput.body);
384
- };
385
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
386
- const contents = map({});
387
- const data = parsedOutput.body;
388
- const doc = take(data, {
389
- message: __expectString,
390
- });
391
- Object.assign(contents, doc);
392
- const exception = new InternalServerException({
393
- $metadata: deserializeMetadata(parsedOutput),
394
- ...contents,
395
- });
396
- return __decorateServiceException(exception, parsedOutput.body);
397
- };
398
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
399
- const contents = map({});
400
- const data = parsedOutput.body;
401
- const doc = take(data, {
402
- message: __expectString,
403
- });
404
- Object.assign(contents, doc);
405
- const exception = new ResourceNotFoundException({
406
- $metadata: deserializeMetadata(parsedOutput),
407
- ...contents,
408
- });
409
- return __decorateServiceException(exception, parsedOutput.body);
410
- };
411
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
412
- const contents = map({});
413
- const data = parsedOutput.body;
414
- const doc = take(data, {
415
- message: __expectString,
416
- });
417
- Object.assign(contents, doc);
418
- const exception = new ThrottlingException({
419
- $metadata: deserializeMetadata(parsedOutput),
420
- ...contents,
421
- });
422
- return __decorateServiceException(exception, parsedOutput.body);
423
- };
424
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
425
- const contents = map({});
426
- const data = parsedOutput.body;
427
- const doc = take(data, {
428
- message: __expectString,
429
- });
430
- Object.assign(contents, doc);
431
- const exception = new ValidationException({
432
- $metadata: deserializeMetadata(parsedOutput),
433
- ...contents,
434
- });
435
- return __decorateServiceException(exception, parsedOutput.body);
436
- };
437
- const de_AccountRecommendationLifecycleSummary = (output, context) => {
438
- return take(output, {
439
- accountId: __expectString,
440
- accountRecommendationArn: __expectString,
441
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
442
- lifecycleStage: __expectString,
443
- updateReason: __expectString,
444
- updateReasonCode: __expectString,
445
- updatedOnBehalfOf: __expectString,
446
- updatedOnBehalfOfJobTitle: __expectString,
447
- });
448
- };
449
- const de_AccountRecommendationLifecycleSummaryList = (output, context) => {
450
- const retVal = (output || [])
451
- .filter((e) => e != null)
452
- .map((entry) => {
453
- return de_AccountRecommendationLifecycleSummary(entry, context);
454
- });
455
- return retVal;
456
- };
457
- const de_OrganizationRecommendation = (output, context) => {
458
- return take(output, {
459
- arn: __expectString,
460
- awsServices: _json,
461
- checkArn: __expectString,
462
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
463
- createdBy: __expectString,
464
- description: __expectString,
465
- id: __expectString,
466
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
467
- lifecycleStage: __expectString,
468
- name: __expectString,
469
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_, context),
470
- pillars: _json,
471
- resolvedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
472
- resourcesAggregates: _json,
473
- source: __expectString,
474
- status: __expectString,
475
- type: __expectString,
476
- updateReason: __expectString,
477
- updateReasonCode: __expectString,
478
- updatedOnBehalfOf: __expectString,
479
- updatedOnBehalfOfJobTitle: __expectString,
480
- });
481
- };
482
- const de_OrganizationRecommendationResourceSummary = (output, context) => {
483
- return take(output, {
484
- accountId: __expectString,
485
- arn: __expectString,
486
- awsResourceId: __expectString,
487
- exclusionStatus: __expectString,
488
- id: __expectString,
489
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
490
- metadata: _json,
491
- recommendationArn: __expectString,
492
- regionCode: __expectString,
493
- status: __expectString,
494
- });
495
- };
496
- const de_OrganizationRecommendationResourceSummaryList = (output, context) => {
497
- const retVal = (output || [])
498
- .filter((e) => e != null)
499
- .map((entry) => {
500
- return de_OrganizationRecommendationResourceSummary(entry, context);
501
- });
502
- return retVal;
503
- };
504
- const de_OrganizationRecommendationSummary = (output, context) => {
505
- return take(output, {
506
- arn: __expectString,
507
- awsServices: _json,
508
- checkArn: __expectString,
509
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
510
- id: __expectString,
511
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
512
- lifecycleStage: __expectString,
513
- name: __expectString,
514
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_, context),
515
- pillars: _json,
516
- resourcesAggregates: _json,
517
- source: __expectString,
518
- status: __expectString,
519
- type: __expectString,
520
- });
521
- };
522
- const de_OrganizationRecommendationSummaryList = (output, context) => {
523
- const retVal = (output || [])
524
- .filter((e) => e != null)
525
- .map((entry) => {
526
- return de_OrganizationRecommendationSummary(entry, context);
527
- });
528
- return retVal;
529
- };
530
- const de_Recommendation = (output, context) => {
531
- return take(output, {
532
- arn: __expectString,
533
- awsServices: _json,
534
- checkArn: __expectString,
535
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
536
- createdBy: __expectString,
537
- description: __expectString,
538
- id: __expectString,
539
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
540
- lifecycleStage: __expectString,
541
- name: __expectString,
542
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_, context),
543
- pillars: _json,
544
- resolvedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
545
- resourcesAggregates: _json,
546
- source: __expectString,
547
- status: __expectString,
548
- type: __expectString,
549
- updateReason: __expectString,
550
- updateReasonCode: __expectString,
551
- updatedOnBehalfOf: __expectString,
552
- updatedOnBehalfOfJobTitle: __expectString,
553
- });
554
- };
555
- const de_RecommendationCostOptimizingAggregates = (output, context) => {
556
- return take(output, {
557
- estimatedMonthlySavings: __limitedParseDouble,
558
- estimatedPercentMonthlySavings: __limitedParseDouble,
559
- });
560
- };
561
- const de_RecommendationPillarSpecificAggregates = (output, context) => {
562
- return take(output, {
563
- costOptimizing: (_) => de_RecommendationCostOptimizingAggregates(_, context),
564
- });
565
- };
566
- const de_RecommendationResourceSummary = (output, context) => {
567
- return take(output, {
568
- arn: __expectString,
569
- awsResourceId: __expectString,
570
- exclusionStatus: __expectString,
571
- id: __expectString,
572
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
573
- metadata: _json,
574
- recommendationArn: __expectString,
575
- regionCode: __expectString,
576
- status: __expectString,
577
- });
578
- };
579
- const de_RecommendationResourceSummaryList = (output, context) => {
580
- const retVal = (output || [])
581
- .filter((e) => e != null)
582
- .map((entry) => {
583
- return de_RecommendationResourceSummary(entry, context);
584
- });
585
- return retVal;
586
- };
587
- const de_RecommendationSummary = (output, context) => {
588
- return take(output, {
589
- arn: __expectString,
590
- awsServices: _json,
591
- checkArn: __expectString,
592
- createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
593
- id: __expectString,
594
- lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
595
- lifecycleStage: __expectString,
596
- name: __expectString,
597
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_, context),
598
- pillars: _json,
599
- resourcesAggregates: _json,
600
- source: __expectString,
601
- status: __expectString,
602
- type: __expectString,
603
- });
604
- };
605
- const de_RecommendationSummaryList = (output, context) => {
606
- const retVal = (output || [])
607
- .filter((e) => e != null)
608
- .map((entry) => {
609
- return de_RecommendationSummary(entry, context);
610
- });
611
- return retVal;
612
- };
613
- const deserializeMetadata = (output) => ({
614
- httpStatusCode: output.statusCode,
615
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
616
- extendedRequestId: output.headers["x-amz-id-2"],
617
- cfId: output.headers["x-amz-cf-id"],
618
- });
619
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
620
- const _aAI = "affectedAccountId";
621
- const _aLUA = "afterLastUpdatedAt";
622
- const _aS = "awsService";
623
- const _bLUA = "beforeLastUpdatedAt";
624
- const _cI = "checkIdentifier";
625
- const _eS = "exclusionStatus";
626
- const _l = "language";
627
- const _mR = "maxResults";
628
- const _nT = "nextToken";
629
- const _p = "pillar";
630
- const _rC = "regionCode";
631
- const _s = "source";
632
- const _st = "status";
633
- const _t = "type";