aws-sdk-ec2 1.275.0 → 1.276.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: d98ad40003f74aaff309c7201c279a4eb66fbf284931eace1d1991b6f34fadba
4
- data.tar.gz: f472a6b07897f1838dcb602aca18b049930fef692d1be04912c9af0361287f7c
3
+ metadata.gz: 1a904d5bae6d51f4414091b09760d85ebc510835fe2a19a02647f5cf8427351f
4
+ data.tar.gz: a4400f1b6e422a5d72b48dff40f41b9b3c61d29cc26bc519c2a2d2317ec8c91e
5
5
  SHA512:
6
- metadata.gz: f04f02376f5cf77758ad368ec92e872c3800fdb0ba28303a6f4f7703a4e0eb3784a77c3d33a64ab192eafee406c8589293adaec9a305941cd043a516e703cb40
7
- data.tar.gz: 5e164de7154b4fc5d190df81d06a2aed21e2eb3bc1d31b2d35ab404688dc6e46a34193c7e081e18ccd0a980f203eb97216ee30c5326ec905bbc59fd42ca77975
6
+ metadata.gz: 5a29e928cb1ea6a5c1c1a0433c8ad6e7726a5981a5bbb486595bb7f90788fb844a15aaea138f42733d9b90e6b39f804dc44abd2b74bb95a50fbdc11f547be517
7
+ data.tar.gz: 60b0e17d3166fe0b0220762d22d4e2c3de92056ecfe2045e71b1af046b9119120e05b5fb449a23db7cb35b3d181451e111a0ac289cce3c3db3caa899420f17f1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.276.0 (2021-11-04)
5
+ ------------------
6
+
7
+ * Feature - This release adds a new instance replacement strategy for EC2 Fleet, Spot Fleet. Now you can select an action to perform when your instance gets a rebalance notification. EC2 Fleet, Spot Fleet can launch a replacement then terminate the instance that received notification after a termination delay
8
+
4
9
  1.275.0 (2021-10-29)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.275.0
1
+ 1.276.0
@@ -279,6 +279,15 @@ module Aws::EC2
279
279
  # ** Please note ** When response stubbing is enabled, no HTTP
280
280
  # requests are made, and retries are disabled.
281
281
  #
282
+ # @option options [Boolean] :use_dualstack_endpoint
283
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
284
+ # will be used if available.
285
+ #
286
+ # @option options [Boolean] :use_fips_endpoint
287
+ # When set to `true`, fips compatible endpoints will be used if available.
288
+ # When a `fips` region is used, the region is normalized and this config
289
+ # is set to `true`.
290
+ #
282
291
  # @option options [Boolean] :validate_params (true)
283
292
  # When `true`, request parameters are validated before
284
293
  # sending the request.
@@ -5404,7 +5413,8 @@ module Aws::EC2
5404
5413
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
5405
5414
  # maintenance_strategies: {
5406
5415
  # capacity_rebalance: {
5407
- # replacement_strategy: "launch", # accepts launch
5416
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
5417
+ # termination_delay: 1,
5408
5418
  # },
5409
5419
  # },
5410
5420
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
@@ -17715,7 +17725,8 @@ module Aws::EC2
17715
17725
  # resp.fleets[0].valid_until #=> Time
17716
17726
  # resp.fleets[0].replace_unhealthy_instances #=> Boolean
17717
17727
  # resp.fleets[0].spot_options.allocation_strategy #=> String, one of "lowest-price", "diversified", "capacity-optimized", "capacity-optimized-prioritized"
17718
- # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch"
17728
+ # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch", "launch-before-terminate"
17729
+ # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.termination_delay #=> Integer
17719
17730
  # resp.fleets[0].spot_options.instance_interruption_behavior #=> String, one of "hibernate", "stop", "terminate"
17720
17731
  # resp.fleets[0].spot_options.instance_pools_to_use_count #=> Integer
17721
17732
  # resp.fleets[0].spot_options.single_instance_type #=> Boolean
@@ -25994,7 +26005,8 @@ module Aws::EC2
25994
26005
  # resp.spot_fleet_request_configs[0].create_time #=> Time
25995
26006
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.allocation_strategy #=> String, one of "lowestPrice", "diversified", "capacityOptimized", "capacityOptimizedPrioritized"
25996
26007
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_allocation_strategy #=> String, one of "lowestPrice", "prioritized"
25997
- # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch"
26008
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch", "launch-before-terminate"
26009
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.termination_delay #=> Integer
25998
26010
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.client_token #=> String
25999
26011
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.excess_capacity_termination_policy #=> String, one of "noTermination", "default"
26000
26012
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.fulfilled_capacity #=> Float
@@ -41252,7 +41264,8 @@ module Aws::EC2
41252
41264
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
41253
41265
  # spot_maintenance_strategies: {
41254
41266
  # capacity_rebalance: {
41255
- # replacement_strategy: "launch", # accepts launch
41267
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
41268
+ # termination_delay: 1,
41256
41269
  # },
41257
41270
  # },
41258
41271
  # client_token: "String",
@@ -45211,7 +45224,7 @@ module Aws::EC2
45211
45224
  params: params,
45212
45225
  config: config)
45213
45226
  context[:gem_name] = 'aws-sdk-ec2'
45214
- context[:gem_version] = '1.275.0'
45227
+ context[:gem_version] = '1.276.0'
45215
45228
  Seahorse::Client::Request.new(handlers, context)
45216
45229
  end
45217
45230
 
@@ -6843,9 +6843,11 @@ module Aws::EC2
6843
6843
  FleetSet.member = Shapes::ShapeRef.new(shape: FleetData, location_name: "item")
6844
6844
 
6845
6845
  FleetSpotCapacityRebalance.add_member(:replacement_strategy, Shapes::ShapeRef.new(shape: FleetReplacementStrategy, location_name: "replacementStrategy"))
6846
+ FleetSpotCapacityRebalance.add_member(:termination_delay, Shapes::ShapeRef.new(shape: Integer, location_name: "terminationDelay"))
6846
6847
  FleetSpotCapacityRebalance.struct_class = Types::FleetSpotCapacityRebalance
6847
6848
 
6848
6849
  FleetSpotCapacityRebalanceRequest.add_member(:replacement_strategy, Shapes::ShapeRef.new(shape: FleetReplacementStrategy, location_name: "ReplacementStrategy"))
6850
+ FleetSpotCapacityRebalanceRequest.add_member(:termination_delay, Shapes::ShapeRef.new(shape: Integer, location_name: "TerminationDelay"))
6849
6851
  FleetSpotCapacityRebalanceRequest.struct_class = Types::FleetSpotCapacityRebalanceRequest
6850
6852
 
6851
6853
  FleetSpotMaintenanceStrategies.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: FleetSpotCapacityRebalance, location_name: "capacityRebalance"))
@@ -10770,6 +10772,7 @@ module Aws::EC2
10770
10772
  SnapshotTaskDetail.struct_class = Types::SnapshotTaskDetail
10771
10773
 
10772
10774
  SpotCapacityRebalance.add_member(:replacement_strategy, Shapes::ShapeRef.new(shape: ReplacementStrategy, location_name: "replacementStrategy"))
10775
+ SpotCapacityRebalance.add_member(:termination_delay, Shapes::ShapeRef.new(shape: Integer, location_name: "terminationDelay"))
10773
10776
  SpotCapacityRebalance.struct_class = Types::SpotCapacityRebalance
10774
10777
 
10775
10778
  SpotDatafeedSubscription.add_member(:bucket, Shapes::ShapeRef.new(shape: String, location_name: "bucket"))
@@ -40,7 +40,13 @@ module Aws
40
40
  region: params[:source_region],
41
41
  credentials_provider: context.config.credentials
42
42
  )
43
- url = Aws::Partitions::EndpointProvider.resolve(signer.region, 'ec2')
43
+ url = Aws::Partitions::EndpointProvider.resolve(
44
+ signer.region, 'ec2', 'regional',
45
+ {
46
+ dualstack: context.config.use_dualstack_endpoint,
47
+ fips: context.config.use_fips_endpoint
48
+ }
49
+ )
44
50
  url += "?#{param_list.to_s}"
45
51
 
46
52
  signer.presign_url(
@@ -7229,7 +7229,8 @@ module Aws::EC2
7229
7229
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
7230
7230
  # maintenance_strategies: {
7231
7231
  # capacity_rebalance: {
7232
- # replacement_strategy: "launch", # accepts launch
7232
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
7233
+ # termination_delay: 1,
7233
7234
  # },
7234
7235
  # },
7235
7236
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
@@ -31540,31 +31541,42 @@ module Aws::EC2
31540
31541
  # Instance is at an elevated risk of being interrupted.
31541
31542
  #
31542
31543
  # @!attribute [rw] replacement_strategy
31543
- # To allow EC2 Fleet to launch a replacement Spot Instance when an
31544
- # instance rebalance notification is emitted for an existing Spot
31545
- # Instance in the fleet, specify `launch`. Only available for fleets
31546
- # of type `maintain`.
31547
- #
31548
- # <note markdown="1"> When a replacement instance is launched, the instance marked for
31549
- # rebalance is not automatically terminated. You can terminate it, or
31550
- # you can leave it running. You are charged for both instances while
31551
- # they are running.
31544
+ # The replacement strategy to use. Only available for fleets of type
31545
+ # `maintain`.
31552
31546
  #
31553
- # </note>
31547
+ # `launch` - EC2 Fleet launches a new replacement Spot Instance when a
31548
+ # rebalance notification is emitted for an existing Spot Instance in
31549
+ # the fleet. EC2 Fleet does not terminate the instances that receive a
31550
+ # rebalance notification. You can terminate the old instances, or you
31551
+ # can leave them running. You are charged for all instances while they
31552
+ # are running.
31553
+ #
31554
+ # `launch-before-terminate` - EC2 Fleet launches a new replacement
31555
+ # Spot Instance when a rebalance notification is emitted for an
31556
+ # existing Spot Instance in the fleet, and then, after a delay that
31557
+ # you specify (in `TerminationDelay`), terminates the instances that
31558
+ # received a rebalance notification.
31554
31559
  # @return [String]
31555
31560
  #
31561
+ # @!attribute [rw] termination_delay
31562
+ # The amount of time (in seconds) that Amazon EC2 waits before
31563
+ # terminating the old Spot Instance after launching a new replacement
31564
+ # Spot Instance.
31565
+ # @return [Integer]
31566
+ #
31556
31567
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetSpotCapacityRebalance AWS API Documentation
31557
31568
  #
31558
31569
  class FleetSpotCapacityRebalance < Struct.new(
31559
- :replacement_strategy)
31570
+ :replacement_strategy,
31571
+ :termination_delay)
31560
31572
  SENSITIVE = []
31561
31573
  include Aws::Structure
31562
31574
  end
31563
31575
 
31564
31576
  # The Spot Instance replacement strategy to use when Amazon EC2 emits a
31565
- # signal that your Spot Instance is at an elevated risk of being
31566
- # interrupted. For more information, see [Capacity rebalancing][1] in
31567
- # the *Amazon EC2 User Guide*.
31577
+ # rebalance notification signal that your Spot Instance is at an
31578
+ # elevated risk of being interrupted. For more information, see
31579
+ # [Capacity rebalancing][1] in the *Amazon EC2 User Guide*.
31568
31580
  #
31569
31581
  #
31570
31582
  #
@@ -31574,30 +31586,39 @@ module Aws::EC2
31574
31586
  # data as a hash:
31575
31587
  #
31576
31588
  # {
31577
- # replacement_strategy: "launch", # accepts launch
31589
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
31590
+ # termination_delay: 1,
31578
31591
  # }
31579
31592
  #
31580
31593
  # @!attribute [rw] replacement_strategy
31581
31594
  # The replacement strategy to use. Only available for fleets of type
31582
31595
  # `maintain`.
31583
31596
  #
31584
- # To allow EC2 Fleet to launch a replacement Spot Instance when an
31585
- # instance rebalance notification is emitted for an existing Spot
31586
- # Instance in the fleet, specify `launch`. You must specify a value,
31587
- # otherwise you get an error.
31588
- #
31589
- # <note markdown="1"> When a replacement instance is launched, the instance marked for
31590
- # rebalance is not automatically terminated. You can terminate it, or
31591
- # you can leave it running. You are charged for all instances while
31592
- # they are running.
31597
+ # `launch` - EC2 Fleet launches a replacement Spot Instance when a
31598
+ # rebalance notification is emitted for an existing Spot Instance in
31599
+ # the fleet. EC2 Fleet does not terminate the instances that receive a
31600
+ # rebalance notification. You can terminate the old instances, or you
31601
+ # can leave them running. You are charged for all instances while they
31602
+ # are running.
31593
31603
  #
31594
- # </note>
31604
+ # `launch-before-terminate` - EC2 Fleet launches a replacement Spot
31605
+ # Instance when a rebalance notification is emitted for an existing
31606
+ # Spot Instance in the fleet, and then, after a delay that you specify
31607
+ # (in `TerminationDelay`), terminates the instances that received a
31608
+ # rebalance notification.
31595
31609
  # @return [String]
31596
31610
  #
31611
+ # @!attribute [rw] termination_delay
31612
+ # The amount of time (in seconds) that Amazon EC2 waits before
31613
+ # terminating the old Spot Instance after launching a new replacement
31614
+ # Spot Instance.
31615
+ # @return [Integer]
31616
+ #
31597
31617
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetSpotCapacityRebalanceRequest AWS API Documentation
31598
31618
  #
31599
31619
  class FleetSpotCapacityRebalanceRequest < Struct.new(
31600
- :replacement_strategy)
31620
+ :replacement_strategy,
31621
+ :termination_delay)
31601
31622
  SENSITIVE = []
31602
31623
  include Aws::Structure
31603
31624
  end
@@ -31626,7 +31647,8 @@ module Aws::EC2
31626
31647
  #
31627
31648
  # {
31628
31649
  # capacity_rebalance: {
31629
- # replacement_strategy: "launch", # accepts launch
31650
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
31651
+ # termination_delay: 1,
31630
31652
  # },
31631
31653
  # }
31632
31654
  #
@@ -50786,7 +50808,8 @@ module Aws::EC2
50786
50808
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
50787
50809
  # spot_maintenance_strategies: {
50788
50810
  # capacity_rebalance: {
50789
- # replacement_strategy: "launch", # accepts launch
50811
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
50812
+ # termination_delay: 1,
50790
50813
  # },
50791
50814
  # },
50792
50815
  # client_token: "String",
@@ -56126,29 +56149,39 @@ module Aws::EC2
56126
56149
  # data as a hash:
56127
56150
  #
56128
56151
  # {
56129
- # replacement_strategy: "launch", # accepts launch
56152
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
56153
+ # termination_delay: 1,
56130
56154
  # }
56131
56155
  #
56132
56156
  # @!attribute [rw] replacement_strategy
56133
56157
  # The replacement strategy to use. Only available for fleets of type
56134
- # `maintain`. You must specify a value, otherwise you get an error.
56135
- #
56136
- # To allow Spot Fleet to launch a replacement Spot Instance when an
56137
- # instance rebalance notification is emitted for a Spot Instance in
56138
- # the fleet, specify `launch`.
56158
+ # `maintain`.
56139
56159
  #
56140
- # <note markdown="1"> When a replacement instance is launched, the instance marked for
56141
- # rebalance is not automatically terminated. You can terminate it, or
56142
- # you can leave it running. You are charged for all instances while
56160
+ # `launch` - Spot Fleet launches a new replacement Spot Instance when
56161
+ # a rebalance notification is emitted for an existing Spot Instance in
56162
+ # the fleet. Spot Fleet does not terminate the instances that receive
56163
+ # a rebalance notification. You can terminate the old instances, or
56164
+ # you can leave them running. You are charged for all instances while
56143
56165
  # they are running.
56144
56166
  #
56145
- # </note>
56167
+ # `launch-before-terminate` - Spot Fleet launches a new replacement
56168
+ # Spot Instance when a rebalance notification is emitted for an
56169
+ # existing Spot Instance in the fleet, and then, after a delay that
56170
+ # you specify (in `TerminationDelay`), terminates the instances that
56171
+ # received a rebalance notification.
56146
56172
  # @return [String]
56147
56173
  #
56174
+ # @!attribute [rw] termination_delay
56175
+ # The amount of time (in seconds) that Amazon EC2 waits before
56176
+ # terminating the old Spot Instance after launching a new replacement
56177
+ # Spot Instance.
56178
+ # @return [Integer]
56179
+ #
56148
56180
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotCapacityRebalance AWS API Documentation
56149
56181
  #
56150
56182
  class SpotCapacityRebalance < Struct.new(
56151
- :replacement_strategy)
56183
+ :replacement_strategy,
56184
+ :termination_delay)
56152
56185
  SENSITIVE = []
56153
56186
  include Aws::Structure
56154
56187
  end
@@ -56577,7 +56610,8 @@ module Aws::EC2
56577
56610
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
56578
56611
  # spot_maintenance_strategies: {
56579
56612
  # capacity_rebalance: {
56580
- # replacement_strategy: "launch", # accepts launch
56613
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
56614
+ # termination_delay: 1,
56581
56615
  # },
56582
56616
  # },
56583
56617
  # client_token: "String",
@@ -57339,7 +57373,8 @@ module Aws::EC2
57339
57373
  #
57340
57374
  # {
57341
57375
  # capacity_rebalance: {
57342
- # replacement_strategy: "launch", # accepts launch
57376
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
57377
+ # termination_delay: 1,
57343
57378
  # },
57344
57379
  # }
57345
57380
  #
@@ -57522,7 +57557,8 @@ module Aws::EC2
57522
57557
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
57523
57558
  # maintenance_strategies: {
57524
57559
  # capacity_rebalance: {
57525
- # replacement_strategy: "launch", # accepts launch
57560
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
57561
+ # termination_delay: 1,
57526
57562
  # },
57527
57563
  # },
57528
57564
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.275.0'
75
+ GEM_VERSION = '1.276.0'
76
76
 
77
77
  end
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.275.0
4
+ version: 1.276.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: 2021-10-29 00:00:00.000000000 Z
11
+ date: 2021-11-04 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.121.2
36
+ version: 3.122.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.121.2
46
+ version: 3.122.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: