aws-sdk-emr 1.23.0 → 1.24.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
  SHA1:
3
- metadata.gz: 063147d77bb85c9af8159589905dafd9eaf74a8b
4
- data.tar.gz: a8ed2b00e9bc0deb33ca42ee5c77d69687515a01
3
+ metadata.gz: f56f854611ded02ec8be6a54e646515a86badba8
4
+ data.tar.gz: dc1ad869e3a30b1267c9d551b04d21690decc0f7
5
5
  SHA512:
6
- metadata.gz: '083bba104f20896d62bccf0635d86921f2267cadc37edda0fe029c520f60032382c879861d4e4ae45384a95f2e38f7aa19fc880ad7088bfc453f267bac945e3a'
7
- data.tar.gz: 6e6200b5ef28a7fe77b2ce48c13d7681e967a6d90ca6814331793a27ce0d9ac8ee62d33c794efcb46e8baa15e4b4199b4ad1f05ae531d4c2e2cec0f497d2ee22
6
+ metadata.gz: a0da4021037aeef2bcd6966de5f0f3e6b45534b8b26481a149df150ea5483342c63e2fc86cc273e2aa1454808575816d523b0d1e9a742815e4397d5d34338f28
7
+ data.tar.gz: c3468c1750df2fe793431898263266e6205fe2e4e0a5c1a16f4475dea1d40a176b7d31ac0d9c6a2ecc44346177022771da8ae996f14798c51361c42e9c100bba
data/lib/aws-sdk-emr.rb CHANGED
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-emr/customizations'
43
43
  # @service
44
44
  module Aws::EMR
45
45
 
46
- GEM_VERSION = '1.23.0'
46
+ GEM_VERSION = '1.24.0'
47
47
 
48
48
  end
@@ -583,14 +583,18 @@ module Aws::EMR
583
583
  # step will be canceled, even if the request is successfully submitted.
584
584
  # You can only cancel steps that are in a `PENDING` state.
585
585
  #
586
- # @option params [String] :cluster_id
586
+ # @option params [required, String] :cluster_id
587
587
  # The `ClusterID` for which specified steps will be canceled. Use
588
588
  # RunJobFlow and ListClusters to get ClusterIDs.
589
589
  #
590
- # @option params [Array<String>] :step_ids
590
+ # @option params [required, Array<String>] :step_ids
591
591
  # The list of `StepIDs` to cancel. Use ListSteps to get steps and their
592
592
  # states for the specified cluster.
593
593
  #
594
+ # @option params [String] :step_cancellation_option
595
+ # The option to choose for cancelling `RUNNING` steps. By default, the
596
+ # value is `SEND_INTERRUPT`.
597
+ #
594
598
  # @return [Types::CancelStepsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
595
599
  #
596
600
  # * {Types::CancelStepsOutput#cancel_steps_info_list #cancel_steps_info_list} => Array&lt;Types::CancelStepsInfo&gt;
@@ -598,8 +602,9 @@ module Aws::EMR
598
602
  # @example Request syntax with placeholder values
599
603
  #
600
604
  # resp = client.cancel_steps({
601
- # cluster_id: "XmlStringMaxLen256",
602
- # step_ids: ["XmlStringMaxLen256"],
605
+ # cluster_id: "XmlStringMaxLen256", # required
606
+ # step_ids: ["XmlStringMaxLen256"], # required
607
+ # step_cancellation_option: "SEND_INTERRUPT", # accepts SEND_INTERRUPT, TERMINATE_PROCESS
603
608
  # })
604
609
  #
605
610
  # @example Response structure
@@ -760,6 +765,8 @@ module Aws::EMR
760
765
  # resp.cluster.kerberos_attributes.ad_domain_join_user #=> String
761
766
  # resp.cluster.kerberos_attributes.ad_domain_join_password #=> String
762
767
  # resp.cluster.cluster_arn #=> String
768
+ # resp.cluster.step_concurrency_level #=> Integer
769
+ # resp.cluster.outpost_arn #=> String
763
770
  #
764
771
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeCluster AWS API Documentation
765
772
  #
@@ -1098,6 +1105,7 @@ module Aws::EMR
1098
1105
  # resp.clusters[0].status.timeline.end_date_time #=> Time
1099
1106
  # resp.clusters[0].normalized_instance_hours #=> Integer
1100
1107
  # resp.clusters[0].cluster_arn #=> String
1108
+ # resp.clusters[0].outpost_arn #=> String
1101
1109
  # resp.marker #=> String
1102
1110
  #
1103
1111
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClusters AWS API Documentation
@@ -1457,6 +1465,40 @@ module Aws::EMR
1457
1465
  req.send_request(options)
1458
1466
  end
1459
1467
 
1468
+ # Modifies the number of steps that can be executed concurrently for the
1469
+ # cluster specified using ClusterID.
1470
+ #
1471
+ # @option params [required, String] :cluster_id
1472
+ # The unique identifier of the cluster.
1473
+ #
1474
+ # @option params [Integer] :step_concurrency_level
1475
+ # The number of steps that can be executed concurrently. You can specify
1476
+ # a maximum of 256 steps.
1477
+ #
1478
+ # @return [Types::ModifyClusterOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1479
+ #
1480
+ # * {Types::ModifyClusterOutput#step_concurrency_level #step_concurrency_level} => Integer
1481
+ #
1482
+ # @example Request syntax with placeholder values
1483
+ #
1484
+ # resp = client.modify_cluster({
1485
+ # cluster_id: "String", # required
1486
+ # step_concurrency_level: 1,
1487
+ # })
1488
+ #
1489
+ # @example Response structure
1490
+ #
1491
+ # resp.step_concurrency_level #=> Integer
1492
+ #
1493
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyCluster AWS API Documentation
1494
+ #
1495
+ # @overload modify_cluster(params = {})
1496
+ # @param [Hash] params ({})
1497
+ def modify_cluster(params = {}, options = {})
1498
+ req = build_request(:modify_cluster, params)
1499
+ req.send_request(options)
1500
+ end
1501
+
1460
1502
  # Modifies the target On-Demand and target Spot capacities for the
1461
1503
  # instance fleet with the specified InstanceFleetID within the cluster
1462
1504
  # specified using ClusterID. The call either succeeds or fails
@@ -2002,6 +2044,10 @@ module Aws::EMR
2002
2044
  #
2003
2045
  # [1]: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html
2004
2046
  #
2047
+ # @option params [Integer] :step_concurrency_level
2048
+ # Specifies the number of steps that can be executed concurrently. The
2049
+ # default value is `1`. The maximum value is `256`.
2050
+ #
2005
2051
  # @return [Types::RunJobFlowOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2006
2052
  #
2007
2053
  # * {Types::RunJobFlowOutput#job_flow_id #job_flow_id} => String
@@ -2230,6 +2276,7 @@ module Aws::EMR
2230
2276
  # ad_domain_join_user: "XmlStringMaxLen256",
2231
2277
  # ad_domain_join_password: "XmlStringMaxLen256",
2232
2278
  # },
2279
+ # step_concurrency_level: 1,
2233
2280
  # })
2234
2281
  #
2235
2282
  # @example Response structure
@@ -2382,7 +2429,7 @@ module Aws::EMR
2382
2429
  params: params,
2383
2430
  config: config)
2384
2431
  context[:gem_name] = 'aws-sdk-emr'
2385
- context[:gem_version] = '1.23.0'
2432
+ context[:gem_version] = '1.24.0'
2386
2433
  Seahorse::Client::Request.new(handlers, context)
2387
2434
  end
2388
2435
 
@@ -169,10 +169,13 @@ module Aws::EMR
169
169
  MarketType = Shapes::StringShape.new(name: 'MarketType')
170
170
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
171
171
  MetricDimensionList = Shapes::ListShape.new(name: 'MetricDimensionList')
172
+ ModifyClusterInput = Shapes::StructureShape.new(name: 'ModifyClusterInput')
173
+ ModifyClusterOutput = Shapes::StructureShape.new(name: 'ModifyClusterOutput')
172
174
  ModifyInstanceFleetInput = Shapes::StructureShape.new(name: 'ModifyInstanceFleetInput')
173
175
  ModifyInstanceGroupsInput = Shapes::StructureShape.new(name: 'ModifyInstanceGroupsInput')
174
176
  NewSupportedProductsList = Shapes::ListShape.new(name: 'NewSupportedProductsList')
175
177
  NonNegativeDouble = Shapes::FloatShape.new(name: 'NonNegativeDouble')
178
+ OptionalArnType = Shapes::StringShape.new(name: 'OptionalArnType')
176
179
  PlacementType = Shapes::StructureShape.new(name: 'PlacementType')
177
180
  Port = Shapes::IntegerShape.new(name: 'Port')
178
181
  PortRange = Shapes::StructureShape.new(name: 'PortRange')
@@ -207,6 +210,7 @@ module Aws::EMR
207
210
  SpotProvisioningTimeoutAction = Shapes::StringShape.new(name: 'SpotProvisioningTimeoutAction')
208
211
  Statistic = Shapes::StringShape.new(name: 'Statistic')
209
212
  Step = Shapes::StructureShape.new(name: 'Step')
213
+ StepCancellationOption = Shapes::StringShape.new(name: 'StepCancellationOption')
210
214
  StepConfig = Shapes::StructureShape.new(name: 'StepConfig')
211
215
  StepConfigList = Shapes::ListShape.new(name: 'StepConfigList')
212
216
  StepDetail = Shapes::StructureShape.new(name: 'StepDetail')
@@ -321,8 +325,9 @@ module Aws::EMR
321
325
 
322
326
  CancelStepsInfoList.member = Shapes::ShapeRef.new(shape: CancelStepsInfo)
323
327
 
324
- CancelStepsInput.add_member(:cluster_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen256, location_name: "ClusterId"))
325
- CancelStepsInput.add_member(:step_ids, Shapes::ShapeRef.new(shape: StepIdsList, location_name: "StepIds"))
328
+ CancelStepsInput.add_member(:cluster_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen256, required: true, location_name: "ClusterId"))
329
+ CancelStepsInput.add_member(:step_ids, Shapes::ShapeRef.new(shape: StepIdsList, required: true, location_name: "StepIds"))
330
+ CancelStepsInput.add_member(:step_cancellation_option, Shapes::ShapeRef.new(shape: StepCancellationOption, location_name: "StepCancellationOption"))
326
331
  CancelStepsInput.struct_class = Types::CancelStepsInput
327
332
 
328
333
  CancelStepsOutput.add_member(:cancel_steps_info_list, Shapes::ShapeRef.new(shape: CancelStepsInfoList, location_name: "CancelStepsInfoList"))
@@ -365,6 +370,8 @@ module Aws::EMR
365
370
  Cluster.add_member(:repo_upgrade_on_boot, Shapes::ShapeRef.new(shape: RepoUpgradeOnBoot, location_name: "RepoUpgradeOnBoot"))
366
371
  Cluster.add_member(:kerberos_attributes, Shapes::ShapeRef.new(shape: KerberosAttributes, location_name: "KerberosAttributes"))
367
372
  Cluster.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "ClusterArn"))
373
+ Cluster.add_member(:step_concurrency_level, Shapes::ShapeRef.new(shape: Integer, location_name: "StepConcurrencyLevel"))
374
+ Cluster.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: OptionalArnType, location_name: "OutpostArn"))
368
375
  Cluster.struct_class = Types::Cluster
369
376
 
370
377
  ClusterStateChangeReason.add_member(:code, Shapes::ShapeRef.new(shape: ClusterStateChangeReasonCode, location_name: "Code"))
@@ -383,6 +390,7 @@ module Aws::EMR
383
390
  ClusterSummary.add_member(:status, Shapes::ShapeRef.new(shape: ClusterStatus, location_name: "Status"))
384
391
  ClusterSummary.add_member(:normalized_instance_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "NormalizedInstanceHours"))
385
392
  ClusterSummary.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: ArnType, location_name: "ClusterArn"))
393
+ ClusterSummary.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: OptionalArnType, location_name: "OutpostArn"))
386
394
  ClusterSummary.struct_class = Types::ClusterSummary
387
395
 
388
396
  ClusterSummaryList.member = Shapes::ShapeRef.new(shape: ClusterSummary)
@@ -846,6 +854,13 @@ module Aws::EMR
846
854
 
847
855
  MetricDimensionList.member = Shapes::ShapeRef.new(shape: MetricDimension)
848
856
 
857
+ ModifyClusterInput.add_member(:cluster_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterId"))
858
+ ModifyClusterInput.add_member(:step_concurrency_level, Shapes::ShapeRef.new(shape: Integer, location_name: "StepConcurrencyLevel"))
859
+ ModifyClusterInput.struct_class = Types::ModifyClusterInput
860
+
861
+ ModifyClusterOutput.add_member(:step_concurrency_level, Shapes::ShapeRef.new(shape: Integer, location_name: "StepConcurrencyLevel"))
862
+ ModifyClusterOutput.struct_class = Types::ModifyClusterOutput
863
+
849
864
  ModifyInstanceFleetInput.add_member(:cluster_id, Shapes::ShapeRef.new(shape: ClusterId, required: true, location_name: "ClusterId"))
850
865
  ModifyInstanceFleetInput.add_member(:instance_fleet, Shapes::ShapeRef.new(shape: InstanceFleetModifyConfig, required: true, location_name: "InstanceFleet"))
851
866
  ModifyInstanceFleetInput.struct_class = Types::ModifyInstanceFleetInput
@@ -917,6 +932,7 @@ module Aws::EMR
917
932
  RunJobFlowInput.add_member(:ebs_root_volume_size, Shapes::ShapeRef.new(shape: Integer, location_name: "EbsRootVolumeSize"))
918
933
  RunJobFlowInput.add_member(:repo_upgrade_on_boot, Shapes::ShapeRef.new(shape: RepoUpgradeOnBoot, location_name: "RepoUpgradeOnBoot"))
919
934
  RunJobFlowInput.add_member(:kerberos_attributes, Shapes::ShapeRef.new(shape: KerberosAttributes, location_name: "KerberosAttributes"))
935
+ RunJobFlowInput.add_member(:step_concurrency_level, Shapes::ShapeRef.new(shape: Integer, location_name: "StepConcurrencyLevel"))
920
936
  RunJobFlowInput.struct_class = Types::RunJobFlowInput
921
937
 
922
938
  RunJobFlowOutput.add_member(:job_flow_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen256, location_name: "JobFlowId"))
@@ -1302,6 +1318,16 @@ module Aws::EMR
1302
1318
  )
1303
1319
  end)
1304
1320
 
1321
+ api.add_operation(:modify_cluster, Seahorse::Model::Operation.new.tap do |o|
1322
+ o.name = "ModifyCluster"
1323
+ o.http_method = "POST"
1324
+ o.http_request_uri = "/"
1325
+ o.input = Shapes::ShapeRef.new(shape: ModifyClusterInput)
1326
+ o.output = Shapes::ShapeRef.new(shape: ModifyClusterOutput)
1327
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1328
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1329
+ end)
1330
+
1305
1331
  api.add_operation(:modify_instance_fleet, Seahorse::Model::Operation.new.tap do |o|
1306
1332
  o.name = "ModifyInstanceFleet"
1307
1333
  o.http_method = "POST"
@@ -654,8 +654,9 @@ module Aws::EMR
654
654
  # data as a hash:
655
655
  #
656
656
  # {
657
- # cluster_id: "XmlStringMaxLen256",
658
- # step_ids: ["XmlStringMaxLen256"],
657
+ # cluster_id: "XmlStringMaxLen256", # required
658
+ # step_ids: ["XmlStringMaxLen256"], # required
659
+ # step_cancellation_option: "SEND_INTERRUPT", # accepts SEND_INTERRUPT, TERMINATE_PROCESS
659
660
  # }
660
661
  #
661
662
  # @!attribute [rw] cluster_id
@@ -668,11 +669,17 @@ module Aws::EMR
668
669
  # their states for the specified cluster.
669
670
  # @return [Array<String>]
670
671
  #
672
+ # @!attribute [rw] step_cancellation_option
673
+ # The option to choose for cancelling `RUNNING` steps. By default, the
674
+ # value is `SEND_INTERRUPT`.
675
+ # @return [String]
676
+ #
671
677
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelStepsInput AWS API Documentation
672
678
  #
673
679
  class CancelStepsInput < Struct.new(
674
680
  :cluster_id,
675
- :step_ids)
681
+ :step_ids,
682
+ :step_cancellation_option)
676
683
  include Aws::Structure
677
684
  end
678
685
 
@@ -952,6 +959,15 @@ module Aws::EMR
952
959
  # The Amazon Resource Name of the cluster.
953
960
  # @return [String]
954
961
  #
962
+ # @!attribute [rw] step_concurrency_level
963
+ # Specifies the number of steps that can be executed concurrently.
964
+ # @return [Integer]
965
+ #
966
+ # @!attribute [rw] outpost_arn
967
+ # The Amazon Resource Name (ARN) of the Outpost where the cluster is
968
+ # launched.
969
+ # @return [String]
970
+ #
955
971
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/Cluster AWS API Documentation
956
972
  #
957
973
  class Cluster < Struct.new(
@@ -980,7 +996,9 @@ module Aws::EMR
980
996
  :ebs_root_volume_size,
981
997
  :repo_upgrade_on_boot,
982
998
  :kerberos_attributes,
983
- :cluster_arn)
999
+ :cluster_arn,
1000
+ :step_concurrency_level,
1001
+ :outpost_arn)
984
1002
  include Aws::Structure
985
1003
  end
986
1004
 
@@ -1054,6 +1072,11 @@ module Aws::EMR
1054
1072
  # The Amazon Resource Name of the cluster.
1055
1073
  # @return [String]
1056
1074
  #
1075
+ # @!attribute [rw] outpost_arn
1076
+ # The Amazon Resource Name (ARN) of the Outpost where the cluster is
1077
+ # launched.
1078
+ # @return [String]
1079
+ #
1057
1080
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ClusterSummary AWS API Documentation
1058
1081
  #
1059
1082
  class ClusterSummary < Struct.new(
@@ -1061,7 +1084,8 @@ module Aws::EMR
1061
1084
  :name,
1062
1085
  :status,
1063
1086
  :normalized_instance_hours,
1064
- :cluster_arn)
1087
+ :cluster_arn,
1088
+ :outpost_arn)
1065
1089
  include Aws::Structure
1066
1090
  end
1067
1091
 
@@ -3997,6 +4021,42 @@ module Aws::EMR
3997
4021
  include Aws::Structure
3998
4022
  end
3999
4023
 
4024
+ # @note When making an API call, you may pass ModifyClusterInput
4025
+ # data as a hash:
4026
+ #
4027
+ # {
4028
+ # cluster_id: "String", # required
4029
+ # step_concurrency_level: 1,
4030
+ # }
4031
+ #
4032
+ # @!attribute [rw] cluster_id
4033
+ # The unique identifier of the cluster.
4034
+ # @return [String]
4035
+ #
4036
+ # @!attribute [rw] step_concurrency_level
4037
+ # The number of steps that can be executed concurrently. You can
4038
+ # specify a maximum of 256 steps.
4039
+ # @return [Integer]
4040
+ #
4041
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyClusterInput AWS API Documentation
4042
+ #
4043
+ class ModifyClusterInput < Struct.new(
4044
+ :cluster_id,
4045
+ :step_concurrency_level)
4046
+ include Aws::Structure
4047
+ end
4048
+
4049
+ # @!attribute [rw] step_concurrency_level
4050
+ # The number of steps that can be executed concurrently.
4051
+ # @return [Integer]
4052
+ #
4053
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyClusterOutput AWS API Documentation
4054
+ #
4055
+ class ModifyClusterOutput < Struct.new(
4056
+ :step_concurrency_level)
4057
+ include Aws::Structure
4058
+ end
4059
+
4000
4060
  # @note When making an API call, you may pass ModifyInstanceFleetInput
4001
4061
  # data as a hash:
4002
4062
  #
@@ -4568,6 +4628,7 @@ module Aws::EMR
4568
4628
  # ad_domain_join_user: "XmlStringMaxLen256",
4569
4629
  # ad_domain_join_password: "XmlStringMaxLen256",
4570
4630
  # },
4631
+ # step_concurrency_level: 1,
4571
4632
  # }
4572
4633
  #
4573
4634
  # @!attribute [rw] name
@@ -4790,6 +4851,11 @@ module Aws::EMR
4790
4851
  # [1]: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html
4791
4852
  # @return [Types::KerberosAttributes]
4792
4853
  #
4854
+ # @!attribute [rw] step_concurrency_level
4855
+ # Specifies the number of steps that can be executed concurrently. The
4856
+ # default value is `1`. The maximum value is `256`.
4857
+ # @return [Integer]
4858
+ #
4793
4859
  # @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RunJobFlowInput AWS API Documentation
4794
4860
  #
4795
4861
  class RunJobFlowInput < Struct.new(
@@ -4815,7 +4881,8 @@ module Aws::EMR
4815
4881
  :custom_ami_id,
4816
4882
  :ebs_root_volume_size,
4817
4883
  :repo_upgrade_on_boot,
4818
- :kerberos_attributes)
4884
+ :kerberos_attributes,
4885
+ :step_concurrency_level)
4819
4886
  include Aws::Structure
4820
4887
  end
4821
4888
 
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.23.0
4
+ version: 1.24.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: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core