@aws-sdk/client-databrew 3.39.0 → 3.43.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 +41 -0
- package/dist-cjs/DataBrew.js +75 -0
- package/dist-cjs/commands/CreateRulesetCommand.js +36 -0
- package/dist-cjs/commands/DeleteRulesetCommand.js +36 -0
- package/dist-cjs/commands/DescribeRulesetCommand.js +36 -0
- package/dist-cjs/commands/ListRulesetsCommand.js +36 -0
- package/dist-cjs/commands/UpdateRulesetCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +130 -3
- package/dist-cjs/pagination/ListRulesetsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +727 -4
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/DataBrew.js +75 -0
- package/dist-es/commands/CreateRulesetCommand.js +39 -0
- package/dist-es/commands/DeleteRulesetCommand.js +39 -0
- package/dist-es/commands/DescribeRulesetCommand.js +39 -0
- package/dist-es/commands/ListRulesetsCommand.js +39 -0
- package/dist-es/commands/UpdateRulesetCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +92 -2
- package/dist-es/pagination/ListRulesetsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +818 -42
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/DataBrew.d.ts +37 -0
- package/dist-types/DataBrewClient.d.ts +15 -2
- package/dist-types/commands/BatchDeleteRecipeVersionCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetCommand.d.ts +1 -1
- package/dist-types/commands/CreateProfileJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateProjectCommand.d.ts +1 -1
- package/dist-types/commands/CreateRecipeCommand.d.ts +1 -1
- package/dist-types/commands/CreateRecipeJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateRulesetCommand.d.ts +36 -0
- package/dist-types/commands/CreateScheduleCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteProjectCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRecipeVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRulesetCommand.d.ts +35 -0
- package/dist-types/commands/DeleteScheduleCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobRunCommand.d.ts +1 -1
- package/dist-types/commands/DescribeProjectCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRecipeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRulesetCommand.d.ts +35 -0
- package/dist-types/commands/DescribeScheduleCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
- package/dist-types/commands/ListJobRunsCommand.d.ts +1 -1
- package/dist-types/commands/ListJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListProjectsCommand.d.ts +1 -1
- package/dist-types/commands/ListRecipeVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListRecipesCommand.d.ts +1 -1
- package/dist-types/commands/ListRulesetsCommand.d.ts +36 -0
- package/dist-types/commands/ListSchedulesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PublishRecipeCommand.d.ts +1 -1
- package/dist-types/commands/SendProjectSessionActionCommand.d.ts +1 -1
- package/dist-types/commands/StartJobRunCommand.d.ts +1 -1
- package/dist-types/commands/StartProjectSessionCommand.d.ts +1 -1
- package/dist-types/commands/StopJobRunCommand.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/UpdateDatasetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProfileJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProjectCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRecipeCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRecipeJobCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRulesetCommand.d.ts +35 -0
- package/dist-types/commands/UpdateScheduleCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +577 -17
- package/dist-types/pagination/ListRulesetsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/DataBrew.d.ts +25 -0
- package/dist-types/ts3.4/DataBrewClient.d.ts +11 -2
- package/dist-types/ts3.4/commands/CreateRulesetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRulesetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRulesetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRulesetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRulesetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +267 -1
- package/dist-types/ts3.4/pagination/ListRulesetsPaginator.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 +15 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
export var AccessDeniedException;
|
|
3
4
|
(function (AccessDeniedException) {
|
|
4
5
|
AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
6
|
})(AccessDeniedException || (AccessDeniedException = {}));
|
|
7
|
+
export var AllowedStatistics;
|
|
8
|
+
(function (AllowedStatistics) {
|
|
9
|
+
AllowedStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
|
+
})(AllowedStatistics || (AllowedStatistics = {}));
|
|
11
|
+
export var AnalyticsMode;
|
|
12
|
+
(function (AnalyticsMode) {
|
|
13
|
+
AnalyticsMode["DISABLE"] = "DISABLE";
|
|
14
|
+
AnalyticsMode["ENABLE"] = "ENABLE";
|
|
15
|
+
})(AnalyticsMode || (AnalyticsMode = {}));
|
|
6
16
|
export var BatchDeleteRecipeVersionRequest;
|
|
7
17
|
(function (BatchDeleteRecipeVersionRequest) {
|
|
8
18
|
BatchDeleteRecipeVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -62,6 +72,10 @@ export var DataCatalogInputDefinition;
|
|
|
62
72
|
(function (DataCatalogInputDefinition) {
|
|
63
73
|
DataCatalogInputDefinition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
74
|
})(DataCatalogInputDefinition || (DataCatalogInputDefinition = {}));
|
|
75
|
+
export var Metadata;
|
|
76
|
+
(function (Metadata) {
|
|
77
|
+
Metadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
|
+
})(Metadata || (Metadata = {}));
|
|
65
79
|
export var Input;
|
|
66
80
|
(function (Input) {
|
|
67
81
|
Input.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -129,6 +143,10 @@ export var ColumnStatisticsConfiguration;
|
|
|
129
143
|
(function (ColumnStatisticsConfiguration) {
|
|
130
144
|
ColumnStatisticsConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
131
145
|
})(ColumnStatisticsConfiguration || (ColumnStatisticsConfiguration = {}));
|
|
146
|
+
export var EntityDetectorConfiguration;
|
|
147
|
+
(function (EntityDetectorConfiguration) {
|
|
148
|
+
EntityDetectorConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
|
+
})(EntityDetectorConfiguration || (EntityDetectorConfiguration = {}));
|
|
132
150
|
export var ProfileConfiguration;
|
|
133
151
|
(function (ProfileConfiguration) {
|
|
134
152
|
ProfileConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -152,6 +170,14 @@ export var LogSubscription;
|
|
|
152
170
|
LogSubscription["DISABLE"] = "DISABLE";
|
|
153
171
|
LogSubscription["ENABLE"] = "ENABLE";
|
|
154
172
|
})(LogSubscription || (LogSubscription = {}));
|
|
173
|
+
export var ValidationMode;
|
|
174
|
+
(function (ValidationMode) {
|
|
175
|
+
ValidationMode["CHECK_ALL"] = "CHECK_ALL";
|
|
176
|
+
})(ValidationMode || (ValidationMode = {}));
|
|
177
|
+
export var ValidationConfiguration;
|
|
178
|
+
(function (ValidationConfiguration) {
|
|
179
|
+
ValidationConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
180
|
+
})(ValidationConfiguration || (ValidationConfiguration = {}));
|
|
155
181
|
export var CreateProfileJobRequest;
|
|
156
182
|
(function (CreateProfileJobRequest) {
|
|
157
183
|
CreateProfileJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -269,6 +295,34 @@ export var CreateRecipeJobResponse;
|
|
|
269
295
|
(function (CreateRecipeJobResponse) {
|
|
270
296
|
CreateRecipeJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
271
297
|
})(CreateRecipeJobResponse || (CreateRecipeJobResponse = {}));
|
|
298
|
+
export var ThresholdType;
|
|
299
|
+
(function (ThresholdType) {
|
|
300
|
+
ThresholdType["GREATER_THAN"] = "GREATER_THAN";
|
|
301
|
+
ThresholdType["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
|
|
302
|
+
ThresholdType["LESS_THAN"] = "LESS_THAN";
|
|
303
|
+
ThresholdType["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
|
|
304
|
+
})(ThresholdType || (ThresholdType = {}));
|
|
305
|
+
export var ThresholdUnit;
|
|
306
|
+
(function (ThresholdUnit) {
|
|
307
|
+
ThresholdUnit["COUNT"] = "COUNT";
|
|
308
|
+
ThresholdUnit["PERCENTAGE"] = "PERCENTAGE";
|
|
309
|
+
})(ThresholdUnit || (ThresholdUnit = {}));
|
|
310
|
+
export var Threshold;
|
|
311
|
+
(function (Threshold) {
|
|
312
|
+
Threshold.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
313
|
+
})(Threshold || (Threshold = {}));
|
|
314
|
+
export var Rule;
|
|
315
|
+
(function (Rule) {
|
|
316
|
+
Rule.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
317
|
+
})(Rule || (Rule = {}));
|
|
318
|
+
export var CreateRulesetRequest;
|
|
319
|
+
(function (CreateRulesetRequest) {
|
|
320
|
+
CreateRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
|
+
})(CreateRulesetRequest || (CreateRulesetRequest = {}));
|
|
322
|
+
export var CreateRulesetResponse;
|
|
323
|
+
(function (CreateRulesetResponse) {
|
|
324
|
+
CreateRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
325
|
+
})(CreateRulesetResponse || (CreateRulesetResponse = {}));
|
|
272
326
|
export var CreateScheduleRequest;
|
|
273
327
|
(function (CreateScheduleRequest) {
|
|
274
328
|
CreateScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -309,6 +363,14 @@ export var DeleteRecipeVersionResponse;
|
|
|
309
363
|
(function (DeleteRecipeVersionResponse) {
|
|
310
364
|
DeleteRecipeVersionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
311
365
|
})(DeleteRecipeVersionResponse || (DeleteRecipeVersionResponse = {}));
|
|
366
|
+
export var DeleteRulesetRequest;
|
|
367
|
+
(function (DeleteRulesetRequest) {
|
|
368
|
+
DeleteRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
369
|
+
})(DeleteRulesetRequest || (DeleteRulesetRequest = {}));
|
|
370
|
+
export var DeleteRulesetResponse;
|
|
371
|
+
(function (DeleteRulesetResponse) {
|
|
372
|
+
DeleteRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
373
|
+
})(DeleteRulesetResponse || (DeleteRulesetResponse = {}));
|
|
312
374
|
export var DeleteScheduleRequest;
|
|
313
375
|
(function (DeleteScheduleRequest) {
|
|
314
376
|
DeleteScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -391,6 +453,14 @@ export var DescribeRecipeResponse;
|
|
|
391
453
|
(function (DescribeRecipeResponse) {
|
|
392
454
|
DescribeRecipeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
393
455
|
})(DescribeRecipeResponse || (DescribeRecipeResponse = {}));
|
|
456
|
+
export var DescribeRulesetRequest;
|
|
457
|
+
(function (DescribeRulesetRequest) {
|
|
458
|
+
DescribeRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
459
|
+
})(DescribeRulesetRequest || (DescribeRulesetRequest = {}));
|
|
460
|
+
export var DescribeRulesetResponse;
|
|
461
|
+
(function (DescribeRulesetResponse) {
|
|
462
|
+
DescribeRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
463
|
+
})(DescribeRulesetResponse || (DescribeRulesetResponse = {}));
|
|
394
464
|
export var DescribeScheduleRequest;
|
|
395
465
|
(function (DescribeScheduleRequest) {
|
|
396
466
|
DescribeScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -467,6 +537,18 @@ export var ListRecipeVersionsResponse;
|
|
|
467
537
|
(function (ListRecipeVersionsResponse) {
|
|
468
538
|
ListRecipeVersionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
469
539
|
})(ListRecipeVersionsResponse || (ListRecipeVersionsResponse = {}));
|
|
540
|
+
export var ListRulesetsRequest;
|
|
541
|
+
(function (ListRulesetsRequest) {
|
|
542
|
+
ListRulesetsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
543
|
+
})(ListRulesetsRequest || (ListRulesetsRequest = {}));
|
|
544
|
+
export var RulesetItem;
|
|
545
|
+
(function (RulesetItem) {
|
|
546
|
+
RulesetItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
547
|
+
})(RulesetItem || (RulesetItem = {}));
|
|
548
|
+
export var ListRulesetsResponse;
|
|
549
|
+
(function (ListRulesetsResponse) {
|
|
550
|
+
ListRulesetsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
551
|
+
})(ListRulesetsResponse || (ListRulesetsResponse = {}));
|
|
470
552
|
export var ListSchedulesRequest;
|
|
471
553
|
(function (ListSchedulesRequest) {
|
|
472
554
|
ListSchedulesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -501,7 +583,7 @@ export var ViewFrame;
|
|
|
501
583
|
})(ViewFrame || (ViewFrame = {}));
|
|
502
584
|
export var SendProjectSessionActionRequest;
|
|
503
585
|
(function (SendProjectSessionActionRequest) {
|
|
504
|
-
SendProjectSessionActionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
586
|
+
SendProjectSessionActionRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientSessionId && { ClientSessionId: SENSITIVE_STRING }))); };
|
|
505
587
|
})(SendProjectSessionActionRequest || (SendProjectSessionActionRequest = {}));
|
|
506
588
|
export var SendProjectSessionActionResponse;
|
|
507
589
|
(function (SendProjectSessionActionResponse) {
|
|
@@ -521,7 +603,7 @@ export var StartProjectSessionRequest;
|
|
|
521
603
|
})(StartProjectSessionRequest || (StartProjectSessionRequest = {}));
|
|
522
604
|
export var StartProjectSessionResponse;
|
|
523
605
|
(function (StartProjectSessionResponse) {
|
|
524
|
-
StartProjectSessionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
606
|
+
StartProjectSessionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ClientSessionId && { ClientSessionId: SENSITIVE_STRING }))); };
|
|
525
607
|
})(StartProjectSessionResponse || (StartProjectSessionResponse = {}));
|
|
526
608
|
export var StopJobRunRequest;
|
|
527
609
|
(function (StopJobRunRequest) {
|
|
@@ -587,6 +669,14 @@ export var UpdateRecipeJobResponse;
|
|
|
587
669
|
(function (UpdateRecipeJobResponse) {
|
|
588
670
|
UpdateRecipeJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
589
671
|
})(UpdateRecipeJobResponse || (UpdateRecipeJobResponse = {}));
|
|
672
|
+
export var UpdateRulesetRequest;
|
|
673
|
+
(function (UpdateRulesetRequest) {
|
|
674
|
+
UpdateRulesetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
675
|
+
})(UpdateRulesetRequest || (UpdateRulesetRequest = {}));
|
|
676
|
+
export var UpdateRulesetResponse;
|
|
677
|
+
(function (UpdateRulesetResponse) {
|
|
678
|
+
UpdateRulesetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
679
|
+
})(UpdateRulesetResponse || (UpdateRulesetResponse = {}));
|
|
590
680
|
export var UpdateScheduleRequest;
|
|
591
681
|
(function (UpdateScheduleRequest) {
|
|
592
682
|
UpdateScheduleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListRulesetsCommand, } from "../commands/ListRulesetsCommand";
|
|
3
|
+
import { DataBrew } from "../DataBrew";
|
|
4
|
+
import { DataBrewClient } from "../DataBrewClient";
|
|
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 ListRulesetsCommand(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.listRulesets.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListRulesets(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 paginateListRulesets_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 DataBrew)) 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 DataBrewClient)) 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 DataBrew | DataBrewClient");
|
|
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
|
+
}
|