aws-sdk-emrserverless 1.23.0 → 1.25.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: 80655f08f473e7e72a390ee98b5d49c5b03019fbd3984f5ef240a50e1dd022e3
4
- data.tar.gz: 19f57f3ef9eb3b9cf86c25f897dd50fb8b4eea629eba6b65e38aa5c6e8d97daf
3
+ metadata.gz: 1d7464f7bfe5791c57178217a891f4a0f9072806598ce93b442d2479dbb25a6b
4
+ data.tar.gz: a83d6696e7c3dacb303178f3f1b87056b5b8ab550458c9e92f61a253f74a5d97
5
5
  SHA512:
6
- metadata.gz: 88a81d0c4b48762c114642b49ea024cf7eceeba7a515afcbabf021cf6de422cc634d85ff42bb3825f1409dc330bf331e29c62bee5871e088309a2d5dd9298e70
7
- data.tar.gz: 417afd61192710a0d742bfda7c9c41bd3162fcd56e2d24e3aab9e025ffef1784aff759c8da8b314f1a696402b4ab0876cf5611aba86e11af8a0867b02e8ad7ae
6
+ metadata.gz: 770a52ff28f4e721610682c384c6b104d3cb1519d825ea9a205dfdd31c666540e08df4b033ef98e2d7b0ad7569be3c795390b7edcb8720b073bd371afaa8041e
7
+ data.tar.gz: ccba8447f333c7eb6c9b9c422185b43b44d1527f17f4e61360ae9c277f10af005963d2c15f88b1e1bb09e3186e69be129aacc27091325d9e5fcfb13b434cc50f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.25.0 (2024-05-30)
5
+ ------------------
6
+
7
+ * Feature - The release adds support for spark structured streaming.
8
+
9
+ 1.24.0 (2024-05-23)
10
+ ------------------
11
+
12
+ * Feature - This release adds the capability to run interactive workloads using Apache Livy Endpoint.
13
+
4
14
  1.23.0 (2024-05-13)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.23.0
1
+ 1.25.0
@@ -518,6 +518,10 @@ module Aws::EMRServerless
518
518
  # @option params [Types::MonitoringConfiguration] :monitoring_configuration
519
519
  # The configuration setting for monitoring.
520
520
  #
521
+ # @option params [Types::InteractiveConfiguration] :interactive_configuration
522
+ # The interactive configuration object that enables the interactive use
523
+ # cases to use when running an application.
524
+ #
521
525
  # @return [Types::CreateApplicationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
522
526
  #
523
527
  # * {Types::CreateApplicationResponse#application_id #application_id} => String
@@ -605,6 +609,10 @@ module Aws::EMRServerless
605
609
  # remote_write_url: "PrometheusUrlString",
606
610
  # },
607
611
  # },
612
+ # interactive_configuration: {
613
+ # studio_enabled: false,
614
+ # livy_endpoint_enabled: false,
615
+ # },
608
616
  # })
609
617
  #
610
618
  # @example Response structure
@@ -712,6 +720,8 @@ module Aws::EMRServerless
712
720
  # resp.application.monitoring_configuration.cloud_watch_logging_configuration.log_types["WorkerTypeString"] #=> Array
713
721
  # resp.application.monitoring_configuration.cloud_watch_logging_configuration.log_types["WorkerTypeString"][0] #=> String
714
722
  # resp.application.monitoring_configuration.prometheus_monitoring_configuration.remote_write_url #=> String
723
+ # resp.application.interactive_configuration.studio_enabled #=> Boolean
724
+ # resp.application.interactive_configuration.livy_endpoint_enabled #=> Boolean
715
725
  #
716
726
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetApplication AWS API Documentation
717
727
  #
@@ -742,6 +752,11 @@ module Aws::EMRServerless
742
752
  # @option params [required, String] :job_run_id
743
753
  # The ID of the job run.
744
754
  #
755
+ # @option params [Integer] :attempt
756
+ # An optimal parameter that indicates the amount of attempts for the
757
+ # job. If not specified, this value defaults to the attempt of the
758
+ # latest job.
759
+ #
745
760
  # @return [Types::GetDashboardForJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
746
761
  #
747
762
  # * {Types::GetDashboardForJobRunResponse#url #url} => String
@@ -751,6 +766,7 @@ module Aws::EMRServerless
751
766
  # resp = client.get_dashboard_for_job_run({
752
767
  # application_id: "ApplicationId", # required
753
768
  # job_run_id: "JobRunId", # required
769
+ # attempt: 1,
754
770
  # })
755
771
  #
756
772
  # @example Response structure
@@ -774,6 +790,11 @@ module Aws::EMRServerless
774
790
  # @option params [required, String] :job_run_id
775
791
  # The ID of the job run.
776
792
  #
793
+ # @option params [Integer] :attempt
794
+ # An optimal parameter that indicates the amount of attempts for the
795
+ # job. If not specified, this value defaults to the attempt of the
796
+ # latest job.
797
+ #
777
798
  # @return [Types::GetJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
778
799
  #
779
800
  # * {Types::GetJobRunResponse#job_run #job_run} => Types::JobRun
@@ -783,6 +804,7 @@ module Aws::EMRServerless
783
804
  # resp = client.get_job_run({
784
805
  # application_id: "ApplicationId", # required
785
806
  # job_run_id: "JobRunId", # required
807
+ # attempt: 1,
786
808
  # })
787
809
  #
788
810
  # @example Response structure
@@ -836,6 +858,12 @@ module Aws::EMRServerless
836
858
  # resp.job_run.billed_resource_utilization.v_cpu_hour #=> Float
837
859
  # resp.job_run.billed_resource_utilization.memory_gb_hour #=> Float
838
860
  # resp.job_run.billed_resource_utilization.storage_gb_hour #=> Float
861
+ # resp.job_run.mode #=> String, one of "BATCH", "STREAMING"
862
+ # resp.job_run.retry_policy.max_attempts #=> Integer
863
+ # resp.job_run.retry_policy.max_failed_attempts_per_hour #=> Integer
864
+ # resp.job_run.attempt #=> Integer
865
+ # resp.job_run.attempt_created_at #=> Time
866
+ # resp.job_run.attempt_updated_at #=> Time
839
867
  #
840
868
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetJobRun AWS API Documentation
841
869
  #
@@ -898,6 +926,65 @@ module Aws::EMRServerless
898
926
  req.send_request(options)
899
927
  end
900
928
 
929
+ # Lists all attempt of a job run.
930
+ #
931
+ # @option params [required, String] :application_id
932
+ # The ID of the application for which to list job runs.
933
+ #
934
+ # @option params [required, String] :job_run_id
935
+ # The ID of the job run to list.
936
+ #
937
+ # @option params [String] :next_token
938
+ # The token for the next set of job run attempt results.
939
+ #
940
+ # @option params [Integer] :max_results
941
+ # The maximum number of job run attempts to list.
942
+ #
943
+ # @return [Types::ListJobRunAttemptsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
944
+ #
945
+ # * {Types::ListJobRunAttemptsResponse#job_run_attempts #job_run_attempts} => Array<Types::JobRunAttemptSummary>
946
+ # * {Types::ListJobRunAttemptsResponse#next_token #next_token} => String
947
+ #
948
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
949
+ #
950
+ # @example Request syntax with placeholder values
951
+ #
952
+ # resp = client.list_job_run_attempts({
953
+ # application_id: "ApplicationId", # required
954
+ # job_run_id: "JobRunId", # required
955
+ # next_token: "NextToken",
956
+ # max_results: 1,
957
+ # })
958
+ #
959
+ # @example Response structure
960
+ #
961
+ # resp.job_run_attempts #=> Array
962
+ # resp.job_run_attempts[0].application_id #=> String
963
+ # resp.job_run_attempts[0].id #=> String
964
+ # resp.job_run_attempts[0].name #=> String
965
+ # resp.job_run_attempts[0].mode #=> String, one of "BATCH", "STREAMING"
966
+ # resp.job_run_attempts[0].arn #=> String
967
+ # resp.job_run_attempts[0].created_by #=> String
968
+ # resp.job_run_attempts[0].job_created_at #=> Time
969
+ # resp.job_run_attempts[0].created_at #=> Time
970
+ # resp.job_run_attempts[0].updated_at #=> Time
971
+ # resp.job_run_attempts[0].execution_role #=> String
972
+ # resp.job_run_attempts[0].state #=> String, one of "SUBMITTED", "PENDING", "SCHEDULED", "RUNNING", "SUCCESS", "FAILED", "CANCELLING", "CANCELLED"
973
+ # resp.job_run_attempts[0].state_details #=> String
974
+ # resp.job_run_attempts[0].release_label #=> String
975
+ # resp.job_run_attempts[0].type #=> String
976
+ # resp.job_run_attempts[0].attempt #=> Integer
977
+ # resp.next_token #=> String
978
+ #
979
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRunAttempts AWS API Documentation
980
+ #
981
+ # @overload list_job_run_attempts(params = {})
982
+ # @param [Hash] params ({})
983
+ def list_job_run_attempts(params = {}, options = {})
984
+ req = build_request(:list_job_run_attempts, params)
985
+ req.send_request(options)
986
+ end
987
+
901
988
  # Lists job runs based on a set of parameters.
902
989
  #
903
990
  # @option params [required, String] :application_id
@@ -920,6 +1007,9 @@ module Aws::EMRServerless
920
1007
  # contains multiple states, the resulting list will be grouped by the
921
1008
  # state.
922
1009
  #
1010
+ # @option params [String] :mode
1011
+ # The mode of the job runs to list.
1012
+ #
923
1013
  # @return [Types::ListJobRunsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
924
1014
  #
925
1015
  # * {Types::ListJobRunsResponse#job_runs #job_runs} => Array<Types::JobRunSummary>
@@ -936,6 +1026,7 @@ module Aws::EMRServerless
936
1026
  # created_at_after: Time.now,
937
1027
  # created_at_before: Time.now,
938
1028
  # states: ["SUBMITTED"], # accepts SUBMITTED, PENDING, SCHEDULED, RUNNING, SUCCESS, FAILED, CANCELLING, CANCELLED
1029
+ # mode: "BATCH", # accepts BATCH, STREAMING
939
1030
  # })
940
1031
  #
941
1032
  # @example Response structure
@@ -944,6 +1035,7 @@ module Aws::EMRServerless
944
1035
  # resp.job_runs[0].application_id #=> String
945
1036
  # resp.job_runs[0].id #=> String
946
1037
  # resp.job_runs[0].name #=> String
1038
+ # resp.job_runs[0].mode #=> String, one of "BATCH", "STREAMING"
947
1039
  # resp.job_runs[0].arn #=> String
948
1040
  # resp.job_runs[0].created_by #=> String
949
1041
  # resp.job_runs[0].created_at #=> Time
@@ -953,6 +1045,9 @@ module Aws::EMRServerless
953
1045
  # resp.job_runs[0].state_details #=> String
954
1046
  # resp.job_runs[0].release_label #=> String
955
1047
  # resp.job_runs[0].type #=> String
1048
+ # resp.job_runs[0].attempt #=> Integer
1049
+ # resp.job_runs[0].attempt_created_at #=> Time
1050
+ # resp.job_runs[0].attempt_updated_at #=> Time
956
1051
  # resp.next_token #=> String
957
1052
  #
958
1053
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRuns AWS API Documentation
@@ -1049,6 +1144,12 @@ module Aws::EMRServerless
1049
1144
  # @option params [String] :name
1050
1145
  # The optional job run name. This doesn't have to be unique.
1051
1146
  #
1147
+ # @option params [String] :mode
1148
+ # The mode of the job run when it starts.
1149
+ #
1150
+ # @option params [Types::RetryPolicy] :retry_policy
1151
+ # The retry policy when job run starts.
1152
+ #
1052
1153
  # @return [Types::StartJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1053
1154
  #
1054
1155
  # * {Types::StartJobRunResponse#application_id #application_id} => String
@@ -1113,6 +1214,11 @@ module Aws::EMRServerless
1113
1214
  # },
1114
1215
  # execution_timeout_minutes: 1,
1115
1216
  # name: "String256",
1217
+ # mode: "BATCH", # accepts BATCH, STREAMING
1218
+ # retry_policy: {
1219
+ # max_attempts: 1,
1220
+ # max_failed_attempts_per_hour: 1,
1221
+ # },
1116
1222
  # })
1117
1223
  #
1118
1224
  # @example Response structure
@@ -1268,6 +1374,10 @@ module Aws::EMRServerless
1268
1374
  # image details in this parameter for each worker type, or in
1269
1375
  # `imageConfiguration` for all worker types.
1270
1376
  #
1377
+ # @option params [Types::InteractiveConfiguration] :interactive_configuration
1378
+ # The interactive configuration object that contains new interactive use
1379
+ # cases when the application is updated.
1380
+ #
1271
1381
  # @option params [String] :release_label
1272
1382
  # The Amazon EMR release label for the application. You can change the
1273
1383
  # release label to use a different release of Amazon EMR.
@@ -1332,6 +1442,10 @@ module Aws::EMRServerless
1332
1442
  # },
1333
1443
  # },
1334
1444
  # },
1445
+ # interactive_configuration: {
1446
+ # studio_enabled: false,
1447
+ # livy_endpoint_enabled: false,
1448
+ # },
1335
1449
  # release_label: "ReleaseLabel",
1336
1450
  # runtime_configuration: [
1337
1451
  # {
@@ -1420,6 +1534,8 @@ module Aws::EMRServerless
1420
1534
  # resp.application.monitoring_configuration.cloud_watch_logging_configuration.log_types["WorkerTypeString"] #=> Array
1421
1535
  # resp.application.monitoring_configuration.cloud_watch_logging_configuration.log_types["WorkerTypeString"][0] #=> String
1422
1536
  # resp.application.monitoring_configuration.prometheus_monitoring_configuration.remote_write_url #=> String
1537
+ # resp.application.interactive_configuration.studio_enabled #=> Boolean
1538
+ # resp.application.interactive_configuration.livy_endpoint_enabled #=> Boolean
1423
1539
  #
1424
1540
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/UpdateApplication AWS API Documentation
1425
1541
  #
@@ -1443,7 +1559,7 @@ module Aws::EMRServerless
1443
1559
  params: params,
1444
1560
  config: config)
1445
1561
  context[:gem_name] = 'aws-sdk-emrserverless'
1446
- context[:gem_version] = '1.23.0'
1562
+ context[:gem_version] = '1.25.0'
1447
1563
  Seahorse::Client::Request.new(handlers, context)
1448
1564
  end
1449
1565
 
@@ -22,6 +22,7 @@ module Aws::EMRServerless
22
22
  ApplicationStateSet = Shapes::ListShape.new(name: 'ApplicationStateSet')
23
23
  ApplicationSummary = Shapes::StructureShape.new(name: 'ApplicationSummary')
24
24
  Architecture = Shapes::StringShape.new(name: 'Architecture')
25
+ AttemptNumber = Shapes::IntegerShape.new(name: 'AttemptNumber')
25
26
  AutoStartConfig = Shapes::StructureShape.new(name: 'AutoStartConfig')
26
27
  AutoStopConfig = Shapes::StructureShape.new(name: 'AutoStopConfig')
27
28
  AutoStopConfigIdleTimeoutMinutesInteger = Shapes::IntegerShape.new(name: 'AutoStopConfigIdleTimeoutMinutesInteger')
@@ -68,11 +69,15 @@ module Aws::EMRServerless
68
69
  InitialCapacityConfig = Shapes::StructureShape.new(name: 'InitialCapacityConfig')
69
70
  InitialCapacityConfigMap = Shapes::MapShape.new(name: 'InitialCapacityConfigMap')
70
71
  Integer = Shapes::IntegerShape.new(name: 'Integer')
72
+ InteractiveConfiguration = Shapes::StructureShape.new(name: 'InteractiveConfiguration')
71
73
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
72
74
  JobArn = Shapes::StringShape.new(name: 'JobArn')
73
75
  JobDriver = Shapes::UnionShape.new(name: 'JobDriver')
74
76
  JobRun = Shapes::StructureShape.new(name: 'JobRun')
77
+ JobRunAttemptSummary = Shapes::StructureShape.new(name: 'JobRunAttemptSummary')
78
+ JobRunAttempts = Shapes::ListShape.new(name: 'JobRunAttempts')
75
79
  JobRunId = Shapes::StringShape.new(name: 'JobRunId')
80
+ JobRunMode = Shapes::StringShape.new(name: 'JobRunMode')
76
81
  JobRunState = Shapes::StringShape.new(name: 'JobRunState')
77
82
  JobRunStateSet = Shapes::ListShape.new(name: 'JobRunStateSet')
78
83
  JobRunSummary = Shapes::StructureShape.new(name: 'JobRunSummary')
@@ -81,6 +86,9 @@ module Aws::EMRServerless
81
86
  ListApplicationsRequest = Shapes::StructureShape.new(name: 'ListApplicationsRequest')
82
87
  ListApplicationsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListApplicationsRequestMaxResultsInteger')
83
88
  ListApplicationsResponse = Shapes::StructureShape.new(name: 'ListApplicationsResponse')
89
+ ListJobRunAttemptsRequest = Shapes::StructureShape.new(name: 'ListJobRunAttemptsRequest')
90
+ ListJobRunAttemptsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListJobRunAttemptsRequestMaxResultsInteger')
91
+ ListJobRunAttemptsResponse = Shapes::StructureShape.new(name: 'ListJobRunAttemptsResponse')
84
92
  ListJobRunsRequest = Shapes::StructureShape.new(name: 'ListJobRunsRequest')
85
93
  ListJobRunsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListJobRunsRequestMaxResultsInteger')
86
94
  ListJobRunsResponse = Shapes::StructureShape.new(name: 'ListJobRunsResponse')
@@ -105,6 +113,8 @@ module Aws::EMRServerless
105
113
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
106
114
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
107
115
  ResourceUtilization = Shapes::StructureShape.new(name: 'ResourceUtilization')
116
+ RetryPolicy = Shapes::StructureShape.new(name: 'RetryPolicy')
117
+ RetryPolicyMaxFailedAttemptsPerHourInteger = Shapes::IntegerShape.new(name: 'RetryPolicyMaxFailedAttemptsPerHourInteger')
108
118
  S3MonitoringConfiguration = Shapes::StructureShape.new(name: 'S3MonitoringConfiguration')
109
119
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
110
120
  SecurityGroupString = Shapes::StringShape.new(name: 'SecurityGroupString')
@@ -164,6 +174,7 @@ module Aws::EMRServerless
164
174
  Application.add_member(:worker_type_specifications, Shapes::ShapeRef.new(shape: WorkerTypeSpecificationMap, location_name: "workerTypeSpecifications"))
165
175
  Application.add_member(:runtime_configuration, Shapes::ShapeRef.new(shape: ConfigurationList, location_name: "runtimeConfiguration"))
166
176
  Application.add_member(:monitoring_configuration, Shapes::ShapeRef.new(shape: MonitoringConfiguration, location_name: "monitoringConfiguration"))
177
+ Application.add_member(:interactive_configuration, Shapes::ShapeRef.new(shape: InteractiveConfiguration, location_name: "interactiveConfiguration"))
167
178
  Application.struct_class = Types::Application
168
179
 
169
180
  ApplicationList.member = Shapes::ShapeRef.new(shape: ApplicationSummary)
@@ -233,6 +244,7 @@ module Aws::EMRServerless
233
244
  CreateApplicationRequest.add_member(:worker_type_specifications, Shapes::ShapeRef.new(shape: WorkerTypeSpecificationInputMap, location_name: "workerTypeSpecifications"))
234
245
  CreateApplicationRequest.add_member(:runtime_configuration, Shapes::ShapeRef.new(shape: ConfigurationList, location_name: "runtimeConfiguration"))
235
246
  CreateApplicationRequest.add_member(:monitoring_configuration, Shapes::ShapeRef.new(shape: MonitoringConfiguration, location_name: "monitoringConfiguration"))
247
+ CreateApplicationRequest.add_member(:interactive_configuration, Shapes::ShapeRef.new(shape: InteractiveConfiguration, location_name: "interactiveConfiguration"))
236
248
  CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
237
249
 
238
250
  CreateApplicationResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
@@ -255,6 +267,7 @@ module Aws::EMRServerless
255
267
 
256
268
  GetDashboardForJobRunRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
257
269
  GetDashboardForJobRunRequest.add_member(:job_run_id, Shapes::ShapeRef.new(shape: JobRunId, required: true, location: "uri", location_name: "jobRunId"))
270
+ GetDashboardForJobRunRequest.add_member(:attempt, Shapes::ShapeRef.new(shape: AttemptNumber, location: "querystring", location_name: "attempt"))
258
271
  GetDashboardForJobRunRequest.struct_class = Types::GetDashboardForJobRunRequest
259
272
 
260
273
  GetDashboardForJobRunResponse.add_member(:url, Shapes::ShapeRef.new(shape: Url, location_name: "url"))
@@ -262,6 +275,7 @@ module Aws::EMRServerless
262
275
 
263
276
  GetJobRunRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
264
277
  GetJobRunRequest.add_member(:job_run_id, Shapes::ShapeRef.new(shape: JobRunId, required: true, location: "uri", location_name: "jobRunId"))
278
+ GetJobRunRequest.add_member(:attempt, Shapes::ShapeRef.new(shape: AttemptNumber, location: "querystring", location_name: "attempt"))
265
279
  GetJobRunRequest.struct_class = Types::GetJobRunRequest
266
280
 
267
281
  GetJobRunResponse.add_member(:job_run, Shapes::ShapeRef.new(shape: JobRun, required: true, location_name: "jobRun"))
@@ -286,6 +300,10 @@ module Aws::EMRServerless
286
300
  InitialCapacityConfigMap.key = Shapes::ShapeRef.new(shape: WorkerTypeString)
287
301
  InitialCapacityConfigMap.value = Shapes::ShapeRef.new(shape: InitialCapacityConfig)
288
302
 
303
+ InteractiveConfiguration.add_member(:studio_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "studioEnabled"))
304
+ InteractiveConfiguration.add_member(:livy_endpoint_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "livyEndpointEnabled"))
305
+ InteractiveConfiguration.struct_class = Types::InteractiveConfiguration
306
+
289
307
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String1024, required: true, location_name: "message"))
290
308
  InternalServerException.struct_class = Types::InternalServerException
291
309
 
@@ -316,13 +334,38 @@ module Aws::EMRServerless
316
334
  JobRun.add_member(:total_execution_duration_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "totalExecutionDurationSeconds"))
317
335
  JobRun.add_member(:execution_timeout_minutes, Shapes::ShapeRef.new(shape: Duration, location_name: "executionTimeoutMinutes", metadata: {"box"=>true}))
318
336
  JobRun.add_member(:billed_resource_utilization, Shapes::ShapeRef.new(shape: ResourceUtilization, location_name: "billedResourceUtilization"))
337
+ JobRun.add_member(:mode, Shapes::ShapeRef.new(shape: JobRunMode, location_name: "mode"))
338
+ JobRun.add_member(:retry_policy, Shapes::ShapeRef.new(shape: RetryPolicy, location_name: "retryPolicy"))
339
+ JobRun.add_member(:attempt, Shapes::ShapeRef.new(shape: AttemptNumber, location_name: "attempt"))
340
+ JobRun.add_member(:attempt_created_at, Shapes::ShapeRef.new(shape: Date, location_name: "attemptCreatedAt"))
341
+ JobRun.add_member(:attempt_updated_at, Shapes::ShapeRef.new(shape: Date, location_name: "attemptUpdatedAt"))
319
342
  JobRun.struct_class = Types::JobRun
320
343
 
344
+ JobRunAttemptSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
345
+ JobRunAttemptSummary.add_member(:id, Shapes::ShapeRef.new(shape: JobRunId, required: true, location_name: "id"))
346
+ JobRunAttemptSummary.add_member(:name, Shapes::ShapeRef.new(shape: String256, location_name: "name"))
347
+ JobRunAttemptSummary.add_member(:mode, Shapes::ShapeRef.new(shape: JobRunMode, location_name: "mode"))
348
+ JobRunAttemptSummary.add_member(:arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location_name: "arn"))
349
+ JobRunAttemptSummary.add_member(:created_by, Shapes::ShapeRef.new(shape: RequestIdentityUserArn, required: true, location_name: "createdBy"))
350
+ JobRunAttemptSummary.add_member(:job_created_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "jobCreatedAt"))
351
+ JobRunAttemptSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "createdAt"))
352
+ JobRunAttemptSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "updatedAt"))
353
+ JobRunAttemptSummary.add_member(:execution_role, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "executionRole"))
354
+ JobRunAttemptSummary.add_member(:state, Shapes::ShapeRef.new(shape: JobRunState, required: true, location_name: "state"))
355
+ JobRunAttemptSummary.add_member(:state_details, Shapes::ShapeRef.new(shape: String256, required: true, location_name: "stateDetails"))
356
+ JobRunAttemptSummary.add_member(:release_label, Shapes::ShapeRef.new(shape: ReleaseLabel, required: true, location_name: "releaseLabel"))
357
+ JobRunAttemptSummary.add_member(:type, Shapes::ShapeRef.new(shape: JobRunType, location_name: "type"))
358
+ JobRunAttemptSummary.add_member(:attempt, Shapes::ShapeRef.new(shape: AttemptNumber, location_name: "attempt"))
359
+ JobRunAttemptSummary.struct_class = Types::JobRunAttemptSummary
360
+
361
+ JobRunAttempts.member = Shapes::ShapeRef.new(shape: JobRunAttemptSummary)
362
+
321
363
  JobRunStateSet.member = Shapes::ShapeRef.new(shape: JobRunState)
322
364
 
323
365
  JobRunSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
324
366
  JobRunSummary.add_member(:id, Shapes::ShapeRef.new(shape: JobRunId, required: true, location_name: "id"))
325
367
  JobRunSummary.add_member(:name, Shapes::ShapeRef.new(shape: String256, location_name: "name"))
368
+ JobRunSummary.add_member(:mode, Shapes::ShapeRef.new(shape: JobRunMode, location_name: "mode"))
326
369
  JobRunSummary.add_member(:arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location_name: "arn"))
327
370
  JobRunSummary.add_member(:created_by, Shapes::ShapeRef.new(shape: RequestIdentityUserArn, required: true, location_name: "createdBy"))
328
371
  JobRunSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "createdAt"))
@@ -332,6 +375,9 @@ module Aws::EMRServerless
332
375
  JobRunSummary.add_member(:state_details, Shapes::ShapeRef.new(shape: String256, required: true, location_name: "stateDetails"))
333
376
  JobRunSummary.add_member(:release_label, Shapes::ShapeRef.new(shape: ReleaseLabel, required: true, location_name: "releaseLabel"))
334
377
  JobRunSummary.add_member(:type, Shapes::ShapeRef.new(shape: JobRunType, location_name: "type"))
378
+ JobRunSummary.add_member(:attempt, Shapes::ShapeRef.new(shape: AttemptNumber, location_name: "attempt"))
379
+ JobRunSummary.add_member(:attempt_created_at, Shapes::ShapeRef.new(shape: Date, location_name: "attemptCreatedAt"))
380
+ JobRunSummary.add_member(:attempt_updated_at, Shapes::ShapeRef.new(shape: Date, location_name: "attemptUpdatedAt"))
335
381
  JobRunSummary.struct_class = Types::JobRunSummary
336
382
 
337
383
  JobRuns.member = Shapes::ShapeRef.new(shape: JobRunSummary)
@@ -345,12 +391,23 @@ module Aws::EMRServerless
345
391
  ListApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
346
392
  ListApplicationsResponse.struct_class = Types::ListApplicationsResponse
347
393
 
394
+ ListJobRunAttemptsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
395
+ ListJobRunAttemptsRequest.add_member(:job_run_id, Shapes::ShapeRef.new(shape: JobRunId, required: true, location: "uri", location_name: "jobRunId"))
396
+ ListJobRunAttemptsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
397
+ ListJobRunAttemptsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListJobRunAttemptsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
398
+ ListJobRunAttemptsRequest.struct_class = Types::ListJobRunAttemptsRequest
399
+
400
+ ListJobRunAttemptsResponse.add_member(:job_run_attempts, Shapes::ShapeRef.new(shape: JobRunAttempts, required: true, location_name: "jobRunAttempts"))
401
+ ListJobRunAttemptsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
402
+ ListJobRunAttemptsResponse.struct_class = Types::ListJobRunAttemptsResponse
403
+
348
404
  ListJobRunsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
349
405
  ListJobRunsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
350
406
  ListJobRunsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListJobRunsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
351
407
  ListJobRunsRequest.add_member(:created_at_after, Shapes::ShapeRef.new(shape: Date, location: "querystring", location_name: "createdAtAfter"))
352
408
  ListJobRunsRequest.add_member(:created_at_before, Shapes::ShapeRef.new(shape: Date, location: "querystring", location_name: "createdAtBefore"))
353
409
  ListJobRunsRequest.add_member(:states, Shapes::ShapeRef.new(shape: JobRunStateSet, location: "querystring", location_name: "states"))
410
+ ListJobRunsRequest.add_member(:mode, Shapes::ShapeRef.new(shape: JobRunMode, location: "querystring", location_name: "mode"))
354
411
  ListJobRunsRequest.struct_class = Types::ListJobRunsRequest
355
412
 
356
413
  ListJobRunsResponse.add_member(:job_runs, Shapes::ShapeRef.new(shape: JobRuns, required: true, location_name: "jobRuns"))
@@ -398,6 +455,10 @@ module Aws::EMRServerless
398
455
  ResourceUtilization.add_member(:storage_gb_hour, Shapes::ShapeRef.new(shape: Double, location_name: "storageGBHour"))
399
456
  ResourceUtilization.struct_class = Types::ResourceUtilization
400
457
 
458
+ RetryPolicy.add_member(:max_attempts, Shapes::ShapeRef.new(shape: AttemptNumber, location_name: "maxAttempts"))
459
+ RetryPolicy.add_member(:max_failed_attempts_per_hour, Shapes::ShapeRef.new(shape: RetryPolicyMaxFailedAttemptsPerHourInteger, location_name: "maxFailedAttemptsPerHour"))
460
+ RetryPolicy.struct_class = Types::RetryPolicy
461
+
401
462
  S3MonitoringConfiguration.add_member(:log_uri, Shapes::ShapeRef.new(shape: UriString, location_name: "logUri"))
402
463
  S3MonitoringConfiguration.add_member(:encryption_key_arn, Shapes::ShapeRef.new(shape: EncryptionKeyArn, location_name: "encryptionKeyArn"))
403
464
  S3MonitoringConfiguration.struct_class = Types::S3MonitoringConfiguration
@@ -428,6 +489,8 @@ module Aws::EMRServerless
428
489
  StartJobRunRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
429
490
  StartJobRunRequest.add_member(:execution_timeout_minutes, Shapes::ShapeRef.new(shape: Duration, location_name: "executionTimeoutMinutes", metadata: {"box"=>true}))
430
491
  StartJobRunRequest.add_member(:name, Shapes::ShapeRef.new(shape: String256, location_name: "name"))
492
+ StartJobRunRequest.add_member(:mode, Shapes::ShapeRef.new(shape: JobRunMode, location_name: "mode"))
493
+ StartJobRunRequest.add_member(:retry_policy, Shapes::ShapeRef.new(shape: RetryPolicy, location_name: "retryPolicy"))
431
494
  StartJobRunRequest.struct_class = Types::StartJobRunRequest
432
495
 
433
496
  StartJobRunResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
@@ -474,6 +537,7 @@ module Aws::EMRServerless
474
537
  UpdateApplicationRequest.add_member(:architecture, Shapes::ShapeRef.new(shape: Architecture, location_name: "architecture"))
475
538
  UpdateApplicationRequest.add_member(:image_configuration, Shapes::ShapeRef.new(shape: ImageConfigurationInput, location_name: "imageConfiguration"))
476
539
  UpdateApplicationRequest.add_member(:worker_type_specifications, Shapes::ShapeRef.new(shape: WorkerTypeSpecificationInputMap, location_name: "workerTypeSpecifications"))
540
+ UpdateApplicationRequest.add_member(:interactive_configuration, Shapes::ShapeRef.new(shape: InteractiveConfiguration, location_name: "interactiveConfiguration"))
477
541
  UpdateApplicationRequest.add_member(:release_label, Shapes::ShapeRef.new(shape: ReleaseLabel, location_name: "releaseLabel"))
478
542
  UpdateApplicationRequest.add_member(:runtime_configuration, Shapes::ShapeRef.new(shape: ConfigurationList, location_name: "runtimeConfiguration"))
479
543
  UpdateApplicationRequest.add_member(:monitoring_configuration, Shapes::ShapeRef.new(shape: MonitoringConfiguration, location_name: "monitoringConfiguration"))
@@ -604,6 +668,23 @@ module Aws::EMRServerless
604
668
  )
605
669
  end)
606
670
 
671
+ api.add_operation(:list_job_run_attempts, Seahorse::Model::Operation.new.tap do |o|
672
+ o.name = "ListJobRunAttempts"
673
+ o.http_method = "GET"
674
+ o.http_request_uri = "/applications/{applicationId}/jobruns/{jobRunId}/attempts"
675
+ o.input = Shapes::ShapeRef.new(shape: ListJobRunAttemptsRequest)
676
+ o.output = Shapes::ShapeRef.new(shape: ListJobRunAttemptsResponse)
677
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
678
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
679
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
680
+ o[:pager] = Aws::Pager.new(
681
+ limit_key: "max_results",
682
+ tokens: {
683
+ "next_token" => "next_token"
684
+ }
685
+ )
686
+ end)
687
+
607
688
  api.add_operation(:list_job_runs, Seahorse::Model::Operation.new.tap do |o|
608
689
  o.name = "ListJobRuns"
609
690
  o.http_method = "GET"
@@ -110,6 +110,20 @@ module Aws::EMRServerless
110
110
  end
111
111
  end
112
112
 
113
+ class ListJobRunAttempts
114
+ def self.build(context)
115
+ unless context.config.regional_endpoint
116
+ endpoint = context.config.endpoint.to_s
117
+ end
118
+ Aws::EMRServerless::EndpointParameters.new(
119
+ region: context.config.region,
120
+ use_dual_stack: context.config.use_dualstack_endpoint,
121
+ use_fips: context.config.use_fips_endpoint,
122
+ endpoint: endpoint,
123
+ )
124
+ end
125
+ end
126
+
113
127
  class ListJobRuns
114
128
  def self.build(context)
115
129
  unless context.config.regional_endpoint
@@ -72,6 +72,8 @@ module Aws::EMRServerless
72
72
  Aws::EMRServerless::Endpoints::GetJobRun.build(context)
73
73
  when :list_applications
74
74
  Aws::EMRServerless::Endpoints::ListApplications.build(context)
75
+ when :list_job_run_attempts
76
+ Aws::EMRServerless::Endpoints::ListJobRunAttempts.build(context)
75
77
  when :list_job_runs
76
78
  Aws::EMRServerless::Endpoints::ListJobRuns.build(context)
77
79
  when :list_tags_for_resource
@@ -108,6 +108,11 @@ module Aws::EMRServerless
108
108
  # The configuration setting for monitoring.
109
109
  # @return [Types::MonitoringConfiguration]
110
110
  #
111
+ # @!attribute [rw] interactive_configuration
112
+ # The interactive configuration object that enables the interactive
113
+ # use cases for an application.
114
+ # @return [Types::InteractiveConfiguration]
115
+ #
111
116
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/Application AWS API Documentation
112
117
  #
113
118
  class Application < Struct.new(
@@ -130,7 +135,8 @@ module Aws::EMRServerless
130
135
  :image_configuration,
131
136
  :worker_type_specifications,
132
137
  :runtime_configuration,
133
- :monitoring_configuration)
138
+ :monitoring_configuration,
139
+ :interactive_configuration)
134
140
  SENSITIVE = []
135
141
  include Aws::Structure
136
142
  end
@@ -465,6 +471,11 @@ module Aws::EMRServerless
465
471
  # The configuration setting for monitoring.
466
472
  # @return [Types::MonitoringConfiguration]
467
473
  #
474
+ # @!attribute [rw] interactive_configuration
475
+ # The interactive configuration object that enables the interactive
476
+ # use cases to use when running an application.
477
+ # @return [Types::InteractiveConfiguration]
478
+ #
468
479
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/CreateApplicationRequest AWS API Documentation
469
480
  #
470
481
  class CreateApplicationRequest < Struct.new(
@@ -482,7 +493,8 @@ module Aws::EMRServerless
482
493
  :image_configuration,
483
494
  :worker_type_specifications,
484
495
  :runtime_configuration,
485
- :monitoring_configuration)
496
+ :monitoring_configuration,
497
+ :interactive_configuration)
486
498
  SENSITIVE = []
487
499
  include Aws::Structure
488
500
  end
@@ -557,11 +569,18 @@ module Aws::EMRServerless
557
569
  # The ID of the job run.
558
570
  # @return [String]
559
571
  #
572
+ # @!attribute [rw] attempt
573
+ # An optimal parameter that indicates the amount of attempts for the
574
+ # job. If not specified, this value defaults to the attempt of the
575
+ # latest job.
576
+ # @return [Integer]
577
+ #
560
578
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetDashboardForJobRunRequest AWS API Documentation
561
579
  #
562
580
  class GetDashboardForJobRunRequest < Struct.new(
563
581
  :application_id,
564
- :job_run_id)
582
+ :job_run_id,
583
+ :attempt)
565
584
  SENSITIVE = []
566
585
  include Aws::Structure
567
586
  end
@@ -586,11 +605,18 @@ module Aws::EMRServerless
586
605
  # The ID of the job run.
587
606
  # @return [String]
588
607
  #
608
+ # @!attribute [rw] attempt
609
+ # An optimal parameter that indicates the amount of attempts for the
610
+ # job. If not specified, this value defaults to the attempt of the
611
+ # latest job.
612
+ # @return [Integer]
613
+ #
589
614
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetJobRunRequest AWS API Documentation
590
615
  #
591
616
  class GetJobRunRequest < Struct.new(
592
617
  :application_id,
593
- :job_run_id)
618
+ :job_run_id,
619
+ :attempt)
594
620
  SENSITIVE = []
595
621
  include Aws::Structure
596
622
  end
@@ -687,6 +713,28 @@ module Aws::EMRServerless
687
713
  include Aws::Structure
688
714
  end
689
715
 
716
+ # The configuration to use to enable the different types of interactive
717
+ # use cases in an application.
718
+ #
719
+ # @!attribute [rw] studio_enabled
720
+ # Enables you to connect an application to Amazon EMR Studio to run
721
+ # interactive workloads in a notebook.
722
+ # @return [Boolean]
723
+ #
724
+ # @!attribute [rw] livy_endpoint_enabled
725
+ # Enables an Apache Livy endpoint that you can connect to and run
726
+ # interactive jobs.
727
+ # @return [Boolean]
728
+ #
729
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/InteractiveConfiguration AWS API Documentation
730
+ #
731
+ class InteractiveConfiguration < Struct.new(
732
+ :studio_enabled,
733
+ :livy_endpoint_enabled)
734
+ SENSITIVE = []
735
+ include Aws::Structure
736
+ end
737
+
690
738
  # Request processing failed because of an error or failure with the
691
739
  # service.
692
740
  #
@@ -822,6 +870,26 @@ module Aws::EMRServerless
822
870
  # pre-initialized workers.
823
871
  # @return [Types::ResourceUtilization]
824
872
  #
873
+ # @!attribute [rw] mode
874
+ # The mode of the job run.
875
+ # @return [String]
876
+ #
877
+ # @!attribute [rw] retry_policy
878
+ # The retry policy of the job run.
879
+ # @return [Types::RetryPolicy]
880
+ #
881
+ # @!attribute [rw] attempt
882
+ # The attempt of the job run.
883
+ # @return [Integer]
884
+ #
885
+ # @!attribute [rw] attempt_created_at
886
+ # The date and time of when the job run attempt was created.
887
+ # @return [Time]
888
+ #
889
+ # @!attribute [rw] attempt_updated_at
890
+ # The date and time of when the job run attempt was last updated.
891
+ # @return [Time]
892
+ #
825
893
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRun AWS API Documentation
826
894
  #
827
895
  class JobRun < Struct.new(
@@ -843,7 +911,97 @@ module Aws::EMRServerless
843
911
  :network_configuration,
844
912
  :total_execution_duration_seconds,
845
913
  :execution_timeout_minutes,
846
- :billed_resource_utilization)
914
+ :billed_resource_utilization,
915
+ :mode,
916
+ :retry_policy,
917
+ :attempt,
918
+ :attempt_created_at,
919
+ :attempt_updated_at)
920
+ SENSITIVE = []
921
+ include Aws::Structure
922
+ end
923
+
924
+ # The summary of attributes associated with a job run attempt.
925
+ #
926
+ # @!attribute [rw] application_id
927
+ # The ID of the application the job is running on.
928
+ # @return [String]
929
+ #
930
+ # @!attribute [rw] id
931
+ # The ID of the job run attempt.
932
+ # @return [String]
933
+ #
934
+ # @!attribute [rw] name
935
+ # The name of the job run attempt.
936
+ # @return [String]
937
+ #
938
+ # @!attribute [rw] mode
939
+ # The mode of the job run attempt.
940
+ # @return [String]
941
+ #
942
+ # @!attribute [rw] arn
943
+ # The Amazon Resource Name (ARN) of the job run.
944
+ # @return [String]
945
+ #
946
+ # @!attribute [rw] created_by
947
+ # The user who created the job run.
948
+ # @return [String]
949
+ #
950
+ # @!attribute [rw] job_created_at
951
+ # The date and time of when the job run was created.
952
+ # @return [Time]
953
+ #
954
+ # @!attribute [rw] created_at
955
+ # The date and time when the job run attempt was created.
956
+ # @return [Time]
957
+ #
958
+ # @!attribute [rw] updated_at
959
+ # The date and time of when the job run attempt was last updated.
960
+ # @return [Time]
961
+ #
962
+ # @!attribute [rw] execution_role
963
+ # The Amazon Resource Name (ARN) of the execution role of the job
964
+ # run..
965
+ # @return [String]
966
+ #
967
+ # @!attribute [rw] state
968
+ # The state of the job run attempt.
969
+ # @return [String]
970
+ #
971
+ # @!attribute [rw] state_details
972
+ # The state details of the job run attempt.
973
+ # @return [String]
974
+ #
975
+ # @!attribute [rw] release_label
976
+ # The Amazon EMR release label of the job run attempt.
977
+ # @return [String]
978
+ #
979
+ # @!attribute [rw] type
980
+ # The type of the job run, such as Spark or Hive.
981
+ # @return [String]
982
+ #
983
+ # @!attribute [rw] attempt
984
+ # The attempt number of the job run execution.
985
+ # @return [Integer]
986
+ #
987
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRunAttemptSummary AWS API Documentation
988
+ #
989
+ class JobRunAttemptSummary < Struct.new(
990
+ :application_id,
991
+ :id,
992
+ :name,
993
+ :mode,
994
+ :arn,
995
+ :created_by,
996
+ :job_created_at,
997
+ :created_at,
998
+ :updated_at,
999
+ :execution_role,
1000
+ :state,
1001
+ :state_details,
1002
+ :release_label,
1003
+ :type,
1004
+ :attempt)
847
1005
  SENSITIVE = []
848
1006
  include Aws::Structure
849
1007
  end
@@ -862,6 +1020,10 @@ module Aws::EMRServerless
862
1020
  # The optional job run name. This doesn't have to be unique.
863
1021
  # @return [String]
864
1022
  #
1023
+ # @!attribute [rw] mode
1024
+ # The mode of the job run.
1025
+ # @return [String]
1026
+ #
865
1027
  # @!attribute [rw] arn
866
1028
  # The ARN of the job run.
867
1029
  # @return [String]
@@ -899,12 +1061,25 @@ module Aws::EMRServerless
899
1061
  # The type of job run, such as Spark or Hive.
900
1062
  # @return [String]
901
1063
  #
1064
+ # @!attribute [rw] attempt
1065
+ # The attempt number of the job run execution.
1066
+ # @return [Integer]
1067
+ #
1068
+ # @!attribute [rw] attempt_created_at
1069
+ # The date and time of when the job run attempt was created.
1070
+ # @return [Time]
1071
+ #
1072
+ # @!attribute [rw] attempt_updated_at
1073
+ # The date and time of when the job run attempt was last updated.
1074
+ # @return [Time]
1075
+ #
902
1076
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRunSummary AWS API Documentation
903
1077
  #
904
1078
  class JobRunSummary < Struct.new(
905
1079
  :application_id,
906
1080
  :id,
907
1081
  :name,
1082
+ :mode,
908
1083
  :arn,
909
1084
  :created_by,
910
1085
  :created_at,
@@ -913,7 +1088,10 @@ module Aws::EMRServerless
913
1088
  :state,
914
1089
  :state_details,
915
1090
  :release_label,
916
- :type)
1091
+ :type,
1092
+ :attempt,
1093
+ :attempt_created_at,
1094
+ :attempt_updated_at)
917
1095
  SENSITIVE = []
918
1096
  include Aws::Structure
919
1097
  end
@@ -961,6 +1139,52 @@ module Aws::EMRServerless
961
1139
  include Aws::Structure
962
1140
  end
963
1141
 
1142
+ # @!attribute [rw] application_id
1143
+ # The ID of the application for which to list job runs.
1144
+ # @return [String]
1145
+ #
1146
+ # @!attribute [rw] job_run_id
1147
+ # The ID of the job run to list.
1148
+ # @return [String]
1149
+ #
1150
+ # @!attribute [rw] next_token
1151
+ # The token for the next set of job run attempt results.
1152
+ # @return [String]
1153
+ #
1154
+ # @!attribute [rw] max_results
1155
+ # The maximum number of job run attempts to list.
1156
+ # @return [Integer]
1157
+ #
1158
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRunAttemptsRequest AWS API Documentation
1159
+ #
1160
+ class ListJobRunAttemptsRequest < Struct.new(
1161
+ :application_id,
1162
+ :job_run_id,
1163
+ :next_token,
1164
+ :max_results)
1165
+ SENSITIVE = []
1166
+ include Aws::Structure
1167
+ end
1168
+
1169
+ # @!attribute [rw] job_run_attempts
1170
+ # The array of the listed job run attempt objects.
1171
+ # @return [Array<Types::JobRunAttemptSummary>]
1172
+ #
1173
+ # @!attribute [rw] next_token
1174
+ # The output displays the token for the next set of application
1175
+ # results. This is required for pagination and is available as a
1176
+ # response of the previous request.
1177
+ # @return [String]
1178
+ #
1179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRunAttemptsResponse AWS API Documentation
1180
+ #
1181
+ class ListJobRunAttemptsResponse < Struct.new(
1182
+ :job_run_attempts,
1183
+ :next_token)
1184
+ SENSITIVE = []
1185
+ include Aws::Structure
1186
+ end
1187
+
964
1188
  # @!attribute [rw] application_id
965
1189
  # The ID of the application for which to list the job run.
966
1190
  # @return [String]
@@ -987,6 +1211,10 @@ module Aws::EMRServerless
987
1211
  # state.
988
1212
  # @return [Array<String>]
989
1213
  #
1214
+ # @!attribute [rw] mode
1215
+ # The mode of the job runs to list.
1216
+ # @return [String]
1217
+ #
990
1218
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRunsRequest AWS API Documentation
991
1219
  #
992
1220
  class ListJobRunsRequest < Struct.new(
@@ -995,7 +1223,8 @@ module Aws::EMRServerless
995
1223
  :max_results,
996
1224
  :created_at_after,
997
1225
  :created_at_before,
998
- :states)
1226
+ :states,
1227
+ :mode)
999
1228
  SENSITIVE = []
1000
1229
  include Aws::Structure
1001
1230
  end
@@ -1197,6 +1426,27 @@ module Aws::EMRServerless
1197
1426
  include Aws::Structure
1198
1427
  end
1199
1428
 
1429
+ # The retry policy to use for a job run.
1430
+ #
1431
+ # @!attribute [rw] max_attempts
1432
+ # Maximum number of attempts for the job run. This parameter is only
1433
+ # applicable for `BATCH` mode.
1434
+ # @return [Integer]
1435
+ #
1436
+ # @!attribute [rw] max_failed_attempts_per_hour
1437
+ # Maximum number of failed attempts per hour. This \[arameter is only
1438
+ # applicable for `STREAMING` mode.
1439
+ # @return [Integer]
1440
+ #
1441
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/RetryPolicy AWS API Documentation
1442
+ #
1443
+ class RetryPolicy < Struct.new(
1444
+ :max_attempts,
1445
+ :max_failed_attempts_per_hour)
1446
+ SENSITIVE = []
1447
+ include Aws::Structure
1448
+ end
1449
+
1200
1450
  # The Amazon S3 configuration for monitoring log publishing. You can
1201
1451
  # configure your jobs to send log information to Amazon S3.
1202
1452
  #
@@ -1308,6 +1558,14 @@ module Aws::EMRServerless
1308
1558
  # The optional job run name. This doesn't have to be unique.
1309
1559
  # @return [String]
1310
1560
  #
1561
+ # @!attribute [rw] mode
1562
+ # The mode of the job run when it starts.
1563
+ # @return [String]
1564
+ #
1565
+ # @!attribute [rw] retry_policy
1566
+ # The retry policy when job run starts.
1567
+ # @return [Types::RetryPolicy]
1568
+ #
1311
1569
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/StartJobRunRequest AWS API Documentation
1312
1570
  #
1313
1571
  class StartJobRunRequest < Struct.new(
@@ -1318,7 +1576,9 @@ module Aws::EMRServerless
1318
1576
  :configuration_overrides,
1319
1577
  :tags,
1320
1578
  :execution_timeout_minutes,
1321
- :name)
1579
+ :name,
1580
+ :mode,
1581
+ :retry_policy)
1322
1582
  SENSITIVE = []
1323
1583
  include Aws::Structure
1324
1584
  end
@@ -1495,6 +1755,11 @@ module Aws::EMRServerless
1495
1755
  # `imageConfiguration` for all worker types.
1496
1756
  # @return [Hash<String,Types::WorkerTypeSpecificationInput>]
1497
1757
  #
1758
+ # @!attribute [rw] interactive_configuration
1759
+ # The interactive configuration object that contains new interactive
1760
+ # use cases when the application is updated.
1761
+ # @return [Types::InteractiveConfiguration]
1762
+ #
1498
1763
  # @!attribute [rw] release_label
1499
1764
  # The Amazon EMR release label for the application. You can change the
1500
1765
  # release label to use a different release of Amazon EMR.
@@ -1528,6 +1793,7 @@ module Aws::EMRServerless
1528
1793
  :architecture,
1529
1794
  :image_configuration,
1530
1795
  :worker_type_specifications,
1796
+ :interactive_configuration,
1531
1797
  :release_label,
1532
1798
  :runtime_configuration,
1533
1799
  :monitoring_configuration)
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-emrserverless/customizations'
52
52
  # @!group service
53
53
  module Aws::EMRServerless
54
54
 
55
- GEM_VERSION = '1.23.0'
55
+ GEM_VERSION = '1.25.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -157,6 +157,10 @@ module Aws
157
157
  prometheus_monitoring_configuration: {
158
158
  remote_write_url: ::String?
159
159
  }?
160
+ },
161
+ ?interactive_configuration: {
162
+ studio_enabled: bool?,
163
+ livy_endpoint_enabled: bool?
160
164
  }
161
165
  ) -> _CreateApplicationResponseSuccess
162
166
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateApplicationResponseSuccess
@@ -187,7 +191,8 @@ module Aws
187
191
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EMRServerless/Client.html#get_dashboard_for_job_run-instance_method
188
192
  def get_dashboard_for_job_run: (
189
193
  application_id: ::String,
190
- job_run_id: ::String
194
+ job_run_id: ::String,
195
+ ?attempt: ::Integer
191
196
  ) -> _GetDashboardForJobRunResponseSuccess
192
197
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDashboardForJobRunResponseSuccess
193
198
 
@@ -198,7 +203,8 @@ module Aws
198
203
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EMRServerless/Client.html#get_job_run-instance_method
199
204
  def get_job_run: (
200
205
  application_id: ::String,
201
- job_run_id: ::String
206
+ job_run_id: ::String,
207
+ ?attempt: ::Integer
202
208
  ) -> _GetJobRunResponseSuccess
203
209
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobRunResponseSuccess
204
210
 
@@ -215,6 +221,20 @@ module Aws
215
221
  ) -> _ListApplicationsResponseSuccess
216
222
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListApplicationsResponseSuccess
217
223
 
224
+ interface _ListJobRunAttemptsResponseSuccess
225
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListJobRunAttemptsResponse]
226
+ def job_run_attempts: () -> ::Array[Types::JobRunAttemptSummary]
227
+ def next_token: () -> ::String
228
+ end
229
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EMRServerless/Client.html#list_job_run_attempts-instance_method
230
+ def list_job_run_attempts: (
231
+ application_id: ::String,
232
+ job_run_id: ::String,
233
+ ?next_token: ::String,
234
+ ?max_results: ::Integer
235
+ ) -> _ListJobRunAttemptsResponseSuccess
236
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobRunAttemptsResponseSuccess
237
+
218
238
  interface _ListJobRunsResponseSuccess
219
239
  include ::Seahorse::Client::_ResponseSuccess[Types::ListJobRunsResponse]
220
240
  def job_runs: () -> ::Array[Types::JobRunSummary]
@@ -227,7 +247,8 @@ module Aws
227
247
  ?max_results: ::Integer,
228
248
  ?created_at_after: ::Time,
229
249
  ?created_at_before: ::Time,
230
- ?states: Array[("SUBMITTED" | "PENDING" | "SCHEDULED" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLING" | "CANCELLED")]
250
+ ?states: Array[("SUBMITTED" | "PENDING" | "SCHEDULED" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLING" | "CANCELLED")],
251
+ ?mode: ("BATCH" | "STREAMING")
231
252
  ) -> _ListJobRunsResponseSuccess
232
253
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobRunsResponseSuccess
233
254
 
@@ -304,7 +325,12 @@ module Aws
304
325
  },
305
326
  ?tags: Hash[::String, ::String],
306
327
  ?execution_timeout_minutes: ::Integer,
307
- ?name: ::String
328
+ ?name: ::String,
329
+ ?mode: ("BATCH" | "STREAMING"),
330
+ ?retry_policy: {
331
+ max_attempts: ::Integer?,
332
+ max_failed_attempts_per_hour: ::Integer?
333
+ }
308
334
  ) -> _StartJobRunResponseSuccess
309
335
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartJobRunResponseSuccess
310
336
 
@@ -379,6 +405,10 @@ module Aws
379
405
  image_uri: ::String?
380
406
  }?
381
407
  }],
408
+ ?interactive_configuration: {
409
+ studio_enabled: bool?,
410
+ livy_endpoint_enabled: bool?
411
+ },
382
412
  ?release_label: ::String,
383
413
  ?runtime_configuration: Array[
384
414
  {
data/sig/types.rbs CHANGED
@@ -29,6 +29,7 @@ module Aws::EMRServerless
29
29
  attr_accessor worker_type_specifications: ::Hash[::String, Types::WorkerTypeSpecification]
30
30
  attr_accessor runtime_configuration: ::Array[Types::Configuration]
31
31
  attr_accessor monitoring_configuration: Types::MonitoringConfiguration
32
+ attr_accessor interactive_configuration: Types::InteractiveConfiguration
32
33
  SENSITIVE: []
33
34
  end
34
35
 
@@ -112,6 +113,7 @@ module Aws::EMRServerless
112
113
  attr_accessor worker_type_specifications: ::Hash[::String, Types::WorkerTypeSpecificationInput]
113
114
  attr_accessor runtime_configuration: ::Array[Types::Configuration]
114
115
  attr_accessor monitoring_configuration: Types::MonitoringConfiguration
116
+ attr_accessor interactive_configuration: Types::InteractiveConfiguration
115
117
  SENSITIVE: []
116
118
  end
117
119
 
@@ -143,6 +145,7 @@ module Aws::EMRServerless
143
145
  class GetDashboardForJobRunRequest
144
146
  attr_accessor application_id: ::String
145
147
  attr_accessor job_run_id: ::String
148
+ attr_accessor attempt: ::Integer
146
149
  SENSITIVE: []
147
150
  end
148
151
 
@@ -154,6 +157,7 @@ module Aws::EMRServerless
154
157
  class GetJobRunRequest
155
158
  attr_accessor application_id: ::String
156
159
  attr_accessor job_run_id: ::String
160
+ attr_accessor attempt: ::Integer
157
161
  SENSITIVE: []
158
162
  end
159
163
 
@@ -186,6 +190,12 @@ module Aws::EMRServerless
186
190
  SENSITIVE: []
187
191
  end
188
192
 
193
+ class InteractiveConfiguration
194
+ attr_accessor studio_enabled: bool
195
+ attr_accessor livy_endpoint_enabled: bool
196
+ SENSITIVE: []
197
+ end
198
+
189
199
  class InternalServerException
190
200
  attr_accessor message: ::String
191
201
  SENSITIVE: []
@@ -225,6 +235,30 @@ module Aws::EMRServerless
225
235
  attr_accessor total_execution_duration_seconds: ::Integer
226
236
  attr_accessor execution_timeout_minutes: ::Integer
227
237
  attr_accessor billed_resource_utilization: Types::ResourceUtilization
238
+ attr_accessor mode: ("BATCH" | "STREAMING")
239
+ attr_accessor retry_policy: Types::RetryPolicy
240
+ attr_accessor attempt: ::Integer
241
+ attr_accessor attempt_created_at: ::Time
242
+ attr_accessor attempt_updated_at: ::Time
243
+ SENSITIVE: []
244
+ end
245
+
246
+ class JobRunAttemptSummary
247
+ attr_accessor application_id: ::String
248
+ attr_accessor id: ::String
249
+ attr_accessor name: ::String
250
+ attr_accessor mode: ("BATCH" | "STREAMING")
251
+ attr_accessor arn: ::String
252
+ attr_accessor created_by: ::String
253
+ attr_accessor job_created_at: ::Time
254
+ attr_accessor created_at: ::Time
255
+ attr_accessor updated_at: ::Time
256
+ attr_accessor execution_role: ::String
257
+ attr_accessor state: ("SUBMITTED" | "PENDING" | "SCHEDULED" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLING" | "CANCELLED")
258
+ attr_accessor state_details: ::String
259
+ attr_accessor release_label: ::String
260
+ attr_accessor type: ::String
261
+ attr_accessor attempt: ::Integer
228
262
  SENSITIVE: []
229
263
  end
230
264
 
@@ -232,6 +266,7 @@ module Aws::EMRServerless
232
266
  attr_accessor application_id: ::String
233
267
  attr_accessor id: ::String
234
268
  attr_accessor name: ::String
269
+ attr_accessor mode: ("BATCH" | "STREAMING")
235
270
  attr_accessor arn: ::String
236
271
  attr_accessor created_by: ::String
237
272
  attr_accessor created_at: ::Time
@@ -241,6 +276,9 @@ module Aws::EMRServerless
241
276
  attr_accessor state_details: ::String
242
277
  attr_accessor release_label: ::String
243
278
  attr_accessor type: ::String
279
+ attr_accessor attempt: ::Integer
280
+ attr_accessor attempt_created_at: ::Time
281
+ attr_accessor attempt_updated_at: ::Time
244
282
  SENSITIVE: []
245
283
  end
246
284
 
@@ -257,6 +295,20 @@ module Aws::EMRServerless
257
295
  SENSITIVE: []
258
296
  end
259
297
 
298
+ class ListJobRunAttemptsRequest
299
+ attr_accessor application_id: ::String
300
+ attr_accessor job_run_id: ::String
301
+ attr_accessor next_token: ::String
302
+ attr_accessor max_results: ::Integer
303
+ SENSITIVE: []
304
+ end
305
+
306
+ class ListJobRunAttemptsResponse
307
+ attr_accessor job_run_attempts: ::Array[Types::JobRunAttemptSummary]
308
+ attr_accessor next_token: ::String
309
+ SENSITIVE: []
310
+ end
311
+
260
312
  class ListJobRunsRequest
261
313
  attr_accessor application_id: ::String
262
314
  attr_accessor next_token: ::String
@@ -264,6 +316,7 @@ module Aws::EMRServerless
264
316
  attr_accessor created_at_after: ::Time
265
317
  attr_accessor created_at_before: ::Time
266
318
  attr_accessor states: ::Array[("SUBMITTED" | "PENDING" | "SCHEDULED" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLING" | "CANCELLED")]
319
+ attr_accessor mode: ("BATCH" | "STREAMING")
267
320
  SENSITIVE: []
268
321
  end
269
322
 
@@ -327,6 +380,12 @@ module Aws::EMRServerless
327
380
  SENSITIVE: []
328
381
  end
329
382
 
383
+ class RetryPolicy
384
+ attr_accessor max_attempts: ::Integer
385
+ attr_accessor max_failed_attempts_per_hour: ::Integer
386
+ SENSITIVE: []
387
+ end
388
+
330
389
  class S3MonitoringConfiguration
331
390
  attr_accessor log_uri: ::String
332
391
  attr_accessor encryption_key_arn: ::String
@@ -362,6 +421,8 @@ module Aws::EMRServerless
362
421
  attr_accessor tags: ::Hash[::String, ::String]
363
422
  attr_accessor execution_timeout_minutes: ::Integer
364
423
  attr_accessor name: ::String
424
+ attr_accessor mode: ("BATCH" | "STREAMING")
425
+ attr_accessor retry_policy: Types::RetryPolicy
365
426
  SENSITIVE: []
366
427
  end
367
428
 
@@ -416,6 +477,7 @@ module Aws::EMRServerless
416
477
  attr_accessor architecture: ("ARM64" | "X86_64")
417
478
  attr_accessor image_configuration: Types::ImageConfigurationInput
418
479
  attr_accessor worker_type_specifications: ::Hash[::String, Types::WorkerTypeSpecificationInput]
480
+ attr_accessor interactive_configuration: Types::InteractiveConfiguration
419
481
  attr_accessor release_label: ::String
420
482
  attr_accessor runtime_configuration: ::Array[Types::Configuration]
421
483
  attr_accessor monitoring_configuration: Types::MonitoringConfiguration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-emrserverless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core