aws-sdk-emr 1.81.0 → 1.83.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: cbd82a56d684b2a871aff7048996771a3d6f4fb509d14404f4fa437e7eb61548
4
- data.tar.gz: 7f14c7ddee38971af71e0680d1b3fa7ed8ae9e74c6defe6178f073bd9373bb27
3
+ metadata.gz: 7a56ad6e59387aafc5fd74b86003d356551bc618962cbc4c4be2d3459dc8dfb6
4
+ data.tar.gz: 9456911c912aa53b1b8a22f9141ef2a6b51d339efcb4715c79c13ce5855fa085
5
5
  SHA512:
6
- metadata.gz: 8ac719387dd439694fca3f460f6c6c4705f4251b3fd24fe51e739af2a70dacb7aba31d553f2156fa5e090fc9b6384481266556b30d0da4ff02c87edf578ae2a9
7
- data.tar.gz: 17c67ff6b203420c4fe363a1665a292af55982a845e411d778ef3a1b96d286517545f920a27cadbc5295b9f169a0323766220a40e6f2132b783037699928d756
6
+ metadata.gz: f4ac4679d92f19f8b779ceeadc888a978614af9d782e834bcfe8b8576f5cad0ecbcfbb3793d291aec7a141626872d8662cb5bac8348f50d299fdee869a0fd7bc
7
+ data.tar.gz: 7b0e8f312376f54f4c5ce74ca482e3cd61db78dd069aa2d3116408a9cfabe74699b5d5f26b2fdcad48564d58d65837da33e103e2666601f7873c999106db9a0f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.82.0 (2023-12-27)
10
+ ------------------
11
+
12
+ * Feature - Add support for customers to modify cluster attribute auto-terminate post cluster launch
13
+
4
14
  1.81.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.81.0
1
+ 1.83.0
@@ -3665,6 +3665,53 @@ module Aws::EMR
3665
3665
  req.send_request(options)
3666
3666
  end
3667
3667
 
3668
+ # You can use the `SetKeepJobFlowAliveWhenNoSteps` to configure a
3669
+ # cluster (job flow) to terminate after the step execution, i.e., all
3670
+ # your steps are executed. If you want a transient cluster that shuts
3671
+ # down after the last of the current executing steps are completed, you
3672
+ # can configure `SetKeepJobFlowAliveWhenNoSteps` to false. If you want a
3673
+ # long running cluster, configure `SetKeepJobFlowAliveWhenNoSteps` to
3674
+ # true.
3675
+ #
3676
+ # For more information, see [Managing Cluster Termination][1] in the
3677
+ # *Amazon EMR Management Guide*.
3678
+ #
3679
+ #
3680
+ #
3681
+ # [1]: https://docs.aws.amazon.com/emr/latest/ManagementGuide/UsingEMR_TerminationProtection.html
3682
+ #
3683
+ # @option params [required, Array<String>] :job_flow_ids
3684
+ # A list of strings that uniquely identify the clusters to protect. This
3685
+ # identifier is returned by [RunJobFlow][1] and can also be obtained
3686
+ # from [DescribeJobFlows][2].
3687
+ #
3688
+ #
3689
+ #
3690
+ # [1]: https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html
3691
+ # [2]: https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html
3692
+ #
3693
+ # @option params [required, Boolean] :keep_job_flow_alive_when_no_steps
3694
+ # A Boolean that indicates whether to terminate the cluster after all
3695
+ # steps are executed.
3696
+ #
3697
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3698
+ #
3699
+ # @example Request syntax with placeholder values
3700
+ #
3701
+ # resp = client.set_keep_job_flow_alive_when_no_steps({
3702
+ # job_flow_ids: ["XmlString"], # required
3703
+ # keep_job_flow_alive_when_no_steps: false, # required
3704
+ # })
3705
+ #
3706
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetKeepJobFlowAliveWhenNoSteps AWS API Documentation
3707
+ #
3708
+ # @overload set_keep_job_flow_alive_when_no_steps(params = {})
3709
+ # @param [Hash] params ({})
3710
+ def set_keep_job_flow_alive_when_no_steps(params = {}, options = {})
3711
+ req = build_request(:set_keep_job_flow_alive_when_no_steps, params)
3712
+ req.send_request(options)
3713
+ end
3714
+
3668
3715
  # SetTerminationProtection locks a cluster (job flow) so the Amazon EC2
3669
3716
  # instances in the cluster cannot be terminated by user intervention, an
3670
3717
  # API call, or in the event of a job-flow error. The cluster still
@@ -4049,7 +4096,7 @@ module Aws::EMR
4049
4096
  params: params,
4050
4097
  config: config)
4051
4098
  context[:gem_name] = 'aws-sdk-emr'
4052
- context[:gem_version] = '1.81.0'
4099
+ context[:gem_version] = '1.83.0'
4053
4100
  Seahorse::Client::Request.new(handlers, context)
4054
4101
  end
4055
4102
 
@@ -284,6 +284,7 @@ module Aws::EMR
284
284
  SessionMappingDetail = Shapes::StructureShape.new(name: 'SessionMappingDetail')
285
285
  SessionMappingSummary = Shapes::StructureShape.new(name: 'SessionMappingSummary')
286
286
  SessionMappingSummaryList = Shapes::ListShape.new(name: 'SessionMappingSummaryList')
287
+ SetKeepJobFlowAliveWhenNoStepsInput = Shapes::StructureShape.new(name: 'SetKeepJobFlowAliveWhenNoStepsInput')
287
288
  SetTerminationProtectionInput = Shapes::StructureShape.new(name: 'SetTerminationProtectionInput')
288
289
  SetVisibleToAllUsersInput = Shapes::StructureShape.new(name: 'SetVisibleToAllUsersInput')
289
290
  ShrinkPolicy = Shapes::StructureShape.new(name: 'ShrinkPolicy')
@@ -1389,6 +1390,10 @@ module Aws::EMR
1389
1390
 
1390
1391
  SessionMappingSummaryList.member = Shapes::ShapeRef.new(shape: SessionMappingSummary)
1391
1392
 
1393
+ SetKeepJobFlowAliveWhenNoStepsInput.add_member(:job_flow_ids, Shapes::ShapeRef.new(shape: XmlStringList, required: true, location_name: "JobFlowIds"))
1394
+ SetKeepJobFlowAliveWhenNoStepsInput.add_member(:keep_job_flow_alive_when_no_steps, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "KeepJobFlowAliveWhenNoSteps"))
1395
+ SetKeepJobFlowAliveWhenNoStepsInput.struct_class = Types::SetKeepJobFlowAliveWhenNoStepsInput
1396
+
1392
1397
  SetTerminationProtectionInput.add_member(:job_flow_ids, Shapes::ShapeRef.new(shape: XmlStringList, required: true, location_name: "JobFlowIds"))
1393
1398
  SetTerminationProtectionInput.add_member(:termination_protected, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "TerminationProtected"))
1394
1399
  SetTerminationProtectionInput.struct_class = Types::SetTerminationProtectionInput
@@ -2127,6 +2132,15 @@ module Aws::EMR
2127
2132
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2128
2133
  end)
2129
2134
 
2135
+ api.add_operation(:set_keep_job_flow_alive_when_no_steps, Seahorse::Model::Operation.new.tap do |o|
2136
+ o.name = "SetKeepJobFlowAliveWhenNoSteps"
2137
+ o.http_method = "POST"
2138
+ o.http_request_uri = "/"
2139
+ o.input = Shapes::ShapeRef.new(shape: SetKeepJobFlowAliveWhenNoStepsInput)
2140
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2141
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2142
+ end)
2143
+
2130
2144
  api.add_operation(:set_termination_protection, Seahorse::Model::Operation.new.tap do |o|
2131
2145
  o.name = "SetTerminationProtection"
2132
2146
  o.http_method = "POST"
@@ -670,6 +670,20 @@ module Aws::EMR
670
670
  end
671
671
  end
672
672
 
673
+ class SetKeepJobFlowAliveWhenNoSteps
674
+ def self.build(context)
675
+ unless context.config.regional_endpoint
676
+ endpoint = context.config.endpoint.to_s
677
+ end
678
+ Aws::EMR::EndpointParameters.new(
679
+ region: context.config.region,
680
+ use_dual_stack: context.config.use_dualstack_endpoint,
681
+ use_fips: context.config.use_fips_endpoint,
682
+ endpoint: endpoint,
683
+ )
684
+ end
685
+ end
686
+
673
687
  class SetTerminationProtection
674
688
  def self.build(context)
675
689
  unless context.config.regional_endpoint
@@ -14,6 +14,7 @@ module Aws::EMR
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::EMR::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -151,6 +152,8 @@ module Aws::EMR
151
152
  Aws::EMR::Endpoints::RemoveTags.build(context)
152
153
  when :run_job_flow
153
154
  Aws::EMR::Endpoints::RunJobFlow.build(context)
155
+ when :set_keep_job_flow_alive_when_no_steps
156
+ Aws::EMR::Endpoints::SetKeepJobFlowAliveWhenNoSteps.build(context)
154
157
  when :set_termination_protection
155
158
  Aws::EMR::Endpoints::SetTerminationProtection.build(context)
156
159
  when :set_visible_to_all_users
@@ -5844,6 +5844,31 @@ module Aws::EMR
5844
5844
  include Aws::Structure
5845
5845
  end
5846
5846
 
5847
+ # @!attribute [rw] job_flow_ids
5848
+ # A list of strings that uniquely identify the clusters to protect.
5849
+ # This identifier is returned by [RunJobFlow][1] and can also be
5850
+ # obtained from [DescribeJobFlows][2].
5851
+ #
5852
+ #
5853
+ #
5854
+ # [1]: https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html
5855
+ # [2]: https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html
5856
+ # @return [Array<String>]
5857
+ #
5858
+ # @!attribute [rw] keep_job_flow_alive_when_no_steps
5859
+ # A Boolean that indicates whether to terminate the cluster after all
5860
+ # steps are executed.
5861
+ # @return [Boolean]
5862
+ #
5863
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SetKeepJobFlowAliveWhenNoStepsInput AWS API Documentation
5864
+ #
5865
+ class SetKeepJobFlowAliveWhenNoStepsInput < Struct.new(
5866
+ :job_flow_ids,
5867
+ :keep_job_flow_alive_when_no_steps)
5868
+ SENSITIVE = []
5869
+ include Aws::Structure
5870
+ end
5871
+
5847
5872
  # The input argument to the TerminationProtection operation.
5848
5873
  #
5849
5874
  # @!attribute [rw] job_flow_ids
data/lib/aws-sdk-emr.rb CHANGED
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-emr/customizations'
53
53
  # @!group service
54
54
  module Aws::EMR
55
55
 
56
- GEM_VERSION = '1.81.0'
56
+ GEM_VERSION = '1.83.0'
57
57
 
58
58
  end