@aws-sdk/client-wellarchitected 3.350.0 → 3.352.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/dist-cjs/WellArchitected.js +26 -0
- package/dist-cjs/commands/AssociateProfilesCommand.js +46 -0
- package/dist-cjs/commands/CreateProfileCommand.js +46 -0
- package/dist-cjs/commands/CreateProfileShareCommand.js +46 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +46 -0
- package/dist-cjs/commands/DeleteProfileShareCommand.js +46 -0
- package/dist-cjs/commands/DisassociateProfilesCommand.js +46 -0
- package/dist-cjs/commands/GetProfileCommand.js +46 -0
- package/dist-cjs/commands/GetProfileTemplateCommand.js +46 -0
- package/dist-cjs/commands/ListProfileNotificationsCommand.js +46 -0
- package/dist-cjs/commands/ListProfileSharesCommand.js +46 -0
- package/dist-cjs/commands/ListProfilesCommand.js +46 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +46 -0
- package/dist-cjs/commands/UpgradeProfileVersionCommand.js +46 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/models/models_0.js +18 -1
- package/dist-cjs/pagination/ListProfileNotificationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListProfileSharesPaginator.js +29 -0
- package/dist-cjs/pagination/ListProfilesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +991 -40
- package/dist-es/WellArchitected.js +26 -0
- package/dist-es/commands/AssociateProfilesCommand.js +42 -0
- package/dist-es/commands/CreateProfileCommand.js +42 -0
- package/dist-es/commands/CreateProfileShareCommand.js +42 -0
- package/dist-es/commands/DeleteProfileCommand.js +42 -0
- package/dist-es/commands/DeleteProfileShareCommand.js +42 -0
- package/dist-es/commands/DisassociateProfilesCommand.js +42 -0
- package/dist-es/commands/GetProfileCommand.js +42 -0
- package/dist-es/commands/GetProfileTemplateCommand.js +42 -0
- package/dist-es/commands/ListProfileNotificationsCommand.js +42 -0
- package/dist-es/commands/ListProfileSharesCommand.js +42 -0
- package/dist-es/commands/ListProfilesCommand.js +42 -0
- package/dist-es/commands/UpdateProfileCommand.js +42 -0
- package/dist-es/commands/UpgradeProfileVersionCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/models_0.js +17 -0
- package/dist-es/pagination/ListProfileNotificationsPaginator.js +25 -0
- package/dist-es/pagination/ListProfileSharesPaginator.js +25 -0
- package/dist-es/pagination/ListProfilesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +960 -36
- package/dist-types/WellArchitected.d.ts +91 -0
- package/dist-types/WellArchitectedClient.d.ts +15 -2
- package/dist-types/commands/AssociateProfilesCommand.d.ts +92 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +105 -0
- package/dist-types/commands/CreateProfileShareCommand.d.ts +97 -0
- package/dist-types/commands/CreateWorkloadCommand.d.ts +3 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +101 -0
- package/dist-types/commands/DeleteProfileShareCommand.d.ts +91 -0
- package/dist-types/commands/DisassociateProfilesCommand.d.ts +92 -0
- package/dist-types/commands/GetLensReviewCommand.d.ts +12 -0
- package/dist-types/commands/GetMilestoneCommand.d.ts +9 -0
- package/dist-types/commands/GetProfileCommand.d.ts +120 -0
- package/dist-types/commands/GetProfileTemplateCommand.d.ts +106 -0
- package/dist-types/commands/GetWorkloadCommand.d.ts +9 -0
- package/dist-types/commands/ListAnswersCommand.d.ts +2 -0
- package/dist-types/commands/ListLensReviewImprovementsCommand.d.ts +1 -0
- package/dist-types/commands/ListLensReviewsCommand.d.ts +9 -0
- package/dist-types/commands/ListMilestonesCommand.d.ts +9 -0
- package/dist-types/commands/ListProfileNotificationsCommand.d.ts +98 -0
- package/dist-types/commands/ListProfileSharesCommand.d.ts +100 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +99 -0
- package/dist-types/commands/ListShareInvitationsCommand.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListWorkloadsCommand.d.ts +9 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLensReviewCommand.d.ts +12 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +131 -0
- package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
- package/dist-types/commands/UpdateWorkloadCommand.d.ts +9 -0
- package/dist-types/commands/UpgradeProfileVersionCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/models_0.d.ts +850 -90
- package/dist-types/pagination/ListProfileNotificationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfileSharesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +221 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +80 -2
- package/dist-types/ts3.4/commands/AssociateProfilesCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateProfileShareCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/DeleteProfileShareCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateProfilesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetProfileTemplateCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListProfileNotificationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListProfileSharesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpgradeProfileVersionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +210 -0
- package/dist-types/ts3.4/pagination/ListProfileNotificationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfileSharesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
- package/package.json +5 -5
|
@@ -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";
|