aws-sdk-emr 1.81.0 → 1.82.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: 96b4c9455c88374159cff77b5c1d7faf5d9ff66687f4a715167403a541198924
4
+ data.tar.gz: 2bc73cb14af8b3b59e2f0180d9adaacfa66fbbdc724450b4c2b5c8984b0b1eb4
5
5
  SHA512:
6
- metadata.gz: 8ac719387dd439694fca3f460f6c6c4705f4251b3fd24fe51e739af2a70dacb7aba31d553f2156fa5e090fc9b6384481266556b30d0da4ff02c87edf578ae2a9
7
- data.tar.gz: 17c67ff6b203420c4fe363a1665a292af55982a845e411d778ef3a1b96d286517545f920a27cadbc5295b9f169a0323766220a40e6f2132b783037699928d756
6
+ metadata.gz: 6bc4f3fa3c8d767966e715209f246755e9e2481ae0e4a9bfca64879c8c22279191560b18f3588332643456d004baf2f6b1319de9de9d8d034649fdc0b3a9f30a
7
+ data.tar.gz: 0357601dc0e1ef69d4febd94bbd1c2f0220e4576a8903f90205f6356823f19b8652d8cd3d1f489028d95d21105dbb649681b56d14061a9d86b10999e611f4cba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.82.0 (2023-12-27)
5
+ ------------------
6
+
7
+ * Feature - Add support for customers to modify cluster attribute auto-terminate post cluster launch
8
+
4
9
  1.81.0 (2023-11-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.81.0
1
+ 1.82.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.82.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
@@ -151,6 +151,8 @@ module Aws::EMR
151
151
  Aws::EMR::Endpoints::RemoveTags.build(context)
152
152
  when :run_job_flow
153
153
  Aws::EMR::Endpoints::RunJobFlow.build(context)
154
+ when :set_keep_job_flow_alive_when_no_steps
155
+ Aws::EMR::Endpoints::SetKeepJobFlowAliveWhenNoSteps.build(context)
154
156
  when :set_termination_protection
155
157
  Aws::EMR::Endpoints::SetTerminationProtection.build(context)
156
158
  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.82.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-emr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.81.0
4
+ version: 1.82.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: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core