@aws-sdk/client-emr 3.1061.0 → 3.1062.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 (45) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +85 -0
  3. package/dist-cjs/schemas/schemas_0.js +178 -32
  4. package/dist-es/EMR.js +12 -0
  5. package/dist-es/commands/GetSessionCommand.js +16 -0
  6. package/dist-es/commands/GetSessionEndpointCommand.js +16 -0
  7. package/dist-es/commands/ListSessionsCommand.js +16 -0
  8. package/dist-es/commands/StartSessionCommand.js +16 -0
  9. package/dist-es/commands/TerminateSessionCommand.js +16 -0
  10. package/dist-es/commands/index.js +5 -0
  11. package/dist-es/models/enums.js +10 -0
  12. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/schemas/schemas_0.js +171 -26
  15. package/dist-types/EMR.d.ts +42 -0
  16. package/dist-types/EMRClient.d.ts +7 -2
  17. package/dist-types/commands/AddTagsCommand.d.ts +1 -0
  18. package/dist-types/commands/DescribeClusterCommand.d.ts +1 -0
  19. package/dist-types/commands/GetSessionCommand.d.ts +155 -0
  20. package/dist-types/commands/GetSessionEndpointCommand.d.ts +92 -0
  21. package/dist-types/commands/ListSessionsCommand.d.ts +162 -0
  22. package/dist-types/commands/RemoveTagsCommand.d.ts +1 -0
  23. package/dist-types/commands/RunJobFlowCommand.d.ts +1 -0
  24. package/dist-types/commands/StartSessionCommand.d.ts +141 -0
  25. package/dist-types/commands/TerminateSessionCommand.d.ts +86 -0
  26. package/dist-types/commands/index.d.ts +5 -0
  27. package/dist-types/models/enums.d.ts +18 -0
  28. package/dist-types/models/models_0.d.ts +473 -7
  29. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +21 -0
  32. package/dist-types/ts3.4/EMR.d.ts +92 -0
  33. package/dist-types/ts3.4/EMRClient.d.ts +30 -0
  34. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +49 -0
  35. package/dist-types/ts3.4/commands/GetSessionEndpointCommand.d.ts +53 -0
  36. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +49 -0
  37. package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +49 -0
  38. package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +52 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  40. package/dist-types/ts3.4/models/enums.d.ts +11 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +108 -0
  42. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  43. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  44. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  45. package/package.json +2 -2
package/README.md CHANGED
@@ -365,6 +365,20 @@ GetPersistentAppUIPresignedURL
365
365
  </details>
366
366
  <details>
367
367
  <summary>
368
+ GetSession
369
+ </summary>
370
+
371
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/GetSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetSessionCommandOutput/)
372
+ </details>
373
+ <details>
374
+ <summary>
375
+ GetSessionEndpoint
376
+ </summary>
377
+
378
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/GetSessionEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetSessionEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/GetSessionEndpointCommandOutput/)
379
+ </details>
380
+ <details>
381
+ <summary>
368
382
  GetStudioSessionMapping
369
383
  </summary>
370
384
 
@@ -428,6 +442,13 @@ ListSecurityConfigurations
428
442
  </details>
429
443
  <details>
430
444
  <summary>
445
+ ListSessions
446
+ </summary>
447
+
448
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/ListSessionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/ListSessionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/ListSessionsCommandOutput/)
449
+ </details>
450
+ <details>
451
+ <summary>
431
452
  ListSteps
432
453
  </summary>
433
454
 
@@ -575,6 +596,13 @@ StartNotebookExecution
575
596
  </details>
576
597
  <details>
577
598
  <summary>
599
+ StartSession
600
+ </summary>
601
+
602
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/StartSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/StartSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/StartSessionCommandOutput/)
603
+ </details>
604
+ <details>
605
+ <summary>
578
606
  StopNotebookExecution
579
607
  </summary>
580
608
 
@@ -589,6 +617,13 @@ TerminateJobFlows
589
617
  </details>
590
618
  <details>
591
619
  <summary>
620
+ TerminateSession
621
+ </summary>
622
+
623
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/emr/command/TerminateSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/TerminateSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-emr/Interface/TerminateSessionCommandOutput/)
624
+ </details>
625
+ <details>
626
+ <summary>
592
627
  UpdateStudio
593
628
  </summary>
594
629
 
package/dist-cjs/index.js CHANGED
@@ -420,6 +420,30 @@ class GetPersistentAppUIPresignedURLCommand extends client.Command
420
420
  .build() {
421
421
  }
422
422
 
423
+ class GetSessionCommand extends client.Command
424
+ .classBuilder()
425
+ .ep(commonParams)
426
+ .m(function (Command, cs, config, o) {
427
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
428
+ })
429
+ .s("ElasticMapReduce", "GetSession", {})
430
+ .n("EMRClient", "GetSessionCommand")
431
+ .sc(schemas_0.GetSession$)
432
+ .build() {
433
+ }
434
+
435
+ class GetSessionEndpointCommand extends client.Command
436
+ .classBuilder()
437
+ .ep(commonParams)
438
+ .m(function (Command, cs, config, o) {
439
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
440
+ })
441
+ .s("ElasticMapReduce", "GetSessionEndpoint", {})
442
+ .n("EMRClient", "GetSessionEndpointCommand")
443
+ .sc(schemas_0.GetSessionEndpoint$)
444
+ .build() {
445
+ }
446
+
423
447
  class GetStudioSessionMappingCommand extends client.Command
424
448
  .classBuilder()
425
449
  .ep(commonParams)
@@ -528,6 +552,18 @@ class ListSecurityConfigurationsCommand extends client.Command
528
552
  .build() {
529
553
  }
530
554
 
555
+ class ListSessionsCommand extends client.Command
556
+ .classBuilder()
557
+ .ep(commonParams)
558
+ .m(function (Command, cs, config, o) {
559
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
560
+ })
561
+ .s("ElasticMapReduce", "ListSessions", {})
562
+ .n("EMRClient", "ListSessionsCommand")
563
+ .sc(schemas_0.ListSessions$)
564
+ .build() {
565
+ }
566
+
531
567
  class ListStepsCommand extends client.Command
532
568
  .classBuilder()
533
569
  .ep(commonParams)
@@ -780,6 +816,18 @@ class StartNotebookExecutionCommand extends client.Command
780
816
  .build() {
781
817
  }
782
818
 
819
+ class StartSessionCommand extends client.Command
820
+ .classBuilder()
821
+ .ep(commonParams)
822
+ .m(function (Command, cs, config, o) {
823
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
824
+ })
825
+ .s("ElasticMapReduce", "StartSession", {})
826
+ .n("EMRClient", "StartSessionCommand")
827
+ .sc(schemas_0.StartSession$)
828
+ .build() {
829
+ }
830
+
783
831
  class StopNotebookExecutionCommand extends client.Command
784
832
  .classBuilder()
785
833
  .ep(commonParams)
@@ -804,6 +852,18 @@ class TerminateJobFlowsCommand extends client.Command
804
852
  .build() {
805
853
  }
806
854
 
855
+ class TerminateSessionCommand extends client.Command
856
+ .classBuilder()
857
+ .ep(commonParams)
858
+ .m(function (Command, cs, config, o) {
859
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
860
+ })
861
+ .s("ElasticMapReduce", "TerminateSession", {})
862
+ .n("EMRClient", "TerminateSessionCommand")
863
+ .sc(schemas_0.TerminateSession$)
864
+ .build() {
865
+ }
866
+
807
867
  class UpdateStudioCommand extends client.Command
808
868
  .classBuilder()
809
869
  .ep(commonParams)
@@ -844,6 +904,8 @@ const paginateListReleaseLabels = core.createPaginator(EMRClient, ListReleaseLab
844
904
 
845
905
  const paginateListSecurityConfigurations = core.createPaginator(EMRClient, ListSecurityConfigurationsCommand, "Marker", "Marker", "");
846
906
 
907
+ const paginateListSessions = core.createPaginator(EMRClient, ListSessionsCommand, "NextToken", "NextToken", "");
908
+
847
909
  const paginateListSteps = core.createPaginator(EMRClient, ListStepsCommand, "Marker", "Marker", "");
848
910
 
849
911
  const paginateListStudioSessionMappings = core.createPaginator(EMRClient, ListStudioSessionMappingsCommand, "Marker", "Marker", "");
@@ -1032,6 +1094,8 @@ const commands = {
1032
1094
  GetManagedScalingPolicyCommand,
1033
1095
  GetOnClusterAppUIPresignedURLCommand,
1034
1096
  GetPersistentAppUIPresignedURLCommand,
1097
+ GetSessionCommand,
1098
+ GetSessionEndpointCommand,
1035
1099
  GetStudioSessionMappingCommand,
1036
1100
  ListBootstrapActionsCommand,
1037
1101
  ListClustersCommand,
@@ -1041,6 +1105,7 @@ const commands = {
1041
1105
  ListNotebookExecutionsCommand,
1042
1106
  ListReleaseLabelsCommand,
1043
1107
  ListSecurityConfigurationsCommand,
1108
+ ListSessionsCommand,
1044
1109
  ListStepsCommand,
1045
1110
  ListStudiosCommand,
1046
1111
  ListStudioSessionMappingsCommand,
@@ -1062,8 +1127,10 @@ const commands = {
1062
1127
  SetUnhealthyNodeReplacementCommand,
1063
1128
  SetVisibleToAllUsersCommand,
1064
1129
  StartNotebookExecutionCommand,
1130
+ StartSessionCommand,
1065
1131
  StopNotebookExecutionCommand,
1066
1132
  TerminateJobFlowsCommand,
1133
+ TerminateSessionCommand,
1067
1134
  UpdateStudioCommand,
1068
1135
  UpdateStudioSessionMappingCommand,
1069
1136
  };
@@ -1076,6 +1143,7 @@ const paginators = {
1076
1143
  paginateListNotebookExecutions,
1077
1144
  paginateListReleaseLabels,
1078
1145
  paginateListSecurityConfigurations,
1146
+ paginateListSessions,
1079
1147
  paginateListSteps,
1080
1148
  paginateListStudios,
1081
1149
  paginateListStudioSessionMappings,
@@ -1348,6 +1416,16 @@ const OnClusterAppUIType = {
1348
1416
  TezUI: "TezUI",
1349
1417
  YarnTimelineService: "YarnTimelineService",
1350
1418
  };
1419
+ const SessionState = {
1420
+ BUSY: "BUSY",
1421
+ FAILED: "FAILED",
1422
+ IDLE: "IDLE",
1423
+ STARTED: "STARTED",
1424
+ STARTING: "STARTING",
1425
+ SUBMITTED: "SUBMITTED",
1426
+ TERMINATED: "TERMINATED",
1427
+ TERMINATING: "TERMINATING",
1428
+ };
1351
1429
  const InstanceFleetState = {
1352
1430
  BOOTSTRAPPING: "BOOTSTRAPPING",
1353
1431
  PROVISIONING: "PROVISIONING",
@@ -1436,6 +1514,8 @@ exports.GetClusterSessionCredentialsCommand = GetClusterSessionCredentialsComman
1436
1514
  exports.GetManagedScalingPolicyCommand = GetManagedScalingPolicyCommand;
1437
1515
  exports.GetOnClusterAppUIPresignedURLCommand = GetOnClusterAppUIPresignedURLCommand;
1438
1516
  exports.GetPersistentAppUIPresignedURLCommand = GetPersistentAppUIPresignedURLCommand;
1517
+ exports.GetSessionCommand = GetSessionCommand;
1518
+ exports.GetSessionEndpointCommand = GetSessionEndpointCommand;
1439
1519
  exports.GetStudioSessionMappingCommand = GetStudioSessionMappingCommand;
1440
1520
  exports.IdcUserAssignment = IdcUserAssignment;
1441
1521
  exports.IdentityType = IdentityType;
@@ -1458,6 +1538,7 @@ exports.ListInstancesCommand = ListInstancesCommand;
1458
1538
  exports.ListNotebookExecutionsCommand = ListNotebookExecutionsCommand;
1459
1539
  exports.ListReleaseLabelsCommand = ListReleaseLabelsCommand;
1460
1540
  exports.ListSecurityConfigurationsCommand = ListSecurityConfigurationsCommand;
1541
+ exports.ListSessionsCommand = ListSessionsCommand;
1461
1542
  exports.ListStepsCommand = ListStepsCommand;
1462
1543
  exports.ListStudioSessionMappingsCommand = ListStudioSessionMappingsCommand;
1463
1544
  exports.ListStudiosCommand = ListStudiosCommand;
@@ -1490,6 +1571,7 @@ exports.RepoUpgradeOnBoot = RepoUpgradeOnBoot;
1490
1571
  exports.RunJobFlowCommand = RunJobFlowCommand;
1491
1572
  exports.ScaleDownBehavior = ScaleDownBehavior;
1492
1573
  exports.ScalingStrategy = ScalingStrategy;
1574
+ exports.SessionState = SessionState;
1493
1575
  exports.SetKeepJobFlowAliveWhenNoStepsCommand = SetKeepJobFlowAliveWhenNoStepsCommand;
1494
1576
  exports.SetTerminationProtectionCommand = SetTerminationProtectionCommand;
1495
1577
  exports.SetUnhealthyNodeReplacementCommand = SetUnhealthyNodeReplacementCommand;
@@ -1497,6 +1579,7 @@ exports.SetVisibleToAllUsersCommand = SetVisibleToAllUsersCommand;
1497
1579
  exports.SpotProvisioningAllocationStrategy = SpotProvisioningAllocationStrategy;
1498
1580
  exports.SpotProvisioningTimeoutAction = SpotProvisioningTimeoutAction;
1499
1581
  exports.StartNotebookExecutionCommand = StartNotebookExecutionCommand;
1582
+ exports.StartSessionCommand = StartSessionCommand;
1500
1583
  exports.Statistic = Statistic;
1501
1584
  exports.StepCancellationOption = StepCancellationOption;
1502
1585
  exports.StepExecutionState = StepExecutionState;
@@ -1504,6 +1587,7 @@ exports.StepState = StepState;
1504
1587
  exports.StepStateChangeReasonCode = StepStateChangeReasonCode;
1505
1588
  exports.StopNotebookExecutionCommand = StopNotebookExecutionCommand;
1506
1589
  exports.TerminateJobFlowsCommand = TerminateJobFlowsCommand;
1590
+ exports.TerminateSessionCommand = TerminateSessionCommand;
1507
1591
  exports.Unit = Unit;
1508
1592
  exports.UpdateStudioCommand = UpdateStudioCommand;
1509
1593
  exports.UpdateStudioSessionMappingCommand = UpdateStudioSessionMappingCommand;
@@ -1515,6 +1599,7 @@ exports.paginateListInstances = paginateListInstances;
1515
1599
  exports.paginateListNotebookExecutions = paginateListNotebookExecutions;
1516
1600
  exports.paginateListReleaseLabels = paginateListReleaseLabels;
1517
1601
  exports.paginateListSecurityConfigurations = paginateListSecurityConfigurations;
1602
+ exports.paginateListSessions = paginateListSessions;
1518
1603
  exports.paginateListSteps = paginateListSteps;
1519
1604
  exports.paginateListStudioSessionMappings = paginateListStudioSessionMappings;
1520
1605
  exports.paginateListStudios = paginateListStudios;