aws-sdk-emrserverless 1.62.0 → 1.64.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 200339ebec2b41b54d286d82a7cb655f1d40c5c1294a355c994bd27b3c94bafd
4
- data.tar.gz: 78e060b965fefe634b20aa3b545d4030a405315cf2bbf62f8dee13d34b7e76d6
3
+ metadata.gz: 00a2b139120f54736ed8703989e4d6bb905ef6c083dd5d8f6e7a8a3e4a3355f1
4
+ data.tar.gz: 3e7398e620893e80e088100ed99201fcaeae697739d39f2d35b693a9be3fec0f
5
5
  SHA512:
6
- metadata.gz: af4610de5af98de60f033eae583fc223c98745dd8168f3f3258a0a50d0054f2f6bed89518101ef1235c3e7e30dc84192cf17f3df6a6f798df7f2c5d801ddad1c
7
- data.tar.gz: e18fbedc4f30741ebd257e4e527f1d6b1ac18f50c47314926543fa93ebbf5124930231e5c9cc5ab4fb967ab05257abee5750f23e8631206eb0b19a4e4dae359d
6
+ metadata.gz: bd9fcf677617c253ace2f3f315b553d341b5b9fadec9281e98f817053661ae4c2a33f423100cc2b1ea44dd507efc3ec08ae1ed37fedb30926599ab721dbb741a
7
+ data.tar.gz: cdba9c9e5a5efd8c915a8ff0d0ec5284dc64b6e12063a1116ed76427c36c728cc07e82b270b7d4de7309c41f994a2cec96d8369b4e71bfe3297943010468d799
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.64.0 (2026-04-22)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for Spark connect sessions starting with release label emr-7.13.0.
8
+
9
+ 1.63.0 (2026-03-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.62.0 (2026-01-16)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.62.0
1
+ 1.64.0
@@ -702,6 +702,7 @@ module Aws::EMRServerless
702
702
  # interactive_configuration: {
703
703
  # studio_enabled: false,
704
704
  # livy_endpoint_enabled: false,
705
+ # session_enabled: false,
705
706
  # },
706
707
  # scheduler_configuration: {
707
708
  # queue_timeout_minutes: 1,
@@ -826,6 +827,7 @@ module Aws::EMRServerless
826
827
  # resp.application.disk_encryption_configuration.encryption_key_arn #=> String
827
828
  # resp.application.interactive_configuration.studio_enabled #=> Boolean
828
829
  # resp.application.interactive_configuration.livy_endpoint_enabled #=> Boolean
830
+ # resp.application.interactive_configuration.session_enabled #=> Boolean
829
831
  # resp.application.scheduler_configuration.queue_timeout_minutes #=> Integer
830
832
  # resp.application.scheduler_configuration.max_concurrent_runs #=> Integer
831
833
  # resp.application.identity_center_configuration.identity_center_instance_arn #=> String
@@ -998,6 +1000,162 @@ module Aws::EMRServerless
998
1000
  req.send_request(options)
999
1001
  end
1000
1002
 
1003
+ # Returns a URL that you can use to access the application UIs for a
1004
+ # specified resource, such as a session.
1005
+ #
1006
+ # For resources in a running state, the application UI is a live user
1007
+ # interface such as the Spark web UI. For terminated resources, the
1008
+ # application UI is a persistent application user interface such as the
1009
+ # Spark History Server.
1010
+ #
1011
+ # <note markdown="1"> The URL is valid for one hour after you generate it. To access the
1012
+ # application UI after that hour elapses, you must invoke the API again
1013
+ # to generate a new URL.
1014
+ #
1015
+ # </note>
1016
+ #
1017
+ # @option params [required, String] :application_id
1018
+ # The ID of the application that the resource belongs to.
1019
+ #
1020
+ # @option params [required, String] :resource_id
1021
+ # The ID of the resource.
1022
+ #
1023
+ # @option params [required, String] :resource_type
1024
+ # The type of resource to access the dashboard for. Currently, only
1025
+ # `Session` is supported.
1026
+ #
1027
+ # @return [Types::GetResourceDashboardResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1028
+ #
1029
+ # * {Types::GetResourceDashboardResponse#url #url} => String
1030
+ #
1031
+ # @example Request syntax with placeholder values
1032
+ #
1033
+ # resp = client.get_resource_dashboard({
1034
+ # application_id: "ApplicationId", # required
1035
+ # resource_id: "ResourceId", # required
1036
+ # resource_type: "SESSION", # required, accepts SESSION
1037
+ # })
1038
+ #
1039
+ # @example Response structure
1040
+ #
1041
+ # resp.url #=> String
1042
+ #
1043
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetResourceDashboard AWS API Documentation
1044
+ #
1045
+ # @overload get_resource_dashboard(params = {})
1046
+ # @param [Hash] params ({})
1047
+ def get_resource_dashboard(params = {}, options = {})
1048
+ req = build_request(:get_resource_dashboard, params)
1049
+ req.send_request(options)
1050
+ end
1051
+
1052
+ # Displays detailed information about a session.
1053
+ #
1054
+ # @option params [required, String] :application_id
1055
+ # The ID of the application that the session belongs to.
1056
+ #
1057
+ # @option params [required, String] :session_id
1058
+ # The ID of the session.
1059
+ #
1060
+ # @return [Types::GetSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1061
+ #
1062
+ # * {Types::GetSessionResponse#session #session} => Types::Session
1063
+ #
1064
+ # @example Request syntax with placeholder values
1065
+ #
1066
+ # resp = client.get_session({
1067
+ # application_id: "ApplicationId", # required
1068
+ # session_id: "SessionId", # required
1069
+ # })
1070
+ #
1071
+ # @example Response structure
1072
+ #
1073
+ # resp.session.application_id #=> String
1074
+ # resp.session.session_id #=> String
1075
+ # resp.session.arn #=> String
1076
+ # resp.session.name #=> String
1077
+ # resp.session.state #=> String, one of "SUBMITTED", "STARTING", "STARTED", "IDLE", "BUSY", "FAILED", "TERMINATING", "TERMINATED"
1078
+ # resp.session.state_details #=> String
1079
+ # resp.session.release_label #=> String
1080
+ # resp.session.execution_role_arn #=> String
1081
+ # resp.session.created_by #=> String
1082
+ # resp.session.created_at #=> Time
1083
+ # resp.session.updated_at #=> Time
1084
+ # resp.session.started_at #=> Time
1085
+ # resp.session.ended_at #=> Time
1086
+ # resp.session.idle_since #=> Time
1087
+ # resp.session.configuration_overrides.runtime_configuration #=> Array
1088
+ # resp.session.configuration_overrides.runtime_configuration[0].classification #=> String
1089
+ # resp.session.configuration_overrides.runtime_configuration[0].properties #=> Hash
1090
+ # resp.session.configuration_overrides.runtime_configuration[0].properties["ConfigurationPropertyKey"] #=> String
1091
+ # resp.session.configuration_overrides.runtime_configuration[0].configurations #=> Types::ConfigurationList
1092
+ # resp.session.network_configuration.subnet_ids #=> Array
1093
+ # resp.session.network_configuration.subnet_ids[0] #=> String
1094
+ # resp.session.network_configuration.security_group_ids #=> Array
1095
+ # resp.session.network_configuration.security_group_ids[0] #=> String
1096
+ # resp.session.idle_timeout_minutes #=> Integer
1097
+ # resp.session.tags #=> Hash
1098
+ # resp.session.tags["TagKey"] #=> String
1099
+ # resp.session.total_resource_utilization.v_cpu_hour #=> Float
1100
+ # resp.session.total_resource_utilization.memory_gb_hour #=> Float
1101
+ # resp.session.total_resource_utilization.storage_gb_hour #=> Float
1102
+ # resp.session.billed_resource_utilization.v_cpu_hour #=> Float
1103
+ # resp.session.billed_resource_utilization.memory_gb_hour #=> Float
1104
+ # resp.session.billed_resource_utilization.storage_gb_hour #=> Float
1105
+ # resp.session.total_execution_duration_seconds #=> Integer
1106
+ #
1107
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetSession AWS API Documentation
1108
+ #
1109
+ # @overload get_session(params = {})
1110
+ # @param [Hash] params ({})
1111
+ def get_session(params = {}, options = {})
1112
+ req = build_request(:get_session, params)
1113
+ req.send_request(options)
1114
+ end
1115
+
1116
+ # Returns the session endpoint URL and a time-limited authentication
1117
+ # token for the specified session. Use the endpoint and token to connect
1118
+ # a client to the session. Call this operation again when the
1119
+ # authentication token expires to obtain a new token.
1120
+ #
1121
+ # @option params [required, String] :application_id
1122
+ # The ID of the application that the session belongs to.
1123
+ #
1124
+ # @option params [required, String] :session_id
1125
+ # The ID of the session.
1126
+ #
1127
+ # @return [Types::GetSessionEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1128
+ #
1129
+ # * {Types::GetSessionEndpointResponse#application_id #application_id} => String
1130
+ # * {Types::GetSessionEndpointResponse#session_id #session_id} => String
1131
+ # * {Types::GetSessionEndpointResponse#endpoint #endpoint} => String
1132
+ # * {Types::GetSessionEndpointResponse#auth_token #auth_token} => String
1133
+ # * {Types::GetSessionEndpointResponse#auth_token_expires_at #auth_token_expires_at} => Time
1134
+ #
1135
+ # @example Request syntax with placeholder values
1136
+ #
1137
+ # resp = client.get_session_endpoint({
1138
+ # application_id: "ApplicationId", # required
1139
+ # session_id: "SessionId", # required
1140
+ # })
1141
+ #
1142
+ # @example Response structure
1143
+ #
1144
+ # resp.application_id #=> String
1145
+ # resp.session_id #=> String
1146
+ # resp.endpoint #=> String
1147
+ # resp.auth_token #=> String
1148
+ # resp.auth_token_expires_at #=> Time
1149
+ #
1150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetSessionEndpoint AWS API Documentation
1151
+ #
1152
+ # @overload get_session_endpoint(params = {})
1153
+ # @param [Hash] params ({})
1154
+ def get_session_endpoint(params = {}, options = {})
1155
+ req = build_request(:get_session_endpoint, params)
1156
+ req.send_request(options)
1157
+ end
1158
+
1001
1159
  # Lists applications based on a set of parameters.
1002
1160
  #
1003
1161
  # @option params [String] :next_token
@@ -1183,6 +1341,72 @@ module Aws::EMRServerless
1183
1341
  req.send_request(options)
1184
1342
  end
1185
1343
 
1344
+ # Lists sessions for the specified application. You can filter sessions
1345
+ # by state and creation time.
1346
+ #
1347
+ # @option params [required, String] :application_id
1348
+ # The ID of the application to list sessions for.
1349
+ #
1350
+ # @option params [String] :next_token
1351
+ # The token for the next set of session results.
1352
+ #
1353
+ # @option params [Integer] :max_results
1354
+ # The maximum number of sessions to return in each page of results.
1355
+ #
1356
+ # @option params [Array<String>] :states
1357
+ # An optional filter for session states. Note that if this filter
1358
+ # contains multiple states, the resulting list will be grouped by the
1359
+ # state.
1360
+ #
1361
+ # @option params [Time,DateTime,Date,Integer,String] :created_at_after
1362
+ # The lower bound of the option to filter by creation date and time.
1363
+ #
1364
+ # @option params [Time,DateTime,Date,Integer,String] :created_at_before
1365
+ # The upper bound of the option to filter by creation date and time.
1366
+ #
1367
+ # @return [Types::ListSessionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1368
+ #
1369
+ # * {Types::ListSessionsResponse#sessions #sessions} => Array&lt;Types::SessionSummary&gt;
1370
+ # * {Types::ListSessionsResponse#next_token #next_token} => String
1371
+ #
1372
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1373
+ #
1374
+ # @example Request syntax with placeholder values
1375
+ #
1376
+ # resp = client.list_sessions({
1377
+ # application_id: "ApplicationId", # required
1378
+ # next_token: "NextToken",
1379
+ # max_results: 1,
1380
+ # states: ["SUBMITTED"], # accepts SUBMITTED, STARTING, STARTED, IDLE, BUSY, FAILED, TERMINATING, TERMINATED
1381
+ # created_at_after: Time.now,
1382
+ # created_at_before: Time.now,
1383
+ # })
1384
+ #
1385
+ # @example Response structure
1386
+ #
1387
+ # resp.sessions #=> Array
1388
+ # resp.sessions[0].application_id #=> String
1389
+ # resp.sessions[0].session_id #=> String
1390
+ # resp.sessions[0].arn #=> String
1391
+ # resp.sessions[0].name #=> String
1392
+ # resp.sessions[0].state #=> String, one of "SUBMITTED", "STARTING", "STARTED", "IDLE", "BUSY", "FAILED", "TERMINATING", "TERMINATED"
1393
+ # resp.sessions[0].state_details #=> String
1394
+ # resp.sessions[0].release_label #=> String
1395
+ # resp.sessions[0].execution_role_arn #=> String
1396
+ # resp.sessions[0].created_by #=> String
1397
+ # resp.sessions[0].created_at #=> Time
1398
+ # resp.sessions[0].updated_at #=> Time
1399
+ # resp.next_token #=> String
1400
+ #
1401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListSessions AWS API Documentation
1402
+ #
1403
+ # @overload list_sessions(params = {})
1404
+ # @param [Hash] params ({})
1405
+ def list_sessions(params = {}, options = {})
1406
+ req = build_request(:list_sessions, params)
1407
+ req.send_request(options)
1408
+ end
1409
+
1186
1410
  # Lists the tags assigned to the resources.
1187
1411
  #
1188
1412
  # @option params [required, String] :resource_arn
@@ -1375,6 +1599,90 @@ module Aws::EMRServerless
1375
1599
  req.send_request(options)
1376
1600
  end
1377
1601
 
1602
+ # Creates and starts a new session on the specified application. The
1603
+ # application must be in the `STARTED` state or have `AutoStart`
1604
+ # enabled, and have interactive sessions enabled. This operation is
1605
+ # supported for EMR release 7.13.0 and later.
1606
+ #
1607
+ # @option params [required, String] :application_id
1608
+ # The ID of the application on which to start the session.
1609
+ #
1610
+ # @option params [required, String] :client_token
1611
+ # A unique, case-sensitive identifier that you provide to ensure the
1612
+ # idempotency of the request. If you retry a request that completed
1613
+ # successfully using the same client token, the server returns the
1614
+ # successful response without performing the operation again.
1615
+ #
1616
+ # **A suitable default value is auto-generated.** You should normally
1617
+ # not need to pass this option.**
1618
+ #
1619
+ # @option params [required, String] :execution_role_arn
1620
+ # The execution role ARN for the session. Amazon EMR Serverless uses
1621
+ # this role to access Amazon Web Services resources on your behalf
1622
+ # during session execution.
1623
+ #
1624
+ # @option params [Types::SessionConfigurationOverrides] :configuration_overrides
1625
+ # The configuration overrides for the session. Only runtime
1626
+ # configuration overrides are supported.
1627
+ #
1628
+ # @option params [Hash<String,String>] :tags
1629
+ # The tags to assign to the session.
1630
+ #
1631
+ # @option params [Integer] :idle_timeout_minutes
1632
+ # The idle timeout in minutes for the session. After the session remains
1633
+ # idle for this duration, Amazon EMR Serverless automatically terminates
1634
+ # it.
1635
+ #
1636
+ # @option params [String] :name
1637
+ # The optional name for the session.
1638
+ #
1639
+ # @return [Types::StartSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1640
+ #
1641
+ # * {Types::StartSessionResponse#application_id #application_id} => String
1642
+ # * {Types::StartSessionResponse#session_id #session_id} => String
1643
+ # * {Types::StartSessionResponse#arn #arn} => String
1644
+ #
1645
+ # @example Request syntax with placeholder values
1646
+ #
1647
+ # resp = client.start_session({
1648
+ # application_id: "ApplicationId", # required
1649
+ # client_token: "ClientToken", # required
1650
+ # execution_role_arn: "IAMRoleArn", # required
1651
+ # configuration_overrides: {
1652
+ # runtime_configuration: [
1653
+ # {
1654
+ # classification: "String1024", # required
1655
+ # properties: {
1656
+ # "ConfigurationPropertyKey" => "ConfigurationPropertyValue",
1657
+ # },
1658
+ # configurations: {
1659
+ # # recursive ConfigurationList
1660
+ # },
1661
+ # },
1662
+ # ],
1663
+ # },
1664
+ # tags: {
1665
+ # "TagKey" => "TagValue",
1666
+ # },
1667
+ # idle_timeout_minutes: 1,
1668
+ # name: "String256",
1669
+ # })
1670
+ #
1671
+ # @example Response structure
1672
+ #
1673
+ # resp.application_id #=> String
1674
+ # resp.session_id #=> String
1675
+ # resp.arn #=> String
1676
+ #
1677
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/StartSession AWS API Documentation
1678
+ #
1679
+ # @overload start_session(params = {})
1680
+ # @param [Hash] params ({})
1681
+ def start_session(params = {}, options = {})
1682
+ req = build_request(:start_session, params)
1683
+ req.send_request(options)
1684
+ end
1685
+
1378
1686
  # Stops a specified application and releases initial capacity if
1379
1687
  # configured. All scheduled and running jobs must be completed or
1380
1688
  # cancelled before stopping an application.
@@ -1435,6 +1743,43 @@ module Aws::EMRServerless
1435
1743
  req.send_request(options)
1436
1744
  end
1437
1745
 
1746
+ # Terminates the specified session. After you terminate a session, it
1747
+ # enters the `TERMINATING` state and then the `TERMINATED` state. You
1748
+ # can still access the Spark History Server for a terminated session
1749
+ # through the `GetResourceDashboard` operation.
1750
+ #
1751
+ # @option params [required, String] :application_id
1752
+ # The ID of the application that the session belongs to.
1753
+ #
1754
+ # @option params [required, String] :session_id
1755
+ # The ID of the session to terminate.
1756
+ #
1757
+ # @return [Types::TerminateSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1758
+ #
1759
+ # * {Types::TerminateSessionResponse#application_id #application_id} => String
1760
+ # * {Types::TerminateSessionResponse#session_id #session_id} => String
1761
+ #
1762
+ # @example Request syntax with placeholder values
1763
+ #
1764
+ # resp = client.terminate_session({
1765
+ # application_id: "ApplicationId", # required
1766
+ # session_id: "SessionId", # required
1767
+ # })
1768
+ #
1769
+ # @example Response structure
1770
+ #
1771
+ # resp.application_id #=> String
1772
+ # resp.session_id #=> String
1773
+ #
1774
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/TerminateSession AWS API Documentation
1775
+ #
1776
+ # @overload terminate_session(params = {})
1777
+ # @param [Hash] params ({})
1778
+ def terminate_session(params = {}, options = {})
1779
+ req = build_request(:terminate_session, params)
1780
+ req.send_request(options)
1781
+ end
1782
+
1438
1783
  # Removes tags from resources.
1439
1784
  #
1440
1785
  # @option params [required, String] :resource_arn
@@ -1600,6 +1945,7 @@ module Aws::EMRServerless
1600
1945
  # interactive_configuration: {
1601
1946
  # studio_enabled: false,
1602
1947
  # livy_endpoint_enabled: false,
1948
+ # session_enabled: false,
1603
1949
  # },
1604
1950
  # release_label: "ReleaseLabel",
1605
1951
  # runtime_configuration: [
@@ -1711,6 +2057,7 @@ module Aws::EMRServerless
1711
2057
  # resp.application.disk_encryption_configuration.encryption_key_arn #=> String
1712
2058
  # resp.application.interactive_configuration.studio_enabled #=> Boolean
1713
2059
  # resp.application.interactive_configuration.livy_endpoint_enabled #=> Boolean
2060
+ # resp.application.interactive_configuration.session_enabled #=> Boolean
1714
2061
  # resp.application.scheduler_configuration.queue_timeout_minutes #=> Integer
1715
2062
  # resp.application.scheduler_configuration.max_concurrent_runs #=> Integer
1716
2063
  # resp.application.identity_center_configuration.identity_center_instance_arn #=> String
@@ -1745,7 +2092,7 @@ module Aws::EMRServerless
1745
2092
  tracer: tracer
1746
2093
  )
1747
2094
  context[:gem_name] = 'aws-sdk-emrserverless'
1748
- context[:gem_version] = '1.62.0'
2095
+ context[:gem_version] = '1.64.0'
1749
2096
  Seahorse::Client::Request.new(handlers, context)
1750
2097
  end
1751
2098