aws-sdk-ec2 1.342.0 → 1.343.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +36 -6
- data/lib/aws-sdk-ec2/client_api.rb +5 -0
- data/lib/aws-sdk-ec2/types.rb +46 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dbab6093923da9c9f66c8e6caa56b25e2abe05076fd47adfebb7abb709d490f
|
4
|
+
data.tar.gz: 916aeea7bea6bf97a945b2e1e92fa483d40cefc4a48e392c53caf5a65163c391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
1.343.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -9777,9 +9777,11 @@ module Aws::EC2
|
|
9777
9777
|
req.send_request(options)
|
9778
9778
|
end
|
9779
9779
|
|
9780
|
-
#
|
9781
|
-
#
|
9782
|
-
#
|
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.
|
9797
|
-
#
|
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.
|
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")
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -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.
|
11338
|
-
#
|
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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.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-
|
11
|
+
date: 2022-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|