aws-sdk-emr 1.32.0 → 1.33.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 +4 -4
- data/lib/aws-sdk-emr.rb +1 -1
- data/lib/aws-sdk-emr/client.rb +13 -3
- data/lib/aws-sdk-emr/client_api.rb +9 -1
- data/lib/aws-sdk-emr/types.rb +92 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dcd80c43660f4057ff57af014e1093f7f1ea4e7f2a0c12264c9d1ffe0cdcb12
|
4
|
+
data.tar.gz: 3338e7350300b6e8ac4b862e665769175687a2489f3d2e5117e4036924aa283d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3131d5673cb1edd1d03bfdac147cae9d4f8f83fe8d32c263d1f5379490f81fd295e776f16893ce294cc72ba58248c7a56065b365c283b93804d1b203debe419
|
7
|
+
data.tar.gz: 819d84b9108bead7fa6231652262a3b655db990fa247a33058c59ea891e4299a1bf6611770cf4dd1041dac7ac0df3fba5fec3ccbf18fd3fc238ac84aac8379e3
|
data/lib/aws-sdk-emr.rb
CHANGED
data/lib/aws-sdk-emr/client.rb
CHANGED
@@ -383,10 +383,14 @@ module Aws::EMR
|
|
383
383
|
# },
|
384
384
|
# ],
|
385
385
|
# launch_specifications: {
|
386
|
-
# spot_specification: {
|
386
|
+
# spot_specification: {
|
387
387
|
# timeout_duration_minutes: 1, # required
|
388
388
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
389
389
|
# block_duration_minutes: 1,
|
390
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
391
|
+
# },
|
392
|
+
# on_demand_specification: {
|
393
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
390
394
|
# },
|
391
395
|
# },
|
392
396
|
# },
|
@@ -1288,6 +1292,8 @@ module Aws::EMR
|
|
1288
1292
|
# resp.instance_fleets[0].launch_specifications.spot_specification.timeout_duration_minutes #=> Integer
|
1289
1293
|
# resp.instance_fleets[0].launch_specifications.spot_specification.timeout_action #=> String, one of "SWITCH_TO_ON_DEMAND", "TERMINATE_CLUSTER"
|
1290
1294
|
# resp.instance_fleets[0].launch_specifications.spot_specification.block_duration_minutes #=> Integer
|
1295
|
+
# resp.instance_fleets[0].launch_specifications.spot_specification.allocation_strategy #=> String, one of "capacity-optimized"
|
1296
|
+
# resp.instance_fleets[0].launch_specifications.on_demand_specification.allocation_strategy #=> String, one of "lowest-price"
|
1291
1297
|
# resp.marker #=> String
|
1292
1298
|
#
|
1293
1299
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceFleets AWS API Documentation
|
@@ -2374,10 +2380,14 @@ module Aws::EMR
|
|
2374
2380
|
# },
|
2375
2381
|
# ],
|
2376
2382
|
# launch_specifications: {
|
2377
|
-
# spot_specification: {
|
2383
|
+
# spot_specification: {
|
2378
2384
|
# timeout_duration_minutes: 1, # required
|
2379
2385
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
2380
2386
|
# block_duration_minutes: 1,
|
2387
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
2388
|
+
# },
|
2389
|
+
# on_demand_specification: {
|
2390
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
2381
2391
|
# },
|
2382
2392
|
# },
|
2383
2393
|
# },
|
@@ -2636,7 +2646,7 @@ module Aws::EMR
|
|
2636
2646
|
params: params,
|
2637
2647
|
config: config)
|
2638
2648
|
context[:gem_name] = 'aws-sdk-emr'
|
2639
|
-
context[:gem_version] = '1.
|
2649
|
+
context[:gem_version] = '1.33.0'
|
2640
2650
|
Seahorse::Client::Request.new(handlers, context)
|
2641
2651
|
end
|
2642
2652
|
|
@@ -182,6 +182,8 @@ module Aws::EMR
|
|
182
182
|
ModifyInstanceGroupsInput = Shapes::StructureShape.new(name: 'ModifyInstanceGroupsInput')
|
183
183
|
NewSupportedProductsList = Shapes::ListShape.new(name: 'NewSupportedProductsList')
|
184
184
|
NonNegativeDouble = Shapes::FloatShape.new(name: 'NonNegativeDouble')
|
185
|
+
OnDemandProvisioningAllocationStrategy = Shapes::StringShape.new(name: 'OnDemandProvisioningAllocationStrategy')
|
186
|
+
OnDemandProvisioningSpecification = Shapes::StructureShape.new(name: 'OnDemandProvisioningSpecification')
|
185
187
|
OptionalArnType = Shapes::StringShape.new(name: 'OptionalArnType')
|
186
188
|
PlacementType = Shapes::StructureShape.new(name: 'PlacementType')
|
187
189
|
Port = Shapes::IntegerShape.new(name: 'Port')
|
@@ -217,6 +219,7 @@ module Aws::EMR
|
|
217
219
|
SetVisibleToAllUsersInput = Shapes::StructureShape.new(name: 'SetVisibleToAllUsersInput')
|
218
220
|
ShrinkPolicy = Shapes::StructureShape.new(name: 'ShrinkPolicy')
|
219
221
|
SimpleScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'SimpleScalingPolicyConfiguration')
|
222
|
+
SpotProvisioningAllocationStrategy = Shapes::StringShape.new(name: 'SpotProvisioningAllocationStrategy')
|
220
223
|
SpotProvisioningSpecification = Shapes::StructureShape.new(name: 'SpotProvisioningSpecification')
|
221
224
|
SpotProvisioningTimeoutAction = Shapes::StringShape.new(name: 'SpotProvisioningTimeoutAction')
|
222
225
|
Statistic = Shapes::StringShape.new(name: 'Statistic')
|
@@ -587,7 +590,8 @@ module Aws::EMR
|
|
587
590
|
InstanceFleetModifyConfig.add_member(:target_spot_capacity, Shapes::ShapeRef.new(shape: WholeNumber, location_name: "TargetSpotCapacity"))
|
588
591
|
InstanceFleetModifyConfig.struct_class = Types::InstanceFleetModifyConfig
|
589
592
|
|
590
|
-
InstanceFleetProvisioningSpecifications.add_member(:spot_specification, Shapes::ShapeRef.new(shape: SpotProvisioningSpecification,
|
593
|
+
InstanceFleetProvisioningSpecifications.add_member(:spot_specification, Shapes::ShapeRef.new(shape: SpotProvisioningSpecification, location_name: "SpotSpecification"))
|
594
|
+
InstanceFleetProvisioningSpecifications.add_member(:on_demand_specification, Shapes::ShapeRef.new(shape: OnDemandProvisioningSpecification, location_name: "OnDemandSpecification"))
|
591
595
|
InstanceFleetProvisioningSpecifications.struct_class = Types::InstanceFleetProvisioningSpecifications
|
592
596
|
|
593
597
|
InstanceFleetStateChangeReason.add_member(:code, Shapes::ShapeRef.new(shape: InstanceFleetStateChangeReasonCode, location_name: "Code"))
|
@@ -902,6 +906,9 @@ module Aws::EMR
|
|
902
906
|
|
903
907
|
NewSupportedProductsList.member = Shapes::ShapeRef.new(shape: SupportedProductConfig)
|
904
908
|
|
909
|
+
OnDemandProvisioningSpecification.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: OnDemandProvisioningAllocationStrategy, required: true, location_name: "AllocationStrategy"))
|
910
|
+
OnDemandProvisioningSpecification.struct_class = Types::OnDemandProvisioningSpecification
|
911
|
+
|
905
912
|
PlacementType.add_member(:availability_zone, Shapes::ShapeRef.new(shape: XmlString, location_name: "AvailabilityZone"))
|
906
913
|
PlacementType.add_member(:availability_zones, Shapes::ShapeRef.new(shape: XmlStringMaxLen256List, location_name: "AvailabilityZones"))
|
907
914
|
PlacementType.struct_class = Types::PlacementType
|
@@ -1034,6 +1041,7 @@ module Aws::EMR
|
|
1034
1041
|
SpotProvisioningSpecification.add_member(:timeout_duration_minutes, Shapes::ShapeRef.new(shape: WholeNumber, required: true, location_name: "TimeoutDurationMinutes"))
|
1035
1042
|
SpotProvisioningSpecification.add_member(:timeout_action, Shapes::ShapeRef.new(shape: SpotProvisioningTimeoutAction, required: true, location_name: "TimeoutAction"))
|
1036
1043
|
SpotProvisioningSpecification.add_member(:block_duration_minutes, Shapes::ShapeRef.new(shape: WholeNumber, location_name: "BlockDurationMinutes"))
|
1044
|
+
SpotProvisioningSpecification.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: SpotProvisioningAllocationStrategy, location_name: "AllocationStrategy"))
|
1037
1045
|
SpotProvisioningSpecification.struct_class = Types::SpotProvisioningSpecification
|
1038
1046
|
|
1039
1047
|
Step.add_member(:id, Shapes::ShapeRef.new(shape: StepId, location_name: "Id"))
|
data/lib/aws-sdk-emr/types.rb
CHANGED
@@ -53,10 +53,14 @@ module Aws::EMR
|
|
53
53
|
# },
|
54
54
|
# ],
|
55
55
|
# launch_specifications: {
|
56
|
-
# spot_specification: {
|
56
|
+
# spot_specification: {
|
57
57
|
# timeout_duration_minutes: 1, # required
|
58
58
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
59
59
|
# block_duration_minutes: 1,
|
60
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
61
|
+
# },
|
62
|
+
# on_demand_specification: {
|
63
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
60
64
|
# },
|
61
65
|
# },
|
62
66
|
# },
|
@@ -2177,10 +2181,14 @@ module Aws::EMR
|
|
2177
2181
|
# },
|
2178
2182
|
# ],
|
2179
2183
|
# launch_specifications: {
|
2180
|
-
# spot_specification: {
|
2184
|
+
# spot_specification: {
|
2181
2185
|
# timeout_duration_minutes: 1, # required
|
2182
2186
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
2183
2187
|
# block_duration_minutes: 1,
|
2188
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
2189
|
+
# },
|
2190
|
+
# on_demand_specification: {
|
2191
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
2184
2192
|
# },
|
2185
2193
|
# },
|
2186
2194
|
# }
|
@@ -2305,10 +2313,13 @@ module Aws::EMR
|
|
2305
2313
|
end
|
2306
2314
|
|
2307
2315
|
# The launch specification for Spot instances in the fleet, which
|
2308
|
-
# determines the defined duration
|
2316
|
+
# determines the defined duration, provisioning timeout behavior, and
|
2317
|
+
# allocation strategy.
|
2309
2318
|
#
|
2310
2319
|
# <note markdown="1"> The instance fleet configuration is available only in Amazon EMR
|
2311
|
-
# versions 4.8.0 and later, excluding 5.0.x versions.
|
2320
|
+
# versions 4.8.0 and later, excluding 5.0.x versions. On-Demand and Spot
|
2321
|
+
# instance allocation strategies are available in Amazon EMR version
|
2322
|
+
# 5.12.1 and later.
|
2312
2323
|
#
|
2313
2324
|
# </note>
|
2314
2325
|
#
|
@@ -2316,22 +2327,40 @@ module Aws::EMR
|
|
2316
2327
|
# data as a hash:
|
2317
2328
|
#
|
2318
2329
|
# {
|
2319
|
-
# spot_specification: {
|
2330
|
+
# spot_specification: {
|
2320
2331
|
# timeout_duration_minutes: 1, # required
|
2321
2332
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
2322
2333
|
# block_duration_minutes: 1,
|
2334
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
2335
|
+
# },
|
2336
|
+
# on_demand_specification: {
|
2337
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
2323
2338
|
# },
|
2324
2339
|
# }
|
2325
2340
|
#
|
2326
2341
|
# @!attribute [rw] spot_specification
|
2327
2342
|
# The launch specification for Spot instances in the fleet, which
|
2328
|
-
# determines the defined duration
|
2343
|
+
# determines the defined duration, provisioning timeout behavior, and
|
2344
|
+
# allocation strategy.
|
2329
2345
|
# @return [Types::SpotProvisioningSpecification]
|
2330
2346
|
#
|
2347
|
+
# @!attribute [rw] on_demand_specification
|
2348
|
+
# The launch specification for On-Demand instances in the instance
|
2349
|
+
# fleet, which determines the allocation strategy.
|
2350
|
+
#
|
2351
|
+
# <note markdown="1"> The instance fleet configuration is available only in Amazon EMR
|
2352
|
+
# versions 4.8.0 and later, excluding 5.0.x versions. On-Demand
|
2353
|
+
# instances allocation strategy is available in Amazon EMR version
|
2354
|
+
# 5.12.1 and later.
|
2355
|
+
#
|
2356
|
+
# </note>
|
2357
|
+
# @return [Types::OnDemandProvisioningSpecification]
|
2358
|
+
#
|
2331
2359
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/InstanceFleetProvisioningSpecifications AWS API Documentation
|
2332
2360
|
#
|
2333
2361
|
class InstanceFleetProvisioningSpecifications < Struct.new(
|
2334
|
-
:spot_specification
|
2362
|
+
:spot_specification,
|
2363
|
+
:on_demand_specification)
|
2335
2364
|
SENSITIVE = []
|
2336
2365
|
include Aws::Structure
|
2337
2366
|
end
|
@@ -3498,10 +3527,14 @@ module Aws::EMR
|
|
3498
3527
|
# },
|
3499
3528
|
# ],
|
3500
3529
|
# launch_specifications: {
|
3501
|
-
# spot_specification: {
|
3530
|
+
# spot_specification: {
|
3502
3531
|
# timeout_duration_minutes: 1, # required
|
3503
3532
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
3504
3533
|
# block_duration_minutes: 1,
|
3534
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
3535
|
+
# },
|
3536
|
+
# on_demand_specification: {
|
3537
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
3505
3538
|
# },
|
3506
3539
|
# },
|
3507
3540
|
# },
|
@@ -4392,6 +4425,37 @@ module Aws::EMR
|
|
4392
4425
|
include Aws::Structure
|
4393
4426
|
end
|
4394
4427
|
|
4428
|
+
# The launch specification for On-Demand instances in the instance
|
4429
|
+
# fleet, which determines the allocation strategy.
|
4430
|
+
#
|
4431
|
+
# <note markdown="1"> The instance fleet configuration is available only in Amazon EMR
|
4432
|
+
# versions 4.8.0 and later, excluding 5.0.x versions. On-Demand
|
4433
|
+
# instances allocation strategy is available in Amazon EMR version
|
4434
|
+
# 5.12.1 and later.
|
4435
|
+
#
|
4436
|
+
# </note>
|
4437
|
+
#
|
4438
|
+
# @note When making an API call, you may pass OnDemandProvisioningSpecification
|
4439
|
+
# data as a hash:
|
4440
|
+
#
|
4441
|
+
# {
|
4442
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
4443
|
+
# }
|
4444
|
+
#
|
4445
|
+
# @!attribute [rw] allocation_strategy
|
4446
|
+
# Specifies the strategy to use in launching On-Demand instance
|
4447
|
+
# fleets. Currently, the only option is lowest-price (the default),
|
4448
|
+
# which launches the lowest price first.
|
4449
|
+
# @return [String]
|
4450
|
+
#
|
4451
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/OnDemandProvisioningSpecification AWS API Documentation
|
4452
|
+
#
|
4453
|
+
class OnDemandProvisioningSpecification < Struct.new(
|
4454
|
+
:allocation_strategy)
|
4455
|
+
SENSITIVE = []
|
4456
|
+
include Aws::Structure
|
4457
|
+
end
|
4458
|
+
|
4395
4459
|
# The Amazon EC2 Availability Zone configuration of the cluster (job
|
4396
4460
|
# flow).
|
4397
4461
|
#
|
@@ -4862,10 +4926,14 @@ module Aws::EMR
|
|
4862
4926
|
# },
|
4863
4927
|
# ],
|
4864
4928
|
# launch_specifications: {
|
4865
|
-
# spot_specification: {
|
4929
|
+
# spot_specification: {
|
4866
4930
|
# timeout_duration_minutes: 1, # required
|
4867
4931
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
4868
4932
|
# block_duration_minutes: 1,
|
4933
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
4934
|
+
# },
|
4935
|
+
# on_demand_specification: {
|
4936
|
+
# allocation_strategy: "lowest-price", # required, accepts lowest-price
|
4869
4937
|
# },
|
4870
4938
|
# },
|
4871
4939
|
# },
|
@@ -5638,11 +5706,13 @@ module Aws::EMR
|
|
5638
5706
|
end
|
5639
5707
|
|
5640
5708
|
# The launch specification for Spot instances in the instance fleet,
|
5641
|
-
# which determines the defined duration
|
5642
|
-
#
|
5709
|
+
# which determines the defined duration, provisioning timeout behavior,
|
5710
|
+
# and allocation strategy.
|
5643
5711
|
#
|
5644
5712
|
# <note markdown="1"> The instance fleet configuration is available only in Amazon EMR
|
5645
|
-
# versions 4.8.0 and later, excluding 5.0.x versions.
|
5713
|
+
# versions 4.8.0 and later, excluding 5.0.x versions. Spot instance
|
5714
|
+
# allocation strategy is available in Amazon EMR version 5.12.1 and
|
5715
|
+
# later.
|
5646
5716
|
#
|
5647
5717
|
# </note>
|
5648
5718
|
#
|
@@ -5653,6 +5723,7 @@ module Aws::EMR
|
|
5653
5723
|
# timeout_duration_minutes: 1, # required
|
5654
5724
|
# timeout_action: "SWITCH_TO_ON_DEMAND", # required, accepts SWITCH_TO_ON_DEMAND, TERMINATE_CLUSTER
|
5655
5725
|
# block_duration_minutes: 1,
|
5726
|
+
# allocation_strategy: "capacity-optimized", # accepts capacity-optimized
|
5656
5727
|
# }
|
5657
5728
|
#
|
5658
5729
|
# @!attribute [rw] timeout_duration_minutes
|
@@ -5685,12 +5756,20 @@ module Aws::EMR
|
|
5685
5756
|
# before it terminates.
|
5686
5757
|
# @return [Integer]
|
5687
5758
|
#
|
5759
|
+
# @!attribute [rw] allocation_strategy
|
5760
|
+
# Specifies the strategy to use in launching Spot instance fleets.
|
5761
|
+
# Currently, the only option is capacity-optimized (the default),
|
5762
|
+
# which launches instances from Spot instance pools with optimal
|
5763
|
+
# capacity for the number of instances that are launching.
|
5764
|
+
# @return [String]
|
5765
|
+
#
|
5688
5766
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/SpotProvisioningSpecification AWS API Documentation
|
5689
5767
|
#
|
5690
5768
|
class SpotProvisioningSpecification < Struct.new(
|
5691
5769
|
:timeout_duration_minutes,
|
5692
5770
|
:timeout_action,
|
5693
|
-
:block_duration_minutes
|
5771
|
+
:block_duration_minutes,
|
5772
|
+
:allocation_strategy)
|
5694
5773
|
SENSITIVE = []
|
5695
5774
|
include Aws::Structure
|
5696
5775
|
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.
|
4
|
+
version: 1.33.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: 2020-06-
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|