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