aws-sdk-emrserverless 1.44.0 → 1.45.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: a5389c8bc31e14f75052eb4e7024dd4f004d1ae02b584935b73b7bdb8c5c94c7
4
- data.tar.gz: 605cce3fee188bb636db5ab7f121d5b8a6e47ef1ee23b6162ea111ab8173b56b
3
+ metadata.gz: b9ab9b4fb508e603021e95148d41d605eea714c03b3c2d8e2aa1c5c512677911
4
+ data.tar.gz: 4c70e6c0711eeef3e574c8620cffe4cb80b00aaf06aa0fb92953a40de4810c63
5
5
  SHA512:
6
- metadata.gz: 9c06faa84db65a940a85302025d9f7ab4be5aae012bea4135d8a28bfe68854c182e8344b671e9e37398a11a66821db06fe217dc4b6cf12666bf8f1cc83d11f7f
7
- data.tar.gz: b144fe282bbb04050cd7709aaef89447f36a174b289c7c79fc8565c0fd09a5b2498690df04f48a3ceb5f19906d784befc523af5f3bff05193bf9f4aa710de6ea
6
+ metadata.gz: c48a43e325cb9bf72af23f42507a4b791a65bfa74a5e3feb523d299ba81b12b49cd38b9d6da0f5cdc661a2b5adc8a510fa8c265cdcebfa0aaf729e3a0fb7b444
7
+ data.tar.gz: 5b65463209e3608b083b7352ab8732599d5da09bf1c38d49b18b4299b9795bb7c4cd5dda2fc5c06eb7143507a5629ca6d4aab9d35fb4248db3e86ab3deda2b7a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.45.0 (2025-05-30)
5
+ ------------------
6
+
7
+ * Feature - This release adds the capability for users to specify an optional Execution IAM policy in the StartJobRun action. The resulting permissions assumed by the job run is the intersection of the permissions in the Execution Role and the specified Execution IAM Policy.
8
+
4
9
  1.44.0 (2025-05-12)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.45.0
@@ -1202,6 +1202,11 @@ module Aws::EMRServerless
1202
1202
  # @option params [required, String] :execution_role_arn
1203
1203
  # The execution role ARN for the job run.
1204
1204
  #
1205
+ # @option params [Types::JobRunExecutionIamPolicy] :execution_iam_policy
1206
+ # You can pass an optional IAM policy. The resulting job IAM role
1207
+ # permissions will be an intersection of this policy and the policy
1208
+ # associated with your job execution role.
1209
+ #
1205
1210
  # @option params [Types::JobDriver] :job_driver
1206
1211
  # The job driver for the job run.
1207
1212
  #
@@ -1236,6 +1241,10 @@ module Aws::EMRServerless
1236
1241
  # application_id: "ApplicationId", # required
1237
1242
  # client_token: "ClientToken", # required
1238
1243
  # execution_role_arn: "IAMRoleArn", # required
1244
+ # execution_iam_policy: {
1245
+ # policy: "PolicyDocument",
1246
+ # policy_arns: ["Arn"],
1247
+ # },
1239
1248
  # job_driver: {
1240
1249
  # spark_submit: {
1241
1250
  # entry_point: "EntryPointPath", # required
@@ -1648,7 +1657,7 @@ module Aws::EMRServerless
1648
1657
  tracer: tracer
1649
1658
  )
1650
1659
  context[:gem_name] = 'aws-sdk-emrserverless'
1651
- context[:gem_version] = '1.44.0'
1660
+ context[:gem_version] = '1.45.0'
1652
1661
  Seahorse::Client::Request.new(handlers, context)
1653
1662
  end
1654
1663
 
@@ -23,6 +23,7 @@ module Aws::EMRServerless
23
23
  ApplicationStateSet = Shapes::ListShape.new(name: 'ApplicationStateSet')
24
24
  ApplicationSummary = Shapes::StructureShape.new(name: 'ApplicationSummary')
25
25
  Architecture = Shapes::StringShape.new(name: 'Architecture')
26
+ Arn = Shapes::StringShape.new(name: 'Arn')
26
27
  AttemptNumber = Shapes::IntegerShape.new(name: 'AttemptNumber')
27
28
  AutoStartConfig = Shapes::StructureShape.new(name: 'AutoStartConfig')
28
29
  AutoStopConfig = Shapes::StructureShape.new(name: 'AutoStopConfig')
@@ -77,6 +78,7 @@ module Aws::EMRServerless
77
78
  JobRun = Shapes::StructureShape.new(name: 'JobRun')
78
79
  JobRunAttemptSummary = Shapes::StructureShape.new(name: 'JobRunAttemptSummary')
79
80
  JobRunAttempts = Shapes::ListShape.new(name: 'JobRunAttempts')
81
+ JobRunExecutionIamPolicy = Shapes::StructureShape.new(name: 'JobRunExecutionIamPolicy')
80
82
  JobRunId = Shapes::StringShape.new(name: 'JobRunId')
81
83
  JobRunMode = Shapes::StringShape.new(name: 'JobRunMode')
82
84
  JobRunState = Shapes::StringShape.new(name: 'JobRunState')
@@ -107,6 +109,8 @@ module Aws::EMRServerless
107
109
  MonitoringConfiguration = Shapes::StructureShape.new(name: 'MonitoringConfiguration')
108
110
  NetworkConfiguration = Shapes::StructureShape.new(name: 'NetworkConfiguration')
109
111
  NextToken = Shapes::StringShape.new(name: 'NextToken')
112
+ PolicyArnList = Shapes::ListShape.new(name: 'PolicyArnList')
113
+ PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
110
114
  PrometheusMonitoringConfiguration = Shapes::StructureShape.new(name: 'PrometheusMonitoringConfiguration')
111
115
  PrometheusUrlString = Shapes::StringShape.new(name: 'PrometheusUrlString')
112
116
  Query = Shapes::StringShape.new(name: 'Query')
@@ -369,6 +373,10 @@ module Aws::EMRServerless
369
373
 
370
374
  JobRunAttempts.member = Shapes::ShapeRef.new(shape: JobRunAttemptSummary)
371
375
 
376
+ JobRunExecutionIamPolicy.add_member(:policy, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policy"))
377
+ JobRunExecutionIamPolicy.add_member(:policy_arns, Shapes::ShapeRef.new(shape: PolicyArnList, location_name: "policyArns"))
378
+ JobRunExecutionIamPolicy.struct_class = Types::JobRunExecutionIamPolicy
379
+
372
380
  JobRunStateSet.member = Shapes::ShapeRef.new(shape: JobRunState)
373
381
 
374
382
  JobRunSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location_name: "applicationId"))
@@ -453,6 +461,8 @@ module Aws::EMRServerless
453
461
  NetworkConfiguration.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "securityGroupIds"))
454
462
  NetworkConfiguration.struct_class = Types::NetworkConfiguration
455
463
 
464
+ PolicyArnList.member = Shapes::ShapeRef.new(shape: Arn)
465
+
456
466
  PrometheusMonitoringConfiguration.add_member(:remote_write_url, Shapes::ShapeRef.new(shape: PrometheusUrlString, location_name: "remoteWriteUrl"))
457
467
  PrometheusMonitoringConfiguration.struct_class = Types::PrometheusMonitoringConfiguration
458
468
 
@@ -497,6 +507,7 @@ module Aws::EMRServerless
497
507
  StartJobRunRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
498
508
  StartJobRunRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, required: true, location_name: "clientToken", metadata: {"idempotencyToken" => true}))
499
509
  StartJobRunRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "executionRoleArn"))
510
+ StartJobRunRequest.add_member(:execution_iam_policy, Shapes::ShapeRef.new(shape: JobRunExecutionIamPolicy, location_name: "executionIamPolicy"))
500
511
  StartJobRunRequest.add_member(:job_driver, Shapes::ShapeRef.new(shape: JobDriver, location_name: "jobDriver"))
501
512
  StartJobRunRequest.add_member(:configuration_overrides, Shapes::ShapeRef.new(shape: ConfigurationOverrides, location_name: "configurationOverrides"))
502
513
  StartJobRunRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
@@ -607,8 +618,8 @@ module Aws::EMRServerless
607
618
  o.input = Shapes::ShapeRef.new(shape: CancelJobRunRequest)
608
619
  o.output = Shapes::ShapeRef.new(shape: CancelJobRunResponse)
609
620
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
610
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
611
621
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
622
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
612
623
  end)
613
624
 
614
625
  api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
@@ -618,8 +629,8 @@ module Aws::EMRServerless
618
629
  o.input = Shapes::ShapeRef.new(shape: CreateApplicationRequest)
619
630
  o.output = Shapes::ShapeRef.new(shape: CreateApplicationResponse)
620
631
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
621
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
622
632
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
633
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
623
634
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
624
635
  end)
625
636
 
@@ -630,8 +641,8 @@ module Aws::EMRServerless
630
641
  o.input = Shapes::ShapeRef.new(shape: DeleteApplicationRequest)
631
642
  o.output = Shapes::ShapeRef.new(shape: DeleteApplicationResponse)
632
643
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
633
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
634
644
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
645
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
635
646
  end)
636
647
 
637
648
  api.add_operation(:get_application, Seahorse::Model::Operation.new.tap do |o|
@@ -641,8 +652,8 @@ module Aws::EMRServerless
641
652
  o.input = Shapes::ShapeRef.new(shape: GetApplicationRequest)
642
653
  o.output = Shapes::ShapeRef.new(shape: GetApplicationResponse)
643
654
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
644
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
645
655
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
656
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
646
657
  end)
647
658
 
648
659
  api.add_operation(:get_dashboard_for_job_run, Seahorse::Model::Operation.new.tap do |o|
@@ -663,8 +674,8 @@ module Aws::EMRServerless
663
674
  o.input = Shapes::ShapeRef.new(shape: GetJobRunRequest)
664
675
  o.output = Shapes::ShapeRef.new(shape: GetJobRunResponse)
665
676
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
666
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
667
677
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
678
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
668
679
  end)
669
680
 
670
681
  api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
@@ -690,8 +701,8 @@ module Aws::EMRServerless
690
701
  o.input = Shapes::ShapeRef.new(shape: ListJobRunAttemptsRequest)
691
702
  o.output = Shapes::ShapeRef.new(shape: ListJobRunAttemptsResponse)
692
703
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
693
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
694
704
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
705
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
695
706
  o[:pager] = Aws::Pager.new(
696
707
  limit_key: "max_results",
697
708
  tokens: {
@@ -723,8 +734,8 @@ module Aws::EMRServerless
723
734
  o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
724
735
  o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
725
736
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
726
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
727
737
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
738
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
728
739
  end)
729
740
 
730
741
  api.add_operation(:start_application, Seahorse::Model::Operation.new.tap do |o|
@@ -734,8 +745,8 @@ module Aws::EMRServerless
734
745
  o.input = Shapes::ShapeRef.new(shape: StartApplicationRequest)
735
746
  o.output = Shapes::ShapeRef.new(shape: StartApplicationResponse)
736
747
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
737
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
738
748
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
749
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
739
750
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
740
751
  end)
741
752
 
@@ -758,8 +769,8 @@ module Aws::EMRServerless
758
769
  o.input = Shapes::ShapeRef.new(shape: StopApplicationRequest)
759
770
  o.output = Shapes::ShapeRef.new(shape: StopApplicationResponse)
760
771
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
761
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
762
772
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
773
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
763
774
  end)
764
775
 
765
776
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -769,8 +780,8 @@ module Aws::EMRServerless
769
780
  o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
770
781
  o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
771
782
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
772
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
773
783
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
784
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
774
785
  end)
775
786
 
776
787
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -780,8 +791,8 @@ module Aws::EMRServerless
780
791
  o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
781
792
  o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
782
793
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
783
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
784
794
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
795
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
785
796
  end)
786
797
 
787
798
  api.add_operation(:update_application, Seahorse::Model::Operation.new.tap do |o|
@@ -791,8 +802,8 @@ module Aws::EMRServerless
791
802
  o.input = Shapes::ShapeRef.new(shape: UpdateApplicationRequest)
792
803
  o.output = Shapes::ShapeRef.new(shape: UpdateApplicationResponse)
793
804
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
794
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
795
805
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
806
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
796
807
  end)
797
808
  end
798
809
 
@@ -1039,6 +1039,28 @@ module Aws::EMRServerless
1039
1039
  include Aws::Structure
1040
1040
  end
1041
1041
 
1042
+ # Optional IAM policy. The resulting job IAM role permissions will be an
1043
+ # intersection of the policies passed and the policy associated with
1044
+ # your job execution role.
1045
+ #
1046
+ # @!attribute [rw] policy
1047
+ # An IAM inline policy to use as an execution IAM policy.
1048
+ # @return [String]
1049
+ #
1050
+ # @!attribute [rw] policy_arns
1051
+ # A list of Amazon Resource Names (ARNs) to use as an execution IAM
1052
+ # policy.
1053
+ # @return [Array<String>]
1054
+ #
1055
+ # @see http://docs.aws.amazon.com/goto/WebAPI/emr-serverless-2021-07-13/JobRunExecutionIamPolicy AWS API Documentation
1056
+ #
1057
+ class JobRunExecutionIamPolicy < Struct.new(
1058
+ :policy,
1059
+ :policy_arns)
1060
+ SENSITIVE = []
1061
+ include Aws::Structure
1062
+ end
1063
+
1042
1064
  # The summary of attributes associated with a job run.
1043
1065
  #
1044
1066
  # @!attribute [rw] application_id
@@ -1594,6 +1616,12 @@ module Aws::EMRServerless
1594
1616
  # The execution role ARN for the job run.
1595
1617
  # @return [String]
1596
1618
  #
1619
+ # @!attribute [rw] execution_iam_policy
1620
+ # You can pass an optional IAM policy. The resulting job IAM role
1621
+ # permissions will be an intersection of this policy and the policy
1622
+ # associated with your job execution role.
1623
+ # @return [Types::JobRunExecutionIamPolicy]
1624
+ #
1597
1625
  # @!attribute [rw] job_driver
1598
1626
  # The job driver for the job run.
1599
1627
  # @return [Types::JobDriver]
@@ -1629,6 +1657,7 @@ module Aws::EMRServerless
1629
1657
  :application_id,
1630
1658
  :client_token,
1631
1659
  :execution_role_arn,
1660
+ :execution_iam_policy,
1632
1661
  :job_driver,
1633
1662
  :configuration_overrides,
1634
1663
  :tags,
@@ -54,7 +54,7 @@ module Aws::EMRServerless
54
54
  autoload :EndpointProvider, 'aws-sdk-emrserverless/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-emrserverless/endpoints'
56
56
 
57
- GEM_VERSION = '1.44.0'
57
+ GEM_VERSION = '1.45.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -292,6 +292,10 @@ module Aws
292
292
  application_id: ::String,
293
293
  client_token: ::String,
294
294
  execution_role_arn: ::String,
295
+ ?execution_iam_policy: {
296
+ policy: ::String?,
297
+ policy_arns: Array[::String]?
298
+ },
295
299
  ?job_driver: {
296
300
  spark_submit: {
297
301
  entry_point: ::String,
data/sig/types.rbs CHANGED
@@ -268,6 +268,12 @@ module Aws::EMRServerless
268
268
  SENSITIVE: []
269
269
  end
270
270
 
271
+ class JobRunExecutionIamPolicy
272
+ attr_accessor policy: ::String
273
+ attr_accessor policy_arns: ::Array[::String]
274
+ SENSITIVE: []
275
+ end
276
+
271
277
  class JobRunSummary
272
278
  attr_accessor application_id: ::String
273
279
  attr_accessor id: ::String
@@ -428,6 +434,7 @@ module Aws::EMRServerless
428
434
  attr_accessor application_id: ::String
429
435
  attr_accessor client_token: ::String
430
436
  attr_accessor execution_role_arn: ::String
437
+ attr_accessor execution_iam_policy: Types::JobRunExecutionIamPolicy
431
438
  attr_accessor job_driver: Types::JobDriver
432
439
  attr_accessor configuration_overrides: Types::ConfigurationOverrides
433
440
  attr_accessor tags: ::Hash[::String, ::String]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-emrserverless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0
4
+ version: 1.45.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services