@aws-sdk/client-wellarchitected 3.350.0 → 3.353.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 (104) hide show
  1. package/README.md +104 -0
  2. package/dist-cjs/WellArchitected.js +26 -0
  3. package/dist-cjs/commands/AssociateProfilesCommand.js +46 -0
  4. package/dist-cjs/commands/CreateProfileCommand.js +46 -0
  5. package/dist-cjs/commands/CreateProfileShareCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteProfileCommand.js +46 -0
  7. package/dist-cjs/commands/DeleteProfileShareCommand.js +46 -0
  8. package/dist-cjs/commands/DisassociateProfilesCommand.js +46 -0
  9. package/dist-cjs/commands/GetProfileCommand.js +46 -0
  10. package/dist-cjs/commands/GetProfileTemplateCommand.js +46 -0
  11. package/dist-cjs/commands/ListProfileNotificationsCommand.js +46 -0
  12. package/dist-cjs/commands/ListProfileSharesCommand.js +46 -0
  13. package/dist-cjs/commands/ListProfilesCommand.js +46 -0
  14. package/dist-cjs/commands/UpdateProfileCommand.js +46 -0
  15. package/dist-cjs/commands/UpgradeProfileVersionCommand.js +46 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/models/models_0.js +18 -1
  18. package/dist-cjs/pagination/ListProfileNotificationsPaginator.js +29 -0
  19. package/dist-cjs/pagination/ListProfileSharesPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
  21. package/dist-cjs/pagination/index.js +3 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +991 -40
  23. package/dist-es/WellArchitected.js +26 -0
  24. package/dist-es/commands/AssociateProfilesCommand.js +42 -0
  25. package/dist-es/commands/CreateProfileCommand.js +42 -0
  26. package/dist-es/commands/CreateProfileShareCommand.js +42 -0
  27. package/dist-es/commands/DeleteProfileCommand.js +42 -0
  28. package/dist-es/commands/DeleteProfileShareCommand.js +42 -0
  29. package/dist-es/commands/DisassociateProfilesCommand.js +42 -0
  30. package/dist-es/commands/GetProfileCommand.js +42 -0
  31. package/dist-es/commands/GetProfileTemplateCommand.js +42 -0
  32. package/dist-es/commands/ListProfileNotificationsCommand.js +42 -0
  33. package/dist-es/commands/ListProfileSharesCommand.js +42 -0
  34. package/dist-es/commands/ListProfilesCommand.js +42 -0
  35. package/dist-es/commands/UpdateProfileCommand.js +42 -0
  36. package/dist-es/commands/UpgradeProfileVersionCommand.js +42 -0
  37. package/dist-es/commands/index.js +13 -0
  38. package/dist-es/models/models_0.js +17 -0
  39. package/dist-es/pagination/ListProfileNotificationsPaginator.js +25 -0
  40. package/dist-es/pagination/ListProfileSharesPaginator.js +25 -0
  41. package/dist-es/pagination/ListProfilesPaginator.js +25 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_restJson1.js +960 -36
  44. package/dist-types/WellArchitected.d.ts +91 -0
  45. package/dist-types/WellArchitectedClient.d.ts +15 -2
  46. package/dist-types/commands/AssociateProfilesCommand.d.ts +92 -0
  47. package/dist-types/commands/CreateProfileCommand.d.ts +105 -0
  48. package/dist-types/commands/CreateProfileShareCommand.d.ts +97 -0
  49. package/dist-types/commands/CreateWorkloadCommand.d.ts +3 -0
  50. package/dist-types/commands/DeleteProfileCommand.d.ts +101 -0
  51. package/dist-types/commands/DeleteProfileShareCommand.d.ts +91 -0
  52. package/dist-types/commands/DisassociateProfilesCommand.d.ts +92 -0
  53. package/dist-types/commands/GetLensReviewCommand.d.ts +12 -0
  54. package/dist-types/commands/GetMilestoneCommand.d.ts +9 -0
  55. package/dist-types/commands/GetProfileCommand.d.ts +120 -0
  56. package/dist-types/commands/GetProfileTemplateCommand.d.ts +106 -0
  57. package/dist-types/commands/GetWorkloadCommand.d.ts +9 -0
  58. package/dist-types/commands/ListAnswersCommand.d.ts +2 -0
  59. package/dist-types/commands/ListLensReviewImprovementsCommand.d.ts +1 -0
  60. package/dist-types/commands/ListLensReviewsCommand.d.ts +9 -0
  61. package/dist-types/commands/ListMilestonesCommand.d.ts +9 -0
  62. package/dist-types/commands/ListProfileNotificationsCommand.d.ts +98 -0
  63. package/dist-types/commands/ListProfileSharesCommand.d.ts +100 -0
  64. package/dist-types/commands/ListProfilesCommand.d.ts +99 -0
  65. package/dist-types/commands/ListShareInvitationsCommand.d.ts +5 -2
  66. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  67. package/dist-types/commands/ListWorkloadsCommand.d.ts +9 -0
  68. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  69. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  70. package/dist-types/commands/UpdateLensReviewCommand.d.ts +12 -0
  71. package/dist-types/commands/UpdateProfileCommand.d.ts +131 -0
  72. package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
  73. package/dist-types/commands/UpdateWorkloadCommand.d.ts +9 -0
  74. package/dist-types/commands/UpgradeProfileVersionCommand.d.ts +92 -0
  75. package/dist-types/commands/index.d.ts +13 -0
  76. package/dist-types/models/models_0.d.ts +850 -90
  77. package/dist-types/pagination/ListProfileNotificationsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/ListProfileSharesPaginator.d.ts +7 -0
  79. package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +3 -0
  81. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  82. package/dist-types/ts3.4/WellArchitected.d.ts +221 -0
  83. package/dist-types/ts3.4/WellArchitectedClient.d.ts +80 -2
  84. package/dist-types/ts3.4/commands/AssociateProfilesCommand.d.ts +33 -0
  85. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +35 -0
  86. package/dist-types/ts3.4/commands/CreateProfileShareCommand.d.ts +39 -0
  87. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
  88. package/dist-types/ts3.4/commands/DeleteProfileShareCommand.d.ts +34 -0
  89. package/dist-types/ts3.4/commands/DisassociateProfilesCommand.d.ts +37 -0
  90. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
  91. package/dist-types/ts3.4/commands/GetProfileTemplateCommand.d.ts +39 -0
  92. package/dist-types/ts3.4/commands/ListProfileNotificationsCommand.d.ts +42 -0
  93. package/dist-types/ts3.4/commands/ListProfileSharesCommand.d.ts +38 -0
  94. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
  95. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +35 -0
  96. package/dist-types/ts3.4/commands/UpgradeProfileVersionCommand.d.ts +37 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +210 -0
  99. package/dist-types/ts3.4/pagination/ListProfileNotificationsPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/ListProfileSharesPaginator.d.ts +11 -0
  101. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
  102. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  103. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  104. package/package.json +13 -13
@@ -1,14 +1,20 @@
1
1
  export * from "./AssociateLensesCommand";
2
+ export * from "./AssociateProfilesCommand";
2
3
  export * from "./CreateLensShareCommand";
3
4
  export * from "./CreateLensVersionCommand";
4
5
  export * from "./CreateMilestoneCommand";
6
+ export * from "./CreateProfileCommand";
7
+ export * from "./CreateProfileShareCommand";
5
8
  export * from "./CreateWorkloadCommand";
6
9
  export * from "./CreateWorkloadShareCommand";
7
10
  export * from "./DeleteLensCommand";
8
11
  export * from "./DeleteLensShareCommand";
12
+ export * from "./DeleteProfileCommand";
13
+ export * from "./DeleteProfileShareCommand";
9
14
  export * from "./DeleteWorkloadCommand";
10
15
  export * from "./DeleteWorkloadShareCommand";
11
16
  export * from "./DisassociateLensesCommand";
17
+ export * from "./DisassociateProfilesCommand";
12
18
  export * from "./ExportLensCommand";
13
19
  export * from "./GetAnswerCommand";
14
20
  export * from "./GetConsolidatedReportCommand";
@@ -17,6 +23,8 @@ export * from "./GetLensReviewCommand";
17
23
  export * from "./GetLensReviewReportCommand";
18
24
  export * from "./GetLensVersionDifferenceCommand";
19
25
  export * from "./GetMilestoneCommand";
26
+ export * from "./GetProfileCommand";
27
+ export * from "./GetProfileTemplateCommand";
20
28
  export * from "./GetWorkloadCommand";
21
29
  export * from "./ImportLensCommand";
22
30
  export * from "./ListAnswersCommand";
@@ -28,6 +36,9 @@ export * from "./ListLensSharesCommand";
28
36
  export * from "./ListLensesCommand";
29
37
  export * from "./ListMilestonesCommand";
30
38
  export * from "./ListNotificationsCommand";
39
+ export * from "./ListProfileNotificationsCommand";
40
+ export * from "./ListProfileSharesCommand";
41
+ export * from "./ListProfilesCommand";
31
42
  export * from "./ListShareInvitationsCommand";
32
43
  export * from "./ListTagsForResourceCommand";
33
44
  export * from "./ListWorkloadSharesCommand";
@@ -37,7 +48,9 @@ export * from "./UntagResourceCommand";
37
48
  export * from "./UpdateAnswerCommand";
38
49
  export * from "./UpdateGlobalSettingsCommand";
39
50
  export * from "./UpdateLensReviewCommand";
51
+ export * from "./UpdateProfileCommand";
40
52
  export * from "./UpdateShareInvitationCommand";
41
53
  export * from "./UpdateWorkloadCommand";
42
54
  export * from "./UpdateWorkloadShareCommand";
43
55
  export * from "./UpgradeLensReviewCommand";
56
+ export * from "./UpgradeProfileVersionCommand";
@@ -49,6 +49,10 @@ export const Risk = {
49
49
  NOT_APPLICABLE: "NOT_APPLICABLE",
50
50
  UNANSWERED: "UNANSWERED",
51
51
  };
52
+ export const QuestionType = {
53
+ NON_PRIORITIZED: "NON_PRIORITIZED",
54
+ PRIORITIZED: "PRIORITIZED",
55
+ };
52
56
  export class ConflictException extends __BaseException {
53
57
  constructor(opts) {
54
58
  super({
@@ -225,12 +229,25 @@ export const LensType = {
225
229
  CUSTOM_SELF: "CUSTOM_SELF",
226
230
  CUSTOM_SHARED: "CUSTOM_SHARED",
227
231
  };
232
+ export const QuestionPriority = {
233
+ NONE: "NONE",
234
+ PRIORITIZED: "PRIORITIZED",
235
+ };
228
236
  export const NotificationType = {
229
237
  LENS_VERSION_DEPRECATED: "LENS_VERSION_DEPRECATED",
230
238
  LENS_VERSION_UPGRADED: "LENS_VERSION_UPGRADED",
231
239
  };
240
+ export const ProfileNotificationType = {
241
+ PROFILE_ANSWERS_UPDATED: "PROFILE_ANSWERS_UPDATED",
242
+ PROFILE_DELETED: "PROFILE_DELETED",
243
+ };
244
+ export const ProfileOwnerType = {
245
+ SELF: "SELF",
246
+ SHARED: "SHARED",
247
+ };
232
248
  export const ShareResourceType = {
233
249
  LENS: "LENS",
250
+ PROFILE: "PROFILE",
234
251
  WORKLOAD: "WORKLOAD",
235
252
  };
236
253
  export const OrganizationSharingStatus = {
@@ -0,0 +1,25 @@
1
+ import { ListProfileNotificationsCommand, } from "../commands/ListProfileNotificationsCommand";
2
+ import { WellArchitectedClient } from "../WellArchitectedClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListProfileNotificationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListProfileNotifications(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof WellArchitectedClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected WellArchitected | WellArchitectedClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListProfileSharesCommand, } from "../commands/ListProfileSharesCommand";
2
+ import { WellArchitectedClient } from "../WellArchitectedClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListProfileSharesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListProfileShares(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof WellArchitectedClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected WellArchitected | WellArchitectedClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListProfilesCommand, } from "../commands/ListProfilesCommand";
2
+ import { WellArchitectedClient } from "../WellArchitectedClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListProfilesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListProfiles(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof WellArchitectedClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected WellArchitected | WellArchitectedClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -9,6 +9,9 @@ export * from "./ListLensSharesPaginator";
9
9
  export * from "./ListLensesPaginator";
10
10
  export * from "./ListMilestonesPaginator";
11
11
  export * from "./ListNotificationsPaginator";
12
+ export * from "./ListProfileNotificationsPaginator";
13
+ export * from "./ListProfileSharesPaginator";
14
+ export * from "./ListProfilesPaginator";
12
15
  export * from "./ListShareInvitationsPaginator";
13
16
  export * from "./ListWorkloadSharesPaginator";
14
17
  export * from "./ListWorkloadsPaginator";