@aws-sdk/client-emr-serverless 3.183.0 → 3.186.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 (30) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/EMRServerless.js +69 -62
  4. package/dist-es/EMRServerlessClient.js +28 -22
  5. package/dist-es/commands/CancelJobRunCommand.js +28 -21
  6. package/dist-es/commands/CreateApplicationCommand.js +28 -21
  7. package/dist-es/commands/DeleteApplicationCommand.js +28 -21
  8. package/dist-es/commands/GetApplicationCommand.js +28 -21
  9. package/dist-es/commands/GetDashboardForJobRunCommand.js +28 -21
  10. package/dist-es/commands/GetJobRunCommand.js +28 -21
  11. package/dist-es/commands/ListApplicationsCommand.js +28 -21
  12. package/dist-es/commands/ListJobRunsCommand.js +28 -21
  13. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  14. package/dist-es/commands/StartApplicationCommand.js +28 -21
  15. package/dist-es/commands/StartJobRunCommand.js +28 -21
  16. package/dist-es/commands/StopApplicationCommand.js +28 -21
  17. package/dist-es/commands/TagResourceCommand.js +28 -21
  18. package/dist-es/commands/UntagResourceCommand.js +28 -21
  19. package/dist-es/commands/UpdateApplicationCommand.js +28 -21
  20. package/dist-es/endpoints.js +8 -8
  21. package/dist-es/models/EMRServerlessServiceException.js +10 -5
  22. package/dist-es/models/models_0.js +116 -224
  23. package/dist-es/pagination/ListApplicationsPaginator.js +68 -25
  24. package/dist-es/pagination/ListJobRunsPaginator.js +68 -25
  25. package/dist-es/protocols/Aws_restJson1.js +1557 -1157
  26. package/dist-es/runtimeConfig.browser.js +12 -26
  27. package/dist-es/runtimeConfig.js +12 -30
  28. package/dist-es/runtimeConfig.native.js +5 -8
  29. package/dist-es/runtimeConfig.shared.js +11 -8
  30. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateApplicationRequestFilterSensitiveLog, UpdateApplicationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1UpdateApplicationCommand, serializeAws_restJson1UpdateApplicationCommand, } from "../protocols/Aws_restJson1";
5
- export class UpdateApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateApplicationCommand = (function (_super) {
7
+ __extends(UpdateApplicationCommand, _super);
8
+ function UpdateApplicationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "EMRServerlessClient";
15
- const commandName = "UpdateApplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "EMRServerlessClient";
18
+ var commandName = "UpdateApplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateApplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateApplicationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateApplicationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1UpdateApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1UpdateApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateApplicationCommand;
38
+ }($Command));
39
+ export { UpdateApplicationCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "ca-central-1": {
4
5
  variants: [
5
6
  {
@@ -41,7 +42,7 @@ const regionHash = {
41
42
  ],
42
43
  },
43
44
  };
44
- const partitionHash = {
45
+ var partitionHash = {
45
46
  aws: {
46
47
  regions: [
47
48
  "af-south-1",
@@ -166,9 +167,8 @@ const partitionHash = {
166
167
  ],
167
168
  },
168
169
  };
169
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
170
- ...options,
171
- signingService: "emr-serverless",
172
- regionHash,
173
- partitionHash,
174
- });
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
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class EMRServerlessServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, EMRServerlessServiceException.prototype);
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;
6
9
  }
7
- }
10
+ return EMRServerlessServiceException;
11
+ }(__ServiceException));
12
+ export { EMRServerlessServiceException };
@@ -1,3 +1,4 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
3
  import { EMRServerlessServiceException as __BaseException } from "./EMRServerlessServiceException";
3
4
  export var ApplicationState;
@@ -10,69 +11,69 @@ export var ApplicationState;
10
11
  ApplicationState["STOPPING"] = "STOPPING";
11
12
  ApplicationState["TERMINATED"] = "TERMINATED";
12
13
  })(ApplicationState || (ApplicationState = {}));
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);
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;
23
22
  }
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);
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;
35
34
  }
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);
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;
47
46
  }
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);
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;
59
58
  }
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);
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;
71
70
  }
72
- }
71
+ return ServiceQuotaExceededException;
72
+ }(__BaseException));
73
+ export { ServiceQuotaExceededException };
73
74
  export var JobDriver;
74
75
  (function (JobDriver) {
75
- JobDriver.visit = (value, visitor) => {
76
+ JobDriver.visit = function (value, visitor) {
76
77
  if (value.sparkSubmit !== undefined)
77
78
  return visitor.sparkSubmit(value.sparkSubmit);
78
79
  if (value.hive !== undefined)
@@ -91,177 +92,68 @@ export var JobRunState;
91
92
  JobRunState["SUBMITTED"] = "SUBMITTED";
92
93
  JobRunState["SUCCESS"] = "SUCCESS";
93
94
  })(JobRunState || (JobRunState = {}));
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) => {
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 GetDashboardForJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
+ export var GetDashboardForJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
+ export var GetJobRunRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
+ export var ManagedPersistenceMonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ export var S3MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
+ export var MonitoringConfigurationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
+ 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 }))); };
126
+ 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 }))); };
127
+ export var JobDriverFilterSensitiveLog = function (obj) {
128
+ var _a;
197
129
  if (obj.sparkSubmit !== undefined)
198
130
  return { sparkSubmit: SparkSubmitFilterSensitiveLog(obj.sparkSubmit) };
199
131
  if (obj.hive !== undefined)
200
132
  return { hive: HiveFilterSensitiveLog(obj.hive) };
201
133
  if (obj.$unknown !== undefined)
202
- return { [obj.$unknown[0]]: "UNKNOWN" };
134
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
203
135
  };
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
- });
136
+ export var TotalResourceUtilizationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
+ export var ListJobRunsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
+ export var JobRunSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
+ export var ListJobRunsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
+ export var StartJobRunResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
+ export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
+ export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
+ export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
145
+ export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
146
+ export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
+ export var ConfigurationFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.properties && { properties: SENSITIVE_STRING })), (obj.configurations && {
148
+ configurations: obj.configurations.map(function (item) { return ConfigurationFilterSensitiveLog(item); }),
149
+ }))); };
150
+ export var ConfigurationOverridesFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.applicationConfiguration && {
151
+ applicationConfiguration: obj.applicationConfiguration.map(function (item) { return ConfigurationFilterSensitiveLog(item); }),
152
+ }))); };
153
+ export var JobRunFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.configurationOverrides && {
154
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
155
+ })), (obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) }))); };
156
+ export var StartJobRunRequestFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.jobDriver && { jobDriver: JobDriverFilterSensitiveLog(obj.jobDriver) })), (obj.configurationOverrides && {
157
+ configurationOverrides: ConfigurationOverridesFilterSensitiveLog(obj.configurationOverrides),
158
+ }))); };
159
+ export var GetJobRunResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.jobRun && { jobRun: JobRunFilterSensitiveLog(obj.jobRun) }))); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
2
3
  import { EMRServerless } from "../EMRServerless";
3
4
  import { EMRServerlessClient } from "../EMRServerlessClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new ListApplicationsCommand(input), ...args);
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
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listApplications(input, ...args);
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
+ });
9
32
  };
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));
33
+ export function paginateListApplications(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
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
+ });
32
75
  }