@aws-sdk/client-emr-serverless 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.
Files changed (47) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist-cjs/EMRServerless.js +15 -0
  3. package/dist-cjs/commands/GetDashboardForJobRunCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +10 -2
  6. package/dist-cjs/protocols/Aws_restJson1.js +82 -23
  7. package/dist-es/EMRServerless.js +72 -64
  8. package/dist-es/EMRServerlessClient.js +22 -28
  9. package/dist-es/commands/CancelJobRunCommand.js +21 -28
  10. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  11. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  12. package/dist-es/commands/GetApplicationCommand.js +21 -28
  13. package/dist-es/commands/GetDashboardForJobRunCommand.js +32 -0
  14. package/dist-es/commands/GetJobRunCommand.js +21 -28
  15. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  16. package/dist-es/commands/ListJobRunsCommand.js +21 -28
  17. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  18. package/dist-es/commands/StartApplicationCommand.js +21 -28
  19. package/dist-es/commands/StartJobRunCommand.js +21 -28
  20. package/dist-es/commands/StopApplicationCommand.js +21 -28
  21. package/dist-es/commands/TagResourceCommand.js +21 -28
  22. package/dist-es/commands/UntagResourceCommand.js +21 -28
  23. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/EMRServerlessServiceException.js +5 -10
  27. package/dist-es/models/models_0.js +224 -114
  28. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  29. package/dist-es/pagination/ListJobRunsPaginator.js +25 -68
  30. package/dist-es/protocols/Aws_restJson1.js +1150 -1455
  31. package/dist-es/runtimeConfig.browser.js +26 -12
  32. package/dist-es/runtimeConfig.js +30 -12
  33. package/dist-es/runtimeConfig.native.js +8 -5
  34. package/dist-es/runtimeConfig.shared.js +8 -11
  35. package/dist-types/EMRServerless.d.ts +7 -0
  36. package/dist-types/EMRServerlessClient.d.ts +3 -2
  37. package/dist-types/commands/GetDashboardForJobRunCommand.d.ts +35 -0
  38. package/dist-types/commands/index.d.ts +1 -0
  39. package/dist-types/models/models_0.d.ts +68 -22
  40. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  41. package/dist-types/ts3.4/EMRServerless.d.ts +17 -0
  42. package/dist-types/ts3.4/EMRServerlessClient.d.ts +6 -0
  43. package/dist-types/ts3.4/commands/GetDashboardForJobRunCommand.d.ts +39 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +13 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  47. package/package.json +33 -33
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "ca-central-1": {
5
4
  variants: [
6
5
  {
@@ -42,7 +41,7 @@ var regionHash = {
42
41
  ],
43
42
  },
44
43
  };
45
- var partitionHash = {
44
+ const partitionHash = {
46
45
  aws: {
47
46
  regions: [
48
47
  "af-south-1",
@@ -167,8 +166,9 @@ var partitionHash = {
167
166
  ],
168
167
  },
169
168
  };
170
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
171
- return __generator(this, function (_a) {
172
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "emr-serverless", regionHash: regionHash, partitionHash: partitionHash }))];
173
- });
174
- }); };
169
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
170
+ ...options,
171
+ signingService: "emr-serverless",
172
+ regionHash,
173
+ partitionHash,
174
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var EMRServerlessServiceException = (function (_super) {
4
- __extends(EMRServerlessServiceException, _super);
5
- function EMRServerlessServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, EMRServerlessServiceException.prototype);
8
- return _this;
2
+ export class EMRServerlessServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, EMRServerlessServiceException.prototype);
9
6
  }
10
- return EMRServerlessServiceException;
11
- }(__ServiceException));
12
- export { EMRServerlessServiceException };
7
+ }
@@ -1,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { EMRServerlessServiceException as __BaseException } from "./EMRServerlessServiceException";
4
3
  export var ApplicationState;
@@ -11,69 +10,69 @@ export var ApplicationState;
11
10
  ApplicationState["STOPPING"] = "STOPPING";
12
11
  ApplicationState["TERMINATED"] = "TERMINATED";
13
12
  })(ApplicationState || (ApplicationState = {}));
14
- var ConflictException = (function (_super) {
15
- __extends(ConflictException, _super);
16
- function ConflictException(opts) {
17
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
18
- _this.name = "ConflictException";
19
- _this.$fault = "client";
20
- Object.setPrototypeOf(_this, ConflictException.prototype);
21
- return _this;
13
+ export class ConflictException extends __BaseException {
14
+ constructor(opts) {
15
+ super({
16
+ name: "ConflictException",
17
+ $fault: "client",
18
+ ...opts,
19
+ });
20
+ this.name = "ConflictException";
21
+ this.$fault = "client";
22
+ Object.setPrototypeOf(this, ConflictException.prototype);
22
23
  }
23
- return ConflictException;
24
- }(__BaseException));
25
- export { ConflictException };
26
- var InternalServerException = (function (_super) {
27
- __extends(InternalServerException, _super);
28
- function InternalServerException(opts) {
29
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
30
- _this.name = "InternalServerException";
31
- _this.$fault = "server";
32
- Object.setPrototypeOf(_this, InternalServerException.prototype);
33
- return _this;
24
+ }
25
+ export class InternalServerException extends __BaseException {
26
+ constructor(opts) {
27
+ super({
28
+ name: "InternalServerException",
29
+ $fault: "server",
30
+ ...opts,
31
+ });
32
+ this.name = "InternalServerException";
33
+ this.$fault = "server";
34
+ Object.setPrototypeOf(this, InternalServerException.prototype);
34
35
  }
35
- return InternalServerException;
36
- }(__BaseException));
37
- export { InternalServerException };
38
- var ValidationException = (function (_super) {
39
- __extends(ValidationException, _super);
40
- function ValidationException(opts) {
41
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
42
- _this.name = "ValidationException";
43
- _this.$fault = "client";
44
- Object.setPrototypeOf(_this, ValidationException.prototype);
45
- return _this;
36
+ }
37
+ export class ValidationException extends __BaseException {
38
+ constructor(opts) {
39
+ super({
40
+ name: "ValidationException",
41
+ $fault: "client",
42
+ ...opts,
43
+ });
44
+ this.name = "ValidationException";
45
+ this.$fault = "client";
46
+ Object.setPrototypeOf(this, ValidationException.prototype);
46
47
  }
47
- return ValidationException;
48
- }(__BaseException));
49
- export { ValidationException };
50
- var ResourceNotFoundException = (function (_super) {
51
- __extends(ResourceNotFoundException, _super);
52
- function ResourceNotFoundException(opts) {
53
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
54
- _this.name = "ResourceNotFoundException";
55
- _this.$fault = "client";
56
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
57
- return _this;
48
+ }
49
+ export class ResourceNotFoundException extends __BaseException {
50
+ constructor(opts) {
51
+ super({
52
+ name: "ResourceNotFoundException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ this.name = "ResourceNotFoundException";
57
+ this.$fault = "client";
58
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
58
59
  }
59
- return ResourceNotFoundException;
60
- }(__BaseException));
61
- export { ResourceNotFoundException };
62
- var ServiceQuotaExceededException = (function (_super) {
63
- __extends(ServiceQuotaExceededException, _super);
64
- function ServiceQuotaExceededException(opts) {
65
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
66
- _this.name = "ServiceQuotaExceededException";
67
- _this.$fault = "client";
68
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
69
- return _this;
60
+ }
61
+ export class ServiceQuotaExceededException extends __BaseException {
62
+ constructor(opts) {
63
+ super({
64
+ name: "ServiceQuotaExceededException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ this.name = "ServiceQuotaExceededException";
69
+ this.$fault = "client";
70
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
70
71
  }
71
- return ServiceQuotaExceededException;
72
- }(__BaseException));
73
- export { ServiceQuotaExceededException };
72
+ }
74
73
  export var JobDriver;
75
74
  (function (JobDriver) {
76
- JobDriver.visit = function (value, visitor) {
75
+ JobDriver.visit = (value, visitor) => {
77
76
  if (value.sparkSubmit !== undefined)
78
77
  return visitor.sparkSubmit(value.sparkSubmit);
79
78
  if (value.hive !== undefined)
@@ -92,66 +91,177 @@ export var JobRunState;
92
91
  JobRunState["SUBMITTED"] = "SUBMITTED";
93
92
  JobRunState["SUCCESS"] = "SUCCESS";
94
93
  })(JobRunState || (JobRunState = {}));
95
- export var AutoStartConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
96
- export var AutoStopConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- export var WorkerResourceConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
- export var InitialCapacityConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
- export var MaximumAllowedResourcesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
100
- export var NetworkConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- export var ApplicationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- export var ApplicationSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
- export var CreateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
104
- export var CreateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
105
- export var DeleteApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
- export var DeleteApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
107
- export var GetApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
108
- export var GetApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
- export var ListApplicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- export var ListApplicationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
- export var StartApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
112
- export var StartApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
- export var StopApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- export var StopApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
- export var UpdateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
116
- export var UpdateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
- export var CancelJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
118
- export var CancelJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
- export var GetJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
- export var ManagedPersistenceMonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- export var S3MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
- export var MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
- export var HiveFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.query && { query: SENSITIVE_STRING })), (obj.initQueryFile && { initQueryFile: SENSITIVE_STRING })), (obj.parameters && { parameters: SENSITIVE_STRING }))); };
124
- export var SparkSubmitFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.entryPoint && { entryPoint: SENSITIVE_STRING })), (obj.entryPointArguments && { entryPointArguments: SENSITIVE_STRING })), (obj.sparkSubmitParameters && { sparkSubmitParameters: SENSITIVE_STRING }))); };
125
- export var JobDriverFilterSensitiveLog = function (obj) {
126
- var _a;
94
+ export const AutoStartConfigFilterSensitiveLog = (obj) => ({
95
+ ...obj,
96
+ });
97
+ export const AutoStopConfigFilterSensitiveLog = (obj) => ({
98
+ ...obj,
99
+ });
100
+ export const WorkerResourceConfigFilterSensitiveLog = (obj) => ({
101
+ ...obj,
102
+ });
103
+ export const InitialCapacityConfigFilterSensitiveLog = (obj) => ({
104
+ ...obj,
105
+ });
106
+ export const MaximumAllowedResourcesFilterSensitiveLog = (obj) => ({
107
+ ...obj,
108
+ });
109
+ export const NetworkConfigurationFilterSensitiveLog = (obj) => ({
110
+ ...obj,
111
+ });
112
+ export const ApplicationFilterSensitiveLog = (obj) => ({
113
+ ...obj,
114
+ });
115
+ export const ApplicationSummaryFilterSensitiveLog = (obj) => ({
116
+ ...obj,
117
+ });
118
+ export const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
119
+ ...obj,
120
+ });
121
+ export const CreateApplicationResponseFilterSensitiveLog = (obj) => ({
122
+ ...obj,
123
+ });
124
+ export const DeleteApplicationRequestFilterSensitiveLog = (obj) => ({
125
+ ...obj,
126
+ });
127
+ export const DeleteApplicationResponseFilterSensitiveLog = (obj) => ({
128
+ ...obj,
129
+ });
130
+ export const GetApplicationRequestFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ });
133
+ export const GetApplicationResponseFilterSensitiveLog = (obj) => ({
134
+ ...obj,
135
+ });
136
+ export const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ });
139
+ export const ListApplicationsResponseFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ });
142
+ export const StartApplicationRequestFilterSensitiveLog = (obj) => ({
143
+ ...obj,
144
+ });
145
+ export const StartApplicationResponseFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ });
148
+ export const StopApplicationRequestFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ });
151
+ export const StopApplicationResponseFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ export const UpdateApplicationRequestFilterSensitiveLog = (obj) => ({
155
+ ...obj,
156
+ });
157
+ export const UpdateApplicationResponseFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ });
160
+ export const CancelJobRunRequestFilterSensitiveLog = (obj) => ({
161
+ ...obj,
162
+ });
163
+ export const CancelJobRunResponseFilterSensitiveLog = (obj) => ({
164
+ ...obj,
165
+ });
166
+ export const GetDashboardForJobRunRequestFilterSensitiveLog = (obj) => ({
167
+ ...obj,
168
+ });
169
+ export const GetDashboardForJobRunResponseFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ });
172
+ export const GetJobRunRequestFilterSensitiveLog = (obj) => ({
173
+ ...obj,
174
+ });
175
+ export const ManagedPersistenceMonitoringConfigurationFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ });
178
+ export const S3MonitoringConfigurationFilterSensitiveLog = (obj) => ({
179
+ ...obj,
180
+ });
181
+ export const MonitoringConfigurationFilterSensitiveLog = (obj) => ({
182
+ ...obj,
183
+ });
184
+ export const HiveFilterSensitiveLog = (obj) => ({
185
+ ...obj,
186
+ ...(obj.query && { query: SENSITIVE_STRING }),
187
+ ...(obj.initQueryFile && { initQueryFile: SENSITIVE_STRING }),
188
+ ...(obj.parameters && { parameters: SENSITIVE_STRING }),
189
+ });
190
+ export const SparkSubmitFilterSensitiveLog = (obj) => ({
191
+ ...obj,
192
+ ...(obj.entryPoint && { entryPoint: SENSITIVE_STRING }),
193
+ ...(obj.entryPointArguments && { entryPointArguments: SENSITIVE_STRING }),
194
+ ...(obj.sparkSubmitParameters && { sparkSubmitParameters: SENSITIVE_STRING }),
195
+ });
196
+ export const JobDriverFilterSensitiveLog = (obj) => {
127
197
  if (obj.sparkSubmit !== undefined)
128
198
  return { sparkSubmit: SparkSubmitFilterSensitiveLog(obj.sparkSubmit) };
129
199
  if (obj.hive !== undefined)
130
200
  return { hive: HiveFilterSensitiveLog(obj.hive) };
131
201
  if (obj.$unknown !== undefined)
132
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
202
+ return { [obj.$unknown[0]]: "UNKNOWN" };
133
203
  };
134
- export var TotalResourceUtilizationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- export var ListJobRunsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
- export var JobRunSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
- export var ListJobRunsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
- export var StartJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
- export var ConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.properties && { properties: SENSITIVE_STRING })), (obj.configurations && {
146
- configurations: obj.configurations.map(function (item) { return ConfigurationFilterSensitiveLog(item); }),
147
- }))); };
148
- export var ConfigurationOverridesFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.applicationConfiguration && {
149
- applicationConfiguration: obj.applicationConfiguration.map(function (item) { return ConfigurationFilterSensitiveLog(item); }),
150
- }))); };
151
- export var JobRunFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.configurationOverrides && {
152
- configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
153
- })), (obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }))); };
154
- export var StartJobRunRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) })), (obj.configurationOverrides && {
155
- configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
156
- }))); };
157
- export var GetJobRunResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }))); };
204
+ export const TotalResourceUtilizationFilterSensitiveLog = (obj) => ({
205
+ ...obj,
206
+ });
207
+ export const ListJobRunsRequestFilterSensitiveLog = (obj) => ({
208
+ ...obj,
209
+ });
210
+ export const JobRunSummaryFilterSensitiveLog = (obj) => ({
211
+ ...obj,
212
+ });
213
+ export const ListJobRunsResponseFilterSensitiveLog = (obj) => ({
214
+ ...obj,
215
+ });
216
+ export const StartJobRunResponseFilterSensitiveLog = (obj) => ({
217
+ ...obj,
218
+ });
219
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
220
+ ...obj,
221
+ });
222
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ });
225
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
226
+ ...obj,
227
+ });
228
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
229
+ ...obj,
230
+ });
231
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
232
+ ...obj,
233
+ });
234
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
235
+ ...obj,
236
+ });
237
+ export const ConfigurationFilterSensitiveLog = (obj) => ({
238
+ ...obj,
239
+ ...(obj.properties && { properties: SENSITIVE_STRING }),
240
+ ...(obj.configurations && {
241
+ configurations: obj.configurations.map((item) => ConfigurationFilterSensitiveLog(item)),
242
+ }),
243
+ });
244
+ export const ConfigurationOverridesFilterSensitiveLog = (obj) => ({
245
+ ...obj,
246
+ ...(obj.applicationConfiguration && {
247
+ applicationConfiguration: obj.applicationConfiguration.map((item) => ConfigurationFilterSensitiveLog(item)),
248
+ }),
249
+ });
250
+ export const JobRunFilterSensitiveLog = (obj) => ({
251
+ ...obj,
252
+ ...(obj.configurationOverrides && {
253
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
254
+ }),
255
+ ...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
256
+ });
257
+ export const StartJobRunRequestFilterSensitiveLog = (obj) => ({
258
+ ...obj,
259
+ ...(obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }),
260
+ ...(obj.configurationOverrides && {
261
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
262
+ }),
263
+ });
264
+ export const GetJobRunResponseFilterSensitiveLog = (obj) => ({
265
+ ...obj,
266
+ ...(obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }),
267
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
3
2
  import { EMRServerless } from "../EMRServerless";
4
3
  import { EMRServerlessClient } from "../EMRServerlessClient";
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 ListApplicationsCommand(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 ListApplicationsCommand(input), ...args);
18
6
  };
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.listApplications.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.listApplications(input, ...args);
32
9
  };
33
- export function paginateListApplications(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListApplications(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 EMRServerless) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof EMRServerlessClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListApplications_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 EMRServerless)) 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 EMRServerlessClient)) 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 EMRServerless | EMRServerlessClient");
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 { ListJobRunsCommand } from "../commands/ListJobRunsCommand";
3
2
  import { EMRServerless } from "../EMRServerless";
4
3
  import { EMRServerlessClient } from "../EMRServerlessClient";
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 ListJobRunsCommand(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 ListJobRunsCommand(input), ...args);
18
6
  };
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.listJobRuns.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.listJobRuns(input, ...args);
32
9
  };
33
- export function paginateListJobRuns(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListJobRuns(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 EMRServerless) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof EMRServerlessClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected EMRServerless | EMRServerlessClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListJobRuns_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 EMRServerless)) 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 EMRServerlessClient)) 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 EMRServerless | EMRServerlessClient");
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
  }