@aws-sdk/client-emr-serverless 3.100.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +226 -0
- package/dist-cjs/EMRServerless.js +217 -0
- package/dist-cjs/EMRServerlessClient.js +35 -0
- package/dist-cjs/commands/CancelJobRunCommand.js +36 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
- package/dist-cjs/commands/GetApplicationCommand.js +36 -0
- package/dist-cjs/commands/GetJobRunCommand.js +36 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +36 -0
- package/dist-cjs/commands/ListJobRunsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/StartApplicationCommand.js +36 -0
- package/dist-cjs/commands/StartJobRunCommand.js +36 -0
- package/dist-cjs/commands/StopApplicationCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +150 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/EMRServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +408 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListJobRunsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1724 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/EMRServerless.js +220 -0
- package/dist-es/EMRServerlessClient.js +37 -0
- package/dist-es/commands/CancelJobRunCommand.js +39 -0
- package/dist-es/commands/CreateApplicationCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationCommand.js +39 -0
- package/dist-es/commands/GetApplicationCommand.js +39 -0
- package/dist-es/commands/GetJobRunCommand.js +39 -0
- package/dist-es/commands/ListApplicationsCommand.js +39 -0
- package/dist-es/commands/ListJobRunsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/StartApplicationCommand.js +39 -0
- package/dist-es/commands/StartJobRunCommand.js +39 -0
- package/dist-es/commands/StopApplicationCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateApplicationCommand.js +39 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +146 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/EMRServerlessServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +295 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +75 -0
- package/dist-es/pagination/ListJobRunsPaginator.js +75 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1994 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/EMRServerless.d.ts +133 -0
- package/dist-types/EMRServerlessClient.d.ts +179 -0
- package/dist-types/commands/CancelJobRunCommand.d.ts +35 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +36 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +35 -0
- package/dist-types/commands/GetJobRunCommand.d.ts +35 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +35 -0
- package/dist-types/commands/ListJobRunsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/StartApplicationCommand.d.ts +35 -0
- package/dist-types/commands/StartJobRunCommand.d.ts +35 -0
- package/dist-types/commands/StopApplicationCommand.d.ts +36 -0
- package/dist-types/commands/TagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/EMRServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1172 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListJobRunsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/EMRServerless.d.ts +75 -0
- package/dist-types/ts3.4/EMRServerlessClient.d.ts +87 -0
- package/dist-types/ts3.4/commands/CancelJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListJobRunsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartJobRunCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/EMRServerlessServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +700 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListJobRunsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +95 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultRegionInfoProvider = void 0;
|
|
4
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
+
const regionHash = {
|
|
6
|
+
"us-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "emr-serverless-fips.us-east-1.amazonaws.com",
|
|
10
|
+
tags: ["fips"],
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
"us-west-2": {
|
|
15
|
+
variants: [
|
|
16
|
+
{
|
|
17
|
+
hostname: "emr-serverless-fips.us-west-2.amazonaws.com",
|
|
18
|
+
tags: ["fips"],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
const partitionHash = {
|
|
24
|
+
aws: {
|
|
25
|
+
regions: [
|
|
26
|
+
"af-south-1",
|
|
27
|
+
"ap-east-1",
|
|
28
|
+
"ap-northeast-1",
|
|
29
|
+
"ap-northeast-2",
|
|
30
|
+
"ap-northeast-3",
|
|
31
|
+
"ap-south-1",
|
|
32
|
+
"ap-southeast-1",
|
|
33
|
+
"ap-southeast-2",
|
|
34
|
+
"ap-southeast-3",
|
|
35
|
+
"ca-central-1",
|
|
36
|
+
"eu-central-1",
|
|
37
|
+
"eu-north-1",
|
|
38
|
+
"eu-south-1",
|
|
39
|
+
"eu-west-1",
|
|
40
|
+
"eu-west-2",
|
|
41
|
+
"eu-west-3",
|
|
42
|
+
"fips-us-east-1",
|
|
43
|
+
"fips-us-west-2",
|
|
44
|
+
"me-south-1",
|
|
45
|
+
"sa-east-1",
|
|
46
|
+
"us-east-1",
|
|
47
|
+
"us-east-2",
|
|
48
|
+
"us-west-1",
|
|
49
|
+
"us-west-2",
|
|
50
|
+
],
|
|
51
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
hostname: "emr-serverless.{region}.amazonaws.com",
|
|
55
|
+
tags: [],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
hostname: "emr-serverless-fips.{region}.amazonaws.com",
|
|
59
|
+
tags: ["fips"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
hostname: "emr-serverless-fips.{region}.api.aws",
|
|
63
|
+
tags: ["dualstack", "fips"],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
hostname: "emr-serverless.{region}.api.aws",
|
|
67
|
+
tags: ["dualstack"],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
"aws-cn": {
|
|
72
|
+
regions: ["cn-north-1", "cn-northwest-1"],
|
|
73
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
74
|
+
variants: [
|
|
75
|
+
{
|
|
76
|
+
hostname: "emr-serverless.{region}.amazonaws.com.cn",
|
|
77
|
+
tags: [],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
hostname: "emr-serverless-fips.{region}.amazonaws.com.cn",
|
|
81
|
+
tags: ["fips"],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
hostname: "emr-serverless-fips.{region}.api.amazonwebservices.com.cn",
|
|
85
|
+
tags: ["dualstack", "fips"],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
hostname: "emr-serverless.{region}.api.amazonwebservices.com.cn",
|
|
89
|
+
tags: ["dualstack"],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
"aws-iso": {
|
|
94
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
95
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
96
|
+
variants: [
|
|
97
|
+
{
|
|
98
|
+
hostname: "emr-serverless.{region}.c2s.ic.gov",
|
|
99
|
+
tags: [],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
hostname: "emr-serverless-fips.{region}.c2s.ic.gov",
|
|
103
|
+
tags: ["fips"],
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
"aws-iso-b": {
|
|
108
|
+
regions: ["us-isob-east-1"],
|
|
109
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
110
|
+
variants: [
|
|
111
|
+
{
|
|
112
|
+
hostname: "emr-serverless.{region}.sc2s.sgov.gov",
|
|
113
|
+
tags: [],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "emr-serverless-fips.{region}.sc2s.sgov.gov",
|
|
117
|
+
tags: ["fips"],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
"aws-us-gov": {
|
|
122
|
+
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
123
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
124
|
+
variants: [
|
|
125
|
+
{
|
|
126
|
+
hostname: "emr-serverless.{region}.amazonaws.com",
|
|
127
|
+
tags: [],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
hostname: "emr-serverless-fips.{region}.amazonaws.com",
|
|
131
|
+
tags: ["fips"],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
hostname: "emr-serverless-fips.{region}.api.aws",
|
|
135
|
+
tags: ["dualstack", "fips"],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
hostname: "emr-serverless.{region}.api.aws",
|
|
139
|
+
tags: ["dualstack"],
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
145
|
+
...options,
|
|
146
|
+
signingService: "emr-serverless",
|
|
147
|
+
regionHash,
|
|
148
|
+
partitionHash,
|
|
149
|
+
});
|
|
150
|
+
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMRServerlessServiceException = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./EMRServerless"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./EMRServerlessClient"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var EMRServerlessServiceException_1 = require("./models/EMRServerlessServiceException");
|
|
11
|
+
Object.defineProperty(exports, "EMRServerlessServiceException", { enumerable: true, get: function () { return EMRServerlessServiceException_1.EMRServerlessServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EMRServerlessServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class EMRServerlessServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, EMRServerlessServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EMRServerlessServiceException = EMRServerlessServiceException;
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Configuration = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.StartJobRunResponse = exports.ListJobRunsResponse = exports.JobRunSummary = exports.ListJobRunsRequest = exports.TotalResourceUtilization = exports.JobRunState = exports.JobDriver = exports.SparkSubmit = exports.Hive = exports.MonitoringConfiguration = exports.S3MonitoringConfiguration = exports.ManagedPersistenceMonitoringConfiguration = exports.GetJobRunRequest = exports.CancelJobRunResponse = exports.CancelJobRunRequest = exports.UpdateApplicationResponse = exports.UpdateApplicationRequest = exports.StopApplicationResponse = exports.StopApplicationRequest = exports.StartApplicationResponse = exports.StartApplicationRequest = exports.ServiceQuotaExceededException = exports.ListApplicationsResponse = exports.ListApplicationsRequest = exports.GetApplicationResponse = exports.GetApplicationRequest = exports.ResourceNotFoundException = exports.DeleteApplicationResponse = exports.DeleteApplicationRequest = exports.ValidationException = exports.InternalServerException = exports.CreateApplicationResponse = exports.CreateApplicationRequest = exports.ConflictException = exports.ApplicationSummary = exports.Application = exports.ApplicationState = exports.NetworkConfiguration = exports.MaximumAllowedResources = exports.InitialCapacityConfig = exports.WorkerResourceConfig = exports.AutoStopConfig = exports.AutoStartConfig = void 0;
|
|
4
|
+
exports.GetJobRunResponse = exports.StartJobRunRequest = exports.JobRun = exports.ConfigurationOverrides = void 0;
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const EMRServerlessServiceException_1 = require("./EMRServerlessServiceException");
|
|
7
|
+
var AutoStartConfig;
|
|
8
|
+
(function (AutoStartConfig) {
|
|
9
|
+
AutoStartConfig.filterSensitiveLog = (obj) => ({
|
|
10
|
+
...obj,
|
|
11
|
+
});
|
|
12
|
+
})(AutoStartConfig = exports.AutoStartConfig || (exports.AutoStartConfig = {}));
|
|
13
|
+
var AutoStopConfig;
|
|
14
|
+
(function (AutoStopConfig) {
|
|
15
|
+
AutoStopConfig.filterSensitiveLog = (obj) => ({
|
|
16
|
+
...obj,
|
|
17
|
+
});
|
|
18
|
+
})(AutoStopConfig = exports.AutoStopConfig || (exports.AutoStopConfig = {}));
|
|
19
|
+
var WorkerResourceConfig;
|
|
20
|
+
(function (WorkerResourceConfig) {
|
|
21
|
+
WorkerResourceConfig.filterSensitiveLog = (obj) => ({
|
|
22
|
+
...obj,
|
|
23
|
+
});
|
|
24
|
+
})(WorkerResourceConfig = exports.WorkerResourceConfig || (exports.WorkerResourceConfig = {}));
|
|
25
|
+
var InitialCapacityConfig;
|
|
26
|
+
(function (InitialCapacityConfig) {
|
|
27
|
+
InitialCapacityConfig.filterSensitiveLog = (obj) => ({
|
|
28
|
+
...obj,
|
|
29
|
+
});
|
|
30
|
+
})(InitialCapacityConfig = exports.InitialCapacityConfig || (exports.InitialCapacityConfig = {}));
|
|
31
|
+
var MaximumAllowedResources;
|
|
32
|
+
(function (MaximumAllowedResources) {
|
|
33
|
+
MaximumAllowedResources.filterSensitiveLog = (obj) => ({
|
|
34
|
+
...obj,
|
|
35
|
+
});
|
|
36
|
+
})(MaximumAllowedResources = exports.MaximumAllowedResources || (exports.MaximumAllowedResources = {}));
|
|
37
|
+
var NetworkConfiguration;
|
|
38
|
+
(function (NetworkConfiguration) {
|
|
39
|
+
NetworkConfiguration.filterSensitiveLog = (obj) => ({
|
|
40
|
+
...obj,
|
|
41
|
+
});
|
|
42
|
+
})(NetworkConfiguration = exports.NetworkConfiguration || (exports.NetworkConfiguration = {}));
|
|
43
|
+
var ApplicationState;
|
|
44
|
+
(function (ApplicationState) {
|
|
45
|
+
ApplicationState["CREATED"] = "CREATED";
|
|
46
|
+
ApplicationState["CREATING"] = "CREATING";
|
|
47
|
+
ApplicationState["STARTED"] = "STARTED";
|
|
48
|
+
ApplicationState["STARTING"] = "STARTING";
|
|
49
|
+
ApplicationState["STOPPED"] = "STOPPED";
|
|
50
|
+
ApplicationState["STOPPING"] = "STOPPING";
|
|
51
|
+
ApplicationState["TERMINATED"] = "TERMINATED";
|
|
52
|
+
})(ApplicationState = exports.ApplicationState || (exports.ApplicationState = {}));
|
|
53
|
+
var Application;
|
|
54
|
+
(function (Application) {
|
|
55
|
+
Application.filterSensitiveLog = (obj) => ({
|
|
56
|
+
...obj,
|
|
57
|
+
});
|
|
58
|
+
})(Application = exports.Application || (exports.Application = {}));
|
|
59
|
+
var ApplicationSummary;
|
|
60
|
+
(function (ApplicationSummary) {
|
|
61
|
+
ApplicationSummary.filterSensitiveLog = (obj) => ({
|
|
62
|
+
...obj,
|
|
63
|
+
});
|
|
64
|
+
})(ApplicationSummary = exports.ApplicationSummary || (exports.ApplicationSummary = {}));
|
|
65
|
+
class ConflictException extends EMRServerlessServiceException_1.EMRServerlessServiceException {
|
|
66
|
+
constructor(opts) {
|
|
67
|
+
super({
|
|
68
|
+
name: "ConflictException",
|
|
69
|
+
$fault: "client",
|
|
70
|
+
...opts,
|
|
71
|
+
});
|
|
72
|
+
this.name = "ConflictException";
|
|
73
|
+
this.$fault = "client";
|
|
74
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.ConflictException = ConflictException;
|
|
78
|
+
var CreateApplicationRequest;
|
|
79
|
+
(function (CreateApplicationRequest) {
|
|
80
|
+
CreateApplicationRequest.filterSensitiveLog = (obj) => ({
|
|
81
|
+
...obj,
|
|
82
|
+
});
|
|
83
|
+
})(CreateApplicationRequest = exports.CreateApplicationRequest || (exports.CreateApplicationRequest = {}));
|
|
84
|
+
var CreateApplicationResponse;
|
|
85
|
+
(function (CreateApplicationResponse) {
|
|
86
|
+
CreateApplicationResponse.filterSensitiveLog = (obj) => ({
|
|
87
|
+
...obj,
|
|
88
|
+
});
|
|
89
|
+
})(CreateApplicationResponse = exports.CreateApplicationResponse || (exports.CreateApplicationResponse = {}));
|
|
90
|
+
class InternalServerException extends EMRServerlessServiceException_1.EMRServerlessServiceException {
|
|
91
|
+
constructor(opts) {
|
|
92
|
+
super({
|
|
93
|
+
name: "InternalServerException",
|
|
94
|
+
$fault: "server",
|
|
95
|
+
...opts,
|
|
96
|
+
});
|
|
97
|
+
this.name = "InternalServerException";
|
|
98
|
+
this.$fault = "server";
|
|
99
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.InternalServerException = InternalServerException;
|
|
103
|
+
class ValidationException extends EMRServerlessServiceException_1.EMRServerlessServiceException {
|
|
104
|
+
constructor(opts) {
|
|
105
|
+
super({
|
|
106
|
+
name: "ValidationException",
|
|
107
|
+
$fault: "client",
|
|
108
|
+
...opts,
|
|
109
|
+
});
|
|
110
|
+
this.name = "ValidationException";
|
|
111
|
+
this.$fault = "client";
|
|
112
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.ValidationException = ValidationException;
|
|
116
|
+
var DeleteApplicationRequest;
|
|
117
|
+
(function (DeleteApplicationRequest) {
|
|
118
|
+
DeleteApplicationRequest.filterSensitiveLog = (obj) => ({
|
|
119
|
+
...obj,
|
|
120
|
+
});
|
|
121
|
+
})(DeleteApplicationRequest = exports.DeleteApplicationRequest || (exports.DeleteApplicationRequest = {}));
|
|
122
|
+
var DeleteApplicationResponse;
|
|
123
|
+
(function (DeleteApplicationResponse) {
|
|
124
|
+
DeleteApplicationResponse.filterSensitiveLog = (obj) => ({
|
|
125
|
+
...obj,
|
|
126
|
+
});
|
|
127
|
+
})(DeleteApplicationResponse = exports.DeleteApplicationResponse || (exports.DeleteApplicationResponse = {}));
|
|
128
|
+
class ResourceNotFoundException extends EMRServerlessServiceException_1.EMRServerlessServiceException {
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "ResourceNotFoundException",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
this.name = "ResourceNotFoundException";
|
|
136
|
+
this.$fault = "client";
|
|
137
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
141
|
+
var GetApplicationRequest;
|
|
142
|
+
(function (GetApplicationRequest) {
|
|
143
|
+
GetApplicationRequest.filterSensitiveLog = (obj) => ({
|
|
144
|
+
...obj,
|
|
145
|
+
});
|
|
146
|
+
})(GetApplicationRequest = exports.GetApplicationRequest || (exports.GetApplicationRequest = {}));
|
|
147
|
+
var GetApplicationResponse;
|
|
148
|
+
(function (GetApplicationResponse) {
|
|
149
|
+
GetApplicationResponse.filterSensitiveLog = (obj) => ({
|
|
150
|
+
...obj,
|
|
151
|
+
});
|
|
152
|
+
})(GetApplicationResponse = exports.GetApplicationResponse || (exports.GetApplicationResponse = {}));
|
|
153
|
+
var ListApplicationsRequest;
|
|
154
|
+
(function (ListApplicationsRequest) {
|
|
155
|
+
ListApplicationsRequest.filterSensitiveLog = (obj) => ({
|
|
156
|
+
...obj,
|
|
157
|
+
});
|
|
158
|
+
})(ListApplicationsRequest = exports.ListApplicationsRequest || (exports.ListApplicationsRequest = {}));
|
|
159
|
+
var ListApplicationsResponse;
|
|
160
|
+
(function (ListApplicationsResponse) {
|
|
161
|
+
ListApplicationsResponse.filterSensitiveLog = (obj) => ({
|
|
162
|
+
...obj,
|
|
163
|
+
});
|
|
164
|
+
})(ListApplicationsResponse = exports.ListApplicationsResponse || (exports.ListApplicationsResponse = {}));
|
|
165
|
+
class ServiceQuotaExceededException extends EMRServerlessServiceException_1.EMRServerlessServiceException {
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "ServiceQuotaExceededException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
this.name = "ServiceQuotaExceededException";
|
|
173
|
+
this.$fault = "client";
|
|
174
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
178
|
+
var StartApplicationRequest;
|
|
179
|
+
(function (StartApplicationRequest) {
|
|
180
|
+
StartApplicationRequest.filterSensitiveLog = (obj) => ({
|
|
181
|
+
...obj,
|
|
182
|
+
});
|
|
183
|
+
})(StartApplicationRequest = exports.StartApplicationRequest || (exports.StartApplicationRequest = {}));
|
|
184
|
+
var StartApplicationResponse;
|
|
185
|
+
(function (StartApplicationResponse) {
|
|
186
|
+
StartApplicationResponse.filterSensitiveLog = (obj) => ({
|
|
187
|
+
...obj,
|
|
188
|
+
});
|
|
189
|
+
})(StartApplicationResponse = exports.StartApplicationResponse || (exports.StartApplicationResponse = {}));
|
|
190
|
+
var StopApplicationRequest;
|
|
191
|
+
(function (StopApplicationRequest) {
|
|
192
|
+
StopApplicationRequest.filterSensitiveLog = (obj) => ({
|
|
193
|
+
...obj,
|
|
194
|
+
});
|
|
195
|
+
})(StopApplicationRequest = exports.StopApplicationRequest || (exports.StopApplicationRequest = {}));
|
|
196
|
+
var StopApplicationResponse;
|
|
197
|
+
(function (StopApplicationResponse) {
|
|
198
|
+
StopApplicationResponse.filterSensitiveLog = (obj) => ({
|
|
199
|
+
...obj,
|
|
200
|
+
});
|
|
201
|
+
})(StopApplicationResponse = exports.StopApplicationResponse || (exports.StopApplicationResponse = {}));
|
|
202
|
+
var UpdateApplicationRequest;
|
|
203
|
+
(function (UpdateApplicationRequest) {
|
|
204
|
+
UpdateApplicationRequest.filterSensitiveLog = (obj) => ({
|
|
205
|
+
...obj,
|
|
206
|
+
});
|
|
207
|
+
})(UpdateApplicationRequest = exports.UpdateApplicationRequest || (exports.UpdateApplicationRequest = {}));
|
|
208
|
+
var UpdateApplicationResponse;
|
|
209
|
+
(function (UpdateApplicationResponse) {
|
|
210
|
+
UpdateApplicationResponse.filterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
});
|
|
213
|
+
})(UpdateApplicationResponse = exports.UpdateApplicationResponse || (exports.UpdateApplicationResponse = {}));
|
|
214
|
+
var CancelJobRunRequest;
|
|
215
|
+
(function (CancelJobRunRequest) {
|
|
216
|
+
CancelJobRunRequest.filterSensitiveLog = (obj) => ({
|
|
217
|
+
...obj,
|
|
218
|
+
});
|
|
219
|
+
})(CancelJobRunRequest = exports.CancelJobRunRequest || (exports.CancelJobRunRequest = {}));
|
|
220
|
+
var CancelJobRunResponse;
|
|
221
|
+
(function (CancelJobRunResponse) {
|
|
222
|
+
CancelJobRunResponse.filterSensitiveLog = (obj) => ({
|
|
223
|
+
...obj,
|
|
224
|
+
});
|
|
225
|
+
})(CancelJobRunResponse = exports.CancelJobRunResponse || (exports.CancelJobRunResponse = {}));
|
|
226
|
+
var GetJobRunRequest;
|
|
227
|
+
(function (GetJobRunRequest) {
|
|
228
|
+
GetJobRunRequest.filterSensitiveLog = (obj) => ({
|
|
229
|
+
...obj,
|
|
230
|
+
});
|
|
231
|
+
})(GetJobRunRequest = exports.GetJobRunRequest || (exports.GetJobRunRequest = {}));
|
|
232
|
+
var ManagedPersistenceMonitoringConfiguration;
|
|
233
|
+
(function (ManagedPersistenceMonitoringConfiguration) {
|
|
234
|
+
ManagedPersistenceMonitoringConfiguration.filterSensitiveLog = (obj) => ({
|
|
235
|
+
...obj,
|
|
236
|
+
});
|
|
237
|
+
})(ManagedPersistenceMonitoringConfiguration = exports.ManagedPersistenceMonitoringConfiguration || (exports.ManagedPersistenceMonitoringConfiguration = {}));
|
|
238
|
+
var S3MonitoringConfiguration;
|
|
239
|
+
(function (S3MonitoringConfiguration) {
|
|
240
|
+
S3MonitoringConfiguration.filterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
});
|
|
243
|
+
})(S3MonitoringConfiguration = exports.S3MonitoringConfiguration || (exports.S3MonitoringConfiguration = {}));
|
|
244
|
+
var MonitoringConfiguration;
|
|
245
|
+
(function (MonitoringConfiguration) {
|
|
246
|
+
MonitoringConfiguration.filterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
});
|
|
249
|
+
})(MonitoringConfiguration = exports.MonitoringConfiguration || (exports.MonitoringConfiguration = {}));
|
|
250
|
+
var Hive;
|
|
251
|
+
(function (Hive) {
|
|
252
|
+
Hive.filterSensitiveLog = (obj) => ({
|
|
253
|
+
...obj,
|
|
254
|
+
...(obj.query && { query: smithy_client_1.SENSITIVE_STRING }),
|
|
255
|
+
...(obj.initQueryFile && { initQueryFile: smithy_client_1.SENSITIVE_STRING }),
|
|
256
|
+
...(obj.parameters && { parameters: smithy_client_1.SENSITIVE_STRING }),
|
|
257
|
+
});
|
|
258
|
+
})(Hive = exports.Hive || (exports.Hive = {}));
|
|
259
|
+
var SparkSubmit;
|
|
260
|
+
(function (SparkSubmit) {
|
|
261
|
+
SparkSubmit.filterSensitiveLog = (obj) => ({
|
|
262
|
+
...obj,
|
|
263
|
+
...(obj.entryPoint && { entryPoint: smithy_client_1.SENSITIVE_STRING }),
|
|
264
|
+
...(obj.entryPointArguments && { entryPointArguments: smithy_client_1.SENSITIVE_STRING }),
|
|
265
|
+
...(obj.sparkSubmitParameters && { sparkSubmitParameters: smithy_client_1.SENSITIVE_STRING }),
|
|
266
|
+
});
|
|
267
|
+
})(SparkSubmit = exports.SparkSubmit || (exports.SparkSubmit = {}));
|
|
268
|
+
var JobDriver;
|
|
269
|
+
(function (JobDriver) {
|
|
270
|
+
JobDriver.visit = (value, visitor) => {
|
|
271
|
+
if (value.sparkSubmit !== undefined)
|
|
272
|
+
return visitor.sparkSubmit(value.sparkSubmit);
|
|
273
|
+
if (value.hive !== undefined)
|
|
274
|
+
return visitor.hive(value.hive);
|
|
275
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
276
|
+
};
|
|
277
|
+
JobDriver.filterSensitiveLog = (obj) => {
|
|
278
|
+
if (obj.sparkSubmit !== undefined)
|
|
279
|
+
return { sparkSubmit: SparkSubmit.filterSensitiveLog(obj.sparkSubmit) };
|
|
280
|
+
if (obj.hive !== undefined)
|
|
281
|
+
return { hive: Hive.filterSensitiveLog(obj.hive) };
|
|
282
|
+
if (obj.$unknown !== undefined)
|
|
283
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
284
|
+
};
|
|
285
|
+
})(JobDriver = exports.JobDriver || (exports.JobDriver = {}));
|
|
286
|
+
var JobRunState;
|
|
287
|
+
(function (JobRunState) {
|
|
288
|
+
JobRunState["CANCELLED"] = "CANCELLED";
|
|
289
|
+
JobRunState["CANCELLING"] = "CANCELLING";
|
|
290
|
+
JobRunState["FAILED"] = "FAILED";
|
|
291
|
+
JobRunState["PENDING"] = "PENDING";
|
|
292
|
+
JobRunState["RUNNING"] = "RUNNING";
|
|
293
|
+
JobRunState["SCHEDULED"] = "SCHEDULED";
|
|
294
|
+
JobRunState["SUBMITTED"] = "SUBMITTED";
|
|
295
|
+
JobRunState["SUCCESS"] = "SUCCESS";
|
|
296
|
+
})(JobRunState = exports.JobRunState || (exports.JobRunState = {}));
|
|
297
|
+
var TotalResourceUtilization;
|
|
298
|
+
(function (TotalResourceUtilization) {
|
|
299
|
+
TotalResourceUtilization.filterSensitiveLog = (obj) => ({
|
|
300
|
+
...obj,
|
|
301
|
+
});
|
|
302
|
+
})(TotalResourceUtilization = exports.TotalResourceUtilization || (exports.TotalResourceUtilization = {}));
|
|
303
|
+
var ListJobRunsRequest;
|
|
304
|
+
(function (ListJobRunsRequest) {
|
|
305
|
+
ListJobRunsRequest.filterSensitiveLog = (obj) => ({
|
|
306
|
+
...obj,
|
|
307
|
+
});
|
|
308
|
+
})(ListJobRunsRequest = exports.ListJobRunsRequest || (exports.ListJobRunsRequest = {}));
|
|
309
|
+
var JobRunSummary;
|
|
310
|
+
(function (JobRunSummary) {
|
|
311
|
+
JobRunSummary.filterSensitiveLog = (obj) => ({
|
|
312
|
+
...obj,
|
|
313
|
+
});
|
|
314
|
+
})(JobRunSummary = exports.JobRunSummary || (exports.JobRunSummary = {}));
|
|
315
|
+
var ListJobRunsResponse;
|
|
316
|
+
(function (ListJobRunsResponse) {
|
|
317
|
+
ListJobRunsResponse.filterSensitiveLog = (obj) => ({
|
|
318
|
+
...obj,
|
|
319
|
+
});
|
|
320
|
+
})(ListJobRunsResponse = exports.ListJobRunsResponse || (exports.ListJobRunsResponse = {}));
|
|
321
|
+
var StartJobRunResponse;
|
|
322
|
+
(function (StartJobRunResponse) {
|
|
323
|
+
StartJobRunResponse.filterSensitiveLog = (obj) => ({
|
|
324
|
+
...obj,
|
|
325
|
+
});
|
|
326
|
+
})(StartJobRunResponse = exports.StartJobRunResponse || (exports.StartJobRunResponse = {}));
|
|
327
|
+
var ListTagsForResourceRequest;
|
|
328
|
+
(function (ListTagsForResourceRequest) {
|
|
329
|
+
ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
|
|
330
|
+
...obj,
|
|
331
|
+
});
|
|
332
|
+
})(ListTagsForResourceRequest = exports.ListTagsForResourceRequest || (exports.ListTagsForResourceRequest = {}));
|
|
333
|
+
var ListTagsForResourceResponse;
|
|
334
|
+
(function (ListTagsForResourceResponse) {
|
|
335
|
+
ListTagsForResourceResponse.filterSensitiveLog = (obj) => ({
|
|
336
|
+
...obj,
|
|
337
|
+
});
|
|
338
|
+
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
339
|
+
var TagResourceRequest;
|
|
340
|
+
(function (TagResourceRequest) {
|
|
341
|
+
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
342
|
+
...obj,
|
|
343
|
+
});
|
|
344
|
+
})(TagResourceRequest = exports.TagResourceRequest || (exports.TagResourceRequest = {}));
|
|
345
|
+
var TagResourceResponse;
|
|
346
|
+
(function (TagResourceResponse) {
|
|
347
|
+
TagResourceResponse.filterSensitiveLog = (obj) => ({
|
|
348
|
+
...obj,
|
|
349
|
+
});
|
|
350
|
+
})(TagResourceResponse = exports.TagResourceResponse || (exports.TagResourceResponse = {}));
|
|
351
|
+
var UntagResourceRequest;
|
|
352
|
+
(function (UntagResourceRequest) {
|
|
353
|
+
UntagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
354
|
+
...obj,
|
|
355
|
+
});
|
|
356
|
+
})(UntagResourceRequest = exports.UntagResourceRequest || (exports.UntagResourceRequest = {}));
|
|
357
|
+
var UntagResourceResponse;
|
|
358
|
+
(function (UntagResourceResponse) {
|
|
359
|
+
UntagResourceResponse.filterSensitiveLog = (obj) => ({
|
|
360
|
+
...obj,
|
|
361
|
+
});
|
|
362
|
+
})(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
|
|
363
|
+
var Configuration;
|
|
364
|
+
(function (Configuration) {
|
|
365
|
+
Configuration.filterSensitiveLog = (obj) => ({
|
|
366
|
+
...obj,
|
|
367
|
+
...(obj.properties && { properties: smithy_client_1.SENSITIVE_STRING }),
|
|
368
|
+
...(obj.configurations && {
|
|
369
|
+
configurations: obj.configurations.map((item) => Configuration.filterSensitiveLog(item)),
|
|
370
|
+
}),
|
|
371
|
+
});
|
|
372
|
+
})(Configuration = exports.Configuration || (exports.Configuration = {}));
|
|
373
|
+
var ConfigurationOverrides;
|
|
374
|
+
(function (ConfigurationOverrides) {
|
|
375
|
+
ConfigurationOverrides.filterSensitiveLog = (obj) => ({
|
|
376
|
+
...obj,
|
|
377
|
+
...(obj.applicationConfiguration && {
|
|
378
|
+
applicationConfiguration: obj.applicationConfiguration.map((item) => Configuration.filterSensitiveLog(item)),
|
|
379
|
+
}),
|
|
380
|
+
});
|
|
381
|
+
})(ConfigurationOverrides = exports.ConfigurationOverrides || (exports.ConfigurationOverrides = {}));
|
|
382
|
+
var JobRun;
|
|
383
|
+
(function (JobRun) {
|
|
384
|
+
JobRun.filterSensitiveLog = (obj) => ({
|
|
385
|
+
...obj,
|
|
386
|
+
...(obj.configurationOverrides && {
|
|
387
|
+
configurationOverrides: ConfigurationOverrides.filterSensitiveLog(obj.configurationOverrides),
|
|
388
|
+
}),
|
|
389
|
+
...(obj.jobDriver && { jobDriver: JobDriver.filterSensitiveLog(obj.jobDriver) }),
|
|
390
|
+
});
|
|
391
|
+
})(JobRun = exports.JobRun || (exports.JobRun = {}));
|
|
392
|
+
var StartJobRunRequest;
|
|
393
|
+
(function (StartJobRunRequest) {
|
|
394
|
+
StartJobRunRequest.filterSensitiveLog = (obj) => ({
|
|
395
|
+
...obj,
|
|
396
|
+
...(obj.jobDriver && { jobDriver: JobDriver.filterSensitiveLog(obj.jobDriver) }),
|
|
397
|
+
...(obj.configurationOverrides && {
|
|
398
|
+
configurationOverrides: ConfigurationOverrides.filterSensitiveLog(obj.configurationOverrides),
|
|
399
|
+
}),
|
|
400
|
+
});
|
|
401
|
+
})(StartJobRunRequest = exports.StartJobRunRequest || (exports.StartJobRunRequest = {}));
|
|
402
|
+
var GetJobRunResponse;
|
|
403
|
+
(function (GetJobRunResponse) {
|
|
404
|
+
GetJobRunResponse.filterSensitiveLog = (obj) => ({
|
|
405
|
+
...obj,
|
|
406
|
+
...(obj.jobRun && { jobRun: JobRun.filterSensitiveLog(obj.jobRun) }),
|
|
407
|
+
});
|
|
408
|
+
})(GetJobRunResponse = exports.GetJobRunResponse || (exports.GetJobRunResponse = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListApplications = void 0;
|
|
4
|
+
const ListApplicationsCommand_1 = require("../commands/ListApplicationsCommand");
|
|
5
|
+
const EMRServerless_1 = require("../EMRServerless");
|
|
6
|
+
const EMRServerlessClient_1 = require("../EMRServerlessClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listApplications(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListApplications(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof EMRServerless_1.EMRServerless) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof EMRServerlessClient_1.EMRServerlessClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListApplications = paginateListApplications;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListJobRuns = void 0;
|
|
4
|
+
const ListJobRunsCommand_1 = require("../commands/ListJobRunsCommand");
|
|
5
|
+
const EMRServerless_1 = require("../EMRServerless");
|
|
6
|
+
const EMRServerlessClient_1 = require("../EMRServerlessClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListJobRunsCommand_1.ListJobRunsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listJobRuns(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListJobRuns(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof EMRServerless_1.EMRServerless) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof EMRServerlessClient_1.EMRServerlessClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListJobRuns = paginateListJobRuns;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListApplicationsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListJobRunsPaginator"), exports);
|