@aws-sdk/client-wellarchitected 3.40.0 → 3.44.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/CHANGELOG.md +38 -0
- package/README.md +6 -6
- package/dist-cjs/WellArchitected.js +120 -0
- package/dist-cjs/commands/CreateLensShareCommand.js +36 -0
- package/dist-cjs/commands/CreateLensVersionCommand.js +36 -0
- package/dist-cjs/commands/DeleteLensCommand.js +36 -0
- package/dist-cjs/commands/DeleteLensShareCommand.js +36 -0
- package/dist-cjs/commands/ExportLensCommand.js +36 -0
- package/dist-cjs/commands/GetLensCommand.js +36 -0
- package/dist-cjs/commands/ImportLensCommand.js +36 -0
- package/dist-cjs/commands/ListLensSharesCommand.js +36 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoints.js +8 -0
- package/dist-cjs/models/models_0.js +150 -17
- package/dist-cjs/pagination/ListLensSharesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1137 -62
- package/dist-es/WellArchitected.js +120 -0
- package/dist-es/commands/CreateLensShareCommand.js +39 -0
- package/dist-es/commands/CreateLensVersionCommand.js +39 -0
- package/dist-es/commands/DeleteLensCommand.js +39 -0
- package/dist-es/commands/DeleteLensShareCommand.js +39 -0
- package/dist-es/commands/ExportLensCommand.js +39 -0
- package/dist-es/commands/GetLensCommand.js +39 -0
- package/dist-es/commands/ImportLensCommand.js +39 -0
- package/dist-es/commands/ListLensSharesCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoints.js +8 -0
- package/dist-es/models/models_0.js +109 -12
- package/dist-es/pagination/ListLensSharesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +1232 -40
- package/dist-types/WellArchitected.d.ts +156 -13
- package/dist-types/WellArchitectedClient.d.ts +16 -8
- package/dist-types/commands/AssociateLensesCommand.d.ts +11 -1
- package/dist-types/commands/CreateLensShareCommand.d.ts +48 -0
- package/dist-types/commands/CreateLensVersionCommand.d.ts +39 -0
- package/dist-types/commands/CreateMilestoneCommand.d.ts +1 -1
- package/dist-types/commands/CreateWorkloadCommand.d.ts +4 -4
- package/dist-types/commands/CreateWorkloadShareCommand.d.ts +4 -4
- package/dist-types/commands/DeleteLensCommand.d.ts +49 -0
- package/dist-types/commands/DeleteLensShareCommand.d.ts +48 -0
- package/dist-types/commands/DeleteWorkloadCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWorkloadShareCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateLensesCommand.d.ts +3 -2
- package/dist-types/commands/ExportLensCommand.d.ts +49 -0
- package/dist-types/commands/GetAnswerCommand.d.ts +1 -1
- package/dist-types/commands/GetLensCommand.d.ts +35 -0
- package/dist-types/commands/GetLensReviewCommand.d.ts +1 -1
- package/dist-types/commands/GetLensReviewReportCommand.d.ts +1 -1
- package/dist-types/commands/GetLensVersionDifferenceCommand.d.ts +1 -1
- package/dist-types/commands/GetMilestoneCommand.d.ts +1 -1
- package/dist-types/commands/GetWorkloadCommand.d.ts +1 -1
- package/dist-types/commands/ImportLensCommand.d.ts +53 -0
- package/dist-types/commands/ListAnswersCommand.d.ts +1 -1
- package/dist-types/commands/ListLensReviewImprovementsCommand.d.ts +1 -1
- package/dist-types/commands/ListLensReviewsCommand.d.ts +1 -1
- package/dist-types/commands/ListLensSharesCommand.d.ts +35 -0
- package/dist-types/commands/ListLensesCommand.d.ts +1 -1
- package/dist-types/commands/ListMilestonesCommand.d.ts +1 -1
- package/dist-types/commands/ListNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/ListShareInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListWorkloadSharesCommand.d.ts +1 -1
- package/dist-types/commands/ListWorkloadsCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAnswerCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLensReviewCommand.d.ts +1 -1
- package/dist-types/commands/UpdateShareInvitationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWorkloadCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWorkloadShareCommand.d.ts +1 -1
- package/dist-types/commands/UpgradeLensReviewCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +676 -118
- package/dist-types/pagination/ListLensSharesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/WellArchitected.d.ts +40 -0
- package/dist-types/ts3.4/WellArchitectedClient.d.ts +10 -2
- package/dist-types/ts3.4/commands/CreateLensShareCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLensVersionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLensCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLensShareCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExportLensCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetLensCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportLensCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLensSharesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +321 -24
- package/dist-types/ts3.4/pagination/ListLensSharesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +4 -4
|
@@ -21,6 +21,10 @@ export var ChoiceAnswer;
|
|
|
21
21
|
(function (ChoiceAnswer) {
|
|
22
22
|
ChoiceAnswer.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
23
23
|
})(ChoiceAnswer || (ChoiceAnswer = {}));
|
|
24
|
+
export var ChoiceContent;
|
|
25
|
+
(function (ChoiceContent) {
|
|
26
|
+
ChoiceContent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
27
|
+
})(ChoiceContent || (ChoiceContent = {}));
|
|
24
28
|
export var Choice;
|
|
25
29
|
(function (Choice) {
|
|
26
30
|
Choice.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -88,10 +92,34 @@ export var ValidationException;
|
|
|
88
92
|
(function (ValidationException) {
|
|
89
93
|
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
94
|
})(ValidationException || (ValidationException = {}));
|
|
95
|
+
export var ChoiceImprovementPlan;
|
|
96
|
+
(function (ChoiceImprovementPlan) {
|
|
97
|
+
ChoiceImprovementPlan.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
98
|
+
})(ChoiceImprovementPlan || (ChoiceImprovementPlan = {}));
|
|
91
99
|
export var ChoiceUpdate;
|
|
92
100
|
(function (ChoiceUpdate) {
|
|
93
101
|
ChoiceUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
102
|
})(ChoiceUpdate || (ChoiceUpdate = {}));
|
|
103
|
+
export var CreateLensShareInput;
|
|
104
|
+
(function (CreateLensShareInput) {
|
|
105
|
+
CreateLensShareInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
+
})(CreateLensShareInput || (CreateLensShareInput = {}));
|
|
107
|
+
export var CreateLensShareOutput;
|
|
108
|
+
(function (CreateLensShareOutput) {
|
|
109
|
+
CreateLensShareOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
+
})(CreateLensShareOutput || (CreateLensShareOutput = {}));
|
|
111
|
+
export var ServiceQuotaExceededException;
|
|
112
|
+
(function (ServiceQuotaExceededException) {
|
|
113
|
+
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
+
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
115
|
+
export var CreateLensVersionInput;
|
|
116
|
+
(function (CreateLensVersionInput) {
|
|
117
|
+
CreateLensVersionInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
|
+
})(CreateLensVersionInput || (CreateLensVersionInput = {}));
|
|
119
|
+
export var CreateLensVersionOutput;
|
|
120
|
+
(function (CreateLensVersionOutput) {
|
|
121
|
+
CreateLensVersionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
122
|
+
})(CreateLensVersionOutput || (CreateLensVersionOutput = {}));
|
|
95
123
|
export var CreateMilestoneInput;
|
|
96
124
|
(function (CreateMilestoneInput) {
|
|
97
125
|
CreateMilestoneInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -100,10 +128,6 @@ export var CreateMilestoneOutput;
|
|
|
100
128
|
(function (CreateMilestoneOutput) {
|
|
101
129
|
CreateMilestoneOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
130
|
})(CreateMilestoneOutput || (CreateMilestoneOutput = {}));
|
|
103
|
-
export var ServiceQuotaExceededException;
|
|
104
|
-
(function (ServiceQuotaExceededException) {
|
|
105
|
-
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
-
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
107
131
|
export var WorkloadEnvironment;
|
|
108
132
|
(function (WorkloadEnvironment) {
|
|
109
133
|
WorkloadEnvironment["PREPRODUCTION"] = "PREPRODUCTION";
|
|
@@ -130,6 +154,20 @@ export var CreateWorkloadShareOutput;
|
|
|
130
154
|
(function (CreateWorkloadShareOutput) {
|
|
131
155
|
CreateWorkloadShareOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
156
|
})(CreateWorkloadShareOutput || (CreateWorkloadShareOutput = {}));
|
|
157
|
+
export var LensStatusType;
|
|
158
|
+
(function (LensStatusType) {
|
|
159
|
+
LensStatusType["ALL"] = "ALL";
|
|
160
|
+
LensStatusType["DRAFT"] = "DRAFT";
|
|
161
|
+
LensStatusType["PUBLISHED"] = "PUBLISHED";
|
|
162
|
+
})(LensStatusType || (LensStatusType = {}));
|
|
163
|
+
export var DeleteLensInput;
|
|
164
|
+
(function (DeleteLensInput) {
|
|
165
|
+
DeleteLensInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
166
|
+
})(DeleteLensInput || (DeleteLensInput = {}));
|
|
167
|
+
export var DeleteLensShareInput;
|
|
168
|
+
(function (DeleteLensShareInput) {
|
|
169
|
+
DeleteLensShareInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
170
|
+
})(DeleteLensShareInput || (DeleteLensShareInput = {}));
|
|
133
171
|
export var DeleteWorkloadInput;
|
|
134
172
|
(function (DeleteWorkloadInput) {
|
|
135
173
|
DeleteWorkloadInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -148,6 +186,14 @@ export var DisassociateLensesInput;
|
|
|
148
186
|
(function (DisassociateLensesInput) {
|
|
149
187
|
DisassociateLensesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
188
|
})(DisassociateLensesInput || (DisassociateLensesInput = {}));
|
|
189
|
+
export var ExportLensInput;
|
|
190
|
+
(function (ExportLensInput) {
|
|
191
|
+
ExportLensInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
|
+
})(ExportLensInput || (ExportLensInput = {}));
|
|
193
|
+
export var ExportLensOutput;
|
|
194
|
+
(function (ExportLensOutput) {
|
|
195
|
+
ExportLensOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
196
|
+
})(ExportLensOutput || (ExportLensOutput = {}));
|
|
151
197
|
export var GetAnswerInput;
|
|
152
198
|
(function (GetAnswerInput) {
|
|
153
199
|
GetAnswerInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -156,6 +202,18 @@ export var GetAnswerOutput;
|
|
|
156
202
|
(function (GetAnswerOutput) {
|
|
157
203
|
GetAnswerOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
204
|
})(GetAnswerOutput || (GetAnswerOutput = {}));
|
|
205
|
+
export var GetLensInput;
|
|
206
|
+
(function (GetLensInput) {
|
|
207
|
+
GetLensInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
208
|
+
})(GetLensInput || (GetLensInput = {}));
|
|
209
|
+
export var Lens;
|
|
210
|
+
(function (Lens) {
|
|
211
|
+
Lens.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
|
+
})(Lens || (Lens = {}));
|
|
213
|
+
export var GetLensOutput;
|
|
214
|
+
(function (GetLensOutput) {
|
|
215
|
+
GetLensOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
216
|
+
})(GetLensOutput || (GetLensOutput = {}));
|
|
159
217
|
export var GetLensReviewInput;
|
|
160
218
|
(function (GetLensReviewInput) {
|
|
161
219
|
GetLensReviewInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -163,8 +221,10 @@ export var GetLensReviewInput;
|
|
|
163
221
|
export var LensStatus;
|
|
164
222
|
(function (LensStatus) {
|
|
165
223
|
LensStatus["CURRENT"] = "CURRENT";
|
|
224
|
+
LensStatus["DELETED"] = "DELETED";
|
|
166
225
|
LensStatus["DEPRECATED"] = "DEPRECATED";
|
|
167
226
|
LensStatus["NOT_CURRENT"] = "NOT_CURRENT";
|
|
227
|
+
LensStatus["UNSHARED"] = "UNSHARED";
|
|
168
228
|
})(LensStatus || (LensStatus = {}));
|
|
169
229
|
export var PillarReviewSummary;
|
|
170
230
|
(function (PillarReviewSummary) {
|
|
@@ -242,6 +302,20 @@ export var GetWorkloadOutput;
|
|
|
242
302
|
(function (GetWorkloadOutput) {
|
|
243
303
|
GetWorkloadOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
244
304
|
})(GetWorkloadOutput || (GetWorkloadOutput = {}));
|
|
305
|
+
export var ImportLensInput;
|
|
306
|
+
(function (ImportLensInput) {
|
|
307
|
+
ImportLensInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
308
|
+
})(ImportLensInput || (ImportLensInput = {}));
|
|
309
|
+
export var ImportLensStatus;
|
|
310
|
+
(function (ImportLensStatus) {
|
|
311
|
+
ImportLensStatus["COMPLETE"] = "COMPLETE";
|
|
312
|
+
ImportLensStatus["ERROR"] = "ERROR";
|
|
313
|
+
ImportLensStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
314
|
+
})(ImportLensStatus || (ImportLensStatus = {}));
|
|
315
|
+
export var ImportLensOutput;
|
|
316
|
+
(function (ImportLensOutput) {
|
|
317
|
+
ImportLensOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
318
|
+
})(ImportLensOutput || (ImportLensOutput = {}));
|
|
245
319
|
export var ImprovementSummary;
|
|
246
320
|
(function (ImprovementSummary) {
|
|
247
321
|
ImprovementSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -250,6 +324,24 @@ export var LensReviewSummary;
|
|
|
250
324
|
(function (LensReviewSummary) {
|
|
251
325
|
LensReviewSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
252
326
|
})(LensReviewSummary || (LensReviewSummary = {}));
|
|
327
|
+
export var ShareStatus;
|
|
328
|
+
(function (ShareStatus) {
|
|
329
|
+
ShareStatus["ACCEPTED"] = "ACCEPTED";
|
|
330
|
+
ShareStatus["EXPIRED"] = "EXPIRED";
|
|
331
|
+
ShareStatus["PENDING"] = "PENDING";
|
|
332
|
+
ShareStatus["REJECTED"] = "REJECTED";
|
|
333
|
+
ShareStatus["REVOKED"] = "REVOKED";
|
|
334
|
+
})(ShareStatus || (ShareStatus = {}));
|
|
335
|
+
export var LensShareSummary;
|
|
336
|
+
(function (LensShareSummary) {
|
|
337
|
+
LensShareSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
338
|
+
})(LensShareSummary || (LensShareSummary = {}));
|
|
339
|
+
export var LensType;
|
|
340
|
+
(function (LensType) {
|
|
341
|
+
LensType["AWS_OFFICIAL"] = "AWS_OFFICIAL";
|
|
342
|
+
LensType["CUSTOM_SELF"] = "CUSTOM_SELF";
|
|
343
|
+
LensType["CUSTOM_SHARED"] = "CUSTOM_SHARED";
|
|
344
|
+
})(LensType || (LensType = {}));
|
|
253
345
|
export var LensSummary;
|
|
254
346
|
(function (LensSummary) {
|
|
255
347
|
LensSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -290,6 +382,14 @@ export var ListLensReviewsOutput;
|
|
|
290
382
|
(function (ListLensReviewsOutput) {
|
|
291
383
|
ListLensReviewsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
292
384
|
})(ListLensReviewsOutput || (ListLensReviewsOutput = {}));
|
|
385
|
+
export var ListLensSharesInput;
|
|
386
|
+
(function (ListLensSharesInput) {
|
|
387
|
+
ListLensSharesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
388
|
+
})(ListLensSharesInput || (ListLensSharesInput = {}));
|
|
389
|
+
export var ListLensSharesOutput;
|
|
390
|
+
(function (ListLensSharesOutput) {
|
|
391
|
+
ListLensSharesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
392
|
+
})(ListLensSharesOutput || (ListLensSharesOutput = {}));
|
|
293
393
|
export var ListMilestonesInput;
|
|
294
394
|
(function (ListMilestonesInput) {
|
|
295
395
|
ListMilestonesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -323,6 +423,11 @@ export var ListNotificationsOutput;
|
|
|
323
423
|
(function (ListNotificationsOutput) {
|
|
324
424
|
ListNotificationsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
325
425
|
})(ListNotificationsOutput || (ListNotificationsOutput = {}));
|
|
426
|
+
export var ShareResourceType;
|
|
427
|
+
(function (ShareResourceType) {
|
|
428
|
+
ShareResourceType["LENS"] = "LENS";
|
|
429
|
+
ShareResourceType["WORKLOAD"] = "WORKLOAD";
|
|
430
|
+
})(ShareResourceType || (ShareResourceType = {}));
|
|
326
431
|
export var ListShareInvitationsInput;
|
|
327
432
|
(function (ListShareInvitationsInput) {
|
|
328
433
|
ListShareInvitationsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -355,14 +460,6 @@ export var ListWorkloadSharesInput;
|
|
|
355
460
|
(function (ListWorkloadSharesInput) {
|
|
356
461
|
ListWorkloadSharesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
357
462
|
})(ListWorkloadSharesInput || (ListWorkloadSharesInput = {}));
|
|
358
|
-
export var ShareStatus;
|
|
359
|
-
(function (ShareStatus) {
|
|
360
|
-
ShareStatus["ACCEPTED"] = "ACCEPTED";
|
|
361
|
-
ShareStatus["EXPIRED"] = "EXPIRED";
|
|
362
|
-
ShareStatus["PENDING"] = "PENDING";
|
|
363
|
-
ShareStatus["REJECTED"] = "REJECTED";
|
|
364
|
-
ShareStatus["REVOKED"] = "REVOKED";
|
|
365
|
-
})(ShareStatus || (ShareStatus = {}));
|
|
366
463
|
export var WorkloadShareSummary;
|
|
367
464
|
(function (WorkloadShareSummary) {
|
|
368
465
|
WorkloadShareSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListLensSharesCommand, } from "../commands/ListLensSharesCommand";
|
|
3
|
+
import { WellArchitected } from "../WellArchitected";
|
|
4
|
+
import { WellArchitectedClient } from "../WellArchitectedClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListLensSharesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listLensShares.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListLensShares(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListLensShares_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof WellArchitected)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof WellArchitectedClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected WellArchitected | WellArchitectedClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./Interfaces";
|
|
|
2
2
|
export * from "./ListAnswersPaginator";
|
|
3
3
|
export * from "./ListLensReviewImprovementsPaginator";
|
|
4
4
|
export * from "./ListLensReviewsPaginator";
|
|
5
|
+
export * from "./ListLensSharesPaginator";
|
|
5
6
|
export * from "./ListLensesPaginator";
|
|
6
7
|
export * from "./ListMilestonesPaginator";
|
|
7
8
|
export * from "./ListNotificationsPaginator";
|