aws-sdk-ec2 1.97.0 → 1.98.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-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +16 -5
- data/lib/aws-sdk-ec2/client_api.rb +7 -0
- data/lib/aws-sdk-ec2/types.rb +103 -16
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51a7fa8098948d3a79769db34545e6b5f98a8afd
|
4
|
+
data.tar.gz: e1fdccb964be6d86d8f928ef477c2902dd107b98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15133f0609a47946e385dac6a3268851edcd5bf3935f978e683b0167e3a26aef76a86d57dd580b1705044d0002d5b5682002a6832d16135cdf4b5bc30ecf52d9
|
7
|
+
data.tar.gz: '04295567819a52287de14e4b01122ebd40257b0192d0e5353ef496549a47e1e86b9918ae1a2abd7f0ddcff6703bbb443041201d3e37b54a8259ed500c73fc0ea'
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -4052,7 +4052,7 @@ module Aws::EC2
|
|
4052
4052
|
# Describes the configuration of Spot Instances in an EC2 Fleet.
|
4053
4053
|
#
|
4054
4054
|
# @option params [Types::OnDemandOptionsRequest] :on_demand_options
|
4055
|
-
#
|
4055
|
+
# Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
4056
4056
|
#
|
4057
4057
|
# @option params [String] :excess_capacity_termination_policy
|
4058
4058
|
# Indicates whether running instances should be terminated if the total
|
@@ -4063,8 +4063,7 @@ module Aws::EC2
|
|
4063
4063
|
# The configuration for the EC2 Fleet.
|
4064
4064
|
#
|
4065
4065
|
# @option params [required, Types::TargetCapacitySpecificationRequest] :target_capacity_specification
|
4066
|
-
# The
|
4067
|
-
# `SpotTargetCapacity`, and `DefaultCapacityType` structure.
|
4066
|
+
# The number of units to request.
|
4068
4067
|
#
|
4069
4068
|
# @option params [Boolean] :terminate_instances_with_expiration
|
4070
4069
|
# Indicates whether running instances should be terminated when the EC2
|
@@ -4129,12 +4128,14 @@ module Aws::EC2
|
|
4129
4128
|
# single_instance_type: false,
|
4130
4129
|
# single_availability_zone: false,
|
4131
4130
|
# min_target_capacity: 1,
|
4131
|
+
# max_total_price: "String",
|
4132
4132
|
# },
|
4133
4133
|
# on_demand_options: {
|
4134
4134
|
# allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
|
4135
4135
|
# single_instance_type: false,
|
4136
4136
|
# single_availability_zone: false,
|
4137
4137
|
# min_target_capacity: 1,
|
4138
|
+
# max_total_price: "String",
|
4138
4139
|
# },
|
4139
4140
|
# excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
|
4140
4141
|
# launch_template_configs: [ # required
|
@@ -12462,10 +12463,12 @@ module Aws::EC2
|
|
12462
12463
|
# resp.fleets[0].spot_options.single_instance_type #=> Boolean
|
12463
12464
|
# resp.fleets[0].spot_options.single_availability_zone #=> Boolean
|
12464
12465
|
# resp.fleets[0].spot_options.min_target_capacity #=> Integer
|
12466
|
+
# resp.fleets[0].spot_options.max_total_price #=> String
|
12465
12467
|
# resp.fleets[0].on_demand_options.allocation_strategy #=> String, one of "lowest-price", "prioritized"
|
12466
12468
|
# resp.fleets[0].on_demand_options.single_instance_type #=> Boolean
|
12467
12469
|
# resp.fleets[0].on_demand_options.single_availability_zone #=> Boolean
|
12468
12470
|
# resp.fleets[0].on_demand_options.min_target_capacity #=> Integer
|
12471
|
+
# resp.fleets[0].on_demand_options.max_total_price #=> String
|
12469
12472
|
# resp.fleets[0].tags #=> Array
|
12470
12473
|
# resp.fleets[0].tags[0].key #=> String
|
12471
12474
|
# resp.fleets[0].tags[0].value #=> String
|
@@ -14204,7 +14207,7 @@ module Aws::EC2
|
|
14204
14207
|
req.send_request(options)
|
14205
14208
|
end
|
14206
14209
|
|
14207
|
-
# Describes the specified instances or all of
|
14210
|
+
# Describes the specified instances or all of AWS account's instances.
|
14208
14211
|
#
|
14209
14212
|
# If you specify one or more instance IDs, Amazon EC2 returns
|
14210
14213
|
# information for those instances. If you do not specify instance IDs,
|
@@ -18625,6 +18628,8 @@ module Aws::EC2
|
|
18625
18628
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_price #=> String
|
18626
18629
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.target_capacity #=> Integer
|
18627
18630
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_target_capacity #=> Integer
|
18631
|
+
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_max_total_price #=> String
|
18632
|
+
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_max_total_price #=> String
|
18628
18633
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.terminate_instances_with_expiration #=> Boolean
|
18629
18634
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.type #=> String, one of "request", "maintain", "instant"
|
18630
18635
|
# resp.spot_fleet_request_configs[0].spot_fleet_request_config.valid_from #=> Time
|
@@ -26123,6 +26128,9 @@ module Aws::EC2
|
|
26123
26128
|
# @option params [Integer] :target_capacity
|
26124
26129
|
# The size of the fleet.
|
26125
26130
|
#
|
26131
|
+
# @option params [Integer] :on_demand_target_capacity
|
26132
|
+
# The number of On-Demand Instances in the fleet.
|
26133
|
+
#
|
26126
26134
|
# @return [Types::ModifySpotFleetRequestResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
26127
26135
|
#
|
26128
26136
|
# * {Types::ModifySpotFleetRequestResponse#return #return} => Boolean
|
@@ -26164,6 +26172,7 @@ module Aws::EC2
|
|
26164
26172
|
# excess_capacity_termination_policy: "noTermination", # accepts noTermination, default
|
26165
26173
|
# spot_fleet_request_id: "String", # required
|
26166
26174
|
# target_capacity: 1,
|
26175
|
+
# on_demand_target_capacity: 1,
|
26167
26176
|
# })
|
26168
26177
|
#
|
26169
26178
|
# @example Response structure
|
@@ -29076,6 +29085,8 @@ module Aws::EC2
|
|
29076
29085
|
# spot_price: "String",
|
29077
29086
|
# target_capacity: 1, # required
|
29078
29087
|
# on_demand_target_capacity: 1,
|
29088
|
+
# on_demand_max_total_price: "String",
|
29089
|
+
# spot_max_total_price: "String",
|
29079
29090
|
# terminate_instances_with_expiration: false,
|
29080
29091
|
# type: "request", # accepts request, maintain, instant
|
29081
29092
|
# valid_from: Time.now,
|
@@ -31863,7 +31874,7 @@ module Aws::EC2
|
|
31863
31874
|
params: params,
|
31864
31875
|
config: config)
|
31865
31876
|
context[:gem_name] = 'aws-sdk-ec2'
|
31866
|
-
context[:gem_version] = '1.
|
31877
|
+
context[:gem_version] = '1.98.0'
|
31867
31878
|
Seahorse::Client::Request.new(handlers, context)
|
31868
31879
|
end
|
31869
31880
|
|
@@ -5762,6 +5762,7 @@ module Aws::EC2
|
|
5762
5762
|
ModifySpotFleetRequestRequest.add_member(:excess_capacity_termination_policy, Shapes::ShapeRef.new(shape: ExcessCapacityTerminationPolicy, location_name: "excessCapacityTerminationPolicy"))
|
5763
5763
|
ModifySpotFleetRequestRequest.add_member(:spot_fleet_request_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "spotFleetRequestId"))
|
5764
5764
|
ModifySpotFleetRequestRequest.add_member(:target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "targetCapacity"))
|
5765
|
+
ModifySpotFleetRequestRequest.add_member(:on_demand_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "OnDemandTargetCapacity"))
|
5765
5766
|
ModifySpotFleetRequestRequest.struct_class = Types::ModifySpotFleetRequestRequest
|
5766
5767
|
|
5767
5768
|
ModifySpotFleetRequestResponse.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
@@ -6083,12 +6084,14 @@ module Aws::EC2
|
|
6083
6084
|
OnDemandOptions.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleInstanceType"))
|
6084
6085
|
OnDemandOptions.add_member(:single_availability_zone, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleAvailabilityZone"))
|
6085
6086
|
OnDemandOptions.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "minTargetCapacity"))
|
6087
|
+
OnDemandOptions.add_member(:max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "maxTotalPrice"))
|
6086
6088
|
OnDemandOptions.struct_class = Types::OnDemandOptions
|
6087
6089
|
|
6088
6090
|
OnDemandOptionsRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: FleetOnDemandAllocationStrategy, location_name: "AllocationStrategy"))
|
6089
6091
|
OnDemandOptionsRequest.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleInstanceType"))
|
6090
6092
|
OnDemandOptionsRequest.add_member(:single_availability_zone, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleAvailabilityZone"))
|
6091
6093
|
OnDemandOptionsRequest.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MinTargetCapacity"))
|
6094
|
+
OnDemandOptionsRequest.add_member(:max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "MaxTotalPrice"))
|
6092
6095
|
OnDemandOptionsRequest.struct_class = Types::OnDemandOptionsRequest
|
6093
6096
|
|
6094
6097
|
OwnerStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "Owner")
|
@@ -7147,6 +7150,8 @@ module Aws::EC2
|
|
7147
7150
|
SpotFleetRequestConfigData.add_member(:spot_price, Shapes::ShapeRef.new(shape: String, location_name: "spotPrice"))
|
7148
7151
|
SpotFleetRequestConfigData.add_member(:target_capacity, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "targetCapacity"))
|
7149
7152
|
SpotFleetRequestConfigData.add_member(:on_demand_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "onDemandTargetCapacity"))
|
7153
|
+
SpotFleetRequestConfigData.add_member(:on_demand_max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "onDemandMaxTotalPrice"))
|
7154
|
+
SpotFleetRequestConfigData.add_member(:spot_max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "spotMaxTotalPrice"))
|
7150
7155
|
SpotFleetRequestConfigData.add_member(:terminate_instances_with_expiration, Shapes::ShapeRef.new(shape: Boolean, location_name: "terminateInstancesWithExpiration"))
|
7151
7156
|
SpotFleetRequestConfigData.add_member(:type, Shapes::ShapeRef.new(shape: FleetType, location_name: "type"))
|
7152
7157
|
SpotFleetRequestConfigData.add_member(:valid_from, Shapes::ShapeRef.new(shape: DateTime, location_name: "validFrom"))
|
@@ -7212,6 +7217,7 @@ module Aws::EC2
|
|
7212
7217
|
SpotOptions.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleInstanceType"))
|
7213
7218
|
SpotOptions.add_member(:single_availability_zone, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleAvailabilityZone"))
|
7214
7219
|
SpotOptions.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "minTargetCapacity"))
|
7220
|
+
SpotOptions.add_member(:max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "maxTotalPrice"))
|
7215
7221
|
SpotOptions.struct_class = Types::SpotOptions
|
7216
7222
|
|
7217
7223
|
SpotOptionsRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: SpotAllocationStrategy, location_name: "AllocationStrategy"))
|
@@ -7220,6 +7226,7 @@ module Aws::EC2
|
|
7220
7226
|
SpotOptionsRequest.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleInstanceType"))
|
7221
7227
|
SpotOptionsRequest.add_member(:single_availability_zone, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleAvailabilityZone"))
|
7222
7228
|
SpotOptionsRequest.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MinTargetCapacity"))
|
7229
|
+
SpotOptionsRequest.add_member(:max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "MaxTotalPrice"))
|
7223
7230
|
SpotOptionsRequest.struct_class = Types::SpotOptionsRequest
|
7224
7231
|
|
7225
7232
|
SpotPlacement.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -4675,12 +4675,14 @@ module Aws::EC2
|
|
4675
4675
|
# single_instance_type: false,
|
4676
4676
|
# single_availability_zone: false,
|
4677
4677
|
# min_target_capacity: 1,
|
4678
|
+
# max_total_price: "String",
|
4678
4679
|
# },
|
4679
4680
|
# on_demand_options: {
|
4680
4681
|
# allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
|
4681
4682
|
# single_instance_type: false,
|
4682
4683
|
# single_availability_zone: false,
|
4683
4684
|
# min_target_capacity: 1,
|
4685
|
+
# max_total_price: "String",
|
4684
4686
|
# },
|
4685
4687
|
# excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
|
4686
4688
|
# launch_template_configs: [ # required
|
@@ -4757,7 +4759,7 @@ module Aws::EC2
|
|
4757
4759
|
# @return [Types::SpotOptionsRequest]
|
4758
4760
|
#
|
4759
4761
|
# @!attribute [rw] on_demand_options
|
4760
|
-
#
|
4762
|
+
# Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
4761
4763
|
# @return [Types::OnDemandOptionsRequest]
|
4762
4764
|
#
|
4763
4765
|
# @!attribute [rw] excess_capacity_termination_policy
|
@@ -4771,8 +4773,7 @@ module Aws::EC2
|
|
4771
4773
|
# @return [Array<Types::FleetLaunchTemplateConfigRequest>]
|
4772
4774
|
#
|
4773
4775
|
# @!attribute [rw] target_capacity_specification
|
4774
|
-
# The
|
4775
|
-
# `SpotTargetCapacity`, and `DefaultCapacityType` structure.
|
4776
|
+
# The number of units to request.
|
4776
4777
|
# @return [Types::TargetCapacitySpecificationRequest]
|
4777
4778
|
#
|
4778
4779
|
# @!attribute [rw] terminate_instances_with_expiration
|
@@ -27623,6 +27624,7 @@ module Aws::EC2
|
|
27623
27624
|
# excess_capacity_termination_policy: "noTermination", # accepts noTermination, default
|
27624
27625
|
# spot_fleet_request_id: "String", # required
|
27625
27626
|
# target_capacity: 1,
|
27627
|
+
# on_demand_target_capacity: 1,
|
27626
27628
|
# }
|
27627
27629
|
#
|
27628
27630
|
# @!attribute [rw] excess_capacity_termination_policy
|
@@ -27639,12 +27641,17 @@ module Aws::EC2
|
|
27639
27641
|
# The size of the fleet.
|
27640
27642
|
# @return [Integer]
|
27641
27643
|
#
|
27644
|
+
# @!attribute [rw] on_demand_target_capacity
|
27645
|
+
# The number of On-Demand Instances in the fleet.
|
27646
|
+
# @return [Integer]
|
27647
|
+
#
|
27642
27648
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestRequest AWS API Documentation
|
27643
27649
|
#
|
27644
27650
|
class ModifySpotFleetRequestRequest < Struct.new(
|
27645
27651
|
:excess_capacity_termination_policy,
|
27646
27652
|
:spot_fleet_request_id,
|
27647
|
-
:target_capacity
|
27653
|
+
:target_capacity,
|
27654
|
+
:on_demand_target_capacity)
|
27648
27655
|
include Aws::Structure
|
27649
27656
|
end
|
27650
27657
|
|
@@ -29352,7 +29359,7 @@ module Aws::EC2
|
|
29352
29359
|
include Aws::Structure
|
29353
29360
|
end
|
29354
29361
|
|
29355
|
-
#
|
29362
|
+
# Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
29356
29363
|
#
|
29357
29364
|
# @!attribute [rw] allocation_strategy
|
29358
29365
|
# The order of the launch template overrides to use in fulfilling
|
@@ -29380,17 +29387,23 @@ module Aws::EC2
|
|
29380
29387
|
# instances.
|
29381
29388
|
# @return [Integer]
|
29382
29389
|
#
|
29390
|
+
# @!attribute [rw] max_total_price
|
29391
|
+
# The maximum amount per hour for On-Demand Instances that you're
|
29392
|
+
# willing to pay.
|
29393
|
+
# @return [String]
|
29394
|
+
#
|
29383
29395
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/OnDemandOptions AWS API Documentation
|
29384
29396
|
#
|
29385
29397
|
class OnDemandOptions < Struct.new(
|
29386
29398
|
:allocation_strategy,
|
29387
29399
|
:single_instance_type,
|
29388
29400
|
:single_availability_zone,
|
29389
|
-
:min_target_capacity
|
29401
|
+
:min_target_capacity,
|
29402
|
+
:max_total_price)
|
29390
29403
|
include Aws::Structure
|
29391
29404
|
end
|
29392
29405
|
|
29393
|
-
#
|
29406
|
+
# Describes the configuration of On-Demand Instances in an EC2 Fleet.
|
29394
29407
|
#
|
29395
29408
|
# @note When making an API call, you may pass OnDemandOptionsRequest
|
29396
29409
|
# data as a hash:
|
@@ -29400,6 +29413,7 @@ module Aws::EC2
|
|
29400
29413
|
# single_instance_type: false,
|
29401
29414
|
# single_availability_zone: false,
|
29402
29415
|
# min_target_capacity: 1,
|
29416
|
+
# max_total_price: "String",
|
29403
29417
|
# }
|
29404
29418
|
#
|
29405
29419
|
# @!attribute [rw] allocation_strategy
|
@@ -29428,13 +29442,19 @@ module Aws::EC2
|
|
29428
29442
|
# instances.
|
29429
29443
|
# @return [Integer]
|
29430
29444
|
#
|
29445
|
+
# @!attribute [rw] max_total_price
|
29446
|
+
# The maximum amount per hour for On-Demand Instances that you're
|
29447
|
+
# willing to pay.
|
29448
|
+
# @return [String]
|
29449
|
+
#
|
29431
29450
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/OnDemandOptionsRequest AWS API Documentation
|
29432
29451
|
#
|
29433
29452
|
class OnDemandOptionsRequest < Struct.new(
|
29434
29453
|
:allocation_strategy,
|
29435
29454
|
:single_instance_type,
|
29436
29455
|
:single_availability_zone,
|
29437
|
-
:min_target_capacity
|
29456
|
+
:min_target_capacity,
|
29457
|
+
:max_total_price)
|
29438
29458
|
include Aws::Structure
|
29439
29459
|
end
|
29440
29460
|
|
@@ -31707,6 +31727,8 @@ module Aws::EC2
|
|
31707
31727
|
# spot_price: "String",
|
31708
31728
|
# target_capacity: 1, # required
|
31709
31729
|
# on_demand_target_capacity: 1,
|
31730
|
+
# on_demand_max_total_price: "String",
|
31731
|
+
# spot_max_total_price: "String",
|
31710
31732
|
# terminate_instances_with_expiration: false,
|
31711
31733
|
# type: "request", # accepts request, maintain, instant
|
31712
31734
|
# valid_from: Time.now,
|
@@ -36204,6 +36226,8 @@ module Aws::EC2
|
|
36204
36226
|
# spot_price: "String",
|
36205
36227
|
# target_capacity: 1, # required
|
36206
36228
|
# on_demand_target_capacity: 1,
|
36229
|
+
# on_demand_max_total_price: "String",
|
36230
|
+
# spot_max_total_price: "String",
|
36207
36231
|
# terminate_instances_with_expiration: false,
|
36208
36232
|
# type: "request", # accepts request, maintain, instant
|
36209
36233
|
# valid_from: Time.now,
|
@@ -36320,6 +36344,30 @@ module Aws::EC2
|
|
36320
36344
|
# specify a target capacity of 0 and add capacity later.
|
36321
36345
|
# @return [Integer]
|
36322
36346
|
#
|
36347
|
+
# @!attribute [rw] on_demand_max_total_price
|
36348
|
+
# The maximum amount per hour for On-Demand Instances that you're
|
36349
|
+
# willing to pay. You can use the `onDemandMaxTotalPrice` parameter,
|
36350
|
+
# the `spotMaxTotalPrice` parameter, or both parameters to ensure that
|
36351
|
+
# your fleet cost does not exceed your budget. If you set a maximum
|
36352
|
+
# price per hour for the On-Demand Instances and Spot Instances in
|
36353
|
+
# your request, Spot Fleet will launch instances until it reaches the
|
36354
|
+
# maximum amount you're willing to pay. When the maximum amount
|
36355
|
+
# you're willing to pay is reached, the fleet stops launching
|
36356
|
+
# instances even if it hasn’t met the target capacity.
|
36357
|
+
# @return [String]
|
36358
|
+
#
|
36359
|
+
# @!attribute [rw] spot_max_total_price
|
36360
|
+
# The maximum amount per hour for Spot Instances that you're willing
|
36361
|
+
# to pay. You can use the `spotdMaxTotalPrice` parameter, the
|
36362
|
+
# `onDemandMaxTotalPrice` parameter, or both parameters to ensure that
|
36363
|
+
# your fleet cost does not exceed your budget. If you set a maximum
|
36364
|
+
# price per hour for the On-Demand Instances and Spot Instances in
|
36365
|
+
# your request, Spot Fleet will launch instances until it reaches the
|
36366
|
+
# maximum amount you're willing to pay. When the maximum amount
|
36367
|
+
# you're willing to pay is reached, the fleet stops launching
|
36368
|
+
# instances even if it hasn’t met the target capacity.
|
36369
|
+
# @return [String]
|
36370
|
+
#
|
36323
36371
|
# @!attribute [rw] terminate_instances_with_expiration
|
36324
36372
|
# Indicates whether running Spot Instances are terminated when the
|
36325
36373
|
# Spot Fleet request expires.
|
@@ -36395,6 +36443,8 @@ module Aws::EC2
|
|
36395
36443
|
:spot_price,
|
36396
36444
|
:target_capacity,
|
36397
36445
|
:on_demand_target_capacity,
|
36446
|
+
:on_demand_max_total_price,
|
36447
|
+
:spot_max_total_price,
|
36398
36448
|
:terminate_instances_with_expiration,
|
36399
36449
|
:type,
|
36400
36450
|
:valid_from,
|
@@ -36701,6 +36751,11 @@ module Aws::EC2
|
|
36701
36751
|
# instances.
|
36702
36752
|
# @return [Integer]
|
36703
36753
|
#
|
36754
|
+
# @!attribute [rw] max_total_price
|
36755
|
+
# The maximum amount per hour for Spot Instances that you're willing
|
36756
|
+
# to pay.
|
36757
|
+
# @return [String]
|
36758
|
+
#
|
36704
36759
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotOptions AWS API Documentation
|
36705
36760
|
#
|
36706
36761
|
class SpotOptions < Struct.new(
|
@@ -36709,7 +36764,8 @@ module Aws::EC2
|
|
36709
36764
|
:instance_pools_to_use_count,
|
36710
36765
|
:single_instance_type,
|
36711
36766
|
:single_availability_zone,
|
36712
|
-
:min_target_capacity
|
36767
|
+
:min_target_capacity,
|
36768
|
+
:max_total_price)
|
36713
36769
|
include Aws::Structure
|
36714
36770
|
end
|
36715
36771
|
|
@@ -36725,6 +36781,7 @@ module Aws::EC2
|
|
36725
36781
|
# single_instance_type: false,
|
36726
36782
|
# single_availability_zone: false,
|
36727
36783
|
# min_target_capacity: 1,
|
36784
|
+
# max_total_price: "String",
|
36728
36785
|
# }
|
36729
36786
|
#
|
36730
36787
|
# @!attribute [rw] allocation_strategy
|
@@ -36761,6 +36818,11 @@ module Aws::EC2
|
|
36761
36818
|
# instances.
|
36762
36819
|
# @return [Integer]
|
36763
36820
|
#
|
36821
|
+
# @!attribute [rw] max_total_price
|
36822
|
+
# The maximum amount per hour for Spot Instances that you're willing
|
36823
|
+
# to pay.
|
36824
|
+
# @return [String]
|
36825
|
+
#
|
36764
36826
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotOptionsRequest AWS API Documentation
|
36765
36827
|
#
|
36766
36828
|
class SpotOptionsRequest < Struct.new(
|
@@ -36769,7 +36831,8 @@ module Aws::EC2
|
|
36769
36831
|
:instance_pools_to_use_count,
|
36770
36832
|
:single_instance_type,
|
36771
36833
|
:single_availability_zone,
|
36772
|
-
:min_target_capacity
|
36834
|
+
:min_target_capacity,
|
36835
|
+
:max_total_price)
|
36773
36836
|
include Aws::Structure
|
36774
36837
|
end
|
36775
36838
|
|
@@ -37389,17 +37452,30 @@ module Aws::EC2
|
|
37389
37452
|
# If the request type is `maintain`, you can specify a target capacity
|
37390
37453
|
# of 0 and add capacity later.
|
37391
37454
|
#
|
37455
|
+
# You can use the On-Demand Instance `MaxTotalPrice` parameter, the Spot
|
37456
|
+
# Instance `MaxTotalPrice`, or both to ensure your fleet cost does not
|
37457
|
+
# exceed your budget. If you set a maximum price per hour for the
|
37458
|
+
# On-Demand Instances and Spot Instances in your request, EC2 Fleet will
|
37459
|
+
# launch instances until it reaches the maximum amount you're willing
|
37460
|
+
# to pay. When the maximum amount you're willing to pay is reached, the
|
37461
|
+
# fleet stops launching instances even if it hasn’t met the target
|
37462
|
+
# capacity. The `MaxTotalPrice` parameters are located in and
|
37463
|
+
#
|
37392
37464
|
# @!attribute [rw] total_target_capacity
|
37393
37465
|
# The number of units to request, filled using
|
37394
37466
|
# `DefaultTargetCapacityType`.
|
37395
37467
|
# @return [Integer]
|
37396
37468
|
#
|
37397
37469
|
# @!attribute [rw] on_demand_target_capacity
|
37398
|
-
# The number of On-Demand units to request.
|
37470
|
+
# The number of On-Demand units to request. If you specify a target
|
37471
|
+
# capacity for Spot units, you cannot specify a target capacity for
|
37472
|
+
# On-Demand units.
|
37399
37473
|
# @return [Integer]
|
37400
37474
|
#
|
37401
37475
|
# @!attribute [rw] spot_target_capacity
|
37402
|
-
# The maximum number of Spot units to launch.
|
37476
|
+
# The maximum number of Spot units to launch. If you specify a target
|
37477
|
+
# capacity for On-Demand units, you cannot specify a target capacity
|
37478
|
+
# for Spot units.
|
37403
37479
|
# @return [Integer]
|
37404
37480
|
#
|
37405
37481
|
# @!attribute [rw] default_target_capacity_type
|
@@ -37418,10 +37494,21 @@ module Aws::EC2
|
|
37418
37494
|
end
|
37419
37495
|
|
37420
37496
|
# The number of units to request. You can choose to set the target
|
37421
|
-
# capacity
|
37422
|
-
#
|
37423
|
-
#
|
37424
|
-
# of 0 and add
|
37497
|
+
# capacity as the number of instances. Or you can set the target
|
37498
|
+
# capacity to a performance characteristic that is important to your
|
37499
|
+
# application workload, such as vCPUs, memory, or I/O. If the request
|
37500
|
+
# type is `maintain`, you can specify a target capacity of 0 and add
|
37501
|
+
# capacity later.
|
37502
|
+
#
|
37503
|
+
# You can use the On-Demand Instance `MaxTotalPrice` parameter, the Spot
|
37504
|
+
# Instance `MaxTotalPrice` parameter, or both parameters to ensure that
|
37505
|
+
# your fleet cost does not exceed your budget. If you set a maximum
|
37506
|
+
# price per hour for the On-Demand Instances and Spot Instances in your
|
37507
|
+
# request, EC2 Fleet will launch instances until it reaches the maximum
|
37508
|
+
# amount you're willing to pay. When the maximum amount you're willing
|
37509
|
+
# to pay is reached, the fleet stops launching instances even if it
|
37510
|
+
# hasn’t met the target capacity. The `MaxTotalPrice` parameters are
|
37511
|
+
# located in and .
|
37425
37512
|
#
|
37426
37513
|
# @note When making an API call, you may pass TargetCapacitySpecificationRequest
|
37427
37514
|
# data as a hash:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.98.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
|
+
date: 2019-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '3'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 3.
|
36
|
+
version: 3.58.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '3'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.
|
46
|
+
version: 3.58.0
|
47
47
|
description: Official AWS Ruby gem for Amazon Elastic Compute Cloud (Amazon EC2).
|
48
48
|
This gem is part of the AWS SDK for Ruby.
|
49
49
|
email:
|