@aws-sdk/client-emr-serverless 3.1034.0 → 3.1035.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/README.md +42 -0
  2. package/dist-cjs/index.js +103 -0
  3. package/dist-cjs/schemas/schemas_0.js +140 -8
  4. package/dist-es/EMRServerless.js +14 -0
  5. package/dist-es/commands/GetResourceDashboardCommand.js +16 -0
  6. package/dist-es/commands/GetSessionCommand.js +16 -0
  7. package/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  8. package/dist-es/commands/ListSessionsCommand.js +16 -0
  9. package/dist-es/commands/StartSessionCommand.js +16 -0
  10. package/dist-es/commands/TerminateSessionCommand.js +16 -0
  11. package/dist-es/commands/index.js +6 -0
  12. package/dist-es/models/enums.js +13 -0
  13. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/schemas/schemas_0.js +137 -6
  16. package/dist-types/EMRServerless.d.ts +49 -0
  17. package/dist-types/EMRServerlessClient.d.ts +8 -2
  18. package/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
  19. package/dist-types/commands/GetApplicationCommand.d.ts +1 -0
  20. package/dist-types/commands/GetResourceDashboardCommand.d.ts +85 -0
  21. package/dist-types/commands/GetSessionCommand.d.ts +141 -0
  22. package/dist-types/commands/GetSessionEndpointCommand.d.ts +88 -0
  23. package/dist-types/commands/ListSessionsCommand.d.ts +105 -0
  24. package/dist-types/commands/StartSessionCommand.d.ts +117 -0
  25. package/dist-types/commands/TerminateSessionCommand.d.ts +85 -0
  26. package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -0
  27. package/dist-types/commands/index.d.ts +6 -0
  28. package/dist-types/models/enums.d.ts +29 -0
  29. package/dist-types/models/models_0.d.ts +429 -1
  30. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +21 -0
  33. package/dist-types/ts3.4/EMRServerless.d.ts +109 -0
  34. package/dist-types/ts3.4/EMRServerlessClient.d.ts +36 -0
  35. package/dist-types/ts3.4/commands/GetResourceDashboardCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  37. package/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  39. package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +47 -0
  40. package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +50 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +15 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +102 -0
  44. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  47. package/package.json +5 -5
package/README.md CHANGED
@@ -223,6 +223,27 @@ GetJobRun
223
223
  </details>
224
224
  <details>
225
225
  <summary>
226
+ GetResourceDashboard
227
+ </summary>
228
+
229
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/GetResourceDashboardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/GetResourceDashboardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/GetResourceDashboardCommandOutput/)
230
+ </details>
231
+ <details>
232
+ <summary>
233
+ GetSession
234
+ </summary>
235
+
236
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/GetSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/GetSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/GetSessionCommandOutput/)
237
+ </details>
238
+ <details>
239
+ <summary>
240
+ GetSessionEndpoint
241
+ </summary>
242
+
243
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/GetSessionEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/GetSessionEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/GetSessionEndpointCommandOutput/)
244
+ </details>
245
+ <details>
246
+ <summary>
226
247
  ListApplications
227
248
  </summary>
228
249
 
@@ -244,6 +265,13 @@ ListJobRuns
244
265
  </details>
245
266
  <details>
246
267
  <summary>
268
+ ListSessions
269
+ </summary>
270
+
271
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/ListSessionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListSessionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/ListSessionsCommandOutput/)
272
+ </details>
273
+ <details>
274
+ <summary>
247
275
  ListTagsForResource
248
276
  </summary>
249
277
 
@@ -265,6 +293,13 @@ StartJobRun
265
293
  </details>
266
294
  <details>
267
295
  <summary>
296
+ StartSession
297
+ </summary>
298
+
299
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/StartSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/StartSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/StartSessionCommandOutput/)
300
+ </details>
301
+ <details>
302
+ <summary>
268
303
  StopApplication
269
304
  </summary>
270
305
 
@@ -279,6 +314,13 @@ TagResource
279
314
  </details>
280
315
  <details>
281
316
  <summary>
317
+ TerminateSession
318
+ </summary>
319
+
320
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr-serverless/command/TerminateSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/TerminateSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr-serverless/Interface/TerminateSessionCommandOutput/)
321
+ </details>
322
+ <details>
323
+ <summary>
282
324
  UntagResource
283
325
  </summary>
284
326
 
package/dist-cjs/index.js CHANGED
@@ -185,6 +185,42 @@ class GetJobRunCommand extends smithyClient.Command
185
185
  .build() {
186
186
  }
187
187
 
188
+ class GetResourceDashboardCommand extends smithyClient.Command
189
+ .classBuilder()
190
+ .ep(commonParams)
191
+ .m(function (Command, cs, config, o) {
192
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
193
+ })
194
+ .s("AwsToledoWebService", "GetResourceDashboard", {})
195
+ .n("EMRServerlessClient", "GetResourceDashboardCommand")
196
+ .sc(schemas_0.GetResourceDashboard$)
197
+ .build() {
198
+ }
199
+
200
+ class GetSessionCommand extends smithyClient.Command
201
+ .classBuilder()
202
+ .ep(commonParams)
203
+ .m(function (Command, cs, config, o) {
204
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
205
+ })
206
+ .s("AwsToledoWebService", "GetSession", {})
207
+ .n("EMRServerlessClient", "GetSessionCommand")
208
+ .sc(schemas_0.GetSession$)
209
+ .build() {
210
+ }
211
+
212
+ class GetSessionEndpointCommand extends smithyClient.Command
213
+ .classBuilder()
214
+ .ep(commonParams)
215
+ .m(function (Command, cs, config, o) {
216
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
217
+ })
218
+ .s("AwsToledoWebService", "GetSessionEndpoint", {})
219
+ .n("EMRServerlessClient", "GetSessionEndpointCommand")
220
+ .sc(schemas_0.GetSessionEndpoint$)
221
+ .build() {
222
+ }
223
+
188
224
  class ListApplicationsCommand extends smithyClient.Command
189
225
  .classBuilder()
190
226
  .ep(commonParams)
@@ -221,6 +257,18 @@ class ListJobRunsCommand extends smithyClient.Command
221
257
  .build() {
222
258
  }
223
259
 
260
+ class ListSessionsCommand extends smithyClient.Command
261
+ .classBuilder()
262
+ .ep(commonParams)
263
+ .m(function (Command, cs, config, o) {
264
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
265
+ })
266
+ .s("AwsToledoWebService", "ListSessions", {})
267
+ .n("EMRServerlessClient", "ListSessionsCommand")
268
+ .sc(schemas_0.ListSessions$)
269
+ .build() {
270
+ }
271
+
224
272
  class ListTagsForResourceCommand extends smithyClient.Command
225
273
  .classBuilder()
226
274
  .ep(commonParams)
@@ -257,6 +305,18 @@ class StartJobRunCommand extends smithyClient.Command
257
305
  .build() {
258
306
  }
259
307
 
308
+ class StartSessionCommand extends smithyClient.Command
309
+ .classBuilder()
310
+ .ep(commonParams)
311
+ .m(function (Command, cs, config, o) {
312
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
313
+ })
314
+ .s("AwsToledoWebService", "StartSession", {})
315
+ .n("EMRServerlessClient", "StartSessionCommand")
316
+ .sc(schemas_0.StartSession$)
317
+ .build() {
318
+ }
319
+
260
320
  class StopApplicationCommand extends smithyClient.Command
261
321
  .classBuilder()
262
322
  .ep(commonParams)
@@ -281,6 +341,18 @@ class TagResourceCommand extends smithyClient.Command
281
341
  .build() {
282
342
  }
283
343
 
344
+ class TerminateSessionCommand extends smithyClient.Command
345
+ .classBuilder()
346
+ .ep(commonParams)
347
+ .m(function (Command, cs, config, o) {
348
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
349
+ })
350
+ .s("AwsToledoWebService", "TerminateSession", {})
351
+ .n("EMRServerlessClient", "TerminateSessionCommand")
352
+ .sc(schemas_0.TerminateSession$)
353
+ .build() {
354
+ }
355
+
284
356
  class UntagResourceCommand extends smithyClient.Command
285
357
  .classBuilder()
286
358
  .ep(commonParams)
@@ -311,6 +383,8 @@ const paginateListJobRunAttempts = core.createPaginator(EMRServerlessClient, Lis
311
383
 
312
384
  const paginateListJobRuns = core.createPaginator(EMRServerlessClient, ListJobRunsCommand, "nextToken", "nextToken", "maxResults");
313
385
 
386
+ const paginateListSessions = core.createPaginator(EMRServerlessClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
387
+
314
388
  const commands = {
315
389
  CancelJobRunCommand,
316
390
  CreateApplicationCommand,
@@ -318,14 +392,20 @@ const commands = {
318
392
  GetApplicationCommand,
319
393
  GetDashboardForJobRunCommand,
320
394
  GetJobRunCommand,
395
+ GetResourceDashboardCommand,
396
+ GetSessionCommand,
397
+ GetSessionEndpointCommand,
321
398
  ListApplicationsCommand,
322
399
  ListJobRunAttemptsCommand,
323
400
  ListJobRunsCommand,
401
+ ListSessionsCommand,
324
402
  ListTagsForResourceCommand,
325
403
  StartApplicationCommand,
326
404
  StartJobRunCommand,
405
+ StartSessionCommand,
327
406
  StopApplicationCommand,
328
407
  TagResourceCommand,
408
+ TerminateSessionCommand,
329
409
  UntagResourceCommand,
330
410
  UpdateApplicationCommand,
331
411
  };
@@ -333,6 +413,7 @@ const paginators = {
333
413
  paginateListApplications,
334
414
  paginateListJobRunAttempts,
335
415
  paginateListJobRuns,
416
+ paginateListSessions,
336
417
  };
337
418
  class EMRServerless extends EMRServerlessClient {
338
419
  }
@@ -351,6 +432,9 @@ const ApplicationState = {
351
432
  STOPPING: "STOPPING",
352
433
  TERMINATED: "TERMINATED",
353
434
  };
435
+ const ResourceType = {
436
+ SESSION: "SESSION",
437
+ };
354
438
  const JobRunMode = {
355
439
  BATCH: "BATCH",
356
440
  STREAMING: "STREAMING",
@@ -366,6 +450,16 @@ const JobRunState = {
366
450
  SUBMITTED: "SUBMITTED",
367
451
  SUCCESS: "SUCCESS",
368
452
  };
453
+ const SessionState = {
454
+ BUSY: "BUSY",
455
+ FAILED: "FAILED",
456
+ IDLE: "IDLE",
457
+ STARTED: "STARTED",
458
+ STARTING: "STARTING",
459
+ SUBMITTED: "SUBMITTED",
460
+ TERMINATED: "TERMINATED",
461
+ TERMINATING: "TERMINATING",
462
+ };
369
463
 
370
464
  exports.$Command = smithyClient.Command;
371
465
  exports.__Client = smithyClient.Client;
@@ -380,21 +474,30 @@ exports.EMRServerlessClient = EMRServerlessClient;
380
474
  exports.GetApplicationCommand = GetApplicationCommand;
381
475
  exports.GetDashboardForJobRunCommand = GetDashboardForJobRunCommand;
382
476
  exports.GetJobRunCommand = GetJobRunCommand;
477
+ exports.GetResourceDashboardCommand = GetResourceDashboardCommand;
478
+ exports.GetSessionCommand = GetSessionCommand;
479
+ exports.GetSessionEndpointCommand = GetSessionEndpointCommand;
383
480
  exports.JobRunMode = JobRunMode;
384
481
  exports.JobRunState = JobRunState;
385
482
  exports.ListApplicationsCommand = ListApplicationsCommand;
386
483
  exports.ListJobRunAttemptsCommand = ListJobRunAttemptsCommand;
387
484
  exports.ListJobRunsCommand = ListJobRunsCommand;
485
+ exports.ListSessionsCommand = ListSessionsCommand;
388
486
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
487
+ exports.ResourceType = ResourceType;
488
+ exports.SessionState = SessionState;
389
489
  exports.StartApplicationCommand = StartApplicationCommand;
390
490
  exports.StartJobRunCommand = StartJobRunCommand;
491
+ exports.StartSessionCommand = StartSessionCommand;
391
492
  exports.StopApplicationCommand = StopApplicationCommand;
392
493
  exports.TagResourceCommand = TagResourceCommand;
494
+ exports.TerminateSessionCommand = TerminateSessionCommand;
393
495
  exports.UntagResourceCommand = UntagResourceCommand;
394
496
  exports.UpdateApplicationCommand = UpdateApplicationCommand;
395
497
  exports.paginateListApplications = paginateListApplications;
396
498
  exports.paginateListJobRunAttempts = paginateListJobRunAttempts;
397
499
  exports.paginateListJobRuns = paginateListJobRuns;
500
+ exports.paginateListSessions = paginateListSessions;
398
501
  Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
399
502
  !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
400
503
  Object.defineProperty(exports, '__proto__', {
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MonitoringConfiguration$ = exports.MaximumAllowedResources$ = exports.ManagedPersistenceMonitoringConfiguration$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListJobRunsResponse$ = exports.ListJobRunsRequest$ = exports.ListJobRunAttemptsResponse$ = exports.ListJobRunAttemptsRequest$ = exports.ListApplicationsResponse$ = exports.ListApplicationsRequest$ = exports.JobRunSummary$ = exports.JobRunExecutionIamPolicy$ = exports.JobRunAttemptSummary$ = exports.JobRun$ = exports.JobLevelCostAllocationConfiguration$ = exports.InteractiveConfiguration$ = exports.InitialCapacityConfig$ = exports.ImageConfigurationInput$ = exports.ImageConfiguration$ = exports.IdentityCenterConfigurationInput$ = exports.IdentityCenterConfiguration$ = exports.Hive$ = exports.GetJobRunResponse$ = exports.GetJobRunRequest$ = exports.GetDashboardForJobRunResponse$ = exports.GetDashboardForJobRunRequest$ = exports.GetApplicationResponse$ = exports.GetApplicationRequest$ = exports.DiskEncryptionConfiguration$ = exports.DeleteApplicationResponse$ = exports.DeleteApplicationRequest$ = exports.CreateApplicationResponse$ = exports.CreateApplicationRequest$ = exports.ConfigurationOverrides$ = exports.Configuration$ = exports.CloudWatchLoggingConfiguration$ = exports.CancelJobRunResponse$ = exports.CancelJobRunRequest$ = exports.AutoStopConfig$ = exports.AutoStartConfig$ = exports.ApplicationSummary$ = exports.Application$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.EMRServerlessServiceException$ = void 0;
4
- exports.UpdateApplication$ = exports.UntagResource$ = exports.TagResource$ = exports.StopApplication$ = exports.StartJobRun$ = exports.StartApplication$ = exports.ListTagsForResource$ = exports.ListJobRuns$ = exports.ListJobRunAttempts$ = exports.ListApplications$ = exports.GetJobRun$ = exports.GetDashboardForJobRun$ = exports.GetApplication$ = exports.DeleteApplication$ = exports.CreateApplication$ = exports.CancelJobRun$ = exports.JobDriver$ = exports.WorkerTypeSpecificationInput$ = exports.WorkerTypeSpecification$ = exports.WorkerResourceConfig$ = exports.UpdateApplicationResponse$ = exports.UpdateApplicationRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TotalResourceUtilization$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.StopApplicationResponse$ = exports.StopApplicationRequest$ = exports.StartJobRunResponse$ = exports.StartJobRunRequest$ = exports.StartApplicationResponse$ = exports.StartApplicationRequest$ = exports.SparkSubmit$ = exports.SchedulerConfiguration$ = exports.S3MonitoringConfiguration$ = exports.RetryPolicy$ = exports.ResourceUtilization$ = exports.PrometheusMonitoringConfiguration$ = exports.NetworkConfiguration$ = void 0;
3
+ exports.ListJobRunsRequest$ = exports.ListJobRunAttemptsResponse$ = exports.ListJobRunAttemptsRequest$ = exports.ListApplicationsResponse$ = exports.ListApplicationsRequest$ = exports.JobRunSummary$ = exports.JobRunExecutionIamPolicy$ = exports.JobRunAttemptSummary$ = exports.JobRun$ = exports.JobLevelCostAllocationConfiguration$ = exports.InteractiveConfiguration$ = exports.InitialCapacityConfig$ = exports.ImageConfigurationInput$ = exports.ImageConfiguration$ = exports.IdentityCenterConfigurationInput$ = exports.IdentityCenterConfiguration$ = exports.Hive$ = exports.GetSessionResponse$ = exports.GetSessionRequest$ = exports.GetSessionEndpointResponse$ = exports.GetSessionEndpointRequest$ = exports.GetResourceDashboardResponse$ = exports.GetResourceDashboardRequest$ = exports.GetJobRunResponse$ = exports.GetJobRunRequest$ = exports.GetDashboardForJobRunResponse$ = exports.GetDashboardForJobRunRequest$ = exports.GetApplicationResponse$ = exports.GetApplicationRequest$ = exports.DiskEncryptionConfiguration$ = exports.DeleteApplicationResponse$ = exports.DeleteApplicationRequest$ = exports.CreateApplicationResponse$ = exports.CreateApplicationRequest$ = exports.ConfigurationOverrides$ = exports.Configuration$ = exports.CloudWatchLoggingConfiguration$ = exports.CancelJobRunResponse$ = exports.CancelJobRunRequest$ = exports.AutoStopConfig$ = exports.AutoStartConfig$ = exports.ApplicationSummary$ = exports.Application$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.EMRServerlessServiceException$ = void 0;
4
+ exports.ListJobRunAttempts$ = exports.ListApplications$ = exports.GetSessionEndpoint$ = exports.GetSession$ = exports.GetResourceDashboard$ = exports.GetJobRun$ = exports.GetDashboardForJobRun$ = exports.GetApplication$ = exports.DeleteApplication$ = exports.CreateApplication$ = exports.CancelJobRun$ = exports.JobDriver$ = exports.WorkerTypeSpecificationInput$ = exports.WorkerTypeSpecification$ = exports.WorkerResourceConfig$ = exports.UpdateApplicationResponse$ = exports.UpdateApplicationRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TotalResourceUtilization$ = exports.TerminateSessionResponse$ = exports.TerminateSessionRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.StopApplicationResponse$ = exports.StopApplicationRequest$ = exports.StartSessionResponse$ = exports.StartSessionRequest$ = exports.StartJobRunResponse$ = exports.StartJobRunRequest$ = exports.StartApplicationResponse$ = exports.StartApplicationRequest$ = exports.SparkSubmit$ = exports.SessionSummary$ = exports.SessionConfigurationOverrides$ = exports.Session$ = exports.SchedulerConfiguration$ = exports.S3MonitoringConfiguration$ = exports.RetryPolicy$ = exports.ResourceUtilization$ = exports.PrometheusMonitoringConfiguration$ = exports.NetworkConfiguration$ = exports.MonitoringConfiguration$ = exports.MaximumAllowedResources$ = exports.ManagedPersistenceMonitoringConfiguration$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListSessionsResponse$ = exports.ListSessionsRequest$ = exports.ListJobRunsResponse$ = void 0;
5
+ exports.UpdateApplication$ = exports.UntagResource$ = exports.TerminateSession$ = exports.TagResource$ = exports.StopApplication$ = exports.StartSession$ = exports.StartJobRun$ = exports.StartApplication$ = exports.ListTagsForResource$ = exports.ListSessions$ = exports.ListJobRuns$ = void 0;
5
6
  const _A = "Application";
6
7
  const _AL = "ApplicationList";
7
8
  const _AS = "ApplicationSummary";
@@ -34,6 +35,15 @@ const _GDFJRRe = "GetDashboardForJobRunResponse";
34
35
  const _GJR = "GetJobRun";
35
36
  const _GJRR = "GetJobRunRequest";
36
37
  const _GJRRe = "GetJobRunResponse";
38
+ const _GRD = "GetResourceDashboard";
39
+ const _GRDR = "GetResourceDashboardRequest";
40
+ const _GRDRe = "GetResourceDashboardResponse";
41
+ const _GS = "GetSession";
42
+ const _GSE = "GetSessionEndpoint";
43
+ const _GSER = "GetSessionEndpointRequest";
44
+ const _GSERe = "GetSessionEndpointResponse";
45
+ const _GSR = "GetSessionRequest";
46
+ const _GSRe = "GetSessionResponse";
37
47
  const _H = "Hive";
38
48
  const _HCP = "HiveCliParameters";
39
49
  const _IC = "ImageConfiguration";
@@ -62,6 +72,9 @@ const _LJRAR = "ListJobRunAttemptsRequest";
62
72
  const _LJRARi = "ListJobRunAttemptsResponse";
63
73
  const _LJRR = "ListJobRunsRequest";
64
74
  const _LJRRi = "ListJobRunsResponse";
75
+ const _LS = "ListSessions";
76
+ const _LSR = "ListSessionsRequest";
77
+ const _LSRi = "ListSessionsResponse";
65
78
  const _LTFR = "ListTagsForResource";
66
79
  const _LTFRR = "ListTagsForResourceRequest";
67
80
  const _LTFRRi = "ListTagsForResourceResponse";
@@ -75,25 +88,36 @@ const _Q = "Query";
75
88
  const _RNFE = "ResourceNotFoundException";
76
89
  const _RP = "RetryPolicy";
77
90
  const _RU = "ResourceUtilization";
91
+ const _S = "Session";
78
92
  const _SA = "StartApplication";
79
93
  const _SAR = "StartApplicationRequest";
80
94
  const _SARt = "StartApplicationResponse";
81
95
  const _SARto = "StopApplicationRequest";
82
96
  const _SARtop = "StopApplicationResponse";
97
+ const _SAT = "SessionAuthToken";
83
98
  const _SAt = "StopApplication";
84
99
  const _SC = "SchedulerConfiguration";
100
+ const _SCO = "SessionConfigurationOverrides";
85
101
  const _SJR = "StartJobRun";
86
102
  const _SJRR = "StartJobRunRequest";
87
103
  const _SJRRt = "StartJobRunResponse";
88
104
  const _SMC = "S3MonitoringConfiguration";
89
105
  const _SPM = "SensitivePropertiesMap";
90
106
  const _SQEE = "ServiceQuotaExceededException";
91
- const _SS = "SparkSubmit";
107
+ const _SS = "SessionSummary";
92
108
  const _SSP = "SparkSubmitParameters";
109
+ const _SSR = "StartSessionRequest";
110
+ const _SSRt = "StartSessionResponse";
111
+ const _SSp = "SparkSubmit";
112
+ const _SSt = "StartSession";
113
+ const _Se = "Sessions";
93
114
  const _TR = "TagResource";
94
115
  const _TRR = "TagResourceRequest";
95
116
  const _TRRa = "TagResourceResponse";
96
117
  const _TRU = "TotalResourceUtilization";
118
+ const _TS = "TerminateSession";
119
+ const _TSR = "TerminateSessionRequest";
120
+ const _TSRe = "TerminateSessionResponse";
97
121
  const _UA = "UpdateApplication";
98
122
  const _UAR = "UpdateApplicationRequest";
99
123
  const _UARp = "UpdateApplicationResponse";
@@ -113,6 +137,8 @@ const _aI = "applicationId";
113
137
  const _aSC = "autoStartConfiguration";
114
138
  const _aSCu = "autoStopConfiguration";
115
139
  const _aSPL = "accessSystemProfileLogs";
140
+ const _aT = "authToken";
141
+ const _aTEA = "authTokenExpiresAt";
116
142
  const _aUA = "attemptUpdatedAt";
117
143
  const _ap = "application";
118
144
  const _app = "applications";
@@ -144,6 +170,7 @@ const _eR = "executionRole";
144
170
  const _eRA = "executionRoleArn";
145
171
  const _eTM = "executionTimeoutMinutes";
146
172
  const _en = "enabled";
173
+ const _end = "endpoint";
147
174
  const _h = "hive";
148
175
  const _hE = "httpError";
149
176
  const _hQ = "httpQuery";
@@ -156,6 +183,7 @@ const _iCIA = "identityCenterInstanceArn";
156
183
  const _iCm = "imageConfiguration";
157
184
  const _iCn = "interactiveConfiguration";
158
185
  const _iQF = "initQueryFile";
186
+ const _iS = "idleSince";
159
187
  const _iTM = "idleTimeoutMinutes";
160
188
  const _iU = "imageUri";
161
189
  const _jCA = "jobCreatedAt";
@@ -194,23 +222,29 @@ const _qDM = "queuedDurationMilliseconds";
194
222
  const _qTM = "queueTimeoutMinutes";
195
223
  const _rA = "resourceArn";
196
224
  const _rC = "runtimeConfiguration";
225
+ const _rI = "resourceId";
197
226
  const _rID = "resolvedImageDigest";
198
227
  const _rL = "releaseLabel";
199
228
  const _rP = "retryPolicy";
229
+ const _rT = "resourceType";
200
230
  const _rWU = "remoteWriteUrl";
201
231
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.emrserverless";
202
232
  const _sA = "startedAt";
203
233
  const _sC = "schedulerConfiguration";
204
234
  const _sD = "stateDetails";
205
235
  const _sE = "studioEnabled";
236
+ const _sEe = "sessionEnabled";
206
237
  const _sGBH = "storageGBHour";
207
238
  const _sGI = "securityGroupIds";
208
239
  const _sGPIS = "shutdownGracePeriodInSeconds";
209
- const _sI = "subnetIds";
240
+ const _sI = "sessionId";
241
+ const _sIu = "subnetIds";
210
242
  const _sMC = "s3MonitoringConfiguration";
211
243
  const _sS = "sparkSubmit";
212
244
  const _sSP = "sparkSubmitParameters";
213
245
  const _se = "server";
246
+ const _ses = "session";
247
+ const _sess = "sessions";
214
248
  const _st = "state";
215
249
  const _sta = "states";
216
250
  const _t = "type";
@@ -272,6 +306,7 @@ var EntryPointPath = [0, n0, _EPP, 8, 0];
272
306
  var HiveCliParameters = [0, n0, _HCP, 8, 0];
273
307
  var InitScriptPath = [0, n0, _ISP, 8, 0];
274
308
  var Query = [0, n0, _Q, 8, 0];
309
+ var SessionAuthToken = [0, n0, _SAT, 8, 0];
275
310
  var SparkSubmitParameters = [0, n0, _SSP, 8, 0];
276
311
  exports.Application$ = [3, n0, _A,
277
312
  0,
@@ -373,6 +408,36 @@ exports.GetJobRunResponse$ = [3, n0, _GJRRe,
373
408
  [_jR],
374
409
  [[() => exports.JobRun$, 0]], 1
375
410
  ];
411
+ exports.GetResourceDashboardRequest$ = [3, n0, _GRDR,
412
+ 0,
413
+ [_aI, _rI, _rT],
414
+ [[0, 1], [0, { [_hQ]: _rI }], [0, { [_hQ]: _rT }]], 3
415
+ ];
416
+ exports.GetResourceDashboardResponse$ = [3, n0, _GRDRe,
417
+ 0,
418
+ [_u],
419
+ [0]
420
+ ];
421
+ exports.GetSessionEndpointRequest$ = [3, n0, _GSER,
422
+ 0,
423
+ [_aI, _sI],
424
+ [[0, 1], [0, 1]], 2
425
+ ];
426
+ exports.GetSessionEndpointResponse$ = [3, n0, _GSERe,
427
+ 0,
428
+ [_aI, _sI, _end, _aT, _aTEA],
429
+ [0, 0, 0, [() => SessionAuthToken, 0], 4], 5
430
+ ];
431
+ exports.GetSessionRequest$ = [3, n0, _GSR,
432
+ 0,
433
+ [_aI, _sI],
434
+ [[0, 1], [0, 1]], 2
435
+ ];
436
+ exports.GetSessionResponse$ = [3, n0, _GSRe,
437
+ 0,
438
+ [_ses],
439
+ [[() => exports.Session$, 0]], 1
440
+ ];
376
441
  exports.Hive$ = [3, n0, _H,
377
442
  0,
378
443
  [_q, _iQF, _pa],
@@ -405,8 +470,8 @@ exports.InitialCapacityConfig$ = [3, n0, _ICCn,
405
470
  ];
406
471
  exports.InteractiveConfiguration$ = [3, n0, _ICn,
407
472
  0,
408
- [_sE, _lEE],
409
- [2, 2]
473
+ [_sE, _lEE, _sEe],
474
+ [2, 2, 2]
410
475
  ];
411
476
  exports.JobLevelCostAllocationConfiguration$ = [3, n0, _JLCAC,
412
477
  0,
@@ -463,6 +528,16 @@ exports.ListJobRunsResponse$ = [3, n0, _LJRRi,
463
528
  [_jRo, _nT],
464
529
  [() => JobRuns, 0], 1
465
530
  ];
531
+ exports.ListSessionsRequest$ = [3, n0, _LSR,
532
+ 0,
533
+ [_aI, _nT, _mR, _sta, _cAA, _cAB],
534
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [64 | 0, { [_hQ]: _sta }], [4, { [_hQ]: _cAA }], [4, { [_hQ]: _cAB }]], 1
535
+ ];
536
+ exports.ListSessionsResponse$ = [3, n0, _LSRi,
537
+ 0,
538
+ [_sess, _nT],
539
+ [() => Sessions, 0], 1
540
+ ];
466
541
  exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
467
542
  0,
468
543
  [_rA],
@@ -490,7 +565,7 @@ exports.MonitoringConfiguration$ = [3, n0, _MC,
490
565
  ];
491
566
  exports.NetworkConfiguration$ = [3, n0, _NC,
492
567
  0,
493
- [_sI, _sGI],
568
+ [_sIu, _sGI],
494
569
  [64 | 0, 64 | 0]
495
570
  ];
496
571
  exports.PrometheusMonitoringConfiguration$ = [3, n0, _PMC,
@@ -518,7 +593,22 @@ exports.SchedulerConfiguration$ = [3, n0, _SC,
518
593
  [_qTM, _mCR],
519
594
  [1, 1]
520
595
  ];
521
- exports.SparkSubmit$ = [3, n0, _SS,
596
+ exports.Session$ = [3, n0, _S,
597
+ 0,
598
+ [_aI, _sI, _a, _st, _sD, _rL, _eRA, _cB, _cA, _uA, _n, _sA, _eA, _iS, _cO, _nC, _iTM, _ta, _tRU, _bRU, _tEDS],
599
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 4, 4, 4, [() => exports.SessionConfigurationOverrides$, 0], () => exports.NetworkConfiguration$, 1, 128 | 0, () => exports.TotalResourceUtilization$, () => exports.ResourceUtilization$, 1], 10
600
+ ];
601
+ exports.SessionConfigurationOverrides$ = [3, n0, _SCO,
602
+ 0,
603
+ [_rC],
604
+ [[() => ConfigurationList, 0]]
605
+ ];
606
+ exports.SessionSummary$ = [3, n0, _SS,
607
+ 0,
608
+ [_aI, _sI, _a, _st, _sD, _rL, _eRA, _cB, _cA, _uA, _n],
609
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0], 10
610
+ ];
611
+ exports.SparkSubmit$ = [3, n0, _SSp,
522
612
  0,
523
613
  [_eP, _ePA, _sSP],
524
614
  [[() => EntryPointPath, 0], [() => EntryPointArguments, 0], [() => SparkSubmitParameters, 0]], 1
@@ -543,6 +633,16 @@ exports.StartJobRunResponse$ = [3, n0, _SJRRt,
543
633
  [_aI, _jRI, _a],
544
634
  [0, 0, 0], 3
545
635
  ];
636
+ exports.StartSessionRequest$ = [3, n0, _SSR,
637
+ 0,
638
+ [_aI, _eRA, _cT, _cO, _ta, _iTM, _n],
639
+ [[0, 1], 0, [0, 4], [() => exports.SessionConfigurationOverrides$, 0], 128 | 0, 1, 0], 2
640
+ ];
641
+ exports.StartSessionResponse$ = [3, n0, _SSRt,
642
+ 0,
643
+ [_aI, _sI, _a],
644
+ [0, 0, 0], 3
645
+ ];
546
646
  exports.StopApplicationRequest$ = [3, n0, _SARto,
547
647
  0,
548
648
  [_aI],
@@ -563,6 +663,16 @@ exports.TagResourceResponse$ = [3, n0, _TRRa,
563
663
  [],
564
664
  []
565
665
  ];
666
+ exports.TerminateSessionRequest$ = [3, n0, _TSR,
667
+ 0,
668
+ [_aI, _sI],
669
+ [[0, 1], [0, 1]], 2
670
+ ];
671
+ exports.TerminateSessionResponse$ = [3, n0, _TSRe,
672
+ 0,
673
+ [_aI, _sI],
674
+ [0, 0], 2
675
+ ];
566
676
  exports.TotalResourceUtilization$ = [3, n0, _TRU,
567
677
  0,
568
678
  [_vCPUH, _mGBH, _sGBH],
@@ -625,6 +735,10 @@ var JobRunStateSet = 64 | 0;
625
735
  var LogTypeList = 64 | 0;
626
736
  var PolicyArnList = 64 | 0;
627
737
  var SecurityGroupIds = 64 | 0;
738
+ var Sessions = [1, n0, _Se,
739
+ 0, () => exports.SessionSummary$
740
+ ];
741
+ var SessionStateSet = 64 | 0;
628
742
  var SubnetIds = 64 | 0;
629
743
  var TagKeyList = 64 | 0;
630
744
  var EncryptionContext = 128 | 0;
@@ -667,6 +781,15 @@ exports.GetDashboardForJobRun$ = [9, n0, _GDFJR,
667
781
  exports.GetJobRun$ = [9, n0, _GJR,
668
782
  { [_ht]: ["GET", "/applications/{applicationId}/jobruns/{jobRunId}", 200] }, () => exports.GetJobRunRequest$, () => exports.GetJobRunResponse$
669
783
  ];
784
+ exports.GetResourceDashboard$ = [9, n0, _GRD,
785
+ { [_ht]: ["GET", "/applications/{applicationId}/dashboard", 200] }, () => exports.GetResourceDashboardRequest$, () => exports.GetResourceDashboardResponse$
786
+ ];
787
+ exports.GetSession$ = [9, n0, _GS,
788
+ { [_ht]: ["GET", "/applications/{applicationId}/sessions/{sessionId}", 200] }, () => exports.GetSessionRequest$, () => exports.GetSessionResponse$
789
+ ];
790
+ exports.GetSessionEndpoint$ = [9, n0, _GSE,
791
+ { [_ht]: ["GET", "/applications/{applicationId}/sessions/{sessionId}/endpoint", 200] }, () => exports.GetSessionEndpointRequest$, () => exports.GetSessionEndpointResponse$
792
+ ];
670
793
  exports.ListApplications$ = [9, n0, _LA,
671
794
  { [_ht]: ["GET", "/applications", 200] }, () => exports.ListApplicationsRequest$, () => exports.ListApplicationsResponse$
672
795
  ];
@@ -676,6 +799,9 @@ exports.ListJobRunAttempts$ = [9, n0, _LJRA,
676
799
  exports.ListJobRuns$ = [9, n0, _LJR,
677
800
  { [_ht]: ["GET", "/applications/{applicationId}/jobruns", 200] }, () => exports.ListJobRunsRequest$, () => exports.ListJobRunsResponse$
678
801
  ];
802
+ exports.ListSessions$ = [9, n0, _LS,
803
+ { [_ht]: ["GET", "/applications/{applicationId}/sessions", 200] }, () => exports.ListSessionsRequest$, () => exports.ListSessionsResponse$
804
+ ];
679
805
  exports.ListTagsForResource$ = [9, n0, _LTFR,
680
806
  { [_ht]: ["GET", "/tags/{resourceArn}", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
681
807
  ];
@@ -685,12 +811,18 @@ exports.StartApplication$ = [9, n0, _SA,
685
811
  exports.StartJobRun$ = [9, n0, _SJR,
686
812
  { [_ht]: ["POST", "/applications/{applicationId}/jobruns", 200] }, () => exports.StartJobRunRequest$, () => exports.StartJobRunResponse$
687
813
  ];
814
+ exports.StartSession$ = [9, n0, _SSt,
815
+ { [_ht]: ["POST", "/applications/{applicationId}/sessions", 200] }, () => exports.StartSessionRequest$, () => exports.StartSessionResponse$
816
+ ];
688
817
  exports.StopApplication$ = [9, n0, _SAt,
689
818
  { [_ht]: ["POST", "/applications/{applicationId}/stop", 200] }, () => exports.StopApplicationRequest$, () => exports.StopApplicationResponse$
690
819
  ];
691
820
  exports.TagResource$ = [9, n0, _TR,
692
821
  { [_ht]: ["POST", "/tags/{resourceArn}", 200] }, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
693
822
  ];
823
+ exports.TerminateSession$ = [9, n0, _TS,
824
+ { [_ht]: ["DELETE", "/applications/{applicationId}/sessions/{sessionId}", 200] }, () => exports.TerminateSessionRequest$, () => exports.TerminateSessionResponse$
825
+ ];
694
826
  exports.UntagResource$ = [9, n0, _UR,
695
827
  { [_ht]: ["DELETE", "/tags/{resourceArn}", 200] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
696
828
  ];
@@ -5,20 +5,27 @@ import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
5
5
  import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
6
6
  import { GetDashboardForJobRunCommand, } from "./commands/GetDashboardForJobRunCommand";
7
7
  import { GetJobRunCommand } from "./commands/GetJobRunCommand";
8
+ import { GetResourceDashboardCommand, } from "./commands/GetResourceDashboardCommand";
9
+ import { GetSessionCommand, } from "./commands/GetSessionCommand";
10
+ import { GetSessionEndpointCommand, } from "./commands/GetSessionEndpointCommand";
8
11
  import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
9
12
  import { ListJobRunAttemptsCommand, } from "./commands/ListJobRunAttemptsCommand";
10
13
  import { ListJobRunsCommand, } from "./commands/ListJobRunsCommand";
14
+ import { ListSessionsCommand, } from "./commands/ListSessionsCommand";
11
15
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
12
16
  import { StartApplicationCommand, } from "./commands/StartApplicationCommand";
13
17
  import { StartJobRunCommand, } from "./commands/StartJobRunCommand";
18
+ import { StartSessionCommand, } from "./commands/StartSessionCommand";
14
19
  import { StopApplicationCommand, } from "./commands/StopApplicationCommand";
15
20
  import { TagResourceCommand, } from "./commands/TagResourceCommand";
21
+ import { TerminateSessionCommand, } from "./commands/TerminateSessionCommand";
16
22
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
23
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
18
24
  import { EMRServerlessClient } from "./EMRServerlessClient";
19
25
  import { paginateListApplications } from "./pagination/ListApplicationsPaginator";
20
26
  import { paginateListJobRunAttempts } from "./pagination/ListJobRunAttemptsPaginator";
21
27
  import { paginateListJobRuns } from "./pagination/ListJobRunsPaginator";
28
+ import { paginateListSessions } from "./pagination/ListSessionsPaginator";
22
29
  const commands = {
23
30
  CancelJobRunCommand,
24
31
  CreateApplicationCommand,
@@ -26,14 +33,20 @@ const commands = {
26
33
  GetApplicationCommand,
27
34
  GetDashboardForJobRunCommand,
28
35
  GetJobRunCommand,
36
+ GetResourceDashboardCommand,
37
+ GetSessionCommand,
38
+ GetSessionEndpointCommand,
29
39
  ListApplicationsCommand,
30
40
  ListJobRunAttemptsCommand,
31
41
  ListJobRunsCommand,
42
+ ListSessionsCommand,
32
43
  ListTagsForResourceCommand,
33
44
  StartApplicationCommand,
34
45
  StartJobRunCommand,
46
+ StartSessionCommand,
35
47
  StopApplicationCommand,
36
48
  TagResourceCommand,
49
+ TerminateSessionCommand,
37
50
  UntagResourceCommand,
38
51
  UpdateApplicationCommand,
39
52
  };
@@ -41,6 +54,7 @@ const paginators = {
41
54
  paginateListApplications,
42
55
  paginateListJobRunAttempts,
43
56
  paginateListJobRuns,
57
+ paginateListSessions,
44
58
  };
45
59
  export class EMRServerless extends EMRServerlessClient {
46
60
  }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetResourceDashboard$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetResourceDashboardCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AwsToledoWebService", "GetResourceDashboard", {})
13
+ .n("EMRServerlessClient", "GetResourceDashboardCommand")
14
+ .sc(GetResourceDashboard$)
15
+ .build() {
16
+ }