@aws-sdk/client-glue 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +190 -184
- package/dist-es/Glue.js +738 -745
- package/dist-es/GlueClient.js +22 -28
- package/dist-es/commands/BatchCreatePartitionCommand.js +21 -28
- package/dist-es/commands/BatchDeleteConnectionCommand.js +21 -28
- package/dist-es/commands/BatchDeletePartitionCommand.js +21 -28
- package/dist-es/commands/BatchDeleteTableCommand.js +21 -28
- package/dist-es/commands/BatchDeleteTableVersionCommand.js +21 -28
- package/dist-es/commands/BatchGetBlueprintsCommand.js +21 -28
- package/dist-es/commands/BatchGetCrawlersCommand.js +21 -28
- package/dist-es/commands/BatchGetCustomEntityTypesCommand.js +21 -28
- package/dist-es/commands/BatchGetDevEndpointsCommand.js +21 -28
- package/dist-es/commands/BatchGetJobsCommand.js +21 -28
- package/dist-es/commands/BatchGetPartitionCommand.js +21 -28
- package/dist-es/commands/BatchGetTriggersCommand.js +21 -28
- package/dist-es/commands/BatchGetWorkflowsCommand.js +21 -28
- package/dist-es/commands/BatchStopJobRunCommand.js +21 -28
- package/dist-es/commands/BatchUpdatePartitionCommand.js +21 -28
- package/dist-es/commands/CancelMLTaskRunCommand.js +21 -28
- package/dist-es/commands/CancelStatementCommand.js +21 -28
- package/dist-es/commands/CheckSchemaVersionValidityCommand.js +21 -28
- package/dist-es/commands/CreateBlueprintCommand.js +21 -28
- package/dist-es/commands/CreateClassifierCommand.js +21 -28
- package/dist-es/commands/CreateConnectionCommand.js +21 -28
- package/dist-es/commands/CreateCrawlerCommand.js +21 -28
- package/dist-es/commands/CreateCustomEntityTypeCommand.js +21 -28
- package/dist-es/commands/CreateDatabaseCommand.js +21 -28
- package/dist-es/commands/CreateDevEndpointCommand.js +21 -28
- package/dist-es/commands/CreateJobCommand.js +21 -28
- package/dist-es/commands/CreateMLTransformCommand.js +21 -28
- package/dist-es/commands/CreatePartitionCommand.js +21 -28
- package/dist-es/commands/CreatePartitionIndexCommand.js +21 -28
- package/dist-es/commands/CreateRegistryCommand.js +21 -28
- package/dist-es/commands/CreateSchemaCommand.js +21 -28
- package/dist-es/commands/CreateScriptCommand.js +21 -28
- package/dist-es/commands/CreateSecurityConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateSessionCommand.js +21 -28
- package/dist-es/commands/CreateTableCommand.js +21 -28
- package/dist-es/commands/CreateTriggerCommand.js +21 -28
- package/dist-es/commands/CreateUserDefinedFunctionCommand.js +21 -28
- package/dist-es/commands/CreateWorkflowCommand.js +21 -28
- package/dist-es/commands/DeleteBlueprintCommand.js +21 -28
- package/dist-es/commands/DeleteClassifierCommand.js +21 -28
- package/dist-es/commands/DeleteColumnStatisticsForPartitionCommand.js +21 -28
- package/dist-es/commands/DeleteColumnStatisticsForTableCommand.js +21 -28
- package/dist-es/commands/DeleteConnectionCommand.js +21 -28
- package/dist-es/commands/DeleteCrawlerCommand.js +21 -28
- package/dist-es/commands/DeleteCustomEntityTypeCommand.js +21 -28
- package/dist-es/commands/DeleteDatabaseCommand.js +21 -28
- package/dist-es/commands/DeleteDevEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteJobCommand.js +21 -28
- package/dist-es/commands/DeleteMLTransformCommand.js +21 -28
- package/dist-es/commands/DeletePartitionCommand.js +21 -28
- package/dist-es/commands/DeletePartitionIndexCommand.js +21 -28
- package/dist-es/commands/DeleteRegistryCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteSchemaCommand.js +21 -28
- package/dist-es/commands/DeleteSchemaVersionsCommand.js +21 -28
- package/dist-es/commands/DeleteSecurityConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteSessionCommand.js +21 -28
- package/dist-es/commands/DeleteTableCommand.js +21 -28
- package/dist-es/commands/DeleteTableVersionCommand.js +21 -28
- package/dist-es/commands/DeleteTriggerCommand.js +21 -28
- package/dist-es/commands/DeleteUserDefinedFunctionCommand.js +21 -28
- package/dist-es/commands/DeleteWorkflowCommand.js +21 -28
- package/dist-es/commands/GetBlueprintCommand.js +21 -28
- package/dist-es/commands/GetBlueprintRunCommand.js +21 -28
- package/dist-es/commands/GetBlueprintRunsCommand.js +21 -28
- package/dist-es/commands/GetCatalogImportStatusCommand.js +21 -28
- package/dist-es/commands/GetClassifierCommand.js +21 -28
- package/dist-es/commands/GetClassifiersCommand.js +21 -28
- package/dist-es/commands/GetColumnStatisticsForPartitionCommand.js +21 -28
- package/dist-es/commands/GetColumnStatisticsForTableCommand.js +21 -28
- package/dist-es/commands/GetConnectionCommand.js +21 -28
- package/dist-es/commands/GetConnectionsCommand.js +21 -28
- package/dist-es/commands/GetCrawlerCommand.js +21 -28
- package/dist-es/commands/GetCrawlerMetricsCommand.js +21 -28
- package/dist-es/commands/GetCrawlersCommand.js +21 -28
- package/dist-es/commands/GetCustomEntityTypeCommand.js +21 -28
- package/dist-es/commands/GetDataCatalogEncryptionSettingsCommand.js +21 -28
- package/dist-es/commands/GetDatabaseCommand.js +21 -28
- package/dist-es/commands/GetDatabasesCommand.js +21 -28
- package/dist-es/commands/GetDataflowGraphCommand.js +21 -28
- package/dist-es/commands/GetDevEndpointCommand.js +21 -28
- package/dist-es/commands/GetDevEndpointsCommand.js +21 -28
- package/dist-es/commands/GetJobBookmarkCommand.js +21 -28
- package/dist-es/commands/GetJobCommand.js +21 -28
- package/dist-es/commands/GetJobRunCommand.js +21 -28
- package/dist-es/commands/GetJobRunsCommand.js +21 -28
- package/dist-es/commands/GetJobsCommand.js +21 -28
- package/dist-es/commands/GetMLTaskRunCommand.js +21 -28
- package/dist-es/commands/GetMLTaskRunsCommand.js +21 -28
- package/dist-es/commands/GetMLTransformCommand.js +21 -28
- package/dist-es/commands/GetMLTransformsCommand.js +21 -28
- package/dist-es/commands/GetMappingCommand.js +21 -28
- package/dist-es/commands/GetPartitionCommand.js +21 -28
- package/dist-es/commands/GetPartitionIndexesCommand.js +21 -28
- package/dist-es/commands/GetPartitionsCommand.js +21 -28
- package/dist-es/commands/GetPlanCommand.js +21 -28
- package/dist-es/commands/GetRegistryCommand.js +21 -28
- package/dist-es/commands/GetResourcePoliciesCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/GetSchemaByDefinitionCommand.js +21 -28
- package/dist-es/commands/GetSchemaCommand.js +21 -28
- package/dist-es/commands/GetSchemaVersionCommand.js +21 -28
- package/dist-es/commands/GetSchemaVersionsDiffCommand.js +21 -28
- package/dist-es/commands/GetSecurityConfigurationCommand.js +21 -28
- package/dist-es/commands/GetSecurityConfigurationsCommand.js +21 -28
- package/dist-es/commands/GetSessionCommand.js +21 -28
- package/dist-es/commands/GetStatementCommand.js +21 -28
- package/dist-es/commands/GetTableCommand.js +21 -28
- package/dist-es/commands/GetTableVersionCommand.js +21 -28
- package/dist-es/commands/GetTableVersionsCommand.js +21 -28
- package/dist-es/commands/GetTablesCommand.js +21 -28
- package/dist-es/commands/GetTagsCommand.js +21 -28
- package/dist-es/commands/GetTriggerCommand.js +21 -28
- package/dist-es/commands/GetTriggersCommand.js +21 -28
- package/dist-es/commands/GetUnfilteredPartitionMetadataCommand.js +21 -28
- package/dist-es/commands/GetUnfilteredPartitionsMetadataCommand.js +21 -28
- package/dist-es/commands/GetUnfilteredTableMetadataCommand.js +21 -28
- package/dist-es/commands/GetUserDefinedFunctionCommand.js +21 -28
- package/dist-es/commands/GetUserDefinedFunctionsCommand.js +21 -28
- package/dist-es/commands/GetWorkflowCommand.js +21 -28
- package/dist-es/commands/GetWorkflowRunCommand.js +21 -28
- package/dist-es/commands/GetWorkflowRunPropertiesCommand.js +21 -28
- package/dist-es/commands/GetWorkflowRunsCommand.js +21 -28
- package/dist-es/commands/ImportCatalogToGlueCommand.js +21 -28
- package/dist-es/commands/ListBlueprintsCommand.js +21 -28
- package/dist-es/commands/ListCrawlersCommand.js +21 -28
- package/dist-es/commands/ListCrawlsCommand.js +21 -28
- package/dist-es/commands/ListCustomEntityTypesCommand.js +21 -28
- package/dist-es/commands/ListDevEndpointsCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListMLTransformsCommand.js +21 -28
- package/dist-es/commands/ListRegistriesCommand.js +21 -28
- package/dist-es/commands/ListSchemaVersionsCommand.js +21 -28
- package/dist-es/commands/ListSchemasCommand.js +21 -28
- package/dist-es/commands/ListSessionsCommand.js +21 -28
- package/dist-es/commands/ListStatementsCommand.js +21 -28
- package/dist-es/commands/ListTriggersCommand.js +21 -28
- package/dist-es/commands/ListWorkflowsCommand.js +21 -28
- package/dist-es/commands/PutDataCatalogEncryptionSettingsCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/PutSchemaVersionMetadataCommand.js +21 -28
- package/dist-es/commands/PutWorkflowRunPropertiesCommand.js +21 -28
- package/dist-es/commands/QuerySchemaVersionMetadataCommand.js +21 -28
- package/dist-es/commands/RegisterSchemaVersionCommand.js +21 -28
- package/dist-es/commands/RemoveSchemaVersionMetadataCommand.js +21 -28
- package/dist-es/commands/ResetJobBookmarkCommand.js +21 -28
- package/dist-es/commands/ResumeWorkflowRunCommand.js +21 -28
- package/dist-es/commands/RunStatementCommand.js +21 -28
- package/dist-es/commands/SearchTablesCommand.js +21 -28
- package/dist-es/commands/StartBlueprintRunCommand.js +21 -28
- package/dist-es/commands/StartCrawlerCommand.js +21 -28
- package/dist-es/commands/StartCrawlerScheduleCommand.js +21 -28
- package/dist-es/commands/StartExportLabelsTaskRunCommand.js +21 -28
- package/dist-es/commands/StartImportLabelsTaskRunCommand.js +21 -28
- package/dist-es/commands/StartJobRunCommand.js +21 -28
- package/dist-es/commands/StartMLEvaluationTaskRunCommand.js +21 -28
- package/dist-es/commands/StartMLLabelingSetGenerationTaskRunCommand.js +21 -28
- package/dist-es/commands/StartTriggerCommand.js +21 -28
- package/dist-es/commands/StartWorkflowRunCommand.js +21 -28
- package/dist-es/commands/StopCrawlerCommand.js +21 -28
- package/dist-es/commands/StopCrawlerScheduleCommand.js +21 -28
- package/dist-es/commands/StopSessionCommand.js +21 -28
- package/dist-es/commands/StopTriggerCommand.js +21 -28
- package/dist-es/commands/StopWorkflowRunCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateBlueprintCommand.js +21 -28
- package/dist-es/commands/UpdateClassifierCommand.js +21 -28
- package/dist-es/commands/UpdateColumnStatisticsForPartitionCommand.js +21 -28
- package/dist-es/commands/UpdateColumnStatisticsForTableCommand.js +21 -28
- package/dist-es/commands/UpdateConnectionCommand.js +21 -28
- package/dist-es/commands/UpdateCrawlerCommand.js +21 -28
- package/dist-es/commands/UpdateCrawlerScheduleCommand.js +21 -28
- package/dist-es/commands/UpdateDatabaseCommand.js +21 -28
- package/dist-es/commands/UpdateDevEndpointCommand.js +21 -28
- package/dist-es/commands/UpdateJobCommand.js +21 -28
- package/dist-es/commands/UpdateMLTransformCommand.js +21 -28
- package/dist-es/commands/UpdatePartitionCommand.js +21 -28
- package/dist-es/commands/UpdateRegistryCommand.js +21 -28
- package/dist-es/commands/UpdateSchemaCommand.js +21 -28
- package/dist-es/commands/UpdateTableCommand.js +21 -28
- package/dist-es/commands/UpdateTriggerCommand.js +21 -28
- package/dist-es/commands/UpdateUserDefinedFunctionCommand.js +21 -28
- package/dist-es/commands/UpdateWorkflowCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GlueServiceException.js +5 -10
- package/dist-es/models/models_0.js +870 -403
- package/dist-es/models/models_1.js +885 -336
- package/dist-es/models/models_2.js +430 -222
- package/dist-es/pagination/GetBlueprintRunsPaginator.js +25 -68
- package/dist-es/pagination/GetClassifiersPaginator.js +25 -68
- package/dist-es/pagination/GetConnectionsPaginator.js +25 -68
- package/dist-es/pagination/GetCrawlerMetricsPaginator.js +25 -68
- package/dist-es/pagination/GetCrawlersPaginator.js +25 -68
- package/dist-es/pagination/GetDatabasesPaginator.js +25 -68
- package/dist-es/pagination/GetDevEndpointsPaginator.js +25 -68
- package/dist-es/pagination/GetJobRunsPaginator.js +25 -68
- package/dist-es/pagination/GetJobsPaginator.js +25 -68
- package/dist-es/pagination/GetMLTaskRunsPaginator.js +25 -68
- package/dist-es/pagination/GetMLTransformsPaginator.js +25 -68
- package/dist-es/pagination/GetPartitionIndexesPaginator.js +24 -67
- package/dist-es/pagination/GetPartitionsPaginator.js +25 -68
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +25 -68
- package/dist-es/pagination/GetSecurityConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/GetTableVersionsPaginator.js +25 -68
- package/dist-es/pagination/GetTablesPaginator.js +25 -68
- package/dist-es/pagination/GetTriggersPaginator.js +25 -68
- package/dist-es/pagination/GetUnfilteredPartitionsMetadataPaginator.js +25 -68
- package/dist-es/pagination/GetUserDefinedFunctionsPaginator.js +25 -68
- package/dist-es/pagination/GetWorkflowRunsPaginator.js +25 -68
- package/dist-es/pagination/ListBlueprintsPaginator.js +25 -68
- package/dist-es/pagination/ListCrawlersPaginator.js +25 -68
- package/dist-es/pagination/ListCustomEntityTypesPaginator.js +25 -68
- package/dist-es/pagination/ListDevEndpointsPaginator.js +25 -68
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListMLTransformsPaginator.js +25 -68
- package/dist-es/pagination/ListRegistriesPaginator.js +25 -68
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListSchemasPaginator.js +25 -68
- package/dist-es/pagination/ListSessionsPaginator.js +25 -68
- package/dist-es/pagination/ListTriggersPaginator.js +25 -68
- package/dist-es/pagination/ListWorkflowsPaginator.js +25 -68
- package/dist-es/pagination/SearchTablesPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +14173 -16776
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { GetBlueprintRunsCommand, } from "../commands/GetBlueprintRunsCommand";
|
|
3
2
|
import { Glue } from "../Glue";
|
|
4
3
|
import { GlueClient } from "../GlueClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 GetBlueprintRunsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetBlueprintRunsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.getBlueprintRuns.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getBlueprintRuns(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateGetBlueprintRuns(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateGetBlueprintRuns(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Glue) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof GlueClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Glue | GlueClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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 Glue)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof GlueClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Glue | GlueClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { GetClassifiersCommand, } from "../commands/GetClassifiersCommand";
|
|
3
2
|
import { Glue } from "../Glue";
|
|
4
3
|
import { GlueClient } from "../GlueClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 GetClassifiersCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetClassifiersCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.getClassifiers.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getClassifiers(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateGetClassifiers(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateGetClassifiers(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Glue) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof GlueClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Glue | GlueClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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 Glue)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof GlueClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Glue | GlueClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { GetConnectionsCommand, } from "../commands/GetConnectionsCommand";
|
|
3
2
|
import { Glue } from "../Glue";
|
|
4
3
|
import { GlueClient } from "../GlueClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 GetConnectionsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetConnectionsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.getConnections.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getConnections(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateGetConnections(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateGetConnections(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Glue) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof GlueClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Glue | GlueClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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 Glue)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof GlueClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Glue | GlueClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { GetCrawlerMetricsCommand, } from "../commands/GetCrawlerMetricsCommand";
|
|
3
2
|
import { Glue } from "../Glue";
|
|
4
3
|
import { GlueClient } from "../GlueClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 GetCrawlerMetricsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetCrawlerMetricsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.getCrawlerMetrics.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getCrawlerMetrics(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateGetCrawlerMetrics(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateGetCrawlerMetrics(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Glue) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof GlueClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Glue | GlueClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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 Glue)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof GlueClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Glue | GlueClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { GetCrawlersCommand } from "../commands/GetCrawlersCommand";
|
|
3
2
|
import { Glue } from "../Glue";
|
|
4
3
|
import { GlueClient } from "../GlueClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 GetCrawlersCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetCrawlersCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.getCrawlers.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getCrawlers(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateGetCrawlers(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateGetCrawlers(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Glue) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof GlueClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Glue | GlueClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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 Glue)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof GlueClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Glue | GlueClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { GetDatabasesCommand, } from "../commands/GetDatabasesCommand";
|
|
3
2
|
import { Glue } from "../Glue";
|
|
4
3
|
import { GlueClient } from "../GlueClient";
|
|
5
|
-
|
|
6
|
-
|
|
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 GetDatabasesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new GetDatabasesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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.getDatabases.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.getDatabases(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateGetDatabases(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateGetDatabases(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Glue) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof GlueClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Glue | GlueClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
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 Glue)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof GlueClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Glue | GlueClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.NextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|