aws-sdk-ec2 1.638.0 → 1.639.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 452222266147bbc27e86b851715e5d6b001c21e9a902bb9bd035849e85914d49
4
- data.tar.gz: '052599d5cb3420c2e93a60a00ff80e65d511f7d721ae96d72ce30e27d4e05827'
3
+ metadata.gz: 5a5ae92e1942a1af72d7f7aa72921b8bfb15feb7666f072ad6dea81be2af8409
4
+ data.tar.gz: bd32945a939d90d0e1510df31a36938a70f2f8e133582bfa0c0ffd0002550d8f
5
5
  SHA512:
6
- metadata.gz: 71f09a80585c328a287a36049e404a08768d9d7322548b98f6e594dfedc25f330e92371e0283f0bea50744c31975ff3ee111a4a38bf0979cd8fff1aa0b828b89
7
- data.tar.gz: 3038c396367b689b8d8632ef30f27e22faf829ca36453619d86b5a3c5fc7aa3503c95ea909ad9888571eed7d000e759decd8e1679b1a4485e00fddba9e1accec
6
+ metadata.gz: 87f823c4f994aa6841756f8d77359187fc3a9564a6718aecfde1818892462436ee5201cfb110d3f2b9ef90b677501c55560933236e78f9e38835f845327e5520
7
+ data.tar.gz: c569e63941404c5f8fe6613a29cfecba7a3132edaf3770ce90364b495c57030bf8c8e19a07f8af98c89cac1795e6c14dc5abadc9ebf48244c2c0514150be6dec
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.639.0 (2026-08-25)
5
+ ------------------
6
+
7
+ * Feature - Fleet feature to support Capacity Reservation Resource Groups with Amazon EC2 Capacity Blocks and interruptible Capacity Reservations
8
+
4
9
  1.638.0 (2026-08-20)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.638.0
1
+ 1.639.0
@@ -8382,7 +8382,15 @@ module Aws::EC2
8382
8382
  # max_total_price: "String",
8383
8383
  # },
8384
8384
  # reserved_capacity_options: {
8385
- # reservation_types: ["interruptible-capacity-reservation"], # accepts interruptible-capacity-reservation
8385
+ # allocation_strategy: "prioritized", # accepts prioritized
8386
+ # reservation_types: ["on-demand-capacity-reservation"], # accepts on-demand-capacity-reservation, capacity-block, interruptible-capacity-reservation
8387
+ # capacity_reservation_target: {
8388
+ # capacity_reservation_ids: ["CapacityReservationId"],
8389
+ # capacity_reservation_resource_group_arns: ["ResourceGroupName"],
8390
+ # },
8391
+ # reserved_capacity_fallback_options: {
8392
+ # market_types: ["on-demand"], # accepts on-demand
8393
+ # },
8386
8394
  # },
8387
8395
  # excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
8388
8396
  # launch_template_configs: [ # required
@@ -11340,7 +11348,7 @@ module Aws::EC2
11340
11348
  # security_group_ids: ["SecurityGroupId"],
11341
11349
  # security_groups: ["SecurityGroupName"],
11342
11350
  # instance_market_options: {
11343
- # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation
11351
+ # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation, on-demand
11344
11352
  # spot_options: {
11345
11353
  # max_price: "String",
11346
11354
  # spot_instance_type: "one-time", # accepts one-time, persistent
@@ -11789,7 +11797,7 @@ module Aws::EC2
11789
11797
  # security_group_ids: ["SecurityGroupId"],
11790
11798
  # security_groups: ["SecurityGroupName"],
11791
11799
  # instance_market_options: {
11792
- # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation
11800
+ # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation, on-demand
11793
11801
  # spot_options: {
11794
11802
  # max_price: "String",
11795
11803
  # spot_instance_type: "one-time", # accepts one-time, persistent
@@ -12022,7 +12030,7 @@ module Aws::EC2
12022
12030
  # resp.launch_template_version.launch_template_data.security_group_ids[0] #=> String
12023
12031
  # resp.launch_template_version.launch_template_data.security_groups #=> Array
12024
12032
  # resp.launch_template_version.launch_template_data.security_groups[0] #=> String
12025
- # resp.launch_template_version.launch_template_data.instance_market_options.market_type #=> String, one of "spot", "capacity-block", "interruptible-capacity-reservation"
12033
+ # resp.launch_template_version.launch_template_data.instance_market_options.market_type #=> String, one of "spot", "capacity-block", "interruptible-capacity-reservation", "on-demand"
12026
12034
  # resp.launch_template_version.launch_template_data.instance_market_options.spot_options.max_price #=> String
12027
12035
  # resp.launch_template_version.launch_template_data.instance_market_options.spot_options.spot_instance_type #=> String, one of "one-time", "persistent"
12028
12036
  # resp.launch_template_version.launch_template_data.instance_market_options.spot_options.block_duration_minutes #=> Integer
@@ -30246,8 +30254,11 @@ module Aws::EC2
30246
30254
  # resp.fleets[0].on_demand_options.single_availability_zone #=> Boolean
30247
30255
  # resp.fleets[0].on_demand_options.min_target_capacity #=> Integer
30248
30256
  # resp.fleets[0].on_demand_options.max_total_price #=> String
30257
+ # resp.fleets[0].reserved_capacity_options.allocation_strategy #=> String, one of "prioritized"
30249
30258
  # resp.fleets[0].reserved_capacity_options.reservation_types #=> Array
30250
- # resp.fleets[0].reserved_capacity_options.reservation_types[0] #=> String, one of "interruptible-capacity-reservation"
30259
+ # resp.fleets[0].reserved_capacity_options.reservation_types[0] #=> String, one of "on-demand-capacity-reservation", "capacity-block", "interruptible-capacity-reservation"
30260
+ # resp.fleets[0].reserved_capacity_options.reserved_capacity_fallback_options.market_types #=> Array
30261
+ # resp.fleets[0].reserved_capacity_options.reserved_capacity_fallback_options.market_types[0] #=> String, one of "on-demand"
30251
30262
  # resp.fleets[0].tags #=> Array
30252
30263
  # resp.fleets[0].tags[0].key #=> String
30253
30264
  # resp.fleets[0].tags[0].value #=> String
@@ -36420,7 +36431,7 @@ module Aws::EC2
36420
36431
  # resp.launch_template_versions[0].launch_template_data.security_group_ids[0] #=> String
36421
36432
  # resp.launch_template_versions[0].launch_template_data.security_groups #=> Array
36422
36433
  # resp.launch_template_versions[0].launch_template_data.security_groups[0] #=> String
36423
- # resp.launch_template_versions[0].launch_template_data.instance_market_options.market_type #=> String, one of "spot", "capacity-block", "interruptible-capacity-reservation"
36434
+ # resp.launch_template_versions[0].launch_template_data.instance_market_options.market_type #=> String, one of "spot", "capacity-block", "interruptible-capacity-reservation", "on-demand"
36424
36435
  # resp.launch_template_versions[0].launch_template_data.instance_market_options.spot_options.max_price #=> String
36425
36436
  # resp.launch_template_versions[0].launch_template_data.instance_market_options.spot_options.spot_instance_type #=> String, one of "one-time", "persistent"
36426
36437
  # resp.launch_template_versions[0].launch_template_data.instance_market_options.spot_options.block_duration_minutes #=> Integer
@@ -57096,7 +57107,7 @@ module Aws::EC2
57096
57107
  # resp.launch_template_data.security_group_ids[0] #=> String
57097
57108
  # resp.launch_template_data.security_groups #=> Array
57098
57109
  # resp.launch_template_data.security_groups[0] #=> String
57099
- # resp.launch_template_data.instance_market_options.market_type #=> String, one of "spot", "capacity-block", "interruptible-capacity-reservation"
57110
+ # resp.launch_template_data.instance_market_options.market_type #=> String, one of "spot", "capacity-block", "interruptible-capacity-reservation", "on-demand"
57100
57111
  # resp.launch_template_data.instance_market_options.spot_options.max_price #=> String
57101
57112
  # resp.launch_template_data.instance_market_options.spot_options.spot_instance_type #=> String, one of "one-time", "persistent"
57102
57113
  # resp.launch_template_data.instance_market_options.spot_options.block_duration_minutes #=> Integer
@@ -74003,7 +74014,7 @@ module Aws::EC2
74003
74014
  # version: "String",
74004
74015
  # },
74005
74016
  # instance_market_options: {
74006
- # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation
74017
+ # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation, on-demand
74007
74018
  # spot_options: {
74008
74019
  # max_price: "String",
74009
74020
  # spot_instance_type: "one-time", # accepts one-time, persistent
@@ -77186,7 +77197,7 @@ module Aws::EC2
77186
77197
  tracer: tracer
77187
77198
  )
77188
77199
  context[:gem_name] = 'aws-sdk-ec2'
77189
- context[:gem_version] = '1.638.0'
77200
+ context[:gem_version] = '1.639.0'
77190
77201
  Seahorse::Client::Request.new(handlers, context)
77191
77202
  end
77192
77203
 
@@ -410,6 +410,7 @@ module Aws::EC2
410
410
  CapacityReservationOptions = Shapes::StructureShape.new(name: 'CapacityReservationOptions')
411
411
  CapacityReservationOptionsRequest = Shapes::StructureShape.new(name: 'CapacityReservationOptionsRequest')
412
412
  CapacityReservationPreference = Shapes::StringShape.new(name: 'CapacityReservationPreference')
413
+ CapacityReservationResourceGroupArnSet = Shapes::ListShape.new(name: 'CapacityReservationResourceGroupArnSet')
413
414
  CapacityReservationSet = Shapes::ListShape.new(name: 'CapacityReservationSet')
414
415
  CapacityReservationSpecification = Shapes::StructureShape.new(name: 'CapacityReservationSpecification')
415
416
  CapacityReservationSpecificationResponse = Shapes::StructureShape.new(name: 'CapacityReservationSpecificationResponse')
@@ -1818,6 +1819,7 @@ module Aws::EC2
1818
1819
  FleetBlockDeviceMappingRequestList = Shapes::ListShape.new(name: 'FleetBlockDeviceMappingRequestList')
1819
1820
  FleetCapacityReservation = Shapes::StructureShape.new(name: 'FleetCapacityReservation')
1820
1821
  FleetCapacityReservationSet = Shapes::ListShape.new(name: 'FleetCapacityReservationSet')
1822
+ FleetCapacityReservationTargetRequest = Shapes::StructureShape.new(name: 'FleetCapacityReservationTargetRequest')
1821
1823
  FleetCapacityReservationTenancy = Shapes::StringShape.new(name: 'FleetCapacityReservationTenancy')
1822
1824
  FleetCapacityReservationUsageStrategy = Shapes::StringShape.new(name: 'FleetCapacityReservationUsageStrategy')
1823
1825
  FleetData = Shapes::StructureShape.new(name: 'FleetData')
@@ -3375,6 +3377,11 @@ module Aws::EC2
3375
3377
  ReservationTypeList = Shapes::ListShape.new(name: 'ReservationTypeList')
3376
3378
  ReservationTypeListRequest = Shapes::ListShape.new(name: 'ReservationTypeListRequest')
3377
3379
  ReservationValue = Shapes::StructureShape.new(name: 'ReservationValue')
3380
+ ReservedCapacityAllocationStrategy = Shapes::StringShape.new(name: 'ReservedCapacityAllocationStrategy')
3381
+ ReservedCapacityFallbackMarketType = Shapes::StringShape.new(name: 'ReservedCapacityFallbackMarketType')
3382
+ ReservedCapacityFallbackMarketTypeList = Shapes::ListShape.new(name: 'ReservedCapacityFallbackMarketTypeList')
3383
+ ReservedCapacityFallbackOptions = Shapes::StructureShape.new(name: 'ReservedCapacityFallbackOptions')
3384
+ ReservedCapacityFallbackOptionsRequest = Shapes::StructureShape.new(name: 'ReservedCapacityFallbackOptionsRequest')
3378
3385
  ReservedCapacityOptions = Shapes::StructureShape.new(name: 'ReservedCapacityOptions')
3379
3386
  ReservedCapacityOptionsRequest = Shapes::StructureShape.new(name: 'ReservedCapacityOptionsRequest')
3380
3387
  ReservedInstanceIdSet = Shapes::ListShape.new(name: 'ReservedInstanceIdSet')
@@ -3416,6 +3423,7 @@ module Aws::EC2
3416
3423
  ResetSnapshotAttributeRequest = Shapes::StructureShape.new(name: 'ResetSnapshotAttributeRequest')
3417
3424
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
3418
3425
  ResourceConfigurationArn = Shapes::StringShape.new(name: 'ResourceConfigurationArn')
3426
+ ResourceGroupName = Shapes::StringShape.new(name: 'ResourceGroupName')
3419
3427
  ResourceIdList = Shapes::ListShape.new(name: 'ResourceIdList')
3420
3428
  ResourceList = Shapes::ListShape.new(name: 'ResourceList')
3421
3429
  ResourceStatement = Shapes::StructureShape.new(name: 'ResourceStatement')
@@ -5624,6 +5632,8 @@ module Aws::EC2
5624
5632
  CapacityReservationOptionsRequest.add_member(:usage_strategy, Shapes::ShapeRef.new(shape: FleetCapacityReservationUsageStrategy, location_name: "UsageStrategy"))
5625
5633
  CapacityReservationOptionsRequest.struct_class = Types::CapacityReservationOptionsRequest
5626
5634
 
5635
+ CapacityReservationResourceGroupArnSet.member = Shapes::ShapeRef.new(shape: ResourceGroupName, location_name: "item")
5636
+
5627
5637
  CapacityReservationSet.member = Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "item")
5628
5638
 
5629
5639
  CapacityReservationSpecification.add_member(:capacity_reservation_preference, Shapes::ShapeRef.new(shape: CapacityReservationPreference, location_name: "CapacityReservationPreference"))
@@ -11687,6 +11697,10 @@ module Aws::EC2
11687
11697
 
11688
11698
  FleetCapacityReservationSet.member = Shapes::ShapeRef.new(shape: FleetCapacityReservation, location_name: "item")
11689
11699
 
11700
+ FleetCapacityReservationTargetRequest.add_member(:capacity_reservation_ids, Shapes::ShapeRef.new(shape: CapacityReservationIdSet, location_name: "CapacityReservationId"))
11701
+ FleetCapacityReservationTargetRequest.add_member(:capacity_reservation_resource_group_arns, Shapes::ShapeRef.new(shape: CapacityReservationResourceGroupArnSet, location_name: "CapacityReservationResourceGroupArn"))
11702
+ FleetCapacityReservationTargetRequest.struct_class = Types::FleetCapacityReservationTargetRequest
11703
+
11690
11704
  FleetData.add_member(:activity_status, Shapes::ShapeRef.new(shape: FleetActivityStatus, location_name: "activityStatus"))
11691
11705
  FleetData.add_member(:create_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "createTime"))
11692
11706
  FleetData.add_member(:fleet_id, Shapes::ShapeRef.new(shape: FleetId, location_name: "fleetId"))
@@ -17639,10 +17653,23 @@ module Aws::EC2
17639
17653
  ReservationValue.add_member(:remaining_upfront_value, Shapes::ShapeRef.new(shape: String, location_name: "remainingUpfrontValue"))
17640
17654
  ReservationValue.struct_class = Types::ReservationValue
17641
17655
 
17656
+ ReservedCapacityFallbackMarketTypeList.member = Shapes::ShapeRef.new(shape: ReservedCapacityFallbackMarketType, location_name: "item")
17657
+
17658
+ ReservedCapacityFallbackOptions.add_member(:market_types, Shapes::ShapeRef.new(shape: ReservedCapacityFallbackMarketTypeList, location_name: "marketTypeSet"))
17659
+ ReservedCapacityFallbackOptions.struct_class = Types::ReservedCapacityFallbackOptions
17660
+
17661
+ ReservedCapacityFallbackOptionsRequest.add_member(:market_types, Shapes::ShapeRef.new(shape: ReservedCapacityFallbackMarketTypeList, location_name: "MarketType"))
17662
+ ReservedCapacityFallbackOptionsRequest.struct_class = Types::ReservedCapacityFallbackOptionsRequest
17663
+
17664
+ ReservedCapacityOptions.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: ReservedCapacityAllocationStrategy, location_name: "allocationStrategy"))
17642
17665
  ReservedCapacityOptions.add_member(:reservation_types, Shapes::ShapeRef.new(shape: ReservationTypeList, location_name: "reservationTypeSet"))
17666
+ ReservedCapacityOptions.add_member(:reserved_capacity_fallback_options, Shapes::ShapeRef.new(shape: ReservedCapacityFallbackOptions, location_name: "reservedCapacityFallbackOptions"))
17643
17667
  ReservedCapacityOptions.struct_class = Types::ReservedCapacityOptions
17644
17668
 
17669
+ ReservedCapacityOptionsRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: ReservedCapacityAllocationStrategy, location_name: "AllocationStrategy"))
17645
17670
  ReservedCapacityOptionsRequest.add_member(:reservation_types, Shapes::ShapeRef.new(shape: ReservationTypeListRequest, location_name: "ReservationType"))
17671
+ ReservedCapacityOptionsRequest.add_member(:capacity_reservation_target, Shapes::ShapeRef.new(shape: FleetCapacityReservationTargetRequest, location_name: "CapacityReservationTarget"))
17672
+ ReservedCapacityOptionsRequest.add_member(:reserved_capacity_fallback_options, Shapes::ShapeRef.new(shape: ReservedCapacityFallbackOptionsRequest, location_name: "ReservedCapacityFallbackOptions"))
17646
17673
  ReservedCapacityOptionsRequest.struct_class = Types::ReservedCapacityOptionsRequest
17647
17674
 
17648
17675
  ReservedInstanceIdSet.member = Shapes::ShapeRef.new(shape: ReservationId, location_name: "ReservedInstanceId")
@@ -165,7 +165,7 @@ module Aws::EC2
165
165
  # version: "String",
166
166
  # },
167
167
  # instance_market_options: {
168
- # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation
168
+ # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation, on-demand
169
169
  # spot_options: {
170
170
  # max_price: "String",
171
171
  # spot_instance_type: "one-time", # accepts one-time, persistent
@@ -426,7 +426,7 @@ module Aws::EC2
426
426
  # version: "String",
427
427
  # },
428
428
  # instance_market_options: {
429
- # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation
429
+ # market_type: "spot", # accepts spot, capacity-block, interruptible-capacity-reservation, on-demand
430
430
  # spot_options: {
431
431
  # max_price: "String",
432
432
  # spot_instance_type: "one-time", # accepts one-time, persistent
@@ -11132,8 +11132,10 @@ module Aws::EC2
11132
11132
  #
11133
11133
  # @!attribute [rw] lifecycle
11134
11134
  # Indicates if the instance that could not be launched was a Spot,
11135
- # On-Demand, Capacity Block, or Interruptible Capacity Reservation
11136
- # instance.
11135
+ # On-Demand, Capacity Block for ML, or interruptible Capacity
11136
+ # Reservation instance. If you are using `ReservedCapacityOptions`
11137
+ # with `on-demand-capacity-reservation` in the `ReservationTypes`
11138
+ # list, the value can also be `on-demand-capacity-reservation`.
11137
11139
  # @return [String]
11138
11140
  #
11139
11141
  # @!attribute [rw] error_code
@@ -11177,7 +11179,8 @@ module Aws::EC2
11177
11179
  #
11178
11180
  # @!attribute [rw] lifecycle
11179
11181
  # Indicates if the instance that was launched is a Spot, On-Demand,
11180
- # Capacity Block, or Interruptible Capacity Reservation instance.
11182
+ # Capacity Block for ML, or interruptible Capacity Reservation
11183
+ # instance.
11181
11184
  # @return [String]
11182
11185
  #
11183
11186
  # @!attribute [rw] instance_ids
@@ -25838,8 +25841,10 @@ module Aws::EC2
25838
25841
  #
25839
25842
  # @!attribute [rw] lifecycle
25840
25843
  # Indicates if the instance that could not be launched was a Spot,
25841
- # On-Demand, Capacity Block, or Interruptible Capacity Reservation
25842
- # instance.
25844
+ # On-Demand, Capacity Block for ML, or interruptible Capacity
25845
+ # Reservation instance. If you are using `ReservedCapacityOptions`
25846
+ # with `on-demand-capacity-reservation` in the `ReservationTypes`
25847
+ # list, the value can also be `on-demand-capacity-reservation`.
25843
25848
  # @return [String]
25844
25849
  #
25845
25850
  # @!attribute [rw] error_code
@@ -26043,7 +26048,8 @@ module Aws::EC2
26043
26048
  #
26044
26049
  # @!attribute [rw] lifecycle
26045
26050
  # Indicates if the instance that was launched is a Spot, On-Demand,
26046
- # Capacity Block, or Interruptible Capacity Reservation instance.
26051
+ # Capacity Block for ML, or interruptible Capacity Reservation
26052
+ # instance.
26047
26053
  # @return [String]
26048
26054
  #
26049
26055
  # @!attribute [rw] instance_ids
@@ -44243,6 +44249,30 @@ module Aws::EC2
44243
44249
  include Aws::Structure
44244
44250
  end
44245
44251
 
44252
+ # Describes the target Capacity Reservations or Capacity Reservation
44253
+ # Resource Groups for an EC2 Fleet that launches into reserved capacity.
44254
+ # You can specify Capacity Reservation IDs or a Capacity Reservation
44255
+ # Resource Group ARN, but not both.
44256
+ #
44257
+ # @!attribute [rw] capacity_reservation_ids
44258
+ # The IDs of the Capacity Reservations in which to launch the
44259
+ # instances.
44260
+ # @return [Array<String>]
44261
+ #
44262
+ # @!attribute [rw] capacity_reservation_resource_group_arns
44263
+ # The ARNs of the Capacity Reservation Resource Groups in which to
44264
+ # launch the instances.
44265
+ # @return [Array<String>]
44266
+ #
44267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetCapacityReservationTargetRequest AWS API Documentation
44268
+ #
44269
+ class FleetCapacityReservationTargetRequest < Struct.new(
44270
+ :capacity_reservation_ids,
44271
+ :capacity_reservation_resource_group_arns)
44272
+ SENSITIVE = []
44273
+ include Aws::Structure
44274
+ end
44275
+
44246
44276
  # Describes an EC2 Fleet.
44247
44277
  #
44248
44278
  # @!attribute [rw] activity_status
@@ -77122,24 +77152,86 @@ module Aws::EC2
77122
77152
  include Aws::Structure
77123
77153
  end
77124
77154
 
77155
+ # Describes the fallback behavior for an EC2 Fleet that uses reserved
77156
+ # capacity when the reserved capacity is not enough to meet the target
77157
+ # capacity. If you don't specify fallback options, EC2 Fleet does not
77158
+ # fall back to any other market type after the specified reservation
77159
+ # types are exhausted.
77160
+ #
77161
+ # @!attribute [rw] market_types
77162
+ # The instance purchasing options to fall back to when the reserved
77163
+ # capacity is not enough to meet the target capacity. The only
77164
+ # supported value is `on-demand`, which launches On-Demand Instances
77165
+ # to fulfill the remaining target capacity.
77166
+ # @return [Array<String>]
77167
+ #
77168
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedCapacityFallbackOptions AWS API Documentation
77169
+ #
77170
+ class ReservedCapacityFallbackOptions < Struct.new(
77171
+ :market_types)
77172
+ SENSITIVE = []
77173
+ include Aws::Structure
77174
+ end
77175
+
77176
+ # Describes the fallback behavior for an EC2 Fleet that uses reserved
77177
+ # capacity when the reserved capacity is not enough to meet the target
77178
+ # capacity. If you don't specify fallback options, EC2 Fleet does not
77179
+ # fall back to any other market type after the specified reservation
77180
+ # types are exhausted.
77181
+ #
77182
+ # @!attribute [rw] market_types
77183
+ # The instance purchasing options to fall back to when the reserved
77184
+ # capacity is not enough to meet the target capacity. The only
77185
+ # supported value is `on-demand`, which launches On-Demand Instances
77186
+ # to fulfill the remaining target capacity.
77187
+ # @return [Array<String>]
77188
+ #
77189
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedCapacityFallbackOptionsRequest AWS API Documentation
77190
+ #
77191
+ class ReservedCapacityFallbackOptionsRequest < Struct.new(
77192
+ :market_types)
77193
+ SENSITIVE = []
77194
+ include Aws::Structure
77195
+ end
77196
+
77125
77197
  # Defines EC2 Fleet preferences for utilizing reserved capacity when
77126
- # DefaultTargetCapacityType is set to `reserved-capacity`.
77198
+ # `DefaultTargetCapacityType` is set to `reserved-capacity`. EC2 Fleet
77199
+ # can fulfill reserved capacity using On-Demand Capacity Reservations,
77200
+ # Capacity Blocks for ML, and interruptible Capacity Reservations.
77201
+ #
77202
+ # @!attribute [rw] allocation_strategy
77203
+ # The strategy that determines the order in which EC2 Fleet launches
77204
+ # instances across the reservation types that you specify. The only
77205
+ # supported value is `prioritized`, which launches instances in the
77206
+ # priority order that you specify in your launch template overrides.
77207
+ # If you don't specify an allocation strategy, instances are launched
77208
+ # in a random order.
77209
+ # @return [String]
77127
77210
  #
77128
77211
  # @!attribute [rw] reservation_types
77129
77212
  # The types of Capacity Reservations used for fulfilling the EC2 Fleet
77130
77213
  # request.
77131
77214
  # @return [Array<String>]
77132
77215
  #
77216
+ # @!attribute [rw] reserved_capacity_fallback_options
77217
+ # The fallback behavior for the EC2 Fleet when there is not enough
77218
+ # reserved capacity available to meet the target capacity.
77219
+ # @return [Types::ReservedCapacityFallbackOptions]
77220
+ #
77133
77221
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedCapacityOptions AWS API Documentation
77134
77222
  #
77135
77223
  class ReservedCapacityOptions < Struct.new(
77136
- :reservation_types)
77224
+ :allocation_strategy,
77225
+ :reservation_types,
77226
+ :reserved_capacity_fallback_options)
77137
77227
  SENSITIVE = []
77138
77228
  include Aws::Structure
77139
77229
  end
77140
77230
 
77141
77231
  # Defines EC2 Fleet preferences for utilizing reserved capacity when
77142
- # DefaultTargetCapacityType is set to `reserved-capacity`.
77232
+ # `DefaultTargetCapacityType` is set to `reserved-capacity`. EC2 Fleet
77233
+ # can fulfill reserved capacity using On-Demand Capacity Reservations,
77234
+ # Capacity Blocks for ML, and interruptible Capacity Reservations.
77143
77235
  #
77144
77236
  # <note markdown="1"> This configuration can only be used if the EC2 Fleet is of type
77145
77237
  # `instant`.
@@ -77150,23 +77242,52 @@ module Aws::EC2
77150
77242
  # `DefaultTargetCapacityType` to `reserved-capacity` in the
77151
77243
  # `TargetCapacitySpecification`.
77152
77244
  #
77153
- # For more information about Interruptible Capacity Reservations, see
77154
- # [Launch instances into an Interruptible Capacity Reservation][1] in
77245
+ # For more information about interruptible Capacity Reservations, see
77246
+ # [Launch instances into an interruptible Capacity Reservation][1] in
77155
77247
  # the *Amazon EC2 User Guide*.
77156
77248
  #
77157
77249
  #
77158
77250
  #
77159
77251
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-launch-instances-interruptible-cr-walkthrough.html
77160
77252
  #
77253
+ # @!attribute [rw] allocation_strategy
77254
+ # The strategy that determines the order in which EC2 Fleet launches
77255
+ # instances across the reservation types that you specify. The only
77256
+ # supported value is `prioritized`, which launches instances in the
77257
+ # priority order that you specify in your launch template overrides.
77258
+ # If you don't specify an allocation strategy, instances are launched
77259
+ # in a random order.
77260
+ # @return [String]
77261
+ #
77161
77262
  # @!attribute [rw] reservation_types
77162
77263
  # The types of Capacity Reservations to use for fulfilling the EC2
77163
- # Fleet request.
77264
+ # Fleet request. This is an ordered list: EC2 Fleet attempts to launch
77265
+ # instances into each Capacity Reservation type in the order that you
77266
+ # specify them before moving on to the next type.
77164
77267
  # @return [Array<String>]
77165
77268
  #
77269
+ # @!attribute [rw] capacity_reservation_target
77270
+ # The Capacity Reservations or Capacity Reservation Resource Groups to
77271
+ # use for fulfilling the EC2 Fleet request. You can specify Capacity
77272
+ # Reservation IDs or a Capacity Reservation Resource Group ARN, but
77273
+ # not both.
77274
+ # @return [Types::FleetCapacityReservationTargetRequest]
77275
+ #
77276
+ # @!attribute [rw] reserved_capacity_fallback_options
77277
+ # The fallback behavior for the EC2 Fleet when there is not enough
77278
+ # reserved capacity available to meet the target capacity. This member
77279
+ # takes a `ReservedCapacityFallbackOptionsRequest` structure, in which
77280
+ # you set `MarketTypes` to the instance purchasing options to fall
77281
+ # back to.
77282
+ # @return [Types::ReservedCapacityFallbackOptionsRequest]
77283
+ #
77166
77284
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReservedCapacityOptionsRequest AWS API Documentation
77167
77285
  #
77168
77286
  class ReservedCapacityOptionsRequest < Struct.new(
77169
- :reservation_types)
77287
+ :allocation_strategy,
77288
+ :reservation_types,
77289
+ :capacity_reservation_target,
77290
+ :reserved_capacity_fallback_options)
77170
77291
  SENSITIVE = []
77171
77292
  include Aws::Structure
77172
77293
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -78,7 +78,7 @@ module Aws::EC2
78
78
  autoload :VpcPeeringConnection, 'aws-sdk-ec2/vpc_peering_connection'
79
79
  autoload :VpcAddress, 'aws-sdk-ec2/vpc_address'
80
80
 
81
- GEM_VERSION = '1.638.0'
81
+ GEM_VERSION = '1.639.0'
82
82
 
83
83
  end
84
84
 
data/sig/client.rbs CHANGED
@@ -1633,7 +1633,15 @@ module Aws
1633
1633
  max_total_price: ::String?
1634
1634
  },
1635
1635
  ?reserved_capacity_options: {
1636
- reservation_types: Array[("interruptible-capacity-reservation")]?
1636
+ allocation_strategy: ("prioritized")?,
1637
+ reservation_types: Array[("on-demand-capacity-reservation" | "capacity-block" | "interruptible-capacity-reservation")]?,
1638
+ capacity_reservation_target: {
1639
+ capacity_reservation_ids: Array[::String]?,
1640
+ capacity_reservation_resource_group_arns: Array[::String]?
1641
+ }?,
1642
+ reserved_capacity_fallback_options: {
1643
+ market_types: Array[("on-demand")]?
1644
+ }?
1637
1645
  },
1638
1646
  ?excess_capacity_termination_policy: ("no-termination" | "termination"),
1639
1647
  launch_template_configs: Array[
@@ -14352,7 +14360,7 @@ module Aws
14352
14360
  version: ::String?
14353
14361
  },
14354
14362
  ?instance_market_options: {
14355
- market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")?,
14363
+ market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")?,
14356
14364
  spot_options: {
14357
14365
  max_price: ::String?,
14358
14366
  spot_instance_type: ("one-time" | "persistent")?,
data/sig/params.rbs CHANGED
@@ -251,7 +251,7 @@ module Aws
251
251
  }
252
252
 
253
253
  type launch_template_instance_market_options_request = {
254
- market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")?,
254
+ market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")?,
255
255
  spot_options: {
256
256
  max_price: ::String?,
257
257
  spot_instance_type: ("one-time" | "persistent")?,
data/sig/resource.rbs CHANGED
@@ -188,7 +188,7 @@ module Aws
188
188
  version: ::String?
189
189
  },
190
190
  ?instance_market_options: {
191
- market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")?,
191
+ market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")?,
192
192
  spot_options: {
193
193
  max_price: ::String?,
194
194
  spot_instance_type: ("one-time" | "persistent")?,
data/sig/subnet.rbs CHANGED
@@ -181,7 +181,7 @@ module Aws
181
181
  version: ::String?
182
182
  },
183
183
  ?instance_market_options: {
184
- market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")?,
184
+ market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")?,
185
185
  spot_options: {
186
186
  max_price: ::String?,
187
187
  spot_instance_type: ("one-time" | "persistent")?,
data/sig/types.rbs CHANGED
@@ -9745,6 +9745,12 @@ module Aws::EC2
9745
9745
  SENSITIVE: []
9746
9746
  end
9747
9747
 
9748
+ class FleetCapacityReservationTargetRequest
9749
+ attr_accessor capacity_reservation_ids: ::Array[::String]
9750
+ attr_accessor capacity_reservation_resource_group_arns: ::Array[::String]
9751
+ SENSITIVE: []
9752
+ end
9753
+
9748
9754
  class FleetData
9749
9755
  attr_accessor activity_status: ("error" | "pending_fulfillment" | "pending_termination" | "fulfilled")
9750
9756
  attr_accessor create_time: ::Time
@@ -11987,7 +11993,7 @@ module Aws::EC2
11987
11993
  end
11988
11994
 
11989
11995
  class InstanceMarketOptionsRequest
11990
- attr_accessor market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")
11996
+ attr_accessor market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")
11991
11997
  attr_accessor spot_options: Types::SpotMarketOptions
11992
11998
  SENSITIVE: []
11993
11999
  end
@@ -13203,13 +13209,13 @@ module Aws::EC2
13203
13209
  end
13204
13210
 
13205
13211
  class LaunchTemplateInstanceMarketOptions
13206
- attr_accessor market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")
13212
+ attr_accessor market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")
13207
13213
  attr_accessor spot_options: Types::LaunchTemplateSpotMarketOptions
13208
13214
  SENSITIVE: []
13209
13215
  end
13210
13216
 
13211
13217
  class LaunchTemplateInstanceMarketOptionsRequest
13212
- attr_accessor market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation")
13218
+ attr_accessor market_type: ("spot" | "capacity-block" | "interruptible-capacity-reservation" | "on-demand")
13213
13219
  attr_accessor spot_options: Types::LaunchTemplateSpotMarketOptionsRequest
13214
13220
  SENSITIVE: []
13215
13221
  end
@@ -16661,13 +16667,28 @@ module Aws::EC2
16661
16667
  SENSITIVE: []
16662
16668
  end
16663
16669
 
16670
+ class ReservedCapacityFallbackOptions
16671
+ attr_accessor market_types: ::Array[("on-demand")]
16672
+ SENSITIVE: []
16673
+ end
16674
+
16675
+ class ReservedCapacityFallbackOptionsRequest
16676
+ attr_accessor market_types: ::Array[("on-demand")]
16677
+ SENSITIVE: []
16678
+ end
16679
+
16664
16680
  class ReservedCapacityOptions
16665
- attr_accessor reservation_types: ::Array[("interruptible-capacity-reservation")]
16681
+ attr_accessor allocation_strategy: ("prioritized")
16682
+ attr_accessor reservation_types: ::Array[("on-demand-capacity-reservation" | "capacity-block" | "interruptible-capacity-reservation")]
16683
+ attr_accessor reserved_capacity_fallback_options: Types::ReservedCapacityFallbackOptions
16666
16684
  SENSITIVE: []
16667
16685
  end
16668
16686
 
16669
16687
  class ReservedCapacityOptionsRequest
16670
- attr_accessor reservation_types: ::Array[("interruptible-capacity-reservation")]
16688
+ attr_accessor allocation_strategy: ("prioritized")
16689
+ attr_accessor reservation_types: ::Array[("on-demand-capacity-reservation" | "capacity-block" | "interruptible-capacity-reservation")]
16690
+ attr_accessor capacity_reservation_target: Types::FleetCapacityReservationTargetRequest
16691
+ attr_accessor reserved_capacity_fallback_options: Types::ReservedCapacityFallbackOptionsRequest
16671
16692
  SENSITIVE: []
16672
16693
  end
16673
16694
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.638.0
4
+ version: 1.639.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services