@aws-sdk/client-wellarchitected 3.423.0 → 3.425.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 +112 -0
- package/dist-cjs/WellArchitected.js +28 -0
- package/dist-cjs/commands/CreateReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/CreateTemplateShareCommand.js +51 -0
- package/dist-cjs/commands/DeleteReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/DeleteTemplateShareCommand.js +51 -0
- package/dist-cjs/commands/GetReviewTemplateAnswerCommand.js +51 -0
- package/dist-cjs/commands/GetReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/GetReviewTemplateLensReviewCommand.js +51 -0
- package/dist-cjs/commands/ListReviewTemplateAnswersCommand.js +51 -0
- package/dist-cjs/commands/ListReviewTemplatesCommand.js +51 -0
- package/dist-cjs/commands/ListTemplateSharesCommand.js +51 -0
- package/dist-cjs/commands/UpdateReviewTemplateAnswerCommand.js +51 -0
- package/dist-cjs/commands/UpdateReviewTemplateCommand.js +51 -0
- package/dist-cjs/commands/UpdateReviewTemplateLensReviewCommand.js +51 -0
- package/dist-cjs/commands/UpgradeReviewTemplateLensReviewCommand.js +51 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/models/models_0.js +14 -1
- package/dist-cjs/pagination/ListReviewTemplateAnswersPaginator.js +29 -0
- package/dist-cjs/pagination/ListReviewTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/ListTemplateSharesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1098 -53
- package/dist-es/WellArchitected.js +28 -0
- package/dist-es/commands/CreateReviewTemplateCommand.js +47 -0
- package/dist-es/commands/CreateTemplateShareCommand.js +47 -0
- package/dist-es/commands/DeleteReviewTemplateCommand.js +47 -0
- package/dist-es/commands/DeleteTemplateShareCommand.js +47 -0
- package/dist-es/commands/GetReviewTemplateAnswerCommand.js +47 -0
- package/dist-es/commands/GetReviewTemplateCommand.js +47 -0
- package/dist-es/commands/GetReviewTemplateLensReviewCommand.js +47 -0
- package/dist-es/commands/ListReviewTemplateAnswersCommand.js +47 -0
- package/dist-es/commands/ListReviewTemplatesCommand.js +47 -0
- package/dist-es/commands/ListTemplateSharesCommand.js +47 -0
- package/dist-es/commands/UpdateReviewTemplateAnswerCommand.js +47 -0
- package/dist-es/commands/UpdateReviewTemplateCommand.js +47 -0
- package/dist-es/commands/UpdateReviewTemplateLensReviewCommand.js +47 -0
- package/dist-es/commands/UpgradeReviewTemplateLensReviewCommand.js +47 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/pagination/ListReviewTemplateAnswersPaginator.js +25 -0
- package/dist-es/pagination/ListReviewTemplatesPaginator.js +25 -0
- package/dist-es/pagination/ListTemplateSharesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1065 -48
- package/dist-types/WellArchitected.d.ts +98 -0
- package/dist-types/WellArchitectedClient.d.ts +18 -2
- package/dist-types/commands/CreateReviewTemplateCommand.d.ts +114 -0
- package/dist-types/commands/CreateTemplateShareCommand.d.ts +111 -0
- package/dist-types/commands/CreateWorkloadCommand.d.ts +26 -0
- package/dist-types/commands/DeleteReviewTemplateCommand.d.ts +94 -0
- package/dist-types/commands/DeleteTemplateShareCommand.d.ts +94 -0
- package/dist-types/commands/GetReviewTemplateAnswerCommand.d.ts +141 -0
- package/dist-types/commands/GetReviewTemplateCommand.d.ts +106 -0
- package/dist-types/commands/GetReviewTemplateLensReviewCommand.d.ts +112 -0
- package/dist-types/commands/ListNotificationsCommand.d.ts +3 -0
- package/dist-types/commands/ListReviewTemplateAnswersCommand.d.ts +141 -0
- package/dist-types/commands/ListReviewTemplatesCommand.d.ts +99 -0
- package/dist-types/commands/ListShareInvitationsCommand.d.ts +10 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTemplateSharesCommand.d.ts +101 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateReviewTemplateAnswerCommand.d.ts +157 -0
- package/dist-types/commands/UpdateReviewTemplateCommand.d.ts +118 -0
- package/dist-types/commands/UpdateReviewTemplateLensReviewCommand.d.ts +119 -0
- package/dist-types/commands/UpdateShareInvitationCommand.d.ts +2 -1
- package/dist-types/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +1206 -103
- package/dist-types/pagination/ListReviewTemplateAnswersPaginator.d.ts +7 -0
- package/dist-types/pagination/ListReviewTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListTemplateSharesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +238 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateReviewTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateTemplateShareCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteReviewTemplateCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteTemplateShareCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetReviewTemplateAnswerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetReviewTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetReviewTemplateLensReviewCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListReviewTemplateAnswersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListReviewTemplatesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTemplateSharesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateReviewTemplateAnswerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateReviewTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateReviewTemplateLensReviewCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpgradeReviewTemplateLensReviewCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/models_0.d.ts +227 -0
- package/dist-types/ts3.4/pagination/ListReviewTemplateAnswersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListReviewTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateSharesPaginator.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 +168 -0
- package/package.json +31 -31
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateReviewTemplateCommand, se_UpdateReviewTemplateCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateReviewTemplateCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateReviewTemplateCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "WellArchitectedClient";
|
|
26
|
+
const commandName = "UpdateReviewTemplateCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "WellArchitectedApiServiceLambda",
|
|
35
|
+
operation: "UpdateReviewTemplate",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateReviewTemplateCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateReviewTemplateCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpdateReviewTemplateLensReviewCommand, se_UpdateReviewTemplateLensReviewCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateReviewTemplateLensReviewCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateReviewTemplateLensReviewCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "WellArchitectedClient";
|
|
26
|
+
const commandName = "UpdateReviewTemplateLensReviewCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "WellArchitectedApiServiceLambda",
|
|
35
|
+
operation: "UpdateReviewTemplateLensReview",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpdateReviewTemplateLensReviewCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpdateReviewTemplateLensReviewCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_UpgradeReviewTemplateLensReviewCommand, se_UpgradeReviewTemplateLensReviewCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpgradeReviewTemplateLensReviewCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpgradeReviewTemplateLensReviewCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "WellArchitectedClient";
|
|
26
|
+
const commandName = "UpgradeReviewTemplateLensReviewCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "WellArchitectedApiServiceLambda",
|
|
35
|
+
operation: "UpgradeReviewTemplateLensReview",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_UpgradeReviewTemplateLensReviewCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_UpgradeReviewTemplateLensReviewCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -5,12 +5,16 @@ export * from "./CreateLensVersionCommand";
|
|
|
5
5
|
export * from "./CreateMilestoneCommand";
|
|
6
6
|
export * from "./CreateProfileCommand";
|
|
7
7
|
export * from "./CreateProfileShareCommand";
|
|
8
|
+
export * from "./CreateReviewTemplateCommand";
|
|
9
|
+
export * from "./CreateTemplateShareCommand";
|
|
8
10
|
export * from "./CreateWorkloadCommand";
|
|
9
11
|
export * from "./CreateWorkloadShareCommand";
|
|
10
12
|
export * from "./DeleteLensCommand";
|
|
11
13
|
export * from "./DeleteLensShareCommand";
|
|
12
14
|
export * from "./DeleteProfileCommand";
|
|
13
15
|
export * from "./DeleteProfileShareCommand";
|
|
16
|
+
export * from "./DeleteReviewTemplateCommand";
|
|
17
|
+
export * from "./DeleteTemplateShareCommand";
|
|
14
18
|
export * from "./DeleteWorkloadCommand";
|
|
15
19
|
export * from "./DeleteWorkloadShareCommand";
|
|
16
20
|
export * from "./DisassociateLensesCommand";
|
|
@@ -25,6 +29,9 @@ export * from "./GetLensVersionDifferenceCommand";
|
|
|
25
29
|
export * from "./GetMilestoneCommand";
|
|
26
30
|
export * from "./GetProfileCommand";
|
|
27
31
|
export * from "./GetProfileTemplateCommand";
|
|
32
|
+
export * from "./GetReviewTemplateAnswerCommand";
|
|
33
|
+
export * from "./GetReviewTemplateCommand";
|
|
34
|
+
export * from "./GetReviewTemplateLensReviewCommand";
|
|
28
35
|
export * from "./GetWorkloadCommand";
|
|
29
36
|
export * from "./ImportLensCommand";
|
|
30
37
|
export * from "./ListAnswersCommand";
|
|
@@ -39,8 +46,11 @@ export * from "./ListNotificationsCommand";
|
|
|
39
46
|
export * from "./ListProfileNotificationsCommand";
|
|
40
47
|
export * from "./ListProfileSharesCommand";
|
|
41
48
|
export * from "./ListProfilesCommand";
|
|
49
|
+
export * from "./ListReviewTemplateAnswersCommand";
|
|
50
|
+
export * from "./ListReviewTemplatesCommand";
|
|
42
51
|
export * from "./ListShareInvitationsCommand";
|
|
43
52
|
export * from "./ListTagsForResourceCommand";
|
|
53
|
+
export * from "./ListTemplateSharesCommand";
|
|
44
54
|
export * from "./ListWorkloadSharesCommand";
|
|
45
55
|
export * from "./ListWorkloadsCommand";
|
|
46
56
|
export * from "./TagResourceCommand";
|
|
@@ -49,8 +59,12 @@ export * from "./UpdateAnswerCommand";
|
|
|
49
59
|
export * from "./UpdateGlobalSettingsCommand";
|
|
50
60
|
export * from "./UpdateLensReviewCommand";
|
|
51
61
|
export * from "./UpdateProfileCommand";
|
|
62
|
+
export * from "./UpdateReviewTemplateAnswerCommand";
|
|
63
|
+
export * from "./UpdateReviewTemplateCommand";
|
|
64
|
+
export * from "./UpdateReviewTemplateLensReviewCommand";
|
|
52
65
|
export * from "./UpdateShareInvitationCommand";
|
|
53
66
|
export * from "./UpdateWorkloadCommand";
|
|
54
67
|
export * from "./UpdateWorkloadShareCommand";
|
|
55
68
|
export * from "./UpgradeLensReviewCommand";
|
|
56
69
|
export * from "./UpgradeProfileVersionCommand";
|
|
70
|
+
export * from "./UpgradeReviewTemplateLensReviewCommand";
|
|
@@ -209,6 +209,18 @@ export const WorkloadImprovementStatus = {
|
|
|
209
209
|
NOT_STARTED: "NOT_STARTED",
|
|
210
210
|
RISK_ACKNOWLEDGED: "RISK_ACKNOWLEDGED",
|
|
211
211
|
};
|
|
212
|
+
export const Question = {
|
|
213
|
+
ANSWERED: "ANSWERED",
|
|
214
|
+
UNANSWERED: "UNANSWERED",
|
|
215
|
+
};
|
|
216
|
+
export const ReviewTemplateUpdateStatus = {
|
|
217
|
+
CURRENT: "CURRENT",
|
|
218
|
+
LENS_NOT_CURRENT: "LENS_NOT_CURRENT",
|
|
219
|
+
};
|
|
220
|
+
export const ReviewTemplateAnswerStatus = {
|
|
221
|
+
ANSWERED: "ANSWERED",
|
|
222
|
+
UNANSWERED: "UNANSWERED",
|
|
223
|
+
};
|
|
212
224
|
export const ImportLensStatus = {
|
|
213
225
|
COMPLETE: "COMPLETE",
|
|
214
226
|
ERROR: "ERROR",
|
|
@@ -248,6 +260,7 @@ export const ProfileOwnerType = {
|
|
|
248
260
|
export const ShareResourceType = {
|
|
249
261
|
LENS: "LENS",
|
|
250
262
|
PROFILE: "PROFILE",
|
|
263
|
+
TEMPLATE: "TEMPLATE",
|
|
251
264
|
WORKLOAD: "WORKLOAD",
|
|
252
265
|
};
|
|
253
266
|
export const OrganizationSharingStatus = {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListReviewTemplateAnswersCommand, } from "../commands/ListReviewTemplateAnswersCommand";
|
|
2
|
+
import { WellArchitectedClient } from "../WellArchitectedClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListReviewTemplateAnswersCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListReviewTemplateAnswers(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 { ListReviewTemplatesCommand, } from "../commands/ListReviewTemplatesCommand";
|
|
2
|
+
import { WellArchitectedClient } from "../WellArchitectedClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListReviewTemplatesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListReviewTemplates(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 { ListTemplateSharesCommand, } from "../commands/ListTemplateSharesCommand";
|
|
2
|
+
import { WellArchitectedClient } from "../WellArchitectedClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListTemplateSharesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListTemplateShares(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
|
+
}
|
|
@@ -12,6 +12,9 @@ export * from "./ListNotificationsPaginator";
|
|
|
12
12
|
export * from "./ListProfileNotificationsPaginator";
|
|
13
13
|
export * from "./ListProfileSharesPaginator";
|
|
14
14
|
export * from "./ListProfilesPaginator";
|
|
15
|
+
export * from "./ListReviewTemplateAnswersPaginator";
|
|
16
|
+
export * from "./ListReviewTemplatesPaginator";
|
|
15
17
|
export * from "./ListShareInvitationsPaginator";
|
|
18
|
+
export * from "./ListTemplateSharesPaginator";
|
|
16
19
|
export * from "./ListWorkloadSharesPaginator";
|
|
17
20
|
export * from "./ListWorkloadsPaginator";
|