aws-sdk-ec2 1.342.0 → 1.343.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: 53000777a099d2b3ff449f1c31990e19c802b5b29c61d969ded5b732c2de65c0
4
- data.tar.gz: bc8636cd4a125994823e63e351963fcafa3fa0af8a03559316d76ddfdd49c647
3
+ metadata.gz: 0dbab6093923da9c9f66c8e6caa56b25e2abe05076fd47adfebb7abb709d490f
4
+ data.tar.gz: 916aeea7bea6bf97a945b2e1e92fa483d40cefc4a48e392c53caf5a65163c391
5
5
  SHA512:
6
- metadata.gz: fd0865b87a6d92f96cffe931839de29d2bf32aa59ed7ae14446963316753ff8a7b8d098e04dc1e420f08f1c802afe678d01f637595dc8e5c9e2adc5405f38975
7
- data.tar.gz: 3580f9ff519fdce7a1e1b4c6cbbc10ce87454da9a50f2bd79c5bd4b15be1959f894702579cffb118108eba2fa2ff9355f9d927af30f1967c3d0af74b0379179e
6
+ metadata.gz: 68a188ce1260c632cbdc2f7222f9ed4b0e7e01eb80c641776b770639e7e1d02f3ed6513b62f5eb58e150a84928b56424a048757c97eaeb040a4b9525240f1b3a
7
+ data.tar.gz: 3c2d8ead1b12ff6bbdb4094aedd982f763b82159153a5912ba1bf1dae57e5665fb9e93e78444427d3caffd48cb514a9decade44b44977264f435ca35e8d1435c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.343.0 (2022-10-27)
5
+ ------------------
6
+
7
+ * Feature - Feature supports the replacement of instance root volume using an updated AMI without requiring customers to stop their instance.
8
+
4
9
  1.342.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.342.0
1
+ 1.343.0
@@ -9777,9 +9777,11 @@ module Aws::EC2
9777
9777
  req.send_request(options)
9778
9778
  end
9779
9779
 
9780
- # Creates a root volume replacement task for an Amazon EC2 instance. The
9781
- # root volume can either be restored to its initial launch state, or it
9782
- # can be restored using a specific snapshot.
9780
+ # Replaces the EBS-backed root volume for a `running` instance with a
9781
+ # new volume that is restored to the original root volume's launch
9782
+ # state, that is restored to a specific snapshot taken from the original
9783
+ # root volume, or that is restored from an AMI that has the same key
9784
+ # characteristics as that of the instance.
9783
9785
  #
9784
9786
  # For more information, see [Replace a root volume][1] in the *Amazon
9785
9787
  # Elastic Compute Cloud User Guide*.
@@ -9793,8 +9795,12 @@ module Aws::EC2
9793
9795
  #
9794
9796
  # @option params [String] :snapshot_id
9795
9797
  # The ID of the snapshot from which to restore the replacement root
9796
- # volume. If you want to restore the volume to the initial launch state,
9797
- # omit this parameter.
9798
+ # volume. The specified snapshot must be a snapshot that you previously
9799
+ # created from the original root volume.
9800
+ #
9801
+ # If you want to restore the replacement root volume to the initial
9802
+ # launch state, or if you want to restore the replacement root volume
9803
+ # from an AMI, omit this parameter.
9798
9804
  #
9799
9805
  # @option params [String] :client_token
9800
9806
  # Unique, case-sensitive identifier you provide to ensure the
@@ -9818,6 +9824,22 @@ module Aws::EC2
9818
9824
  # @option params [Array<Types::TagSpecification>] :tag_specifications
9819
9825
  # The tags to apply to the root volume replacement task.
9820
9826
  #
9827
+ # @option params [String] :image_id
9828
+ # The ID of the AMI to use to restore the root volume. The specified AMI
9829
+ # must have the same product code, billing information, architecture
9830
+ # type, and virtualization type as that of the instance.
9831
+ #
9832
+ # If you want to restore the replacement volume from a specific
9833
+ # snapshot, or if you want to restore it to its launch state, omit this
9834
+ # parameter.
9835
+ #
9836
+ # @option params [Boolean] :delete_replaced_root_volume
9837
+ # Indicates whether to automatically delete the original root volume
9838
+ # after the root volume replacement task completes. To delete the
9839
+ # original root volume, specify `true`. If you choose to keep the
9840
+ # original root volume after the replacement task completes, you must
9841
+ # manually delete it when you no longer need it.
9842
+ #
9821
9843
  # @return [Types::CreateReplaceRootVolumeTaskResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9822
9844
  #
9823
9845
  # * {Types::CreateReplaceRootVolumeTaskResult#replace_root_volume_task #replace_root_volume_task} => Types::ReplaceRootVolumeTask
@@ -9840,6 +9862,8 @@ module Aws::EC2
9840
9862
  # ],
9841
9863
  # },
9842
9864
  # ],
9865
+ # image_id: "ImageId",
9866
+ # delete_replaced_root_volume: false,
9843
9867
  # })
9844
9868
  #
9845
9869
  # @example Response structure
@@ -9852,6 +9876,9 @@ module Aws::EC2
9852
9876
  # resp.replace_root_volume_task.tags #=> Array
9853
9877
  # resp.replace_root_volume_task.tags[0].key #=> String
9854
9878
  # resp.replace_root_volume_task.tags[0].value #=> String
9879
+ # resp.replace_root_volume_task.image_id #=> String
9880
+ # resp.replace_root_volume_task.snapshot_id #=> String
9881
+ # resp.replace_root_volume_task.delete_replaced_root_volume #=> Boolean
9855
9882
  #
9856
9883
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReplaceRootVolumeTask AWS API Documentation
9857
9884
  #
@@ -27178,6 +27205,9 @@ module Aws::EC2
27178
27205
  # resp.replace_root_volume_tasks[0].tags #=> Array
27179
27206
  # resp.replace_root_volume_tasks[0].tags[0].key #=> String
27180
27207
  # resp.replace_root_volume_tasks[0].tags[0].value #=> String
27208
+ # resp.replace_root_volume_tasks[0].image_id #=> String
27209
+ # resp.replace_root_volume_tasks[0].snapshot_id #=> String
27210
+ # resp.replace_root_volume_tasks[0].delete_replaced_root_volume #=> Boolean
27181
27211
  # resp.next_token #=> String
27182
27212
  #
27183
27213
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeReplaceRootVolumeTasks AWS API Documentation
@@ -52181,7 +52211,7 @@ module Aws::EC2
52181
52211
  params: params,
52182
52212
  config: config)
52183
52213
  context[:gem_name] = 'aws-sdk-ec2'
52184
- context[:gem_version] = '1.342.0'
52214
+ context[:gem_version] = '1.343.0'
52185
52215
  Seahorse::Client::Request.new(handlers, context)
52186
52216
  end
52187
52217
 
@@ -4410,6 +4410,8 @@ module Aws::EC2
4410
4410
  CreateReplaceRootVolumeTaskRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
4411
4411
  CreateReplaceRootVolumeTaskRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
4412
4412
  CreateReplaceRootVolumeTaskRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
4413
+ CreateReplaceRootVolumeTaskRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "ImageId"))
4414
+ CreateReplaceRootVolumeTaskRequest.add_member(:delete_replaced_root_volume, Shapes::ShapeRef.new(shape: Boolean, location_name: "DeleteReplacedRootVolume"))
4413
4415
  CreateReplaceRootVolumeTaskRequest.struct_class = Types::CreateReplaceRootVolumeTaskRequest
4414
4416
 
4415
4417
  CreateReplaceRootVolumeTaskResult.add_member(:replace_root_volume_task, Shapes::ShapeRef.new(shape: ReplaceRootVolumeTask, location_name: "replaceRootVolumeTask"))
@@ -11313,6 +11315,9 @@ module Aws::EC2
11313
11315
  ReplaceRootVolumeTask.add_member(:start_time, Shapes::ShapeRef.new(shape: String, location_name: "startTime"))
11314
11316
  ReplaceRootVolumeTask.add_member(:complete_time, Shapes::ShapeRef.new(shape: String, location_name: "completeTime"))
11315
11317
  ReplaceRootVolumeTask.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
11318
+ ReplaceRootVolumeTask.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "imageId"))
11319
+ ReplaceRootVolumeTask.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, location_name: "snapshotId"))
11320
+ ReplaceRootVolumeTask.add_member(:delete_replaced_root_volume, Shapes::ShapeRef.new(shape: Boolean, location_name: "deleteReplacedRootVolume"))
11316
11321
  ReplaceRootVolumeTask.struct_class = Types::ReplaceRootVolumeTask
11317
11322
 
11318
11323
  ReplaceRootVolumeTaskIds.member = Shapes::ShapeRef.new(shape: ReplaceRootVolumeTaskId, location_name: "ReplaceRootVolumeTaskId")
@@ -11326,6 +11326,8 @@ module Aws::EC2
11326
11326
  # ],
11327
11327
  # },
11328
11328
  # ],
11329
+ # image_id: "ImageId",
11330
+ # delete_replaced_root_volume: false,
11329
11331
  # }
11330
11332
  #
11331
11333
  # @!attribute [rw] instance_id
@@ -11334,8 +11336,12 @@ module Aws::EC2
11334
11336
  #
11335
11337
  # @!attribute [rw] snapshot_id
11336
11338
  # The ID of the snapshot from which to restore the replacement root
11337
- # volume. If you want to restore the volume to the initial launch
11338
- # state, omit this parameter.
11339
+ # volume. The specified snapshot must be a snapshot that you
11340
+ # previously created from the original root volume.
11341
+ #
11342
+ # If you want to restore the replacement root volume to the initial
11343
+ # launch state, or if you want to restore the replacement root volume
11344
+ # from an AMI, omit this parameter.
11339
11345
  # @return [String]
11340
11346
  #
11341
11347
  # @!attribute [rw] client_token
@@ -11363,6 +11369,24 @@ module Aws::EC2
11363
11369
  # The tags to apply to the root volume replacement task.
11364
11370
  # @return [Array<Types::TagSpecification>]
11365
11371
  #
11372
+ # @!attribute [rw] image_id
11373
+ # The ID of the AMI to use to restore the root volume. The specified
11374
+ # AMI must have the same product code, billing information,
11375
+ # architecture type, and virtualization type as that of the instance.
11376
+ #
11377
+ # If you want to restore the replacement volume from a specific
11378
+ # snapshot, or if you want to restore it to its launch state, omit
11379
+ # this parameter.
11380
+ # @return [String]
11381
+ #
11382
+ # @!attribute [rw] delete_replaced_root_volume
11383
+ # Indicates whether to automatically delete the original root volume
11384
+ # after the root volume replacement task completes. To delete the
11385
+ # original root volume, specify `true`. If you choose to keep the
11386
+ # original root volume after the replacement task completes, you must
11387
+ # manually delete it when you no longer need it.
11388
+ # @return [Boolean]
11389
+ #
11366
11390
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateReplaceRootVolumeTaskRequest AWS API Documentation
11367
11391
  #
11368
11392
  class CreateReplaceRootVolumeTaskRequest < Struct.new(
@@ -11370,7 +11394,9 @@ module Aws::EC2
11370
11394
  :snapshot_id,
11371
11395
  :client_token,
11372
11396
  :dry_run,
11373
- :tag_specifications)
11397
+ :tag_specifications,
11398
+ :image_id,
11399
+ :delete_replaced_root_volume)
11374
11400
  SENSITIVE = []
11375
11401
  include Aws::Structure
11376
11402
  end
@@ -57568,6 +57594,19 @@ module Aws::EC2
57568
57594
  # The tags assigned to the task.
57569
57595
  # @return [Array<Types::Tag>]
57570
57596
  #
57597
+ # @!attribute [rw] image_id
57598
+ # The ID of the AMI used to create the replacement root volume.
57599
+ # @return [String]
57600
+ #
57601
+ # @!attribute [rw] snapshot_id
57602
+ # The ID of the snapshot used to create the replacement root volume.
57603
+ # @return [String]
57604
+ #
57605
+ # @!attribute [rw] delete_replaced_root_volume
57606
+ # Indicates whether the original root volume is to be deleted after
57607
+ # the root volume replacement task completes.
57608
+ # @return [Boolean]
57609
+ #
57571
57610
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceRootVolumeTask AWS API Documentation
57572
57611
  #
57573
57612
  class ReplaceRootVolumeTask < Struct.new(
@@ -57576,7 +57615,10 @@ module Aws::EC2
57576
57615
  :task_state,
57577
57616
  :start_time,
57578
57617
  :complete_time,
57579
- :tags)
57618
+ :tags,
57619
+ :image_id,
57620
+ :snapshot_id,
57621
+ :delete_replaced_root_volume)
57580
57622
  SENSITIVE = []
57581
57623
  include Aws::Structure
57582
57624
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -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.342.0'
79
+ GEM_VERSION = '1.343.0'
80
80
 
81
81
  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.342.0
4
+ version: 1.343.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: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2022-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4