aws-sdk-emrserverless 1.24.0 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c901eecedd25f6bf4b63307e1d937a89b0fa64ddafd12da42cb6805f5a9c6f0
4
- data.tar.gz: f4d4523de0d83462cac4aaeb4e44de087ee8a8e153bc91d813f659780406852b
3
+ metadata.gz: 1d7464f7bfe5791c57178217a891f4a0f9072806598ce93b442d2479dbb25a6b
4
+ data.tar.gz: a83d6696e7c3dacb303178f3f1b87056b5b8ab550458c9e92f61a253f74a5d97
5
5
  SHA512:
6
- metadata.gz: 10996555c70e2d14d547115ae23d66a5402749828c347c0cd495e4636bb47e547206056b38ddb659bec97e4e1a5f205728bcb1d8af78837d71ba23ff51430ac8
7
- data.tar.gz: f18fc75a5b78035cac89c5e94bbf3b57bd02ec8efcbbff02fcc65e78d9417c9360897bc23fbe6dbdd5187000249297f895f1567136b0d1acb120b3ad54dea729
6
+ metadata.gz: 770a52ff28f4e721610682c384c6b104d3cb1519d825ea9a205dfdd31c666540e08df4b033ef98e2d7b0ad7569be3c795390b7edcb8720b073bd371afaa8041e
7
+ data.tar.gz: ccba8447f333c7eb6c9b9c422185b43b44d1527f17f4e61360ae9c277f10af005963d2c15f88b1e1bb09e3186e69be129aacc27091325d9e5fcfb13b434cc50f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.24.0 (2024-05-23)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.25.0
@@ -752,6 +752,11 @@ module Aws::EMRServerless
752
752
  # @option params [required, String] :job_run_id
753
753
  # The ID of the job run.
754
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
+ #
755
760
  # @return [Types::GetDashboardForJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
756
761
  #
757
762
  # * {Types::GetDashboardForJobRunResponse#url #url} => String
@@ -761,6 +766,7 @@ module Aws::EMRServerless
761
766
  # resp = client.get_dashboard_for_job_run({
762
767
  # application_id: "ApplicationId", # required
763
768
  # job_run_id: "JobRunId", # required
769
+ # attempt: 1,
764
770
  # })
765
771
  #
766
772
  # @example Response structure
@@ -784,6 +790,11 @@ module Aws::EMRServerless
784
790
  # @option params [required, String] :job_run_id
785
791
  # The ID of the job run.
786
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
+ #
787
798
  # @return [Types::GetJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
788
799
  #
789
800
  # * {Types::GetJobRunResponse#job_run #job_run} => Types::JobRun
@@ -793,6 +804,7 @@ module Aws::EMRServerless
793
804
  # resp = client.get_job_run({
794
805
  # application_id: "ApplicationId", # required
795
806
  # job_run_id: "JobRunId", # required
807
+ # attempt: 1,
796
808
  # })
797
809
  #
798
810
  # @example Response structure
@@ -846,6 +858,12 @@ module Aws::EMRServerless
846
858
  # resp.job_run.billed_resource_utilization.v_cpu_hour #=> Float
847
859
  # resp.job_run.billed_resource_utilization.memory_gb_hour #=> Float
848
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
849
867
  #
850
868
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetJobRun AWS API Documentation
851
869
  #
@@ -908,6 +926,65 @@ module Aws::EMRServerless
908
926
  req.send_request(options)
909
927
  end
910
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
+
911
988
  # Lists job runs based on a set of parameters.
912
989
  #
913
990
  # @option params [required, String] :application_id
@@ -930,6 +1007,9 @@ module Aws::EMRServerless
930
1007
  # contains multiple states, the resulting list will be grouped by the
931
1008
  # state.
932
1009
  #
1010
+ # @option params [String] :mode
1011
+ # The mode of the job runs to list.
1012
+ #
933
1013
  # @return [Types::ListJobRunsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
934
1014
  #
935
1015
  # * {Types::ListJobRunsResponse#job_runs #job_runs} => Array<Types::JobRunSummary>
@@ -946,6 +1026,7 @@ module Aws::EMRServerless
946
1026
  # created_at_after: Time.now,
947
1027
  # created_at_before: Time.now,
948
1028
  # states: ["SUBMITTED"], # accepts SUBMITTED, PENDING, SCHEDULED, RUNNING, SUCCESS, FAILED, CANCELLING, CANCELLED
1029
+ # mode: "BATCH", # accepts BATCH, STREAMING
949
1030
  # })
950
1031
  #
951
1032
  # @example Response structure
@@ -954,6 +1035,7 @@ module Aws::EMRServerless
954
1035
  # resp.job_runs[0].application_id #=> String
955
1036
  # resp.job_runs[0].id #=> String
956
1037
  # resp.job_runs[0].name #=> String
1038
+ # resp.job_runs[0].mode #=> String, one of "BATCH", "STREAMING"
957
1039
  # resp.job_runs[0].arn #=> String
958
1040
  # resp.job_runs[0].created_by #=> String
959
1041
  # resp.job_runs[0].created_at #=> Time
@@ -963,6 +1045,9 @@ module Aws::EMRServerless
963
1045
  # resp.job_runs[0].state_details #=> String
964
1046
  # resp.job_runs[0].release_label #=> String
965
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
966
1051
  # resp.next_token #=> String
967
1052
  #
968
1053
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRuns AWS API Documentation
@@ -1059,6 +1144,12 @@ module Aws::EMRServerless
1059
1144
  # @option params [String] :name
1060
1145
  # The optional job run name. This doesn't have to be unique.
1061
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
+ #
1062
1153
  # @return [Types::StartJobRunResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1063
1154
  #
1064
1155
  # * {Types::StartJobRunResponse#application_id #application_id} => String
@@ -1123,6 +1214,11 @@ module Aws::EMRServerless
1123
1214
  # },
1124
1215
  # execution_timeout_minutes: 1,
1125
1216
  # name: "String256",
1217
+ # mode: "BATCH", # accepts BATCH, STREAMING
1218
+ # retry_policy: {
1219
+ # max_attempts: 1,
1220
+ # max_failed_attempts_per_hour: 1,
1221
+ # },
1126
1222
  # })
1127
1223
  #
1128
1224
  # @example Response structure
@@ -1463,7 +1559,7 @@ module Aws::EMRServerless
1463
1559
  params: params,
1464
1560
  config: config)
1465
1561
  context[:gem_name] = 'aws-sdk-emrserverless'
1466
- context[:gem_version] = '1.24.0'
1562
+ context[:gem_version] = '1.25.0'
1467
1563
  Seahorse::Client::Request.new(handlers, context)
1468
1564
  end
1469
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')
@@ -73,7 +74,10 @@ module Aws::EMRServerless
73
74
  JobArn = Shapes::StringShape.new(name: 'JobArn')
74
75
  JobDriver = Shapes::UnionShape.new(name: 'JobDriver')
75
76
  JobRun = Shapes::StructureShape.new(name: 'JobRun')
77
+ JobRunAttemptSummary = Shapes::StructureShape.new(name: 'JobRunAttemptSummary')
78
+ JobRunAttempts = Shapes::ListShape.new(name: 'JobRunAttempts')
76
79
  JobRunId = Shapes::StringShape.new(name: 'JobRunId')
80
+ JobRunMode = Shapes::StringShape.new(name: 'JobRunMode')
77
81
  JobRunState = Shapes::StringShape.new(name: 'JobRunState')
78
82
  JobRunStateSet = Shapes::ListShape.new(name: 'JobRunStateSet')
79
83
  JobRunSummary = Shapes::StructureShape.new(name: 'JobRunSummary')
@@ -82,6 +86,9 @@ module Aws::EMRServerless
82
86
  ListApplicationsRequest = Shapes::StructureShape.new(name: 'ListApplicationsRequest')
83
87
  ListApplicationsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListApplicationsRequestMaxResultsInteger')
84
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')
85
92
  ListJobRunsRequest = Shapes::StructureShape.new(name: 'ListJobRunsRequest')
86
93
  ListJobRunsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListJobRunsRequestMaxResultsInteger')
87
94
  ListJobRunsResponse = Shapes::StructureShape.new(name: 'ListJobRunsResponse')
@@ -106,6 +113,8 @@ module Aws::EMRServerless
106
113
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
107
114
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
108
115
  ResourceUtilization = Shapes::StructureShape.new(name: 'ResourceUtilization')
116
+ RetryPolicy = Shapes::StructureShape.new(name: 'RetryPolicy')
117
+ RetryPolicyMaxFailedAttemptsPerHourInteger = Shapes::IntegerShape.new(name: 'RetryPolicyMaxFailedAttemptsPerHourInteger')
109
118
  S3MonitoringConfiguration = Shapes::StructureShape.new(name: 'S3MonitoringConfiguration')
110
119
  SecurityGroupIds = Shapes::ListShape.new(name: 'SecurityGroupIds')
111
120
  SecurityGroupString = Shapes::StringShape.new(name: 'SecurityGroupString')
@@ -258,6 +267,7 @@ module Aws::EMRServerless
258
267
 
259
268
  GetDashboardForJobRunRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
260
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"))
261
271
  GetDashboardForJobRunRequest.struct_class = Types::GetDashboardForJobRunRequest
262
272
 
263
273
  GetDashboardForJobRunResponse.add_member(:url, Shapes::ShapeRef.new(shape: Url, location_name: "url"))
@@ -265,6 +275,7 @@ module Aws::EMRServerless
265
275
 
266
276
  GetJobRunRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
267
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"))
268
279
  GetJobRunRequest.struct_class = Types::GetJobRunRequest
269
280
 
270
281
  GetJobRunResponse.add_member(:job_run, Shapes::ShapeRef.new(shape: JobRun, required: true, location_name: "jobRun"))
@@ -323,13 +334,38 @@ module Aws::EMRServerless
323
334
  JobRun.add_member(:total_execution_duration_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "totalExecutionDurationSeconds"))
324
335
  JobRun.add_member(:execution_timeout_minutes, Shapes::ShapeRef.new(shape: Duration, location_name: "executionTimeoutMinutes", metadata: {"box"=>true}))
325
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"))
326
342
  JobRun.struct_class = Types::JobRun
327
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
+
328
363
  JobRunStateSet.member = Shapes::ShapeRef.new(shape: JobRunState)
329
364
 
330
365
  JobRunSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
331
366
  JobRunSummary.add_member(:id, Shapes::ShapeRef.new(shape: JobRunId, required: true, location_name: "id"))
332
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"))
333
369
  JobRunSummary.add_member(:arn, Shapes::ShapeRef.new(shape: JobArn, required: true, location_name: "arn"))
334
370
  JobRunSummary.add_member(:created_by, Shapes::ShapeRef.new(shape: RequestIdentityUserArn, required: true, location_name: "createdBy"))
335
371
  JobRunSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "createdAt"))
@@ -339,6 +375,9 @@ module Aws::EMRServerless
339
375
  JobRunSummary.add_member(:state_details, Shapes::ShapeRef.new(shape: String256, required: true, location_name: "stateDetails"))
340
376
  JobRunSummary.add_member(:release_label, Shapes::ShapeRef.new(shape: ReleaseLabel, required: true, location_name: "releaseLabel"))
341
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"))
342
381
  JobRunSummary.struct_class = Types::JobRunSummary
343
382
 
344
383
  JobRuns.member = Shapes::ShapeRef.new(shape: JobRunSummary)
@@ -352,12 +391,23 @@ module Aws::EMRServerless
352
391
  ListApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
353
392
  ListApplicationsResponse.struct_class = Types::ListApplicationsResponse
354
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
+
355
404
  ListJobRunsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
356
405
  ListJobRunsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
357
406
  ListJobRunsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListJobRunsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
358
407
  ListJobRunsRequest.add_member(:created_at_after, Shapes::ShapeRef.new(shape: Date, location: "querystring", location_name: "createdAtAfter"))
359
408
  ListJobRunsRequest.add_member(:created_at_before, Shapes::ShapeRef.new(shape: Date, location: "querystring", location_name: "createdAtBefore"))
360
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"))
361
411
  ListJobRunsRequest.struct_class = Types::ListJobRunsRequest
362
412
 
363
413
  ListJobRunsResponse.add_member(:job_runs, Shapes::ShapeRef.new(shape: JobRuns, required: true, location_name: "jobRuns"))
@@ -405,6 +455,10 @@ module Aws::EMRServerless
405
455
  ResourceUtilization.add_member(:storage_gb_hour, Shapes::ShapeRef.new(shape: Double, location_name: "storageGBHour"))
406
456
  ResourceUtilization.struct_class = Types::ResourceUtilization
407
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
+
408
462
  S3MonitoringConfiguration.add_member(:log_uri, Shapes::ShapeRef.new(shape: UriString, location_name: "logUri"))
409
463
  S3MonitoringConfiguration.add_member(:encryption_key_arn, Shapes::ShapeRef.new(shape: EncryptionKeyArn, location_name: "encryptionKeyArn"))
410
464
  S3MonitoringConfiguration.struct_class = Types::S3MonitoringConfiguration
@@ -435,6 +489,8 @@ module Aws::EMRServerless
435
489
  StartJobRunRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
436
490
  StartJobRunRequest.add_member(:execution_timeout_minutes, Shapes::ShapeRef.new(shape: Duration, location_name: "executionTimeoutMinutes", metadata: {"box"=>true}))
437
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"))
438
494
  StartJobRunRequest.struct_class = Types::StartJobRunRequest
439
495
 
440
496
  StartJobRunResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
@@ -520,8 +576,8 @@ module Aws::EMRServerless
520
576
  api.metadata = {
521
577
  "apiVersion" => "2021-07-13",
522
578
  "endpointPrefix" => "emr-serverless",
579
+ "jsonVersion" => "1.1",
523
580
  "protocol" => "rest-json",
524
- "protocols" => ["rest-json"],
525
581
  "serviceFullName" => "EMR Serverless",
526
582
  "serviceId" => "EMR Serverless",
527
583
  "signatureVersion" => "v4",
@@ -612,6 +668,23 @@ module Aws::EMRServerless
612
668
  )
613
669
  end)
614
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
+
615
688
  api.add_operation(:list_job_runs, Seahorse::Model::Operation.new.tap do |o|
616
689
  o.name = "ListJobRuns"
617
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
@@ -569,11 +569,18 @@ module Aws::EMRServerless
569
569
  # The ID of the job run.
570
570
  # @return [String]
571
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
+ #
572
578
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetDashboardForJobRunRequest AWS API Documentation
573
579
  #
574
580
  class GetDashboardForJobRunRequest < Struct.new(
575
581
  :application_id,
576
- :job_run_id)
582
+ :job_run_id,
583
+ :attempt)
577
584
  SENSITIVE = []
578
585
  include Aws::Structure
579
586
  end
@@ -598,11 +605,18 @@ module Aws::EMRServerless
598
605
  # The ID of the job run.
599
606
  # @return [String]
600
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
+ #
601
614
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/GetJobRunRequest AWS API Documentation
602
615
  #
603
616
  class GetJobRunRequest < Struct.new(
604
617
  :application_id,
605
- :job_run_id)
618
+ :job_run_id,
619
+ :attempt)
606
620
  SENSITIVE = []
607
621
  include Aws::Structure
608
622
  end
@@ -856,6 +870,26 @@ module Aws::EMRServerless
856
870
  # pre-initialized workers.
857
871
  # @return [Types::ResourceUtilization]
858
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
+ #
859
893
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRun AWS API Documentation
860
894
  #
861
895
  class JobRun < Struct.new(
@@ -877,7 +911,97 @@ module Aws::EMRServerless
877
911
  :network_configuration,
878
912
  :total_execution_duration_seconds,
879
913
  :execution_timeout_minutes,
880
- :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)
881
1005
  SENSITIVE = []
882
1006
  include Aws::Structure
883
1007
  end
@@ -896,6 +1020,10 @@ module Aws::EMRServerless
896
1020
  # The optional job run name. This doesn't have to be unique.
897
1021
  # @return [String]
898
1022
  #
1023
+ # @!attribute [rw] mode
1024
+ # The mode of the job run.
1025
+ # @return [String]
1026
+ #
899
1027
  # @!attribute [rw] arn
900
1028
  # The ARN of the job run.
901
1029
  # @return [String]
@@ -933,12 +1061,25 @@ module Aws::EMRServerless
933
1061
  # The type of job run, such as Spark or Hive.
934
1062
  # @return [String]
935
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
+ #
936
1076
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRunSummary AWS API Documentation
937
1077
  #
938
1078
  class JobRunSummary < Struct.new(
939
1079
  :application_id,
940
1080
  :id,
941
1081
  :name,
1082
+ :mode,
942
1083
  :arn,
943
1084
  :created_by,
944
1085
  :created_at,
@@ -947,7 +1088,10 @@ module Aws::EMRServerless
947
1088
  :state,
948
1089
  :state_details,
949
1090
  :release_label,
950
- :type)
1091
+ :type,
1092
+ :attempt,
1093
+ :attempt_created_at,
1094
+ :attempt_updated_at)
951
1095
  SENSITIVE = []
952
1096
  include Aws::Structure
953
1097
  end
@@ -995,6 +1139,52 @@ module Aws::EMRServerless
995
1139
  include Aws::Structure
996
1140
  end
997
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
+
998
1188
  # @!attribute [rw] application_id
999
1189
  # The ID of the application for which to list the job run.
1000
1190
  # @return [String]
@@ -1021,6 +1211,10 @@ module Aws::EMRServerless
1021
1211
  # state.
1022
1212
  # @return [Array<String>]
1023
1213
  #
1214
+ # @!attribute [rw] mode
1215
+ # The mode of the job runs to list.
1216
+ # @return [String]
1217
+ #
1024
1218
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/ListJobRunsRequest AWS API Documentation
1025
1219
  #
1026
1220
  class ListJobRunsRequest < Struct.new(
@@ -1029,7 +1223,8 @@ module Aws::EMRServerless
1029
1223
  :max_results,
1030
1224
  :created_at_after,
1031
1225
  :created_at_before,
1032
- :states)
1226
+ :states,
1227
+ :mode)
1033
1228
  SENSITIVE = []
1034
1229
  include Aws::Structure
1035
1230
  end
@@ -1231,6 +1426,27 @@ module Aws::EMRServerless
1231
1426
  include Aws::Structure
1232
1427
  end
1233
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
+
1234
1450
  # The Amazon S3 configuration for monitoring log publishing. You can
1235
1451
  # configure your jobs to send log information to Amazon S3.
1236
1452
  #
@@ -1342,6 +1558,14 @@ module Aws::EMRServerless
1342
1558
  # The optional job run name. This doesn't have to be unique.
1343
1559
  # @return [String]
1344
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
+ #
1345
1569
  # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/StartJobRunRequest AWS API Documentation
1346
1570
  #
1347
1571
  class StartJobRunRequest < Struct.new(
@@ -1352,7 +1576,9 @@ module Aws::EMRServerless
1352
1576
  :configuration_overrides,
1353
1577
  :tags,
1354
1578
  :execution_timeout_minutes,
1355
- :name)
1579
+ :name,
1580
+ :mode,
1581
+ :retry_policy)
1356
1582
  SENSITIVE = []
1357
1583
  include Aws::Structure
1358
1584
  end
@@ -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.24.0'
55
+ GEM_VERSION = '1.25.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -191,7 +191,8 @@ module Aws
191
191
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EMRServerless/Client.html#get_dashboard_for_job_run-instance_method
192
192
  def get_dashboard_for_job_run: (
193
193
  application_id: ::String,
194
- job_run_id: ::String
194
+ job_run_id: ::String,
195
+ ?attempt: ::Integer
195
196
  ) -> _GetDashboardForJobRunResponseSuccess
196
197
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDashboardForJobRunResponseSuccess
197
198
 
@@ -202,7 +203,8 @@ module Aws
202
203
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EMRServerless/Client.html#get_job_run-instance_method
203
204
  def get_job_run: (
204
205
  application_id: ::String,
205
- job_run_id: ::String
206
+ job_run_id: ::String,
207
+ ?attempt: ::Integer
206
208
  ) -> _GetJobRunResponseSuccess
207
209
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobRunResponseSuccess
208
210
 
@@ -219,6 +221,20 @@ module Aws
219
221
  ) -> _ListApplicationsResponseSuccess
220
222
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListApplicationsResponseSuccess
221
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
+
222
238
  interface _ListJobRunsResponseSuccess
223
239
  include ::Seahorse::Client::_ResponseSuccess[Types::ListJobRunsResponse]
224
240
  def job_runs: () -> ::Array[Types::JobRunSummary]
@@ -231,7 +247,8 @@ module Aws
231
247
  ?max_results: ::Integer,
232
248
  ?created_at_after: ::Time,
233
249
  ?created_at_before: ::Time,
234
- ?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")
235
252
  ) -> _ListJobRunsResponseSuccess
236
253
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobRunsResponseSuccess
237
254
 
@@ -308,7 +325,12 @@ module Aws
308
325
  },
309
326
  ?tags: Hash[::String, ::String],
310
327
  ?execution_timeout_minutes: ::Integer,
311
- ?name: ::String
328
+ ?name: ::String,
329
+ ?mode: ("BATCH" | "STREAMING"),
330
+ ?retry_policy: {
331
+ max_attempts: ::Integer?,
332
+ max_failed_attempts_per_hour: ::Integer?
333
+ }
312
334
  ) -> _StartJobRunResponseSuccess
313
335
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartJobRunResponseSuccess
314
336
 
data/sig/types.rbs CHANGED
@@ -145,6 +145,7 @@ module Aws::EMRServerless
145
145
  class GetDashboardForJobRunRequest
146
146
  attr_accessor application_id: ::String
147
147
  attr_accessor job_run_id: ::String
148
+ attr_accessor attempt: ::Integer
148
149
  SENSITIVE: []
149
150
  end
150
151
 
@@ -156,6 +157,7 @@ module Aws::EMRServerless
156
157
  class GetJobRunRequest
157
158
  attr_accessor application_id: ::String
158
159
  attr_accessor job_run_id: ::String
160
+ attr_accessor attempt: ::Integer
159
161
  SENSITIVE: []
160
162
  end
161
163
 
@@ -233,6 +235,30 @@ module Aws::EMRServerless
233
235
  attr_accessor total_execution_duration_seconds: ::Integer
234
236
  attr_accessor execution_timeout_minutes: ::Integer
235
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
236
262
  SENSITIVE: []
237
263
  end
238
264
 
@@ -240,6 +266,7 @@ module Aws::EMRServerless
240
266
  attr_accessor application_id: ::String
241
267
  attr_accessor id: ::String
242
268
  attr_accessor name: ::String
269
+ attr_accessor mode: ("BATCH" | "STREAMING")
243
270
  attr_accessor arn: ::String
244
271
  attr_accessor created_by: ::String
245
272
  attr_accessor created_at: ::Time
@@ -249,6 +276,9 @@ module Aws::EMRServerless
249
276
  attr_accessor state_details: ::String
250
277
  attr_accessor release_label: ::String
251
278
  attr_accessor type: ::String
279
+ attr_accessor attempt: ::Integer
280
+ attr_accessor attempt_created_at: ::Time
281
+ attr_accessor attempt_updated_at: ::Time
252
282
  SENSITIVE: []
253
283
  end
254
284
 
@@ -265,6 +295,20 @@ module Aws::EMRServerless
265
295
  SENSITIVE: []
266
296
  end
267
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
+
268
312
  class ListJobRunsRequest
269
313
  attr_accessor application_id: ::String
270
314
  attr_accessor next_token: ::String
@@ -272,6 +316,7 @@ module Aws::EMRServerless
272
316
  attr_accessor created_at_after: ::Time
273
317
  attr_accessor created_at_before: ::Time
274
318
  attr_accessor states: ::Array[("SUBMITTED" | "PENDING" | "SCHEDULED" | "RUNNING" | "SUCCESS" | "FAILED" | "CANCELLING" | "CANCELLED")]
319
+ attr_accessor mode: ("BATCH" | "STREAMING")
275
320
  SENSITIVE: []
276
321
  end
277
322
 
@@ -335,6 +380,12 @@ module Aws::EMRServerless
335
380
  SENSITIVE: []
336
381
  end
337
382
 
383
+ class RetryPolicy
384
+ attr_accessor max_attempts: ::Integer
385
+ attr_accessor max_failed_attempts_per_hour: ::Integer
386
+ SENSITIVE: []
387
+ end
388
+
338
389
  class S3MonitoringConfiguration
339
390
  attr_accessor log_uri: ::String
340
391
  attr_accessor encryption_key_arn: ::String
@@ -370,6 +421,8 @@ module Aws::EMRServerless
370
421
  attr_accessor tags: ::Hash[::String, ::String]
371
422
  attr_accessor execution_timeout_minutes: ::Integer
372
423
  attr_accessor name: ::String
424
+ attr_accessor mode: ("BATCH" | "STREAMING")
425
+ attr_accessor retry_policy: Types::RetryPolicy
373
426
  SENSITIVE: []
374
427
  end
375
428
 
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.24.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-23 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