aws-sdk-emr 1.80.0 → 1.82.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: 6aaf4484974d5ef47d8b2ff5be96a69580005d09b29d8dd08eb0587a1cc7b400
4
- data.tar.gz: b4b25605d15149611f884da31f6a674dd6f3815d9797e25e589e282d63679094
3
+ metadata.gz: 96b4c9455c88374159cff77b5c1d7faf5d9ff66687f4a715167403a541198924
4
+ data.tar.gz: 2bc73cb14af8b3b59e2f0180d9adaacfa66fbbdc724450b4c2b5c8984b0b1eb4
5
5
  SHA512:
6
- metadata.gz: 0edcbb3160d13ff91b3c48673da851eb9a9b4aa5f672407908c6c2f11f4b3040c25863064764cff664c45670856e4b0d0430aa5b34188d50fe6a884c72f861e7
7
- data.tar.gz: 3fe17f19d841600cf96bd8b5657683c2e1a3f948895ab74dde765b97cc6cf15b5813798567f1afc642ea9cf3a371babb58426d0b0e76467ede8b83d1fea065e7
6
+ metadata.gz: 6bc4f3fa3c8d767966e715209f246755e9e2481ae0e4a9bfca64879c8c22279191560b18f3588332643456d004baf2f6b1319de9de9d8d034649fdc0b3a9f30a
7
+ data.tar.gz: 0357601dc0e1ef69d4febd94bbd1c2f0220e4576a8903f90205f6356823f19b8652d8cd3d1f489028d95d21105dbb649681b56d14061a9d86b10999e611f4cba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.81.0 (2023-11-28)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.80.0 (2023-11-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.80.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.80.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
@@ -25,16 +25,17 @@ module Aws::EMR
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -150,6 +151,8 @@ module Aws::EMR
150
151
  Aws::EMR::Endpoints::RemoveTags.build(context)
151
152
  when :run_job_flow
152
153
  Aws::EMR::Endpoints::RunJobFlow.build(context)
154
+ when :set_keep_job_flow_alive_when_no_steps
155
+ Aws::EMR::Endpoints::SetKeepJobFlowAliveWhenNoSteps.build(context)
153
156
  when :set_termination_protection
154
157
  Aws::EMR::Endpoints::SetTerminationProtection.build(context)
155
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.80.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.80.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-22 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