@aws-sdk/client-wellarchitected 3.204.0 → 3.205.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 (44) hide show
  1. package/CHANGELOG.md +1077 -0
  2. package/dist-cjs/WellArchitected.js +30 -0
  3. package/dist-cjs/commands/ListCheckDetailsCommand.js +46 -0
  4. package/dist-cjs/commands/ListCheckSummariesCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +55 -3
  7. package/dist-cjs/pagination/ListCheckDetailsPaginator.js +36 -0
  8. package/dist-cjs/pagination/ListCheckSummariesPaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +2 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +269 -2
  11. package/dist-es/WellArchitected.js +30 -0
  12. package/dist-es/commands/ListCheckDetailsCommand.js +42 -0
  13. package/dist-es/commands/ListCheckSummariesCommand.js +42 -0
  14. package/dist-es/commands/index.js +2 -0
  15. package/dist-es/models/models_0.js +45 -0
  16. package/dist-es/pagination/ListCheckDetailsPaginator.js +32 -0
  17. package/dist-es/pagination/ListCheckSummariesPaginator.js +32 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_restJson1.js +263 -0
  20. package/dist-types/WellArchitected.d.ts +24 -4
  21. package/dist-types/WellArchitectedClient.d.ts +4 -2
  22. package/dist-types/commands/CreateLensShareCommand.d.ts +2 -1
  23. package/dist-types/commands/CreateWorkloadCommand.d.ts +2 -1
  24. package/dist-types/commands/DeleteLensShareCommand.d.ts +2 -1
  25. package/dist-types/commands/ListCheckDetailsCommand.d.ts +37 -0
  26. package/dist-types/commands/ListCheckSummariesCommand.d.ts +37 -0
  27. package/dist-types/commands/UpdateShareInvitationCommand.d.ts +4 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/models_0.d.ts +280 -9
  30. package/dist-types/pagination/ListCheckDetailsPaginator.d.ts +4 -0
  31. package/dist-types/pagination/ListCheckSummariesPaginator.d.ts +4 -0
  32. package/dist-types/pagination/index.d.ts +2 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  34. package/dist-types/ts3.4/WellArchitected.d.ts +34 -0
  35. package/dist-types/ts3.4/WellArchitectedClient.d.ts +12 -0
  36. package/dist-types/ts3.4/commands/ListCheckDetailsCommand.d.ts +37 -0
  37. package/dist-types/ts3.4/commands/ListCheckSummariesCommand.d.ts +38 -0
  38. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  39. package/dist-types/ts3.4/models/models_0.d.ts +100 -0
  40. package/dist-types/ts3.4/pagination/ListCheckDetailsPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/ListCheckSummariesPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  44. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { ListCheckSummariesCommand, } from "../commands/ListCheckSummariesCommand";
2
+ import { WellArchitected } from "../WellArchitected";
3
+ import { WellArchitectedClient } from "../WellArchitectedClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListCheckSummariesCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listCheckSummaries(input, ...args);
9
+ };
10
+ export async function* paginateListCheckSummaries(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof WellArchitected) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof WellArchitectedClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected WellArchitected | WellArchitectedClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -1,5 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListAnswersPaginator";
3
+ export * from "./ListCheckDetailsPaginator";
4
+ export * from "./ListCheckSummariesPaginator";
3
5
  export * from "./ListLensReviewImprovementsPaginator";
4
6
  export * from "./ListLensReviewsPaginator";
5
7
  export * from "./ListLensSharesPaginator";
@@ -102,12 +102,18 @@ export const serializeAws_restJson1CreateWorkloadCommand = async (input, context
102
102
  ...(input.AccountIds != null && {
103
103
  AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
104
104
  }),
105
+ ...(input.Applications != null && {
106
+ Applications: serializeAws_restJson1WorkloadApplications(input.Applications, context),
107
+ }),
105
108
  ...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
106
109
  ...(input.AwsRegions != null && {
107
110
  AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
108
111
  }),
109
112
  ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
110
113
  ...(input.Description != null && { Description: input.Description }),
114
+ ...(input.DiscoveryConfig != null && {
115
+ DiscoveryConfig: serializeAws_restJson1WorkloadDiscoveryConfig(input.DiscoveryConfig, context),
116
+ }),
111
117
  ...(input.Environment != null && { Environment: input.Environment }),
112
118
  ...(input.Industry != null && { Industry: input.Industry }),
113
119
  ...(input.IndustryType != null && { IndustryType: input.IndustryType }),
@@ -471,6 +477,58 @@ export const serializeAws_restJson1ListAnswersCommand = async (input, context) =
471
477
  body,
472
478
  });
473
479
  };
480
+ export const serializeAws_restJson1ListCheckDetailsCommand = async (input, context) => {
481
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
+ const headers = {
483
+ "content-type": "application/json",
484
+ };
485
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/checks";
486
+ resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
487
+ let body;
488
+ body = JSON.stringify({
489
+ ...(input.ChoiceId != null && { ChoiceId: input.ChoiceId }),
490
+ ...(input.LensArn != null && { LensArn: input.LensArn }),
491
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
492
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
493
+ ...(input.PillarId != null && { PillarId: input.PillarId }),
494
+ ...(input.QuestionId != null && { QuestionId: input.QuestionId }),
495
+ });
496
+ return new __HttpRequest({
497
+ protocol,
498
+ hostname,
499
+ port,
500
+ method: "POST",
501
+ headers,
502
+ path: resolvedPath,
503
+ body,
504
+ });
505
+ };
506
+ export const serializeAws_restJson1ListCheckSummariesCommand = async (input, context) => {
507
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
508
+ const headers = {
509
+ "content-type": "application/json",
510
+ };
511
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workloads/{WorkloadId}/checkSummaries";
512
+ resolvedPath = __resolvedPath(resolvedPath, input, "WorkloadId", () => input.WorkloadId, "{WorkloadId}", false);
513
+ let body;
514
+ body = JSON.stringify({
515
+ ...(input.ChoiceId != null && { ChoiceId: input.ChoiceId }),
516
+ ...(input.LensArn != null && { LensArn: input.LensArn }),
517
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
518
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
519
+ ...(input.PillarId != null && { PillarId: input.PillarId }),
520
+ ...(input.QuestionId != null && { QuestionId: input.QuestionId }),
521
+ });
522
+ return new __HttpRequest({
523
+ protocol,
524
+ hostname,
525
+ port,
526
+ method: "POST",
527
+ headers,
528
+ path: resolvedPath,
529
+ body,
530
+ });
531
+ };
474
532
  export const serializeAws_restJson1ListLensesCommand = async (input, context) => {
475
533
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
534
  const headers = {};
@@ -843,11 +901,17 @@ export const serializeAws_restJson1UpdateWorkloadCommand = async (input, context
843
901
  ...(input.AccountIds != null && {
844
902
  AccountIds: serializeAws_restJson1WorkloadAccountIds(input.AccountIds, context),
845
903
  }),
904
+ ...(input.Applications != null && {
905
+ Applications: serializeAws_restJson1WorkloadApplications(input.Applications, context),
906
+ }),
846
907
  ...(input.ArchitecturalDesign != null && { ArchitecturalDesign: input.ArchitecturalDesign }),
847
908
  ...(input.AwsRegions != null && {
848
909
  AwsRegions: serializeAws_restJson1WorkloadAwsRegions(input.AwsRegions, context),
849
910
  }),
850
911
  ...(input.Description != null && { Description: input.Description }),
912
+ ...(input.DiscoveryConfig != null && {
913
+ DiscoveryConfig: serializeAws_restJson1WorkloadDiscoveryConfig(input.DiscoveryConfig, context),
914
+ }),
851
915
  ...(input.Environment != null && { Environment: input.Environment }),
852
916
  ...(input.ImprovementStatus != null && { ImprovementStatus: input.ImprovementStatus }),
853
917
  ...(input.Industry != null && { Industry: input.Industry }),
@@ -1971,6 +2035,102 @@ const deserializeAws_restJson1ListAnswersCommandError = async (output, context)
1971
2035
  });
1972
2036
  }
1973
2037
  };
2038
+ export const deserializeAws_restJson1ListCheckDetailsCommand = async (output, context) => {
2039
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2040
+ return deserializeAws_restJson1ListCheckDetailsCommandError(output, context);
2041
+ }
2042
+ const contents = map({
2043
+ $metadata: deserializeMetadata(output),
2044
+ });
2045
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2046
+ if (data.CheckDetails != null) {
2047
+ contents.CheckDetails = deserializeAws_restJson1CheckDetails(data.CheckDetails, context);
2048
+ }
2049
+ if (data.NextToken != null) {
2050
+ contents.NextToken = __expectString(data.NextToken);
2051
+ }
2052
+ return contents;
2053
+ };
2054
+ const deserializeAws_restJson1ListCheckDetailsCommandError = async (output, context) => {
2055
+ const parsedOutput = {
2056
+ ...output,
2057
+ body: await parseErrorBody(output.body, context),
2058
+ };
2059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2060
+ switch (errorCode) {
2061
+ case "AccessDeniedException":
2062
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2063
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2064
+ case "InternalServerException":
2065
+ case "com.amazonaws.wellarchitected#InternalServerException":
2066
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2067
+ case "ResourceNotFoundException":
2068
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2069
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2070
+ case "ThrottlingException":
2071
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2072
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2073
+ case "ValidationException":
2074
+ case "com.amazonaws.wellarchitected#ValidationException":
2075
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2076
+ default:
2077
+ const parsedBody = parsedOutput.body;
2078
+ throwDefaultError({
2079
+ output,
2080
+ parsedBody,
2081
+ exceptionCtor: __BaseException,
2082
+ errorCode,
2083
+ });
2084
+ }
2085
+ };
2086
+ export const deserializeAws_restJson1ListCheckSummariesCommand = async (output, context) => {
2087
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2088
+ return deserializeAws_restJson1ListCheckSummariesCommandError(output, context);
2089
+ }
2090
+ const contents = map({
2091
+ $metadata: deserializeMetadata(output),
2092
+ });
2093
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2094
+ if (data.CheckSummaries != null) {
2095
+ contents.CheckSummaries = deserializeAws_restJson1CheckSummaries(data.CheckSummaries, context);
2096
+ }
2097
+ if (data.NextToken != null) {
2098
+ contents.NextToken = __expectString(data.NextToken);
2099
+ }
2100
+ return contents;
2101
+ };
2102
+ const deserializeAws_restJson1ListCheckSummariesCommandError = async (output, context) => {
2103
+ const parsedOutput = {
2104
+ ...output,
2105
+ body: await parseErrorBody(output.body, context),
2106
+ };
2107
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2108
+ switch (errorCode) {
2109
+ case "AccessDeniedException":
2110
+ case "com.amazonaws.wellarchitected#AccessDeniedException":
2111
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2112
+ case "InternalServerException":
2113
+ case "com.amazonaws.wellarchitected#InternalServerException":
2114
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2115
+ case "ResourceNotFoundException":
2116
+ case "com.amazonaws.wellarchitected#ResourceNotFoundException":
2117
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2118
+ case "ThrottlingException":
2119
+ case "com.amazonaws.wellarchitected#ThrottlingException":
2120
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2121
+ case "ValidationException":
2122
+ case "com.amazonaws.wellarchitected#ValidationException":
2123
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2124
+ default:
2125
+ const parsedBody = parsedOutput.body;
2126
+ throwDefaultError({
2127
+ output,
2128
+ parsedBody,
2129
+ exceptionCtor: __BaseException,
2130
+ errorCode,
2131
+ });
2132
+ }
2133
+ };
1974
2134
  export const deserializeAws_restJson1ListLensesCommand = async (output, context) => {
1975
2135
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1976
2136
  return deserializeAws_restJson1ListLensesCommandError(output, context);
@@ -3041,6 +3201,13 @@ const serializeAws_restJson1WorkloadAccountIds = (input, context) => {
3041
3201
  return entry;
3042
3202
  });
3043
3203
  };
3204
+ const serializeAws_restJson1WorkloadApplications = (input, context) => {
3205
+ return input
3206
+ .filter((e) => e != null)
3207
+ .map((entry) => {
3208
+ return entry;
3209
+ });
3210
+ };
3044
3211
  const serializeAws_restJson1WorkloadAwsRegions = (input, context) => {
3045
3212
  return input
3046
3213
  .filter((e) => e != null)
@@ -3048,6 +3215,13 @@ const serializeAws_restJson1WorkloadAwsRegions = (input, context) => {
3048
3215
  return entry;
3049
3216
  });
3050
3217
  };
3218
+ const serializeAws_restJson1WorkloadDiscoveryConfig = (input, context) => {
3219
+ return {
3220
+ ...(input.TrustedAdvisorIntegrationStatus != null && {
3221
+ TrustedAdvisorIntegrationStatus: input.TrustedAdvisorIntegrationStatus,
3222
+ }),
3223
+ };
3224
+ };
3051
3225
  const serializeAws_restJson1WorkloadLenses = (input, context) => {
3052
3226
  return input
3053
3227
  .filter((e) => e != null)
@@ -3069,6 +3243,17 @@ const serializeAws_restJson1WorkloadPillarPriorities = (input, context) => {
3069
3243
  return entry;
3070
3244
  });
3071
3245
  };
3246
+ const deserializeAws_restJson1AccountSummary = (output, context) => {
3247
+ return Object.entries(output).reduce((acc, [key, value]) => {
3248
+ if (value === null) {
3249
+ return acc;
3250
+ }
3251
+ return {
3252
+ ...acc,
3253
+ [key]: __expectInt32(value),
3254
+ };
3255
+ }, {});
3256
+ };
3072
3257
  const deserializeAws_restJson1AdditionalResources = (output, context) => {
3073
3258
  return {
3074
3259
  Content: output.Content != null ? deserializeAws_restJson1Urls(output.Content, context) : undefined,
@@ -3134,6 +3319,62 @@ const deserializeAws_restJson1AnswerSummary = (output, context) => {
3134
3319
  : undefined,
3135
3320
  };
3136
3321
  };
3322
+ const deserializeAws_restJson1CheckDetail = (output, context) => {
3323
+ return {
3324
+ AccountId: __expectString(output.AccountId),
3325
+ ChoiceId: __expectString(output.ChoiceId),
3326
+ Description: __expectString(output.Description),
3327
+ FlaggedResources: __expectInt32(output.FlaggedResources),
3328
+ Id: __expectString(output.Id),
3329
+ LensArn: __expectString(output.LensArn),
3330
+ Name: __expectString(output.Name),
3331
+ PillarId: __expectString(output.PillarId),
3332
+ Provider: __expectString(output.Provider),
3333
+ QuestionId: __expectString(output.QuestionId),
3334
+ Reason: __expectString(output.Reason),
3335
+ Status: __expectString(output.Status),
3336
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
3337
+ };
3338
+ };
3339
+ const deserializeAws_restJson1CheckDetails = (output, context) => {
3340
+ const retVal = (output || [])
3341
+ .filter((e) => e != null)
3342
+ .map((entry) => {
3343
+ if (entry === null) {
3344
+ return null;
3345
+ }
3346
+ return deserializeAws_restJson1CheckDetail(entry, context);
3347
+ });
3348
+ return retVal;
3349
+ };
3350
+ const deserializeAws_restJson1CheckSummaries = (output, context) => {
3351
+ const retVal = (output || [])
3352
+ .filter((e) => e != null)
3353
+ .map((entry) => {
3354
+ if (entry === null) {
3355
+ return null;
3356
+ }
3357
+ return deserializeAws_restJson1CheckSummary(entry, context);
3358
+ });
3359
+ return retVal;
3360
+ };
3361
+ const deserializeAws_restJson1CheckSummary = (output, context) => {
3362
+ return {
3363
+ AccountSummary: output.AccountSummary != null
3364
+ ? deserializeAws_restJson1AccountSummary(output.AccountSummary, context)
3365
+ : undefined,
3366
+ ChoiceId: __expectString(output.ChoiceId),
3367
+ Description: __expectString(output.Description),
3368
+ Id: __expectString(output.Id),
3369
+ LensArn: __expectString(output.LensArn),
3370
+ Name: __expectString(output.Name),
3371
+ PillarId: __expectString(output.PillarId),
3372
+ Provider: __expectString(output.Provider),
3373
+ QuestionId: __expectString(output.QuestionId),
3374
+ Status: __expectString(output.Status),
3375
+ UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
3376
+ };
3377
+ };
3137
3378
  const deserializeAws_restJson1Choice = (output, context) => {
3138
3379
  return {
3139
3380
  AdditionalResources: output.AdditionalResources != null
@@ -3565,9 +3806,15 @@ const deserializeAws_restJson1VersionDifferences = (output, context) => {
3565
3806
  const deserializeAws_restJson1Workload = (output, context) => {
3566
3807
  return {
3567
3808
  AccountIds: output.AccountIds != null ? deserializeAws_restJson1WorkloadAccountIds(output.AccountIds, context) : undefined,
3809
+ Applications: output.Applications != null
3810
+ ? deserializeAws_restJson1WorkloadApplications(output.Applications, context)
3811
+ : undefined,
3568
3812
  ArchitecturalDesign: __expectString(output.ArchitecturalDesign),
3569
3813
  AwsRegions: output.AwsRegions != null ? deserializeAws_restJson1WorkloadAwsRegions(output.AwsRegions, context) : undefined,
3570
3814
  Description: __expectString(output.Description),
3815
+ DiscoveryConfig: output.DiscoveryConfig != null
3816
+ ? deserializeAws_restJson1WorkloadDiscoveryConfig(output.DiscoveryConfig, context)
3817
+ : undefined,
3571
3818
  Environment: __expectString(output.Environment),
3572
3819
  ImprovementStatus: __expectString(output.ImprovementStatus),
3573
3820
  Industry: __expectString(output.Industry),
@@ -3606,6 +3853,17 @@ const deserializeAws_restJson1WorkloadAccountIds = (output, context) => {
3606
3853
  });
3607
3854
  return retVal;
3608
3855
  };
3856
+ const deserializeAws_restJson1WorkloadApplications = (output, context) => {
3857
+ const retVal = (output || [])
3858
+ .filter((e) => e != null)
3859
+ .map((entry) => {
3860
+ if (entry === null) {
3861
+ return null;
3862
+ }
3863
+ return __expectString(entry);
3864
+ });
3865
+ return retVal;
3866
+ };
3609
3867
  const deserializeAws_restJson1WorkloadAwsRegions = (output, context) => {
3610
3868
  const retVal = (output || [])
3611
3869
  .filter((e) => e != null)
@@ -3617,6 +3875,11 @@ const deserializeAws_restJson1WorkloadAwsRegions = (output, context) => {
3617
3875
  });
3618
3876
  return retVal;
3619
3877
  };
3878
+ const deserializeAws_restJson1WorkloadDiscoveryConfig = (output, context) => {
3879
+ return {
3880
+ TrustedAdvisorIntegrationStatus: __expectString(output.TrustedAdvisorIntegrationStatus),
3881
+ };
3882
+ };
3620
3883
  const deserializeAws_restJson1WorkloadLenses = (output, context) => {
3621
3884
  const retVal = (output || [])
3622
3885
  .filter((e) => e != null)
@@ -20,6 +20,8 @@ import { GetMilestoneCommandInput, GetMilestoneCommandOutput } from "./commands/
20
20
  import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
21
21
  import { ImportLensCommandInput, ImportLensCommandOutput } from "./commands/ImportLensCommand";
22
22
  import { ListAnswersCommandInput, ListAnswersCommandOutput } from "./commands/ListAnswersCommand";
23
+ import { ListCheckDetailsCommandInput, ListCheckDetailsCommandOutput } from "./commands/ListCheckDetailsCommand";
24
+ import { ListCheckSummariesCommandInput, ListCheckSummariesCommandOutput } from "./commands/ListCheckSummariesCommand";
23
25
  import { ListLensesCommandInput, ListLensesCommandOutput } from "./commands/ListLensesCommand";
24
26
  import { ListLensReviewImprovementsCommandInput, ListLensReviewImprovementsCommandOutput } from "./commands/ListLensReviewImprovementsCommand";
25
27
  import { ListLensReviewsCommandInput, ListLensReviewsCommandOutput } from "./commands/ListLensReviewsCommand";
@@ -68,7 +70,8 @@ export declare class WellArchitected extends WellArchitectedClient {
68
70
  associateLenses(args: AssociateLensesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateLensesCommandOutput) => void): void;
69
71
  /**
70
72
  * <p>Create a lens share.</p>
71
- * <p>The owner of a lens can share it with other Amazon Web Services accounts and IAM users in the same Amazon Web Services Region.
73
+ * <p>The owner of a lens can share it with other Amazon Web Services accounts, IAM users, an organization,
74
+ * and organizational units (OUs) in the same Amazon Web Services Region.
72
75
  * Shared access to a lens is not removed until the lens invitation is deleted.</p>
73
76
  * <note>
74
77
  * <p>
@@ -103,7 +106,8 @@ export declare class WellArchitected extends WellArchitectedClient {
103
106
  createMilestone(args: CreateMilestoneCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMilestoneCommandOutput) => void): void;
104
107
  /**
105
108
  * <p>Create a new workload.</p>
106
- * <p>The owner of a workload can share the workload with other Amazon Web Services accounts and IAM users
109
+ * <p>The owner of a workload can share the workload with other Amazon Web Services accounts, IAM users,
110
+ * an organization, and organizational units (OUs)
107
111
  * in the same Amazon Web Services Region. Only the owner of a workload can delete it.</p>
108
112
  * <p>For more information, see <a href="https://docs.aws.amazon.com/wellarchitected/latest/userguide/define-workload.html">Defining a Workload</a> in the
109
113
  * <i>Well-Architected Tool User Guide</i>.</p>
@@ -144,7 +148,8 @@ export declare class WellArchitected extends WellArchitectedClient {
144
148
  deleteLens(args: DeleteLensCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLensCommandOutput) => void): void;
145
149
  /**
146
150
  * <p>Delete a lens share.</p>
147
- * <p>After the lens share is deleted, Amazon Web Services accounts and IAM users
151
+ * <p>After the lens share is deleted, Amazon Web Services accounts, IAM users, organizations,
152
+ * and organizational units (OUs)
148
153
  * that you shared the lens with can continue to use it, but they will no longer be able to apply it to new workloads.</p>
149
154
  * <note>
150
155
  * <p>
@@ -276,6 +281,18 @@ export declare class WellArchitected extends WellArchitectedClient {
276
281
  listAnswers(args: ListAnswersCommandInput, options?: __HttpHandlerOptions): Promise<ListAnswersCommandOutput>;
277
282
  listAnswers(args: ListAnswersCommandInput, cb: (err: any, data?: ListAnswersCommandOutput) => void): void;
278
283
  listAnswers(args: ListAnswersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAnswersCommandOutput) => void): void;
284
+ /**
285
+ * <p>List of Trusted Advisor check details by account related to the workload.</p>
286
+ */
287
+ listCheckDetails(args: ListCheckDetailsCommandInput, options?: __HttpHandlerOptions): Promise<ListCheckDetailsCommandOutput>;
288
+ listCheckDetails(args: ListCheckDetailsCommandInput, cb: (err: any, data?: ListCheckDetailsCommandOutput) => void): void;
289
+ listCheckDetails(args: ListCheckDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCheckDetailsCommandOutput) => void): void;
290
+ /**
291
+ * <p>List of Trusted Advisor checks summarized for all accounts related to the workload.</p>
292
+ */
293
+ listCheckSummaries(args: ListCheckSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListCheckSummariesCommandOutput>;
294
+ listCheckSummaries(args: ListCheckSummariesCommandInput, cb: (err: any, data?: ListCheckSummariesCommandOutput) => void): void;
295
+ listCheckSummaries(args: ListCheckSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCheckSummariesCommandOutput) => void): void;
279
296
  /**
280
297
  * <p>List the available lenses.</p>
281
298
  */
@@ -381,7 +398,10 @@ export declare class WellArchitected extends WellArchitectedClient {
381
398
  updateLensReview(args: UpdateLensReviewCommandInput, cb: (err: any, data?: UpdateLensReviewCommandOutput) => void): void;
382
399
  updateLensReview(args: UpdateLensReviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLensReviewCommandOutput) => void): void;
383
400
  /**
384
- * <p>Update a workload invitation.</p>
401
+ * <p>Update a workload or custom lens share invitation.</p>
402
+ * <note>
403
+ * <p>This API operation can be called independently of any resource. Previous documentation implied that a workload ARN must be specified.</p>
404
+ * </note>
385
405
  */
386
406
  updateShareInvitation(args: UpdateShareInvitationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateShareInvitationCommandOutput>;
387
407
  updateShareInvitation(args: UpdateShareInvitationCommandInput, cb: (err: any, data?: UpdateShareInvitationCommandOutput) => void): void;
@@ -28,6 +28,8 @@ import { GetMilestoneCommandInput, GetMilestoneCommandOutput } from "./commands/
28
28
  import { GetWorkloadCommandInput, GetWorkloadCommandOutput } from "./commands/GetWorkloadCommand";
29
29
  import { ImportLensCommandInput, ImportLensCommandOutput } from "./commands/ImportLensCommand";
30
30
  import { ListAnswersCommandInput, ListAnswersCommandOutput } from "./commands/ListAnswersCommand";
31
+ import { ListCheckDetailsCommandInput, ListCheckDetailsCommandOutput } from "./commands/ListCheckDetailsCommand";
32
+ import { ListCheckSummariesCommandInput, ListCheckSummariesCommandOutput } from "./commands/ListCheckSummariesCommand";
31
33
  import { ListLensesCommandInput, ListLensesCommandOutput } from "./commands/ListLensesCommand";
32
34
  import { ListLensReviewImprovementsCommandInput, ListLensReviewImprovementsCommandOutput } from "./commands/ListLensReviewImprovementsCommand";
33
35
  import { ListLensReviewsCommandInput, ListLensReviewsCommandOutput } from "./commands/ListLensReviewsCommand";
@@ -48,8 +50,8 @@ import { UpdateWorkloadCommandInput, UpdateWorkloadCommandOutput } from "./comma
48
50
  import { UpdateWorkloadShareCommandInput, UpdateWorkloadShareCommandOutput } from "./commands/UpdateWorkloadShareCommand";
49
51
  import { UpgradeLensReviewCommandInput, UpgradeLensReviewCommandOutput } from "./commands/UpgradeLensReviewCommand";
50
52
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
51
- export declare type ServiceInputTypes = AssociateLensesCommandInput | CreateLensShareCommandInput | CreateLensVersionCommandInput | CreateMilestoneCommandInput | CreateWorkloadCommandInput | CreateWorkloadShareCommandInput | DeleteLensCommandInput | DeleteLensShareCommandInput | DeleteWorkloadCommandInput | DeleteWorkloadShareCommandInput | DisassociateLensesCommandInput | ExportLensCommandInput | GetAnswerCommandInput | GetLensCommandInput | GetLensReviewCommandInput | GetLensReviewReportCommandInput | GetLensVersionDifferenceCommandInput | GetMilestoneCommandInput | GetWorkloadCommandInput | ImportLensCommandInput | ListAnswersCommandInput | ListLensReviewImprovementsCommandInput | ListLensReviewsCommandInput | ListLensSharesCommandInput | ListLensesCommandInput | ListMilestonesCommandInput | ListNotificationsCommandInput | ListShareInvitationsCommandInput | ListTagsForResourceCommandInput | ListWorkloadSharesCommandInput | ListWorkloadsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnswerCommandInput | UpdateGlobalSettingsCommandInput | UpdateLensReviewCommandInput | UpdateShareInvitationCommandInput | UpdateWorkloadCommandInput | UpdateWorkloadShareCommandInput | UpgradeLensReviewCommandInput;
52
- export declare type ServiceOutputTypes = AssociateLensesCommandOutput | CreateLensShareCommandOutput | CreateLensVersionCommandOutput | CreateMilestoneCommandOutput | CreateWorkloadCommandOutput | CreateWorkloadShareCommandOutput | DeleteLensCommandOutput | DeleteLensShareCommandOutput | DeleteWorkloadCommandOutput | DeleteWorkloadShareCommandOutput | DisassociateLensesCommandOutput | ExportLensCommandOutput | GetAnswerCommandOutput | GetLensCommandOutput | GetLensReviewCommandOutput | GetLensReviewReportCommandOutput | GetLensVersionDifferenceCommandOutput | GetMilestoneCommandOutput | GetWorkloadCommandOutput | ImportLensCommandOutput | ListAnswersCommandOutput | ListLensReviewImprovementsCommandOutput | ListLensReviewsCommandOutput | ListLensSharesCommandOutput | ListLensesCommandOutput | ListMilestonesCommandOutput | ListNotificationsCommandOutput | ListShareInvitationsCommandOutput | ListTagsForResourceCommandOutput | ListWorkloadSharesCommandOutput | ListWorkloadsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnswerCommandOutput | UpdateGlobalSettingsCommandOutput | UpdateLensReviewCommandOutput | UpdateShareInvitationCommandOutput | UpdateWorkloadCommandOutput | UpdateWorkloadShareCommandOutput | UpgradeLensReviewCommandOutput;
53
+ export declare type ServiceInputTypes = AssociateLensesCommandInput | CreateLensShareCommandInput | CreateLensVersionCommandInput | CreateMilestoneCommandInput | CreateWorkloadCommandInput | CreateWorkloadShareCommandInput | DeleteLensCommandInput | DeleteLensShareCommandInput | DeleteWorkloadCommandInput | DeleteWorkloadShareCommandInput | DisassociateLensesCommandInput | ExportLensCommandInput | GetAnswerCommandInput | GetLensCommandInput | GetLensReviewCommandInput | GetLensReviewReportCommandInput | GetLensVersionDifferenceCommandInput | GetMilestoneCommandInput | GetWorkloadCommandInput | ImportLensCommandInput | ListAnswersCommandInput | ListCheckDetailsCommandInput | ListCheckSummariesCommandInput | ListLensReviewImprovementsCommandInput | ListLensReviewsCommandInput | ListLensSharesCommandInput | ListLensesCommandInput | ListMilestonesCommandInput | ListNotificationsCommandInput | ListShareInvitationsCommandInput | ListTagsForResourceCommandInput | ListWorkloadSharesCommandInput | ListWorkloadsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnswerCommandInput | UpdateGlobalSettingsCommandInput | UpdateLensReviewCommandInput | UpdateShareInvitationCommandInput | UpdateWorkloadCommandInput | UpdateWorkloadShareCommandInput | UpgradeLensReviewCommandInput;
54
+ export declare type ServiceOutputTypes = AssociateLensesCommandOutput | CreateLensShareCommandOutput | CreateLensVersionCommandOutput | CreateMilestoneCommandOutput | CreateWorkloadCommandOutput | CreateWorkloadShareCommandOutput | DeleteLensCommandOutput | DeleteLensShareCommandOutput | DeleteWorkloadCommandOutput | DeleteWorkloadShareCommandOutput | DisassociateLensesCommandOutput | ExportLensCommandOutput | GetAnswerCommandOutput | GetLensCommandOutput | GetLensReviewCommandOutput | GetLensReviewReportCommandOutput | GetLensVersionDifferenceCommandOutput | GetMilestoneCommandOutput | GetWorkloadCommandOutput | ImportLensCommandOutput | ListAnswersCommandOutput | ListCheckDetailsCommandOutput | ListCheckSummariesCommandOutput | ListLensReviewImprovementsCommandOutput | ListLensReviewsCommandOutput | ListLensSharesCommandOutput | ListLensesCommandOutput | ListMilestonesCommandOutput | ListNotificationsCommandOutput | ListShareInvitationsCommandOutput | ListTagsForResourceCommandOutput | ListWorkloadSharesCommandOutput | ListWorkloadsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnswerCommandOutput | UpdateGlobalSettingsCommandOutput | UpdateLensReviewCommandOutput | UpdateShareInvitationCommandOutput | UpdateWorkloadCommandOutput | UpdateWorkloadShareCommandOutput | UpgradeLensReviewCommandOutput;
53
55
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
54
56
  /**
55
57
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -9,7 +9,8 @@ export interface CreateLensShareCommandOutput extends CreateLensShareOutput, __M
9
9
  }
10
10
  /**
11
11
  * <p>Create a lens share.</p>
12
- * <p>The owner of a lens can share it with other Amazon Web Services accounts and IAM users in the same Amazon Web Services Region.
12
+ * <p>The owner of a lens can share it with other Amazon Web Services accounts, IAM users, an organization,
13
+ * and organizational units (OUs) in the same Amazon Web Services Region.
13
14
  * Shared access to a lens is not removed until the lens invitation is deleted.</p>
14
15
  * <note>
15
16
  * <p>
@@ -9,7 +9,8 @@ export interface CreateWorkloadCommandOutput extends CreateWorkloadOutput, __Met
9
9
  }
10
10
  /**
11
11
  * <p>Create a new workload.</p>
12
- * <p>The owner of a workload can share the workload with other Amazon Web Services accounts and IAM users
12
+ * <p>The owner of a workload can share the workload with other Amazon Web Services accounts, IAM users,
13
+ * an organization, and organizational units (OUs)
13
14
  * in the same Amazon Web Services Region. Only the owner of a workload can delete it.</p>
14
15
  * <p>For more information, see <a href="https://docs.aws.amazon.com/wellarchitected/latest/userguide/define-workload.html">Defining a Workload</a> in the
15
16
  * <i>Well-Architected Tool User Guide</i>.</p>
@@ -9,7 +9,8 @@ export interface DeleteLensShareCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
11
  * <p>Delete a lens share.</p>
12
- * <p>After the lens share is deleted, Amazon Web Services accounts and IAM users
12
+ * <p>After the lens share is deleted, Amazon Web Services accounts, IAM users, organizations,
13
+ * and organizational units (OUs)
13
14
  * that you shared the lens with can continue to use it, but they will no longer be able to apply it to new workloads.</p>
14
15
  * <note>
15
16
  * <p>
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListCheckDetailsInput, ListCheckDetailsOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ export interface ListCheckDetailsCommandInput extends ListCheckDetailsInput {
7
+ }
8
+ export interface ListCheckDetailsCommandOutput extends ListCheckDetailsOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>List of Trusted Advisor check details by account related to the workload.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { WellArchitectedClient, ListCheckDetailsCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
16
+ * // const { WellArchitectedClient, ListCheckDetailsCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
17
+ * const client = new WellArchitectedClient(config);
18
+ * const command = new ListCheckDetailsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListCheckDetailsCommandInput} for command's `input` shape.
23
+ * @see {@link ListCheckDetailsCommandOutput} for command's `response` shape.
24
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListCheckDetailsCommand extends $Command<ListCheckDetailsCommandInput, ListCheckDetailsCommandOutput, WellArchitectedClientResolvedConfig> {
28
+ readonly input: ListCheckDetailsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListCheckDetailsCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListCheckDetailsCommandInput, ListCheckDetailsCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,37 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListCheckSummariesInput, ListCheckSummariesOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient";
6
+ export interface ListCheckSummariesCommandInput extends ListCheckSummariesInput {
7
+ }
8
+ export interface ListCheckSummariesCommandOutput extends ListCheckSummariesOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>List of Trusted Advisor checks summarized for all accounts related to the workload.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { WellArchitectedClient, ListCheckSummariesCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
16
+ * // const { WellArchitectedClient, ListCheckSummariesCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
17
+ * const client = new WellArchitectedClient(config);
18
+ * const command = new ListCheckSummariesCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListCheckSummariesCommandInput} for command's `input` shape.
23
+ * @see {@link ListCheckSummariesCommandOutput} for command's `response` shape.
24
+ * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListCheckSummariesCommand extends $Command<ListCheckSummariesCommandInput, ListCheckSummariesCommandOutput, WellArchitectedClientResolvedConfig> {
28
+ readonly input: ListCheckSummariesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListCheckSummariesCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WellArchitectedClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListCheckSummariesCommandInput, ListCheckSummariesCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -8,7 +8,10 @@ export interface UpdateShareInvitationCommandInput extends UpdateShareInvitation
8
8
  export interface UpdateShareInvitationCommandOutput extends UpdateShareInvitationOutput, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Update a workload invitation.</p>
11
+ * <p>Update a workload or custom lens share invitation.</p>
12
+ * <note>
13
+ * <p>This API operation can be called independently of any resource. Previous documentation implied that a workload ARN must be specified.</p>
14
+ * </note>
12
15
  * @example
13
16
  * Use a bare-bones client and the command you need to make an API call.
14
17
  * ```javascript
@@ -19,6 +19,8 @@ export * from "./GetMilestoneCommand";
19
19
  export * from "./GetWorkloadCommand";
20
20
  export * from "./ImportLensCommand";
21
21
  export * from "./ListAnswersCommand";
22
+ export * from "./ListCheckDetailsCommand";
23
+ export * from "./ListCheckSummariesCommand";
22
24
  export * from "./ListLensReviewImprovementsCommand";
23
25
  export * from "./ListLensReviewsCommand";
24
26
  export * from "./ListLensSharesCommand";