@aws-sdk/client-emr-serverless 3.1033.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 +18 -18
@@ -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 { GetSession$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetSessionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AwsToledoWebService", "GetSession", {})
13
+ .n("EMRServerlessClient", "GetSessionCommand")
14
+ .sc(GetSession$)
15
+ .build() {
16
+ }
@@ -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 { GetSessionEndpoint$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetSessionEndpointCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AwsToledoWebService", "GetSessionEndpoint", {})
13
+ .n("EMRServerlessClient", "GetSessionEndpointCommand")
14
+ .sc(GetSessionEndpoint$)
15
+ .build() {
16
+ }
@@ -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 { ListSessions$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSessionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AwsToledoWebService", "ListSessions", {})
13
+ .n("EMRServerlessClient", "ListSessionsCommand")
14
+ .sc(ListSessions$)
15
+ .build() {
16
+ }
@@ -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 { StartSession$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StartSessionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AwsToledoWebService", "StartSession", {})
13
+ .n("EMRServerlessClient", "StartSessionCommand")
14
+ .sc(StartSession$)
15
+ .build() {
16
+ }
@@ -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 { TerminateSession$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TerminateSessionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AwsToledoWebService", "TerminateSession", {})
13
+ .n("EMRServerlessClient", "TerminateSessionCommand")
14
+ .sc(TerminateSession$)
15
+ .build() {
16
+ }
@@ -4,13 +4,19 @@ export * from "./DeleteApplicationCommand";
4
4
  export * from "./GetApplicationCommand";
5
5
  export * from "./GetDashboardForJobRunCommand";
6
6
  export * from "./GetJobRunCommand";
7
+ export * from "./GetResourceDashboardCommand";
8
+ export * from "./GetSessionCommand";
9
+ export * from "./GetSessionEndpointCommand";
7
10
  export * from "./ListApplicationsCommand";
8
11
  export * from "./ListJobRunAttemptsCommand";
9
12
  export * from "./ListJobRunsCommand";
13
+ export * from "./ListSessionsCommand";
10
14
  export * from "./ListTagsForResourceCommand";
11
15
  export * from "./StartApplicationCommand";
12
16
  export * from "./StartJobRunCommand";
17
+ export * from "./StartSessionCommand";
13
18
  export * from "./StopApplicationCommand";
14
19
  export * from "./TagResourceCommand";
20
+ export * from "./TerminateSessionCommand";
15
21
  export * from "./UntagResourceCommand";
16
22
  export * from "./UpdateApplicationCommand";
@@ -11,6 +11,9 @@ export const ApplicationState = {
11
11
  STOPPING: "STOPPING",
12
12
  TERMINATED: "TERMINATED",
13
13
  };
14
+ export const ResourceType = {
15
+ SESSION: "SESSION",
16
+ };
14
17
  export const JobRunMode = {
15
18
  BATCH: "BATCH",
16
19
  STREAMING: "STREAMING",
@@ -26,3 +29,13 @@ export const JobRunState = {
26
29
  SUBMITTED: "SUBMITTED",
27
30
  SUCCESS: "SUCCESS",
28
31
  };
32
+ export const SessionState = {
33
+ BUSY: "BUSY",
34
+ FAILED: "FAILED",
35
+ IDLE: "IDLE",
36
+ STARTED: "STARTED",
37
+ STARTING: "STARTING",
38
+ SUBMITTED: "SUBMITTED",
39
+ TERMINATED: "TERMINATED",
40
+ TERMINATING: "TERMINATING",
41
+ };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
3
+ import { EMRServerlessClient } from "../EMRServerlessClient";
4
+ export const paginateListSessions = createPaginator(EMRServerlessClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -2,3 +2,4 @@ export * from "./Interfaces";
2
2
  export * from "./ListApplicationsPaginator";
3
3
  export * from "./ListJobRunAttemptsPaginator";
4
4
  export * from "./ListJobRunsPaginator";
5
+ export * from "./ListSessionsPaginator";
@@ -30,6 +30,15 @@ const _GDFJRRe = "GetDashboardForJobRunResponse";
30
30
  const _GJR = "GetJobRun";
31
31
  const _GJRR = "GetJobRunRequest";
32
32
  const _GJRRe = "GetJobRunResponse";
33
+ const _GRD = "GetResourceDashboard";
34
+ const _GRDR = "GetResourceDashboardRequest";
35
+ const _GRDRe = "GetResourceDashboardResponse";
36
+ const _GS = "GetSession";
37
+ const _GSE = "GetSessionEndpoint";
38
+ const _GSER = "GetSessionEndpointRequest";
39
+ const _GSERe = "GetSessionEndpointResponse";
40
+ const _GSR = "GetSessionRequest";
41
+ const _GSRe = "GetSessionResponse";
33
42
  const _H = "Hive";
34
43
  const _HCP = "HiveCliParameters";
35
44
  const _IC = "ImageConfiguration";
@@ -58,6 +67,9 @@ const _LJRAR = "ListJobRunAttemptsRequest";
58
67
  const _LJRARi = "ListJobRunAttemptsResponse";
59
68
  const _LJRR = "ListJobRunsRequest";
60
69
  const _LJRRi = "ListJobRunsResponse";
70
+ const _LS = "ListSessions";
71
+ const _LSR = "ListSessionsRequest";
72
+ const _LSRi = "ListSessionsResponse";
61
73
  const _LTFR = "ListTagsForResource";
62
74
  const _LTFRR = "ListTagsForResourceRequest";
63
75
  const _LTFRRi = "ListTagsForResourceResponse";
@@ -71,25 +83,36 @@ const _Q = "Query";
71
83
  const _RNFE = "ResourceNotFoundException";
72
84
  const _RP = "RetryPolicy";
73
85
  const _RU = "ResourceUtilization";
86
+ const _S = "Session";
74
87
  const _SA = "StartApplication";
75
88
  const _SAR = "StartApplicationRequest";
76
89
  const _SARt = "StartApplicationResponse";
77
90
  const _SARto = "StopApplicationRequest";
78
91
  const _SARtop = "StopApplicationResponse";
92
+ const _SAT = "SessionAuthToken";
79
93
  const _SAt = "StopApplication";
80
94
  const _SC = "SchedulerConfiguration";
95
+ const _SCO = "SessionConfigurationOverrides";
81
96
  const _SJR = "StartJobRun";
82
97
  const _SJRR = "StartJobRunRequest";
83
98
  const _SJRRt = "StartJobRunResponse";
84
99
  const _SMC = "S3MonitoringConfiguration";
85
100
  const _SPM = "SensitivePropertiesMap";
86
101
  const _SQEE = "ServiceQuotaExceededException";
87
- const _SS = "SparkSubmit";
102
+ const _SS = "SessionSummary";
88
103
  const _SSP = "SparkSubmitParameters";
104
+ const _SSR = "StartSessionRequest";
105
+ const _SSRt = "StartSessionResponse";
106
+ const _SSp = "SparkSubmit";
107
+ const _SSt = "StartSession";
108
+ const _Se = "Sessions";
89
109
  const _TR = "TagResource";
90
110
  const _TRR = "TagResourceRequest";
91
111
  const _TRRa = "TagResourceResponse";
92
112
  const _TRU = "TotalResourceUtilization";
113
+ const _TS = "TerminateSession";
114
+ const _TSR = "TerminateSessionRequest";
115
+ const _TSRe = "TerminateSessionResponse";
93
116
  const _UA = "UpdateApplication";
94
117
  const _UAR = "UpdateApplicationRequest";
95
118
  const _UARp = "UpdateApplicationResponse";
@@ -109,6 +132,8 @@ const _aI = "applicationId";
109
132
  const _aSC = "autoStartConfiguration";
110
133
  const _aSCu = "autoStopConfiguration";
111
134
  const _aSPL = "accessSystemProfileLogs";
135
+ const _aT = "authToken";
136
+ const _aTEA = "authTokenExpiresAt";
112
137
  const _aUA = "attemptUpdatedAt";
113
138
  const _ap = "application";
114
139
  const _app = "applications";
@@ -140,6 +165,7 @@ const _eR = "executionRole";
140
165
  const _eRA = "executionRoleArn";
141
166
  const _eTM = "executionTimeoutMinutes";
142
167
  const _en = "enabled";
168
+ const _end = "endpoint";
143
169
  const _h = "hive";
144
170
  const _hE = "httpError";
145
171
  const _hQ = "httpQuery";
@@ -152,6 +178,7 @@ const _iCIA = "identityCenterInstanceArn";
152
178
  const _iCm = "imageConfiguration";
153
179
  const _iCn = "interactiveConfiguration";
154
180
  const _iQF = "initQueryFile";
181
+ const _iS = "idleSince";
155
182
  const _iTM = "idleTimeoutMinutes";
156
183
  const _iU = "imageUri";
157
184
  const _jCA = "jobCreatedAt";
@@ -190,23 +217,29 @@ const _qDM = "queuedDurationMilliseconds";
190
217
  const _qTM = "queueTimeoutMinutes";
191
218
  const _rA = "resourceArn";
192
219
  const _rC = "runtimeConfiguration";
220
+ const _rI = "resourceId";
193
221
  const _rID = "resolvedImageDigest";
194
222
  const _rL = "releaseLabel";
195
223
  const _rP = "retryPolicy";
224
+ const _rT = "resourceType";
196
225
  const _rWU = "remoteWriteUrl";
197
226
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.emrserverless";
198
227
  const _sA = "startedAt";
199
228
  const _sC = "schedulerConfiguration";
200
229
  const _sD = "stateDetails";
201
230
  const _sE = "studioEnabled";
231
+ const _sEe = "sessionEnabled";
202
232
  const _sGBH = "storageGBHour";
203
233
  const _sGI = "securityGroupIds";
204
234
  const _sGPIS = "shutdownGracePeriodInSeconds";
205
- const _sI = "subnetIds";
235
+ const _sI = "sessionId";
236
+ const _sIu = "subnetIds";
206
237
  const _sMC = "s3MonitoringConfiguration";
207
238
  const _sS = "sparkSubmit";
208
239
  const _sSP = "sparkSubmitParameters";
209
240
  const _se = "server";
241
+ const _ses = "session";
242
+ const _sess = "sessions";
210
243
  const _st = "state";
211
244
  const _sta = "states";
212
245
  const _t = "type";
@@ -268,6 +301,7 @@ var EntryPointPath = [0, n0, _EPP, 8, 0];
268
301
  var HiveCliParameters = [0, n0, _HCP, 8, 0];
269
302
  var InitScriptPath = [0, n0, _ISP, 8, 0];
270
303
  var Query = [0, n0, _Q, 8, 0];
304
+ var SessionAuthToken = [0, n0, _SAT, 8, 0];
271
305
  var SparkSubmitParameters = [0, n0, _SSP, 8, 0];
272
306
  export var Application$ = [3, n0, _A,
273
307
  0,
@@ -369,6 +403,36 @@ export var GetJobRunResponse$ = [3, n0, _GJRRe,
369
403
  [_jR],
370
404
  [[() => JobRun$, 0]], 1
371
405
  ];
406
+ export var GetResourceDashboardRequest$ = [3, n0, _GRDR,
407
+ 0,
408
+ [_aI, _rI, _rT],
409
+ [[0, 1], [0, { [_hQ]: _rI }], [0, { [_hQ]: _rT }]], 3
410
+ ];
411
+ export var GetResourceDashboardResponse$ = [3, n0, _GRDRe,
412
+ 0,
413
+ [_u],
414
+ [0]
415
+ ];
416
+ export var GetSessionEndpointRequest$ = [3, n0, _GSER,
417
+ 0,
418
+ [_aI, _sI],
419
+ [[0, 1], [0, 1]], 2
420
+ ];
421
+ export var GetSessionEndpointResponse$ = [3, n0, _GSERe,
422
+ 0,
423
+ [_aI, _sI, _end, _aT, _aTEA],
424
+ [0, 0, 0, [() => SessionAuthToken, 0], 4], 5
425
+ ];
426
+ export var GetSessionRequest$ = [3, n0, _GSR,
427
+ 0,
428
+ [_aI, _sI],
429
+ [[0, 1], [0, 1]], 2
430
+ ];
431
+ export var GetSessionResponse$ = [3, n0, _GSRe,
432
+ 0,
433
+ [_ses],
434
+ [[() => Session$, 0]], 1
435
+ ];
372
436
  export var Hive$ = [3, n0, _H,
373
437
  0,
374
438
  [_q, _iQF, _pa],
@@ -401,8 +465,8 @@ export var InitialCapacityConfig$ = [3, n0, _ICCn,
401
465
  ];
402
466
  export var InteractiveConfiguration$ = [3, n0, _ICn,
403
467
  0,
404
- [_sE, _lEE],
405
- [2, 2]
468
+ [_sE, _lEE, _sEe],
469
+ [2, 2, 2]
406
470
  ];
407
471
  export var JobLevelCostAllocationConfiguration$ = [3, n0, _JLCAC,
408
472
  0,
@@ -459,6 +523,16 @@ export var ListJobRunsResponse$ = [3, n0, _LJRRi,
459
523
  [_jRo, _nT],
460
524
  [() => JobRuns, 0], 1
461
525
  ];
526
+ export var ListSessionsRequest$ = [3, n0, _LSR,
527
+ 0,
528
+ [_aI, _nT, _mR, _sta, _cAA, _cAB],
529
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [64 | 0, { [_hQ]: _sta }], [4, { [_hQ]: _cAA }], [4, { [_hQ]: _cAB }]], 1
530
+ ];
531
+ export var ListSessionsResponse$ = [3, n0, _LSRi,
532
+ 0,
533
+ [_sess, _nT],
534
+ [() => Sessions, 0], 1
535
+ ];
462
536
  export var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
463
537
  0,
464
538
  [_rA],
@@ -486,7 +560,7 @@ export var MonitoringConfiguration$ = [3, n0, _MC,
486
560
  ];
487
561
  export var NetworkConfiguration$ = [3, n0, _NC,
488
562
  0,
489
- [_sI, _sGI],
563
+ [_sIu, _sGI],
490
564
  [64 | 0, 64 | 0]
491
565
  ];
492
566
  export var PrometheusMonitoringConfiguration$ = [3, n0, _PMC,
@@ -514,7 +588,22 @@ export var SchedulerConfiguration$ = [3, n0, _SC,
514
588
  [_qTM, _mCR],
515
589
  [1, 1]
516
590
  ];
517
- export var SparkSubmit$ = [3, n0, _SS,
591
+ export var Session$ = [3, n0, _S,
592
+ 0,
593
+ [_aI, _sI, _a, _st, _sD, _rL, _eRA, _cB, _cA, _uA, _n, _sA, _eA, _iS, _cO, _nC, _iTM, _ta, _tRU, _bRU, _tEDS],
594
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 4, 4, 4, [() => SessionConfigurationOverrides$, 0], () => NetworkConfiguration$, 1, 128 | 0, () => TotalResourceUtilization$, () => ResourceUtilization$, 1], 10
595
+ ];
596
+ export var SessionConfigurationOverrides$ = [3, n0, _SCO,
597
+ 0,
598
+ [_rC],
599
+ [[() => ConfigurationList, 0]]
600
+ ];
601
+ export var SessionSummary$ = [3, n0, _SS,
602
+ 0,
603
+ [_aI, _sI, _a, _st, _sD, _rL, _eRA, _cB, _cA, _uA, _n],
604
+ [0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0], 10
605
+ ];
606
+ export var SparkSubmit$ = [3, n0, _SSp,
518
607
  0,
519
608
  [_eP, _ePA, _sSP],
520
609
  [[() => EntryPointPath, 0], [() => EntryPointArguments, 0], [() => SparkSubmitParameters, 0]], 1
@@ -539,6 +628,16 @@ export var StartJobRunResponse$ = [3, n0, _SJRRt,
539
628
  [_aI, _jRI, _a],
540
629
  [0, 0, 0], 3
541
630
  ];
631
+ export var StartSessionRequest$ = [3, n0, _SSR,
632
+ 0,
633
+ [_aI, _eRA, _cT, _cO, _ta, _iTM, _n],
634
+ [[0, 1], 0, [0, 4], [() => SessionConfigurationOverrides$, 0], 128 | 0, 1, 0], 2
635
+ ];
636
+ export var StartSessionResponse$ = [3, n0, _SSRt,
637
+ 0,
638
+ [_aI, _sI, _a],
639
+ [0, 0, 0], 3
640
+ ];
542
641
  export var StopApplicationRequest$ = [3, n0, _SARto,
543
642
  0,
544
643
  [_aI],
@@ -559,6 +658,16 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
559
658
  [],
560
659
  []
561
660
  ];
661
+ export var TerminateSessionRequest$ = [3, n0, _TSR,
662
+ 0,
663
+ [_aI, _sI],
664
+ [[0, 1], [0, 1]], 2
665
+ ];
666
+ export var TerminateSessionResponse$ = [3, n0, _TSRe,
667
+ 0,
668
+ [_aI, _sI],
669
+ [0, 0], 2
670
+ ];
562
671
  export var TotalResourceUtilization$ = [3, n0, _TRU,
563
672
  0,
564
673
  [_vCPUH, _mGBH, _sGBH],
@@ -621,6 +730,10 @@ var JobRunStateSet = 64 | 0;
621
730
  var LogTypeList = 64 | 0;
622
731
  var PolicyArnList = 64 | 0;
623
732
  var SecurityGroupIds = 64 | 0;
733
+ var Sessions = [1, n0, _Se,
734
+ 0, () => SessionSummary$
735
+ ];
736
+ var SessionStateSet = 64 | 0;
624
737
  var SubnetIds = 64 | 0;
625
738
  var TagKeyList = 64 | 0;
626
739
  var EncryptionContext = 128 | 0;
@@ -663,6 +776,15 @@ export var GetDashboardForJobRun$ = [9, n0, _GDFJR,
663
776
  export var GetJobRun$ = [9, n0, _GJR,
664
777
  { [_ht]: ["GET", "/applications/{applicationId}/jobruns/{jobRunId}", 200] }, () => GetJobRunRequest$, () => GetJobRunResponse$
665
778
  ];
779
+ export var GetResourceDashboard$ = [9, n0, _GRD,
780
+ { [_ht]: ["GET", "/applications/{applicationId}/dashboard", 200] }, () => GetResourceDashboardRequest$, () => GetResourceDashboardResponse$
781
+ ];
782
+ export var GetSession$ = [9, n0, _GS,
783
+ { [_ht]: ["GET", "/applications/{applicationId}/sessions/{sessionId}", 200] }, () => GetSessionRequest$, () => GetSessionResponse$
784
+ ];
785
+ export var GetSessionEndpoint$ = [9, n0, _GSE,
786
+ { [_ht]: ["GET", "/applications/{applicationId}/sessions/{sessionId}/endpoint", 200] }, () => GetSessionEndpointRequest$, () => GetSessionEndpointResponse$
787
+ ];
666
788
  export var ListApplications$ = [9, n0, _LA,
667
789
  { [_ht]: ["GET", "/applications", 200] }, () => ListApplicationsRequest$, () => ListApplicationsResponse$
668
790
  ];
@@ -672,6 +794,9 @@ export var ListJobRunAttempts$ = [9, n0, _LJRA,
672
794
  export var ListJobRuns$ = [9, n0, _LJR,
673
795
  { [_ht]: ["GET", "/applications/{applicationId}/jobruns", 200] }, () => ListJobRunsRequest$, () => ListJobRunsResponse$
674
796
  ];
797
+ export var ListSessions$ = [9, n0, _LS,
798
+ { [_ht]: ["GET", "/applications/{applicationId}/sessions", 200] }, () => ListSessionsRequest$, () => ListSessionsResponse$
799
+ ];
675
800
  export var ListTagsForResource$ = [9, n0, _LTFR,
676
801
  { [_ht]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
677
802
  ];
@@ -681,12 +806,18 @@ export var StartApplication$ = [9, n0, _SA,
681
806
  export var StartJobRun$ = [9, n0, _SJR,
682
807
  { [_ht]: ["POST", "/applications/{applicationId}/jobruns", 200] }, () => StartJobRunRequest$, () => StartJobRunResponse$
683
808
  ];
809
+ export var StartSession$ = [9, n0, _SSt,
810
+ { [_ht]: ["POST", "/applications/{applicationId}/sessions", 200] }, () => StartSessionRequest$, () => StartSessionResponse$
811
+ ];
684
812
  export var StopApplication$ = [9, n0, _SAt,
685
813
  { [_ht]: ["POST", "/applications/{applicationId}/stop", 200] }, () => StopApplicationRequest$, () => StopApplicationResponse$
686
814
  ];
687
815
  export var TagResource$ = [9, n0, _TR,
688
816
  { [_ht]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
689
817
  ];
818
+ export var TerminateSession$ = [9, n0, _TS,
819
+ { [_ht]: ["DELETE", "/applications/{applicationId}/sessions/{sessionId}", 200] }, () => TerminateSessionRequest$, () => TerminateSessionResponse$
820
+ ];
690
821
  export var UntagResource$ = [9, n0, _UR,
691
822
  { [_ht]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
692
823
  ];
@@ -5,14 +5,20 @@ import { type DeleteApplicationCommandInput, type DeleteApplicationCommandOutput
5
5
  import { type GetApplicationCommandInput, type GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
6
6
  import { type GetDashboardForJobRunCommandInput, type GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
7
7
  import { type GetJobRunCommandInput, type GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
8
+ import { type GetResourceDashboardCommandInput, type GetResourceDashboardCommandOutput } from "./commands/GetResourceDashboardCommand";
9
+ import { type GetSessionCommandInput, type GetSessionCommandOutput } from "./commands/GetSessionCommand";
10
+ import { type GetSessionEndpointCommandInput, type GetSessionEndpointCommandOutput } from "./commands/GetSessionEndpointCommand";
8
11
  import { type ListApplicationsCommandInput, type ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
9
12
  import { type ListJobRunAttemptsCommandInput, type ListJobRunAttemptsCommandOutput } from "./commands/ListJobRunAttemptsCommand";
10
13
  import { type ListJobRunsCommandInput, type ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
14
+ import { type ListSessionsCommandInput, type ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
11
15
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
12
16
  import { type StartApplicationCommandInput, type StartApplicationCommandOutput } from "./commands/StartApplicationCommand";
13
17
  import { type StartJobRunCommandInput, type StartJobRunCommandOutput } from "./commands/StartJobRunCommand";
18
+ import { type StartSessionCommandInput, type StartSessionCommandOutput } from "./commands/StartSessionCommand";
14
19
  import { type StopApplicationCommandInput, type StopApplicationCommandOutput } from "./commands/StopApplicationCommand";
15
20
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
21
+ import { type TerminateSessionCommandInput, type TerminateSessionCommandOutput } from "./commands/TerminateSessionCommand";
16
22
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
17
23
  import { type UpdateApplicationCommandInput, type UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
18
24
  import { EMRServerlessClient } from "./EMRServerlessClient";
@@ -53,6 +59,24 @@ export interface EMRServerless {
53
59
  getJobRun(args: GetJobRunCommandInput, options?: __HttpHandlerOptions): Promise<GetJobRunCommandOutput>;
54
60
  getJobRun(args: GetJobRunCommandInput, cb: (err: any, data?: GetJobRunCommandOutput) => void): void;
55
61
  getJobRun(args: GetJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetJobRunCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link GetResourceDashboardCommand}
64
+ */
65
+ getResourceDashboard(args: GetResourceDashboardCommandInput, options?: __HttpHandlerOptions): Promise<GetResourceDashboardCommandOutput>;
66
+ getResourceDashboard(args: GetResourceDashboardCommandInput, cb: (err: any, data?: GetResourceDashboardCommandOutput) => void): void;
67
+ getResourceDashboard(args: GetResourceDashboardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourceDashboardCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link GetSessionCommand}
70
+ */
71
+ getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
72
+ getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
73
+ getSession(args: GetSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
74
+ /**
75
+ * @see {@link GetSessionEndpointCommand}
76
+ */
77
+ getSessionEndpoint(args: GetSessionEndpointCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionEndpointCommandOutput>;
78
+ getSessionEndpoint(args: GetSessionEndpointCommandInput, cb: (err: any, data?: GetSessionEndpointCommandOutput) => void): void;
79
+ getSessionEndpoint(args: GetSessionEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionEndpointCommandOutput) => void): void;
56
80
  /**
57
81
  * @see {@link ListApplicationsCommand}
58
82
  */
@@ -72,6 +96,12 @@ export interface EMRServerless {
72
96
  listJobRuns(args: ListJobRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobRunsCommandOutput>;
73
97
  listJobRuns(args: ListJobRunsCommandInput, cb: (err: any, data?: ListJobRunsCommandOutput) => void): void;
74
98
  listJobRuns(args: ListJobRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobRunsCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link ListSessionsCommand}
101
+ */
102
+ listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
103
+ listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
104
+ listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
75
105
  /**
76
106
  * @see {@link ListTagsForResourceCommand}
77
107
  */
@@ -90,6 +120,12 @@ export interface EMRServerless {
90
120
  startJobRun(args: StartJobRunCommandInput, options?: __HttpHandlerOptions): Promise<StartJobRunCommandOutput>;
91
121
  startJobRun(args: StartJobRunCommandInput, cb: (err: any, data?: StartJobRunCommandOutput) => void): void;
92
122
  startJobRun(args: StartJobRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartJobRunCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link StartSessionCommand}
125
+ */
126
+ startSession(args: StartSessionCommandInput, options?: __HttpHandlerOptions): Promise<StartSessionCommandOutput>;
127
+ startSession(args: StartSessionCommandInput, cb: (err: any, data?: StartSessionCommandOutput) => void): void;
128
+ startSession(args: StartSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSessionCommandOutput) => void): void;
93
129
  /**
94
130
  * @see {@link StopApplicationCommand}
95
131
  */
@@ -102,6 +138,12 @@ export interface EMRServerless {
102
138
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
103
139
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
104
140
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
141
+ /**
142
+ * @see {@link TerminateSessionCommand}
143
+ */
144
+ terminateSession(args: TerminateSessionCommandInput, options?: __HttpHandlerOptions): Promise<TerminateSessionCommandOutput>;
145
+ terminateSession(args: TerminateSessionCommandInput, cb: (err: any, data?: TerminateSessionCommandOutput) => void): void;
146
+ terminateSession(args: TerminateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateSessionCommandOutput) => void): void;
105
147
  /**
106
148
  * @see {@link UntagResourceCommand}
107
149
  */
@@ -135,6 +177,13 @@ export interface EMRServerless {
135
177
  * @returns AsyncIterable of {@link ListJobRunsCommandOutput}.
136
178
  */
137
179
  paginateListJobRuns(args: ListJobRunsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListJobRunsCommandOutput>;
180
+ /**
181
+ * @see {@link ListSessionsCommand}
182
+ * @param args - command input.
183
+ * @param paginationConfig - optional pagination config.
184
+ * @returns AsyncIterable of {@link ListSessionsCommandOutput}.
185
+ */
186
+ paginateListSessions(args: ListSessionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSessionsCommandOutput>;
138
187
  }
139
188
  /**
140
189
  * <p>Amazon EMR Serverless is a new deployment option for Amazon EMR. Amazon EMR Serverless provides a serverless runtime environment that simplifies running analytics applications using the latest open source frameworks such as Apache Spark and Apache Hive. With Amazon EMR Serverless, you don’t have to configure, optimize, secure, or operate clusters to run applications with these frameworks.</p> <p>The API reference to Amazon EMR Serverless is <code>emr-serverless</code>. The <code>emr-serverless</code> prefix is used in the following scenarios: </p> <ul> <li> <p>It is the prefix in the CLI commands for Amazon EMR Serverless. For example, <code>aws emr-serverless start-job-run</code>.</p> </li> <li> <p>It is the prefix before IAM policy actions for Amazon EMR Serverless. For example, <code>"Action": ["emr-serverless:StartJobRun"]</code>. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-actions">Policy actions for Amazon EMR Serverless</a>.</p> </li> <li> <p>It is the prefix used in Amazon EMR Serverless service endpoints. For example, <code>emr-serverless.us-east-2.amazonaws.com</code>.</p> </li> </ul>
@@ -13,14 +13,20 @@ import type { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } fr
13
13
  import type { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
14
14
  import type { GetDashboardForJobRunCommandInput, GetDashboardForJobRunCommandOutput } from "./commands/GetDashboardForJobRunCommand";
15
15
  import type { GetJobRunCommandInput, GetJobRunCommandOutput } from "./commands/GetJobRunCommand";
16
+ import type { GetResourceDashboardCommandInput, GetResourceDashboardCommandOutput } from "./commands/GetResourceDashboardCommand";
17
+ import type { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
18
+ import type { GetSessionEndpointCommandInput, GetSessionEndpointCommandOutput } from "./commands/GetSessionEndpointCommand";
16
19
  import type { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
17
20
  import type { ListJobRunAttemptsCommandInput, ListJobRunAttemptsCommandOutput } from "./commands/ListJobRunAttemptsCommand";
18
21
  import type { ListJobRunsCommandInput, ListJobRunsCommandOutput } from "./commands/ListJobRunsCommand";
22
+ import type { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
19
23
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
20
24
  import type { StartApplicationCommandInput, StartApplicationCommandOutput } from "./commands/StartApplicationCommand";
21
25
  import type { StartJobRunCommandInput, StartJobRunCommandOutput } from "./commands/StartJobRunCommand";
26
+ import type { StartSessionCommandInput, StartSessionCommandOutput } from "./commands/StartSessionCommand";
22
27
  import type { StopApplicationCommandInput, StopApplicationCommandOutput } from "./commands/StopApplicationCommand";
23
28
  import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
+ import type { TerminateSessionCommandInput, TerminateSessionCommandOutput } from "./commands/TerminateSessionCommand";
24
30
  import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
25
31
  import type { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
26
32
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
@@ -29,11 +35,11 @@ export { __Client };
29
35
  /**
30
36
  * @public
31
37
  */
32
- export type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetDashboardForJobRunCommandInput | GetJobRunCommandInput | ListApplicationsCommandInput | ListJobRunAttemptsCommandInput | ListJobRunsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
38
+ export type ServiceInputTypes = CancelJobRunCommandInput | CreateApplicationCommandInput | DeleteApplicationCommandInput | GetApplicationCommandInput | GetDashboardForJobRunCommandInput | GetJobRunCommandInput | GetResourceDashboardCommandInput | GetSessionCommandInput | GetSessionEndpointCommandInput | ListApplicationsCommandInput | ListJobRunAttemptsCommandInput | ListJobRunsCommandInput | ListSessionsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartJobRunCommandInput | StartSessionCommandInput | StopApplicationCommandInput | TagResourceCommandInput | TerminateSessionCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput;
33
39
  /**
34
40
  * @public
35
41
  */
36
- export type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetDashboardForJobRunCommandOutput | GetJobRunCommandOutput | ListApplicationsCommandOutput | ListJobRunAttemptsCommandOutput | ListJobRunsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
42
+ export type ServiceOutputTypes = CancelJobRunCommandOutput | CreateApplicationCommandOutput | DeleteApplicationCommandOutput | GetApplicationCommandOutput | GetDashboardForJobRunCommandOutput | GetJobRunCommandOutput | GetResourceDashboardCommandOutput | GetSessionCommandOutput | GetSessionEndpointCommandOutput | ListApplicationsCommandOutput | ListJobRunAttemptsCommandOutput | ListJobRunsCommandOutput | ListSessionsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartJobRunCommandOutput | StartSessionCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | TerminateSessionCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput;
37
43
  /**
38
44
  * @public
39
45
  */
@@ -136,6 +136,7 @@ declare const CreateApplicationCommand_base: {
136
136
  * interactiveConfiguration: { // InteractiveConfiguration
137
137
  * studioEnabled: true || false,
138
138
  * livyEndpointEnabled: true || false,
139
+ * sessionEnabled: true || false,
139
140
  * },
140
141
  * schedulerConfiguration: { // SchedulerConfiguration
141
142
  * queueTimeoutMinutes: Number("int"),
@@ -149,6 +149,7 @@ declare const GetApplicationCommand_base: {
149
149
  * // interactiveConfiguration: { // InteractiveConfiguration
150
150
  * // studioEnabled: true || false,
151
151
  * // livyEndpointEnabled: true || false,
152
+ * // sessionEnabled: true || false,
152
153
  * // },
153
154
  * // schedulerConfiguration: { // SchedulerConfiguration
154
155
  * // queueTimeoutMinutes: Number("int"),