aws-sdk-ec2 1.436.0 → 1.438.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: b384d939981e4c75f43073584ddcdaf9898a06045188ef8f4a12e51edc2fd972
4
- data.tar.gz: b37f384eba738f49d039247154d9c5bb647e44dec2ab7efc8dfe01b1ff3d79d5
3
+ metadata.gz: d8b0b4f6083cef9b9f4b854c76218dbcc3f6aa7e0b93ed743c641bcf7e4541cb
4
+ data.tar.gz: fe1c19ff98004560ef8627f055eaebbe739faf04747aced22c1b807d649fc481
5
5
  SHA512:
6
- metadata.gz: 7613ff00e0d3221b4612d0948c02da9d3d42d9b507be6998755412ed3e962ac2be385f3fafcf3a85cb07c8eb0f921066245f661647cdbd9d64a3d715882b8368
7
- data.tar.gz: 8d9c6d915164e9b0f2daee7fd4423f1b4970576fd8546cd2561a7190b31eb21df28b964fe591e54b60299e831e164b64246655aab57c271f60225973b386e927
6
+ metadata.gz: ce154776dee6cb655c6c4cc439e09a6fe1a6024a0dee73685f0d88499365dc943eacd5e99a65d74e594d3639289ca4b74d9efcf572f76482f923b01dfe7b2b31
7
+ data.tar.gz: bb5b36b6b5d17d83176a236ca2db1719b1729ff9008a1636f10963071481bb01b8f814df640e09a29cd98512b8e933e46c6d61463e9e98617b209971243cf246
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.438.0 (2024-02-14)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.437.0 (2024-01-29)
10
+ ------------------
11
+
12
+ * Feature - EC2 Fleet customers who use attribute based instance-type selection can now intuitively define their Spot instances price protection limit as a percentage of the lowest priced On-Demand instance type.
13
+
4
14
  1.436.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.436.0
1
+ 1.438.0
@@ -6433,6 +6433,7 @@ module Aws::EC2
6433
6433
  # max: 1.0,
6434
6434
  # },
6435
6435
  # allowed_instance_types: ["AllowedInstanceType"],
6436
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
6436
6437
  # },
6437
6438
  # image_id: "ImageId",
6438
6439
  # },
@@ -6519,6 +6520,7 @@ module Aws::EC2
6519
6520
  # resp.errors[0].launch_template_and_overrides.overrides.instance_requirements.network_bandwidth_gbps.max #=> Float
6520
6521
  # resp.errors[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types #=> Array
6521
6522
  # resp.errors[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types[0] #=> String
6523
+ # resp.errors[0].launch_template_and_overrides.overrides.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
6522
6524
  # resp.errors[0].launch_template_and_overrides.overrides.image_id #=> String
6523
6525
  # resp.errors[0].lifecycle #=> String, one of "spot", "on-demand"
6524
6526
  # resp.errors[0].error_code #=> String
@@ -6574,6 +6576,7 @@ module Aws::EC2
6574
6576
  # resp.instances[0].launch_template_and_overrides.overrides.instance_requirements.network_bandwidth_gbps.max #=> Float
6575
6577
  # resp.instances[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types #=> Array
6576
6578
  # resp.instances[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types[0] #=> String
6579
+ # resp.instances[0].launch_template_and_overrides.overrides.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
6577
6580
  # resp.instances[0].launch_template_and_overrides.overrides.image_id #=> String
6578
6581
  # resp.instances[0].lifecycle #=> String, one of "spot", "on-demand"
6579
6582
  # resp.instances[0].instance_ids #=> Array
@@ -8416,6 +8419,7 @@ module Aws::EC2
8416
8419
  # max: 1.0,
8417
8420
  # },
8418
8421
  # allowed_instance_types: ["AllowedInstanceType"],
8422
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
8419
8423
  # },
8420
8424
  # private_dns_name_options: {
8421
8425
  # hostname_type: "ip-name", # accepts ip-name, resource-name
@@ -8812,6 +8816,7 @@ module Aws::EC2
8812
8816
  # max: 1.0,
8813
8817
  # },
8814
8818
  # allowed_instance_types: ["AllowedInstanceType"],
8819
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
8815
8820
  # },
8816
8821
  # private_dns_name_options: {
8817
8822
  # hostname_type: "ip-name", # accepts ip-name, resource-name
@@ -8978,6 +8983,7 @@ module Aws::EC2
8978
8983
  # resp.launch_template_version.launch_template_data.instance_requirements.network_bandwidth_gbps.max #=> Float
8979
8984
  # resp.launch_template_version.launch_template_data.instance_requirements.allowed_instance_types #=> Array
8980
8985
  # resp.launch_template_version.launch_template_data.instance_requirements.allowed_instance_types[0] #=> String
8986
+ # resp.launch_template_version.launch_template_data.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
8981
8987
  # resp.launch_template_version.launch_template_data.private_dns_name_options.hostname_type #=> String, one of "ip-name", "resource-name"
8982
8988
  # resp.launch_template_version.launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
8983
8989
  # resp.launch_template_version.launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
@@ -22284,6 +22290,7 @@ module Aws::EC2
22284
22290
  # resp.fleets[0].launch_template_configs[0].overrides[0].instance_requirements.network_bandwidth_gbps.max #=> Float
22285
22291
  # resp.fleets[0].launch_template_configs[0].overrides[0].instance_requirements.allowed_instance_types #=> Array
22286
22292
  # resp.fleets[0].launch_template_configs[0].overrides[0].instance_requirements.allowed_instance_types[0] #=> String
22293
+ # resp.fleets[0].launch_template_configs[0].overrides[0].instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
22287
22294
  # resp.fleets[0].launch_template_configs[0].overrides[0].image_id #=> String
22288
22295
  # resp.fleets[0].target_capacity_specification.total_target_capacity #=> Integer
22289
22296
  # resp.fleets[0].target_capacity_specification.on_demand_target_capacity #=> Integer
@@ -22364,6 +22371,7 @@ module Aws::EC2
22364
22371
  # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.instance_requirements.network_bandwidth_gbps.max #=> Float
22365
22372
  # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types #=> Array
22366
22373
  # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types[0] #=> String
22374
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
22367
22375
  # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.image_id #=> String
22368
22376
  # resp.fleets[0].errors[0].lifecycle #=> String, one of "spot", "on-demand"
22369
22377
  # resp.fleets[0].errors[0].error_code #=> String
@@ -22419,6 +22427,7 @@ module Aws::EC2
22419
22427
  # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.instance_requirements.network_bandwidth_gbps.max #=> Float
22420
22428
  # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types #=> Array
22421
22429
  # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.instance_requirements.allowed_instance_types[0] #=> String
22430
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
22422
22431
  # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.image_id #=> String
22423
22432
  # resp.fleets[0].instances[0].lifecycle #=> String, one of "spot", "on-demand"
22424
22433
  # resp.fleets[0].instances[0].instance_ids #=> Array
@@ -26980,6 +26989,7 @@ module Aws::EC2
26980
26989
  # resp.launch_template_versions[0].launch_template_data.instance_requirements.network_bandwidth_gbps.max #=> Float
26981
26990
  # resp.launch_template_versions[0].launch_template_data.instance_requirements.allowed_instance_types #=> Array
26982
26991
  # resp.launch_template_versions[0].launch_template_data.instance_requirements.allowed_instance_types[0] #=> String
26992
+ # resp.launch_template_versions[0].launch_template_data.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
26983
26993
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.hostname_type #=> String, one of "ip-name", "resource-name"
26984
26994
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
26985
26995
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
@@ -32736,6 +32746,7 @@ module Aws::EC2
32736
32746
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].instance_requirements.network_bandwidth_gbps.max #=> Float
32737
32747
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].instance_requirements.allowed_instance_types #=> Array
32738
32748
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].instance_requirements.allowed_instance_types[0] #=> String
32749
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
32739
32750
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs #=> Array
32740
32751
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].launch_template_specification.launch_template_id #=> String
32741
32752
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].launch_template_specification.launch_template_name #=> String
@@ -32787,6 +32798,7 @@ module Aws::EC2
32787
32798
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].overrides[0].instance_requirements.network_bandwidth_gbps.max #=> Float
32788
32799
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].overrides[0].instance_requirements.allowed_instance_types #=> Array
32789
32800
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].overrides[0].instance_requirements.allowed_instance_types[0] #=> String
32801
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].overrides[0].instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
32790
32802
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_price #=> String
32791
32803
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.target_capacity #=> Integer
32792
32804
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_target_capacity #=> Integer
@@ -41464,6 +41476,7 @@ module Aws::EC2
41464
41476
  # max: 1.0,
41465
41477
  # },
41466
41478
  # allowed_instance_types: ["AllowedInstanceType"],
41479
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
41467
41480
  # },
41468
41481
  # max_results: 1,
41469
41482
  # next_token: "String",
@@ -42356,6 +42369,7 @@ module Aws::EC2
42356
42369
  # resp.launch_template_data.instance_requirements.network_bandwidth_gbps.max #=> Float
42357
42370
  # resp.launch_template_data.instance_requirements.allowed_instance_types #=> Array
42358
42371
  # resp.launch_template_data.instance_requirements.allowed_instance_types[0] #=> String
42372
+ # resp.launch_template_data.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
42359
42373
  # resp.launch_template_data.private_dns_name_options.hostname_type #=> String, one of "ip-name", "resource-name"
42360
42374
  # resp.launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
42361
42375
  # resp.launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
@@ -43424,6 +43438,7 @@ module Aws::EC2
43424
43438
  # max: 1.0,
43425
43439
  # },
43426
43440
  # allowed_instance_types: ["AllowedInstanceType"],
43441
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
43427
43442
  # },
43428
43443
  # },
43429
43444
  # dry_run: false,
@@ -46010,6 +46025,7 @@ module Aws::EC2
46010
46025
  # max: 1.0,
46011
46026
  # },
46012
46027
  # allowed_instance_types: ["AllowedInstanceType"],
46028
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
46013
46029
  # },
46014
46030
  # image_id: "ImageId",
46015
46031
  # },
@@ -48631,6 +48647,7 @@ module Aws::EC2
48631
48647
  # max: 1.0,
48632
48648
  # },
48633
48649
  # allowed_instance_types: ["AllowedInstanceType"],
48650
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
48634
48651
  # },
48635
48652
  # },
48636
48653
  # ],
@@ -53910,6 +53927,7 @@ module Aws::EC2
53910
53927
  # max: 1.0,
53911
53928
  # },
53912
53929
  # allowed_instance_types: ["AllowedInstanceType"],
53930
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
53913
53931
  # },
53914
53932
  # },
53915
53933
  # ],
@@ -53979,6 +53997,7 @@ module Aws::EC2
53979
53997
  # max: 1.0,
53980
53998
  # },
53981
53999
  # allowed_instance_types: ["AllowedInstanceType"],
54000
+ # max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
53982
54001
  # },
53983
54002
  # },
53984
54003
  # ],
@@ -58757,7 +58776,7 @@ module Aws::EC2
58757
58776
  params: params,
58758
58777
  config: config)
58759
58778
  context[:gem_name] = 'aws-sdk-ec2'
58760
- context[:gem_version] = '1.436.0'
58779
+ context[:gem_version] = '1.438.0'
58761
58780
  Seahorse::Client::Request.new(handlers, context)
58762
58781
  end
58763
58782
 
@@ -10136,6 +10136,7 @@ module Aws::EC2
10136
10136
  InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiB, location_name: "acceleratorTotalMemoryMiB"))
10137
10137
  InstanceRequirements.add_member(:network_bandwidth_gbps, Shapes::ShapeRef.new(shape: NetworkBandwidthGbps, location_name: "networkBandwidthGbps"))
10138
10138
  InstanceRequirements.add_member(:allowed_instance_types, Shapes::ShapeRef.new(shape: AllowedInstanceTypeSet, location_name: "allowedInstanceTypeSet"))
10139
+ InstanceRequirements.add_member(:max_spot_price_as_percentage_of_optimal_on_demand_price, Shapes::ShapeRef.new(shape: Integer, location_name: "maxSpotPriceAsPercentageOfOptimalOnDemandPrice"))
10139
10140
  InstanceRequirements.struct_class = Types::InstanceRequirements
10140
10141
 
10141
10142
  InstanceRequirementsRequest.add_member(:v_cpu_count, Shapes::ShapeRef.new(shape: VCpuCountRangeRequest, required: true, location_name: "VCpuCount"))
@@ -10161,6 +10162,7 @@ module Aws::EC2
10161
10162
  InstanceRequirementsRequest.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
10162
10163
  InstanceRequirementsRequest.add_member(:network_bandwidth_gbps, Shapes::ShapeRef.new(shape: NetworkBandwidthGbpsRequest, location_name: "NetworkBandwidthGbps"))
10163
10164
  InstanceRequirementsRequest.add_member(:allowed_instance_types, Shapes::ShapeRef.new(shape: AllowedInstanceTypeSet, location_name: "AllowedInstanceType"))
10165
+ InstanceRequirementsRequest.add_member(:max_spot_price_as_percentage_of_optimal_on_demand_price, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice"))
10164
10166
  InstanceRequirementsRequest.struct_class = Types::InstanceRequirementsRequest
10165
10167
 
10166
10168
  InstanceRequirementsWithMetadataRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, location_name: "ArchitectureType"))
@@ -40197,25 +40197,36 @@ module Aws::EC2
40197
40197
  # @return [Array<String>]
40198
40198
  #
40199
40199
  # @!attribute [rw] spot_max_price_percentage_over_lowest_price
40200
- # The price protection threshold for Spot Instances. This is the
40201
- # maximum you’ll pay for a Spot Instance, expressed as a percentage
40202
- # above the least expensive current generation M, C, or R instance
40203
- # type with your specified attributes. When Amazon EC2 selects
40204
- # instance types with your attributes, it excludes instance types
40205
- # priced above your threshold.
40200
+ # \[Price protection\] The price protection threshold for Spot
40201
+ # Instances, as a percentage higher than an identified Spot price. The
40202
+ # identified Spot price is the Spot price of the lowest priced current
40203
+ # generation C, M, or R instance type with your specified attributes.
40204
+ # If no current generation C, M, or R instance type matches your
40205
+ # attributes, then the identified Spot price is from the lowest priced
40206
+ # current generation instance types, and failing that, from the lowest
40207
+ # priced previous generation instance types that match your
40208
+ # attributes. When Amazon EC2 selects instance types with your
40209
+ # attributes, it will exclude instance types whose Spot price exceeds
40210
+ # your specified threshold.
40206
40211
  #
40207
40212
  # The parameter accepts an integer, which Amazon EC2 interprets as a
40208
40213
  # percentage.
40209
40214
  #
40210
- # To turn off price protection, specify a high value, such as
40211
- # `999999`.
40215
+ # To indicate no price protection threshold, specify a high value,
40216
+ # such as `999999`.
40217
+ #
40218
+ # If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the
40219
+ # price protection threshold is applied based on the per-vCPU or
40220
+ # per-memory price instead of the per-instance price.
40212
40221
  #
40213
40222
  # This parameter is not supported for [GetSpotPlacementScores][1] and
40214
40223
  # [GetInstanceTypesFromInstanceRequirements][2].
40215
40224
  #
40216
- # <note markdown="1"> If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the
40217
- # price protection threshold is applied based on the per-vCPU or
40218
- # per-memory price instead of the per-instance price.
40225
+ # <note markdown="1"> Only one of `SpotMaxPricePercentageOverLowestPrice` or
40226
+ # `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified.
40227
+ # If you don't specify either, then
40228
+ # `SpotMaxPricePercentageOverLowestPrice` is used and the value for
40229
+ # that parameter defaults to `100`.
40219
40230
  #
40220
40231
  # </note>
40221
40232
  #
@@ -40228,12 +40239,13 @@ module Aws::EC2
40228
40239
  # @return [Integer]
40229
40240
  #
40230
40241
  # @!attribute [rw] on_demand_max_price_percentage_over_lowest_price
40231
- # The price protection threshold for On-Demand Instances. This is the
40232
- # maximum you’ll pay for an On-Demand Instance, expressed as a
40233
- # percentage above the least expensive current generation M, C, or R
40234
- # instance type with your specified attributes. When Amazon EC2
40235
- # selects instance types with your attributes, it excludes instance
40236
- # types priced above your threshold.
40242
+ # \[Price protection\] The price protection threshold for On-Demand
40243
+ # Instances, as a percentage higher than an identified On-Demand
40244
+ # price. The identified On-Demand price is the price of the lowest
40245
+ # priced current generation C, M, or R instance type with your
40246
+ # specified attributes. When Amazon EC2 selects instance types with
40247
+ # your attributes, it will exclude instance types whose price exceeds
40248
+ # your specified threshold.
40237
40249
  #
40238
40250
  # The parameter accepts an integer, which Amazon EC2 interprets as a
40239
40251
  # percentage.
@@ -40469,6 +40481,38 @@ module Aws::EC2
40469
40481
  # Default: All instance types
40470
40482
  # @return [Array<String>]
40471
40483
  #
40484
+ # @!attribute [rw] max_spot_price_as_percentage_of_optimal_on_demand_price
40485
+ # \[Price protection\] The price protection threshold for Spot
40486
+ # Instances, as a percentage of an identified On-Demand price. The
40487
+ # identified On-Demand price is the price of the lowest priced current
40488
+ # generation C, M, or R instance type with your specified attributes.
40489
+ # If no current generation C, M, or R instance type matches your
40490
+ # attributes, then the identified price is from the lowest priced
40491
+ # current generation instance types, and failing that, from the lowest
40492
+ # priced previous generation instance types that match your
40493
+ # attributes. When Amazon EC2 selects instance types with your
40494
+ # attributes, it will exclude instance types whose price exceeds your
40495
+ # specified threshold.
40496
+ #
40497
+ # The parameter accepts an integer, which Amazon EC2 interprets as a
40498
+ # percentage.
40499
+ #
40500
+ # To indicate no price protection threshold, specify a high value,
40501
+ # such as `999999`.
40502
+ #
40503
+ # If you set `DesiredCapacityType` to `vcpu` or `memory-mib`, the
40504
+ # price protection threshold is based on the per vCPU or per memory
40505
+ # price instead of the per instance price.
40506
+ #
40507
+ # <note markdown="1"> Only one of `SpotMaxPricePercentageOverLowestPrice` or
40508
+ # `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified.
40509
+ # If you don't specify either, then
40510
+ # `SpotMaxPricePercentageOverLowestPrice` is used and the value for
40511
+ # that parameter defaults to `100`.
40512
+ #
40513
+ # </note>
40514
+ # @return [Integer]
40515
+ #
40472
40516
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceRequirements AWS API Documentation
40473
40517
  #
40474
40518
  class InstanceRequirements < Struct.new(
@@ -40494,7 +40538,8 @@ module Aws::EC2
40494
40538
  :accelerator_names,
40495
40539
  :accelerator_total_memory_mi_b,
40496
40540
  :network_bandwidth_gbps,
40497
- :allowed_instance_types)
40541
+ :allowed_instance_types,
40542
+ :max_spot_price_as_percentage_of_optimal_on_demand_price)
40498
40543
  SENSITIVE = []
40499
40544
  include Aws::Structure
40500
40545
  end
@@ -40622,25 +40667,36 @@ module Aws::EC2
40622
40667
  # @return [Array<String>]
40623
40668
  #
40624
40669
  # @!attribute [rw] spot_max_price_percentage_over_lowest_price
40625
- # The price protection threshold for Spot Instance. This is the
40626
- # maximum you’ll pay for an Spot Instance, expressed as a percentage
40627
- # above the least expensive current generation M, C, or R instance
40628
- # type with your specified attributes. When Amazon EC2 selects
40629
- # instance types with your attributes, it excludes instance types
40630
- # priced above your threshold.
40670
+ # \[Price protection\] The price protection threshold for Spot
40671
+ # Instances, as a percentage higher than an identified Spot price. The
40672
+ # identified Spot price is the Spot price of the lowest priced current
40673
+ # generation C, M, or R instance type with your specified attributes.
40674
+ # If no current generation C, M, or R instance type matches your
40675
+ # attributes, then the identified Spot price is from the lowest priced
40676
+ # current generation instance types, and failing that, from the lowest
40677
+ # priced previous generation instance types that match your
40678
+ # attributes. When Amazon EC2 selects instance types with your
40679
+ # attributes, it will exclude instance types whose Spot price exceeds
40680
+ # your specified threshold.
40631
40681
  #
40632
40682
  # The parameter accepts an integer, which Amazon EC2 interprets as a
40633
40683
  # percentage.
40634
40684
  #
40635
- # To turn off price protection, specify a high value, such as
40636
- # `999999`.
40685
+ # To indicate no price protection threshold, specify a high value,
40686
+ # such as `999999`.
40687
+ #
40688
+ # If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the
40689
+ # price protection threshold is applied based on the per-vCPU or
40690
+ # per-memory price instead of the per-instance price.
40637
40691
  #
40638
40692
  # This parameter is not supported for [GetSpotPlacementScores][1] and
40639
40693
  # [GetInstanceTypesFromInstanceRequirements][2].
40640
40694
  #
40641
- # <note markdown="1"> If you set `TargetCapacityUnitType` to `vcpu` or `memory-mib`, the
40642
- # price protection threshold is applied based on the per-vCPU or
40643
- # per-memory price instead of the per-instance price.
40695
+ # <note markdown="1"> Only one of `SpotMaxPricePercentageOverLowestPrice` or
40696
+ # `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified.
40697
+ # If you don't specify either, then
40698
+ # `SpotMaxPricePercentageOverLowestPrice` is used and the value for
40699
+ # that parameter defaults to `100`.
40644
40700
  #
40645
40701
  # </note>
40646
40702
  #
@@ -40653,18 +40709,19 @@ module Aws::EC2
40653
40709
  # @return [Integer]
40654
40710
  #
40655
40711
  # @!attribute [rw] on_demand_max_price_percentage_over_lowest_price
40656
- # The price protection threshold for On-Demand Instances. This is the
40657
- # maximum you’ll pay for an On-Demand Instance, expressed as a
40658
- # percentage above the least expensive current generation M, C, or R
40659
- # instance type with your specified attributes. When Amazon EC2
40660
- # selects instance types with your attributes, it excludes instance
40661
- # types priced above your threshold.
40712
+ # \[Price protection\] The price protection threshold for On-Demand
40713
+ # Instances, as a percentage higher than an identified On-Demand
40714
+ # price. The identified On-Demand price is the price of the lowest
40715
+ # priced current generation C, M, or R instance type with your
40716
+ # specified attributes. When Amazon EC2 selects instance types with
40717
+ # your attributes, it will exclude instance types whose price exceeds
40718
+ # your specified threshold.
40662
40719
  #
40663
40720
  # The parameter accepts an integer, which Amazon EC2 interprets as a
40664
40721
  # percentage.
40665
40722
  #
40666
- # To turn off price protection, specify a high value, such as
40667
- # `999999`.
40723
+ # To indicate no price protection threshold, specify a high value,
40724
+ # such as `999999`.
40668
40725
  #
40669
40726
  # This parameter is not supported for [GetSpotPlacementScores][1] and
40670
40727
  # [GetInstanceTypesFromInstanceRequirements][2].
@@ -40899,6 +40956,38 @@ module Aws::EC2
40899
40956
  # Default: All instance types
40900
40957
  # @return [Array<String>]
40901
40958
  #
40959
+ # @!attribute [rw] max_spot_price_as_percentage_of_optimal_on_demand_price
40960
+ # \[Price protection\] The price protection threshold for Spot
40961
+ # Instances, as a percentage of an identified On-Demand price. The
40962
+ # identified On-Demand price is the price of the lowest priced current
40963
+ # generation C, M, or R instance type with your specified attributes.
40964
+ # If no current generation C, M, or R instance type matches your
40965
+ # attributes, then the identified price is from the lowest priced
40966
+ # current generation instance types, and failing that, from the lowest
40967
+ # priced previous generation instance types that match your
40968
+ # attributes. When Amazon EC2 selects instance types with your
40969
+ # attributes, it will exclude instance types whose price exceeds your
40970
+ # specified threshold.
40971
+ #
40972
+ # The parameter accepts an integer, which Amazon EC2 interprets as a
40973
+ # percentage.
40974
+ #
40975
+ # To indicate no price protection threshold, specify a high value,
40976
+ # such as `999999`.
40977
+ #
40978
+ # If you set `DesiredCapacityType` to `vcpu` or `memory-mib`, the
40979
+ # price protection threshold is based on the per vCPU or per memory
40980
+ # price instead of the per instance price.
40981
+ #
40982
+ # <note markdown="1"> Only one of `SpotMaxPricePercentageOverLowestPrice` or
40983
+ # `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified.
40984
+ # If you don't specify either, then
40985
+ # `SpotMaxPricePercentageOverLowestPrice` is used and the value for
40986
+ # that parameter defaults to `100`.
40987
+ #
40988
+ # </note>
40989
+ # @return [Integer]
40990
+ #
40902
40991
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceRequirementsRequest AWS API Documentation
40903
40992
  #
40904
40993
  class InstanceRequirementsRequest < Struct.new(
@@ -40924,7 +41013,8 @@ module Aws::EC2
40924
41013
  :accelerator_names,
40925
41014
  :accelerator_total_memory_mi_b,
40926
41015
  :network_bandwidth_gbps,
40927
- :allowed_instance_types)
41016
+ :allowed_instance_types,
41017
+ :max_spot_price_as_percentage_of_optimal_on_demand_price)
40928
41018
  SENSITIVE = []
40929
41019
  include Aws::Structure
40930
41020
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -8,8 +8,8 @@
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
10
 
11
- require 'aws-sigv4'
12
11
  require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-ec2/types'
15
15
  require_relative 'aws-sdk-ec2/client_api'
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.436.0'
79
+ GEM_VERSION = '1.438.0'
80
80
 
81
81
  end
data/sig/client.rbs CHANGED
@@ -1431,7 +1431,8 @@ module Aws
1431
1431
  min: ::Float?,
1432
1432
  max: ::Float?
1433
1433
  }?,
1434
- allowed_instance_types: Array[::String]?
1434
+ allowed_instance_types: Array[::String]?,
1435
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
1435
1436
  }?,
1436
1437
  image_id: ::String?
1437
1438
  },
@@ -2067,7 +2068,8 @@ module Aws
2067
2068
  min: ::Float?,
2068
2069
  max: ::Float?
2069
2070
  }?,
2070
- allowed_instance_types: Array[::String]?
2071
+ allowed_instance_types: Array[::String]?,
2072
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
2071
2073
  }?,
2072
2074
  private_dns_name_options: {
2073
2075
  hostname_type: ("ip-name" | "resource-name")?,
@@ -2320,7 +2322,8 @@ module Aws
2320
2322
  min: ::Float?,
2321
2323
  max: ::Float?
2322
2324
  }?,
2323
- allowed_instance_types: Array[::String]?
2325
+ allowed_instance_types: Array[::String]?,
2326
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
2324
2327
  }?,
2325
2328
  private_dns_name_options: {
2326
2329
  hostname_type: ("ip-name" | "resource-name")?,
@@ -8644,7 +8647,8 @@ module Aws
8644
8647
  min: ::Float?,
8645
8648
  max: ::Float?
8646
8649
  }?,
8647
- allowed_instance_types: Array[::String]?
8650
+ allowed_instance_types: Array[::String]?,
8651
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
8648
8652
  },
8649
8653
  ?max_results: ::Integer,
8650
8654
  ?next_token: ::String
@@ -9024,7 +9028,8 @@ module Aws
9024
9028
  min: ::Float?,
9025
9029
  max: ::Float?
9026
9030
  }?,
9027
- allowed_instance_types: Array[::String]?
9031
+ allowed_instance_types: Array[::String]?,
9032
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
9028
9033
  }?
9029
9034
  },
9030
9035
  ?dry_run: bool,
@@ -9730,7 +9735,8 @@ module Aws
9730
9735
  min: ::Float?,
9731
9736
  max: ::Float?
9732
9737
  }?,
9733
- allowed_instance_types: Array[::String]?
9738
+ allowed_instance_types: Array[::String]?,
9739
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
9734
9740
  }?,
9735
9741
  image_id: ::String?
9736
9742
  },
@@ -10362,7 +10368,8 @@ module Aws
10362
10368
  min: ::Float?,
10363
10369
  max: ::Float?
10364
10370
  }?,
10365
- allowed_instance_types: Array[::String]?
10371
+ allowed_instance_types: Array[::String]?,
10372
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
10366
10373
  }?
10367
10374
  },
10368
10375
  ]?
@@ -11632,7 +11639,8 @@ module Aws
11632
11639
  min: ::Float?,
11633
11640
  max: ::Float?
11634
11641
  }?,
11635
- allowed_instance_types: Array[::String]?
11642
+ allowed_instance_types: Array[::String]?,
11643
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
11636
11644
  }?
11637
11645
  },
11638
11646
  ]?,
@@ -11701,7 +11709,8 @@ module Aws
11701
11709
  min: ::Float?,
11702
11710
  max: ::Float?
11703
11711
  }?,
11704
- allowed_instance_types: Array[::String]?
11712
+ allowed_instance_types: Array[::String]?,
11713
+ max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
11705
11714
  }?
11706
11715
  },
11707
11716
  ]?
data/sig/types.rbs CHANGED
@@ -8990,6 +8990,7 @@ module Aws::EC2
8990
8990
  attr_accessor accelerator_total_memory_mi_b: Types::AcceleratorTotalMemoryMiB
8991
8991
  attr_accessor network_bandwidth_gbps: Types::NetworkBandwidthGbps
8992
8992
  attr_accessor allowed_instance_types: ::Array[::String]
8993
+ attr_accessor max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer
8993
8994
  SENSITIVE: []
8994
8995
  end
8995
8996
 
@@ -9017,6 +9018,7 @@ module Aws::EC2
9017
9018
  attr_accessor accelerator_total_memory_mi_b: Types::AcceleratorTotalMemoryMiBRequest
9018
9019
  attr_accessor network_bandwidth_gbps: Types::NetworkBandwidthGbpsRequest
9019
9020
  attr_accessor allowed_instance_types: ::Array[::String]
9021
+ attr_accessor max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer
9020
9022
  SENSITIVE: []
9021
9023
  end
9022
9024
 
metadata CHANGED
@@ -1,49 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.436.0
4
+ version: 1.438.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: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: aws-sigv4
14
+ name: aws-sdk-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.1'
19
+ version: '3'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.191.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '1.1'
29
+ version: '3'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.191.0
27
33
  - !ruby/object:Gem::Dependency
28
- name: aws-sdk-core
34
+ name: aws-sigv4
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '3'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 3.191.0
39
+ version: '1.1'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - "~>"
42
45
  - !ruby/object:Gem::Version
43
- version: '3'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 3.191.0
46
+ version: '1.1'
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: