aws-sdk-ec2 1.296.0 → 1.298.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +159 -5
- data/lib/aws-sdk-ec2/client_api.rb +55 -0
- data/lib/aws-sdk-ec2/types.rb +195 -1
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf3155c7fa3fdb33321924ff08de68a5e7194cc83b3436bfcec819be7fb77fe
|
4
|
+
data.tar.gz: 90211ba52ad5ca5096b3eb9dc787cc8c7c4589ec6c1f1c485e7a2c6f8b9b8e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ecde6fbee613841829bc18e956a21e20b066a4cce21744ad5e330da36eb27f2ba928d382a16b3ca1e6d6ac6307a098f1104f94c0d7d36427db6fee748b6747
|
7
|
+
data.tar.gz: c09ddb656e6ce0cebc9504dab302b051ec8f8f0a1f1fb17d74f343a22f2b69974c056866fe732a9d669f1c9a657e1d0c62229aa429efe81684abbef931dac8b7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.298.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - adds support for AMIs in Recycle Bin
|
8
|
+
|
9
|
+
1.297.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - adds support for AMIs in Recycle Bin
|
13
|
+
|
4
14
|
1.296.0 (2022-01-27)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.298.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -28,6 +28,7 @@ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
30
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
31
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
32
33
|
require 'aws-sdk-core/plugins/protocols/ec2.rb'
|
33
34
|
require 'aws-sdk-ec2/plugins/copy_encrypted_snapshot.rb'
|
@@ -77,6 +78,7 @@ module Aws::EC2
|
|
77
78
|
add_plugin(Aws::Plugins::TransferEncoding)
|
78
79
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
81
83
|
add_plugin(Aws::Plugins::Protocols::EC2)
|
82
84
|
add_plugin(Aws::EC2::Plugins::CopyEncryptedSnapshot)
|
@@ -4791,8 +4793,16 @@ module Aws::EC2
|
|
4791
4793
|
# connections.
|
4792
4794
|
#
|
4793
4795
|
# @option params [Integer] :session_timeout_hours
|
4796
|
+
# The maximum VPN session duration time in hours.
|
4797
|
+
#
|
4798
|
+
# Valid values: `8 | 10 | 12 | 24`
|
4799
|
+
#
|
4800
|
+
# Default value: `24`
|
4794
4801
|
#
|
4795
4802
|
# @option params [Types::ClientLoginBannerOptions] :client_login_banner_options
|
4803
|
+
# Options for enabling a customizable text banner that will be displayed
|
4804
|
+
# on Amazon Web Services provided clients when a VPN session is
|
4805
|
+
# established.
|
4796
4806
|
#
|
4797
4807
|
# @return [Types::CreateClientVpnEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4798
4808
|
#
|
@@ -6109,6 +6119,13 @@ module Aws::EC2
|
|
6109
6119
|
# Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance
|
6110
6120
|
# that is either running or stopped.
|
6111
6121
|
#
|
6122
|
+
# By default, Amazon EC2 shuts down and reboots the instance before
|
6123
|
+
# creating the AMI to ensure that everything on the instance is stopped
|
6124
|
+
# and in a consistent state during the creation process. If you're
|
6125
|
+
# confident that your instance is in a consistent state appropriate for
|
6126
|
+
# AMI creation, use the **NoReboot** parameter to prevent Amazon EC2
|
6127
|
+
# from shutting down and rebooting the instance.
|
6128
|
+
#
|
6112
6129
|
# If you customized your instance with instance store volumes or Amazon
|
6113
6130
|
# EBS volumes in addition to the root device volume, the new AMI
|
6114
6131
|
# contains block device mapping information for those volumes. When you
|
@@ -16189,9 +16206,16 @@ module Aws::EC2
|
|
16189
16206
|
end
|
16190
16207
|
|
16191
16208
|
# Deregisters the specified AMI. After you deregister an AMI, it can't
|
16192
|
-
# be used to launch new instances
|
16193
|
-
#
|
16194
|
-
#
|
16209
|
+
# be used to launch new instances.
|
16210
|
+
#
|
16211
|
+
# If you deregister an AMI that matches a Recycle Bin retention rule,
|
16212
|
+
# the AMI is retained in the Recycle Bin for the specified retention
|
16213
|
+
# period. For more information, see [Recycle Bin][1] in the Amazon
|
16214
|
+
# Elastic Compute Cloud User Guide.
|
16215
|
+
#
|
16216
|
+
# When you deregister an AMI, it doesn't affect any instances that
|
16217
|
+
# you've already launched from the AMI. You'll continue to incur usage
|
16218
|
+
# costs for those instances until you terminate them.
|
16195
16219
|
#
|
16196
16220
|
# When you deregister an Amazon EBS-backed AMI, it doesn't affect the
|
16197
16221
|
# snapshot that was created for the root volume of the instance during
|
@@ -16199,6 +16223,10 @@ module Aws::EC2
|
|
16199
16223
|
# AMI, it doesn't affect the files that you uploaded to Amazon S3 when
|
16200
16224
|
# you created the AMI.
|
16201
16225
|
#
|
16226
|
+
#
|
16227
|
+
#
|
16228
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html
|
16229
|
+
#
|
16202
16230
|
# @option params [required, String] :image_id
|
16203
16231
|
# The ID of the AMI.
|
16204
16232
|
#
|
@@ -32511,6 +32539,10 @@ module Aws::EC2
|
|
32511
32539
|
# pre-provisioned snapshots must be removed before you can enable faster
|
32512
32540
|
# launching again.
|
32513
32541
|
#
|
32542
|
+
# <note markdown="1"> To change these settings, you must own the AMI.
|
32543
|
+
#
|
32544
|
+
# </note>
|
32545
|
+
#
|
32514
32546
|
# @option params [required, String] :image_id
|
32515
32547
|
# The ID of the image for which you’re turning off faster launching, and
|
32516
32548
|
# removing pre-provisioned snapshots.
|
@@ -33544,6 +33576,10 @@ module Aws::EC2
|
|
33544
33576
|
# reserved snapshots are automatically replenished as they are used,
|
33545
33577
|
# depending on your settings for launch frequency.
|
33546
33578
|
#
|
33579
|
+
# <note markdown="1"> To change these settings, you must own the AMI.
|
33580
|
+
#
|
33581
|
+
# </note>
|
33582
|
+
#
|
33547
33583
|
# @option params [required, String] :image_id
|
33548
33584
|
# The ID of the image for which you’re enabling faster launching.
|
33549
33585
|
#
|
@@ -33564,7 +33600,7 @@ module Aws::EC2
|
|
33564
33600
|
#
|
33565
33601
|
# @option params [Integer] :max_parallel_launches
|
33566
33602
|
# The maximum number of parallel instances to launch for creating
|
33567
|
-
# resources.
|
33603
|
+
# resources. Value must be `6` or greater.
|
33568
33604
|
#
|
33569
33605
|
# @option params [Boolean] :dry_run
|
33570
33606
|
# Checks whether you have the required permissions for the action,
|
@@ -37694,6 +37730,76 @@ module Aws::EC2
|
|
37694
37730
|
req.send_request(options)
|
37695
37731
|
end
|
37696
37732
|
|
37733
|
+
# Lists one or more AMIs that are currently in the Recycle Bin. For more
|
37734
|
+
# information, see [Recycle Bin][1] in the Amazon Elastic Compute Cloud
|
37735
|
+
# User Guide.
|
37736
|
+
#
|
37737
|
+
#
|
37738
|
+
#
|
37739
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html
|
37740
|
+
#
|
37741
|
+
# @option params [Array<String>] :image_ids
|
37742
|
+
# The IDs of the AMIs to list. Omit this parameter to list all of the
|
37743
|
+
# AMIs that are in the Recycle Bin. You can specify up to 20 IDs in a
|
37744
|
+
# single request.
|
37745
|
+
#
|
37746
|
+
# @option params [String] :next_token
|
37747
|
+
# The token for the next page of results.
|
37748
|
+
#
|
37749
|
+
# @option params [Integer] :max_results
|
37750
|
+
# The maximum number of results to return with a single call. To
|
37751
|
+
# retrieve the remaining results, make another call with the returned
|
37752
|
+
# `nextToken` value.
|
37753
|
+
#
|
37754
|
+
# If you do not specify a value for *MaxResults*, the request returns
|
37755
|
+
# 1,000 items per page by default. For more information, see [
|
37756
|
+
# Pagination][1].
|
37757
|
+
#
|
37758
|
+
#
|
37759
|
+
#
|
37760
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
37761
|
+
#
|
37762
|
+
# @option params [Boolean] :dry_run
|
37763
|
+
# Checks whether you have the required permissions for the action,
|
37764
|
+
# without actually making the request, and provides an error response.
|
37765
|
+
# If you have the required permissions, the error response is
|
37766
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
37767
|
+
#
|
37768
|
+
# @return [Types::ListImagesInRecycleBinResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
37769
|
+
#
|
37770
|
+
# * {Types::ListImagesInRecycleBinResult#images #images} => Array<Types::ImageRecycleBinInfo>
|
37771
|
+
# * {Types::ListImagesInRecycleBinResult#next_token #next_token} => String
|
37772
|
+
#
|
37773
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
37774
|
+
#
|
37775
|
+
# @example Request syntax with placeholder values
|
37776
|
+
#
|
37777
|
+
# resp = client.list_images_in_recycle_bin({
|
37778
|
+
# image_ids: ["ImageId"],
|
37779
|
+
# next_token: "String",
|
37780
|
+
# max_results: 1,
|
37781
|
+
# dry_run: false,
|
37782
|
+
# })
|
37783
|
+
#
|
37784
|
+
# @example Response structure
|
37785
|
+
#
|
37786
|
+
# resp.images #=> Array
|
37787
|
+
# resp.images[0].image_id #=> String
|
37788
|
+
# resp.images[0].name #=> String
|
37789
|
+
# resp.images[0].description #=> String
|
37790
|
+
# resp.images[0].recycle_bin_enter_time #=> Time
|
37791
|
+
# resp.images[0].recycle_bin_exit_time #=> Time
|
37792
|
+
# resp.next_token #=> String
|
37793
|
+
#
|
37794
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ListImagesInRecycleBin AWS API Documentation
|
37795
|
+
#
|
37796
|
+
# @overload list_images_in_recycle_bin(params = {})
|
37797
|
+
# @param [Hash] params ({})
|
37798
|
+
def list_images_in_recycle_bin(params = {}, options = {})
|
37799
|
+
req = build_request(:list_images_in_recycle_bin, params)
|
37800
|
+
req.send_request(options)
|
37801
|
+
end
|
37802
|
+
|
37697
37803
|
# Lists one or more snapshots that are currently in the Recycle Bin.
|
37698
37804
|
#
|
37699
37805
|
# @option params [Integer] :max_results
|
@@ -38088,8 +38194,16 @@ module Aws::EC2
|
|
38088
38194
|
# connections.
|
38089
38195
|
#
|
38090
38196
|
# @option params [Integer] :session_timeout_hours
|
38197
|
+
# The maximum VPN session duration time in hours.
|
38198
|
+
#
|
38199
|
+
# Valid values: `8 | 10 | 12 | 24`
|
38200
|
+
#
|
38201
|
+
# Default value: `24`
|
38091
38202
|
#
|
38092
38203
|
# @option params [Types::ClientLoginBannerOptions] :client_login_banner_options
|
38204
|
+
# Options for enabling a customizable text banner that will be displayed
|
38205
|
+
# on Amazon Web Services provided clients when a VPN session is
|
38206
|
+
# established.
|
38093
38207
|
#
|
38094
38208
|
# @return [Types::ModifyClientVpnEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
38095
38209
|
#
|
@@ -45912,6 +46026,46 @@ module Aws::EC2
|
|
45912
46026
|
req.send_request(options)
|
45913
46027
|
end
|
45914
46028
|
|
46029
|
+
# Restores an AMI from the Recycle Bin. For more information, see
|
46030
|
+
# [Recycle Bin][1] in the Amazon Elastic Compute Cloud User Guide.
|
46031
|
+
#
|
46032
|
+
#
|
46033
|
+
#
|
46034
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html
|
46035
|
+
#
|
46036
|
+
# @option params [required, String] :image_id
|
46037
|
+
# The ID of the AMI to restore.
|
46038
|
+
#
|
46039
|
+
# @option params [Boolean] :dry_run
|
46040
|
+
# Checks whether you have the required permissions for the action,
|
46041
|
+
# without actually making the request, and provides an error response.
|
46042
|
+
# If you have the required permissions, the error response is
|
46043
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
46044
|
+
#
|
46045
|
+
# @return [Types::RestoreImageFromRecycleBinResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
46046
|
+
#
|
46047
|
+
# * {Types::RestoreImageFromRecycleBinResult#return #return} => Boolean
|
46048
|
+
#
|
46049
|
+
# @example Request syntax with placeholder values
|
46050
|
+
#
|
46051
|
+
# resp = client.restore_image_from_recycle_bin({
|
46052
|
+
# image_id: "ImageId", # required
|
46053
|
+
# dry_run: false,
|
46054
|
+
# })
|
46055
|
+
#
|
46056
|
+
# @example Response structure
|
46057
|
+
#
|
46058
|
+
# resp.return #=> Boolean
|
46059
|
+
#
|
46060
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreImageFromRecycleBin AWS API Documentation
|
46061
|
+
#
|
46062
|
+
# @overload restore_image_from_recycle_bin(params = {})
|
46063
|
+
# @param [Hash] params ({})
|
46064
|
+
def restore_image_from_recycle_bin(params = {}, options = {})
|
46065
|
+
req = build_request(:restore_image_from_recycle_bin, params)
|
46066
|
+
req.send_request(options)
|
46067
|
+
end
|
46068
|
+
|
45915
46069
|
# Restores the entries from a previous version of a managed prefix list
|
45916
46070
|
# to a new version of the prefix list.
|
45917
46071
|
#
|
@@ -49093,7 +49247,7 @@ module Aws::EC2
|
|
49093
49247
|
params: params,
|
49094
49248
|
config: config)
|
49095
49249
|
context[:gem_name] = 'aws-sdk-ec2'
|
49096
|
-
context[:gem_version] = '1.
|
49250
|
+
context[:gem_version] = '1.298.0'
|
49097
49251
|
Seahorse::Client::Request.new(handlers, context)
|
49098
49252
|
end
|
49099
49253
|
|
@@ -1344,6 +1344,8 @@ module Aws::EC2
|
|
1344
1344
|
ImageIdList = Shapes::ListShape.new(name: 'ImageIdList')
|
1345
1345
|
ImageIdStringList = Shapes::ListShape.new(name: 'ImageIdStringList')
|
1346
1346
|
ImageList = Shapes::ListShape.new(name: 'ImageList')
|
1347
|
+
ImageRecycleBinInfo = Shapes::StructureShape.new(name: 'ImageRecycleBinInfo')
|
1348
|
+
ImageRecycleBinInfoList = Shapes::ListShape.new(name: 'ImageRecycleBinInfoList')
|
1347
1349
|
ImageState = Shapes::StringShape.new(name: 'ImageState')
|
1348
1350
|
ImageTypeValues = Shapes::StringShape.new(name: 'ImageTypeValues')
|
1349
1351
|
ImportClientVpnClientCertificateRevocationListRequest = Shapes::StructureShape.new(name: 'ImportClientVpnClientCertificateRevocationListRequest')
|
@@ -1657,6 +1659,9 @@ module Aws::EC2
|
|
1657
1659
|
LicenseConfigurationRequest = Shapes::StructureShape.new(name: 'LicenseConfigurationRequest')
|
1658
1660
|
LicenseList = Shapes::ListShape.new(name: 'LicenseList')
|
1659
1661
|
LicenseSpecificationListRequest = Shapes::ListShape.new(name: 'LicenseSpecificationListRequest')
|
1662
|
+
ListImagesInRecycleBinMaxResults = Shapes::IntegerShape.new(name: 'ListImagesInRecycleBinMaxResults')
|
1663
|
+
ListImagesInRecycleBinRequest = Shapes::StructureShape.new(name: 'ListImagesInRecycleBinRequest')
|
1664
|
+
ListImagesInRecycleBinResult = Shapes::StructureShape.new(name: 'ListImagesInRecycleBinResult')
|
1660
1665
|
ListSnapshotsInRecycleBinMaxResults = Shapes::IntegerShape.new(name: 'ListSnapshotsInRecycleBinMaxResults')
|
1661
1666
|
ListSnapshotsInRecycleBinRequest = Shapes::StructureShape.new(name: 'ListSnapshotsInRecycleBinRequest')
|
1662
1667
|
ListSnapshotsInRecycleBinResult = Shapes::StructureShape.new(name: 'ListSnapshotsInRecycleBinResult')
|
@@ -2179,6 +2184,8 @@ module Aws::EC2
|
|
2179
2184
|
RestorableByStringList = Shapes::ListShape.new(name: 'RestorableByStringList')
|
2180
2185
|
RestoreAddressToClassicRequest = Shapes::StructureShape.new(name: 'RestoreAddressToClassicRequest')
|
2181
2186
|
RestoreAddressToClassicResult = Shapes::StructureShape.new(name: 'RestoreAddressToClassicResult')
|
2187
|
+
RestoreImageFromRecycleBinRequest = Shapes::StructureShape.new(name: 'RestoreImageFromRecycleBinRequest')
|
2188
|
+
RestoreImageFromRecycleBinResult = Shapes::StructureShape.new(name: 'RestoreImageFromRecycleBinResult')
|
2182
2189
|
RestoreManagedPrefixListVersionRequest = Shapes::StructureShape.new(name: 'RestoreManagedPrefixListVersionRequest')
|
2183
2190
|
RestoreManagedPrefixListVersionResult = Shapes::StructureShape.new(name: 'RestoreManagedPrefixListVersionResult')
|
2184
2191
|
RestoreSnapshotFromRecycleBinRequest = Shapes::StructureShape.new(name: 'RestoreSnapshotFromRecycleBinRequest')
|
@@ -8040,6 +8047,15 @@ module Aws::EC2
|
|
8040
8047
|
|
8041
8048
|
ImageList.member = Shapes::ShapeRef.new(shape: Image, location_name: "item")
|
8042
8049
|
|
8050
|
+
ImageRecycleBinInfo.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
8051
|
+
ImageRecycleBinInfo.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
8052
|
+
ImageRecycleBinInfo.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
8053
|
+
ImageRecycleBinInfo.add_member(:recycle_bin_enter_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "recycleBinEnterTime"))
|
8054
|
+
ImageRecycleBinInfo.add_member(:recycle_bin_exit_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "recycleBinExitTime"))
|
8055
|
+
ImageRecycleBinInfo.struct_class = Types::ImageRecycleBinInfo
|
8056
|
+
|
8057
|
+
ImageRecycleBinInfoList.member = Shapes::ShapeRef.new(shape: ImageRecycleBinInfo, location_name: "item")
|
8058
|
+
|
8043
8059
|
ImportClientVpnClientCertificateRevocationListRequest.add_member(:client_vpn_endpoint_id, Shapes::ShapeRef.new(shape: ClientVpnEndpointId, required: true, location_name: "ClientVpnEndpointId"))
|
8044
8060
|
ImportClientVpnClientCertificateRevocationListRequest.add_member(:certificate_revocation_list, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CertificateRevocationList"))
|
8045
8061
|
ImportClientVpnClientCertificateRevocationListRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -9250,6 +9266,16 @@ module Aws::EC2
|
|
9250
9266
|
|
9251
9267
|
LicenseSpecificationListRequest.member = Shapes::ShapeRef.new(shape: LicenseConfigurationRequest, location_name: "item")
|
9252
9268
|
|
9269
|
+
ListImagesInRecycleBinRequest.add_member(:image_ids, Shapes::ShapeRef.new(shape: ImageIdStringList, location_name: "ImageId"))
|
9270
|
+
ListImagesInRecycleBinRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
9271
|
+
ListImagesInRecycleBinRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListImagesInRecycleBinMaxResults, location_name: "MaxResults"))
|
9272
|
+
ListImagesInRecycleBinRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
9273
|
+
ListImagesInRecycleBinRequest.struct_class = Types::ListImagesInRecycleBinRequest
|
9274
|
+
|
9275
|
+
ListImagesInRecycleBinResult.add_member(:images, Shapes::ShapeRef.new(shape: ImageRecycleBinInfoList, location_name: "imageSet"))
|
9276
|
+
ListImagesInRecycleBinResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
9277
|
+
ListImagesInRecycleBinResult.struct_class = Types::ListImagesInRecycleBinResult
|
9278
|
+
|
9253
9279
|
ListSnapshotsInRecycleBinRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListSnapshotsInRecycleBinMaxResults, location_name: "MaxResults"))
|
9254
9280
|
ListSnapshotsInRecycleBinRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
9255
9281
|
ListSnapshotsInRecycleBinRequest.add_member(:snapshot_ids, Shapes::ShapeRef.new(shape: SnapshotIdStringList, location_name: "SnapshotId"))
|
@@ -11263,6 +11289,13 @@ module Aws::EC2
|
|
11263
11289
|
RestoreAddressToClassicResult.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
|
11264
11290
|
RestoreAddressToClassicResult.struct_class = Types::RestoreAddressToClassicResult
|
11265
11291
|
|
11292
|
+
RestoreImageFromRecycleBinRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
11293
|
+
RestoreImageFromRecycleBinRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
11294
|
+
RestoreImageFromRecycleBinRequest.struct_class = Types::RestoreImageFromRecycleBinRequest
|
11295
|
+
|
11296
|
+
RestoreImageFromRecycleBinResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
11297
|
+
RestoreImageFromRecycleBinResult.struct_class = Types::RestoreImageFromRecycleBinResult
|
11298
|
+
|
11266
11299
|
RestoreManagedPrefixListVersionRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
11267
11300
|
RestoreManagedPrefixListVersionRequest.add_member(:prefix_list_id, Shapes::ShapeRef.new(shape: PrefixListResourceId, required: true, location_name: "PrefixListId"))
|
11268
11301
|
RestoreManagedPrefixListVersionRequest.add_member(:previous_version, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "PreviousVersion"))
|
@@ -17014,6 +17047,20 @@ module Aws::EC2
|
|
17014
17047
|
o.output = Shapes::ShapeRef.new(shape: ImportVolumeResult)
|
17015
17048
|
end)
|
17016
17049
|
|
17050
|
+
api.add_operation(:list_images_in_recycle_bin, Seahorse::Model::Operation.new.tap do |o|
|
17051
|
+
o.name = "ListImagesInRecycleBin"
|
17052
|
+
o.http_method = "POST"
|
17053
|
+
o.http_request_uri = "/"
|
17054
|
+
o.input = Shapes::ShapeRef.new(shape: ListImagesInRecycleBinRequest)
|
17055
|
+
o.output = Shapes::ShapeRef.new(shape: ListImagesInRecycleBinResult)
|
17056
|
+
o[:pager] = Aws::Pager.new(
|
17057
|
+
limit_key: "max_results",
|
17058
|
+
tokens: {
|
17059
|
+
"next_token" => "next_token"
|
17060
|
+
}
|
17061
|
+
)
|
17062
|
+
end)
|
17063
|
+
|
17017
17064
|
api.add_operation(:list_snapshots_in_recycle_bin, Seahorse::Model::Operation.new.tap do |o|
|
17018
17065
|
o.name = "ListSnapshotsInRecycleBin"
|
17019
17066
|
o.http_method = "POST"
|
@@ -17772,6 +17819,14 @@ module Aws::EC2
|
|
17772
17819
|
o.output = Shapes::ShapeRef.new(shape: RestoreAddressToClassicResult)
|
17773
17820
|
end)
|
17774
17821
|
|
17822
|
+
api.add_operation(:restore_image_from_recycle_bin, Seahorse::Model::Operation.new.tap do |o|
|
17823
|
+
o.name = "RestoreImageFromRecycleBin"
|
17824
|
+
o.http_method = "POST"
|
17825
|
+
o.http_request_uri = "/"
|
17826
|
+
o.input = Shapes::ShapeRef.new(shape: RestoreImageFromRecycleBinRequest)
|
17827
|
+
o.output = Shapes::ShapeRef.new(shape: RestoreImageFromRecycleBinResult)
|
17828
|
+
end)
|
17829
|
+
|
17775
17830
|
api.add_operation(:restore_managed_prefix_list_version, Seahorse::Model::Operation.new.tap do |o|
|
17776
17831
|
o.name = "RestoreManagedPrefixListVersion"
|
17777
17832
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -5189,6 +5189,10 @@ module Aws::EC2
|
|
5189
5189
|
include Aws::Structure
|
5190
5190
|
end
|
5191
5191
|
|
5192
|
+
# Options for enabling a customizable text banner that will be displayed
|
5193
|
+
# on Amazon Web Services provided clients when a VPN session is
|
5194
|
+
# established.
|
5195
|
+
#
|
5192
5196
|
# @note When making an API call, you may pass ClientLoginBannerOptions
|
5193
5197
|
# data as a hash:
|
5194
5198
|
#
|
@@ -5198,9 +5202,19 @@ module Aws::EC2
|
|
5198
5202
|
# }
|
5199
5203
|
#
|
5200
5204
|
# @!attribute [rw] enabled
|
5205
|
+
# Enable or disable a customizable text banner that will be displayed
|
5206
|
+
# on Amazon Web Services provided clients when a VPN session is
|
5207
|
+
# established.
|
5208
|
+
#
|
5209
|
+
# Valid values: `true | false`
|
5210
|
+
#
|
5211
|
+
# Default value: `false`
|
5201
5212
|
# @return [Boolean]
|
5202
5213
|
#
|
5203
5214
|
# @!attribute [rw] banner_text
|
5215
|
+
# Customizable text that will be displayed in a banner on Amazon Web
|
5216
|
+
# Services provided clients when a VPN session is established. UTF-8
|
5217
|
+
# encoded characters only. Maximum of 1400 characters.
|
5204
5218
|
# @return [String]
|
5205
5219
|
#
|
5206
5220
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientLoginBannerOptions AWS API Documentation
|
@@ -5212,10 +5226,20 @@ module Aws::EC2
|
|
5212
5226
|
include Aws::Structure
|
5213
5227
|
end
|
5214
5228
|
|
5229
|
+
# Current state of options for customizable text banner that will be
|
5230
|
+
# displayed on Amazon Web Services provided clients when a VPN session
|
5231
|
+
# is established.
|
5232
|
+
#
|
5215
5233
|
# @!attribute [rw] enabled
|
5234
|
+
# Current state of text banner feature.
|
5235
|
+
#
|
5236
|
+
# Valid values: `true | false`
|
5216
5237
|
# @return [Boolean]
|
5217
5238
|
#
|
5218
5239
|
# @!attribute [rw] banner_text
|
5240
|
+
# Customizable text that will be displayed in a banner on Amazon Web
|
5241
|
+
# Services provided clients when a VPN session is established. UTF-8
|
5242
|
+
# encoded characters only. Maximum of 1400 characters.
|
5219
5243
|
# @return [String]
|
5220
5244
|
#
|
5221
5245
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientLoginBannerResponseOptions AWS API Documentation
|
@@ -5543,9 +5567,17 @@ module Aws::EC2
|
|
5543
5567
|
# @return [Types::ClientConnectResponseOptions]
|
5544
5568
|
#
|
5545
5569
|
# @!attribute [rw] session_timeout_hours
|
5570
|
+
# The maximum VPN session duration time in hours.
|
5571
|
+
#
|
5572
|
+
# Valid values: `8 | 10 | 12 | 24`
|
5573
|
+
#
|
5574
|
+
# Default value: `24`
|
5546
5575
|
# @return [Integer]
|
5547
5576
|
#
|
5548
5577
|
# @!attribute [rw] client_login_banner_options
|
5578
|
+
# Options for enabling a customizable text banner that will be
|
5579
|
+
# displayed on Amazon Web Services provided clients when a VPN session
|
5580
|
+
# is established.
|
5549
5581
|
# @return [Types::ClientLoginBannerResponseOptions]
|
5550
5582
|
#
|
5551
5583
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientVpnEndpoint AWS API Documentation
|
@@ -7078,9 +7110,17 @@ module Aws::EC2
|
|
7078
7110
|
# @return [Types::ClientConnectOptions]
|
7079
7111
|
#
|
7080
7112
|
# @!attribute [rw] session_timeout_hours
|
7113
|
+
# The maximum VPN session duration time in hours.
|
7114
|
+
#
|
7115
|
+
# Valid values: `8 | 10 | 12 | 24`
|
7116
|
+
#
|
7117
|
+
# Default value: `24`
|
7081
7118
|
# @return [Integer]
|
7082
7119
|
#
|
7083
7120
|
# @!attribute [rw] client_login_banner_options
|
7121
|
+
# Options for enabling a customizable text banner that will be
|
7122
|
+
# displayed on Amazon Web Services provided clients when a VPN session
|
7123
|
+
# is established.
|
7084
7124
|
# @return [Types::ClientLoginBannerOptions]
|
7085
7125
|
#
|
7086
7126
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnEndpointRequest AWS API Documentation
|
@@ -31514,7 +31554,7 @@ module Aws::EC2
|
|
31514
31554
|
#
|
31515
31555
|
# @!attribute [rw] max_parallel_launches
|
31516
31556
|
# The maximum number of parallel instances to launch for creating
|
31517
|
-
# resources.
|
31557
|
+
# resources. Value must be `6` or greater.
|
31518
31558
|
# @return [Integer]
|
31519
31559
|
#
|
31520
31560
|
# @!attribute [rw] dry_run
|
@@ -37845,6 +37885,41 @@ module Aws::EC2
|
|
37845
37885
|
include Aws::Structure
|
37846
37886
|
end
|
37847
37887
|
|
37888
|
+
# Information about an AMI that is currently in the Recycle Bin.
|
37889
|
+
#
|
37890
|
+
# @!attribute [rw] image_id
|
37891
|
+
# The ID of the AMI.
|
37892
|
+
# @return [String]
|
37893
|
+
#
|
37894
|
+
# @!attribute [rw] name
|
37895
|
+
# The name of the AMI.
|
37896
|
+
# @return [String]
|
37897
|
+
#
|
37898
|
+
# @!attribute [rw] description
|
37899
|
+
# The description of the AMI.
|
37900
|
+
# @return [String]
|
37901
|
+
#
|
37902
|
+
# @!attribute [rw] recycle_bin_enter_time
|
37903
|
+
# The date and time when the AMI entered the Recycle Bin.
|
37904
|
+
# @return [Time]
|
37905
|
+
#
|
37906
|
+
# @!attribute [rw] recycle_bin_exit_time
|
37907
|
+
# The date and time when the AMI is to be permanently deleted from the
|
37908
|
+
# Recycle Bin.
|
37909
|
+
# @return [Time]
|
37910
|
+
#
|
37911
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageRecycleBinInfo AWS API Documentation
|
37912
|
+
#
|
37913
|
+
class ImageRecycleBinInfo < Struct.new(
|
37914
|
+
:image_id,
|
37915
|
+
:name,
|
37916
|
+
:description,
|
37917
|
+
:recycle_bin_enter_time,
|
37918
|
+
:recycle_bin_exit_time)
|
37919
|
+
SENSITIVE = []
|
37920
|
+
include Aws::Structure
|
37921
|
+
end
|
37922
|
+
|
37848
37923
|
# @note When making an API call, you may pass ImportClientVpnClientCertificateRevocationListRequest
|
37849
37924
|
# data as a hash:
|
37850
37925
|
#
|
@@ -45233,6 +45308,76 @@ module Aws::EC2
|
|
45233
45308
|
include Aws::Structure
|
45234
45309
|
end
|
45235
45310
|
|
45311
|
+
# @note When making an API call, you may pass ListImagesInRecycleBinRequest
|
45312
|
+
# data as a hash:
|
45313
|
+
#
|
45314
|
+
# {
|
45315
|
+
# image_ids: ["ImageId"],
|
45316
|
+
# next_token: "String",
|
45317
|
+
# max_results: 1,
|
45318
|
+
# dry_run: false,
|
45319
|
+
# }
|
45320
|
+
#
|
45321
|
+
# @!attribute [rw] image_ids
|
45322
|
+
# The IDs of the AMIs to list. Omit this parameter to list all of the
|
45323
|
+
# AMIs that are in the Recycle Bin. You can specify up to 20 IDs in a
|
45324
|
+
# single request.
|
45325
|
+
# @return [Array<String>]
|
45326
|
+
#
|
45327
|
+
# @!attribute [rw] next_token
|
45328
|
+
# The token for the next page of results.
|
45329
|
+
# @return [String]
|
45330
|
+
#
|
45331
|
+
# @!attribute [rw] max_results
|
45332
|
+
# The maximum number of results to return with a single call. To
|
45333
|
+
# retrieve the remaining results, make another call with the returned
|
45334
|
+
# `nextToken` value.
|
45335
|
+
#
|
45336
|
+
# If you do not specify a value for *MaxResults*, the request returns
|
45337
|
+
# 1,000 items per page by default. For more information, see [
|
45338
|
+
# Pagination][1].
|
45339
|
+
#
|
45340
|
+
#
|
45341
|
+
#
|
45342
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
45343
|
+
# @return [Integer]
|
45344
|
+
#
|
45345
|
+
# @!attribute [rw] dry_run
|
45346
|
+
# Checks whether you have the required permissions for the action,
|
45347
|
+
# without actually making the request, and provides an error response.
|
45348
|
+
# If you have the required permissions, the error response is
|
45349
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
45350
|
+
# @return [Boolean]
|
45351
|
+
#
|
45352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ListImagesInRecycleBinRequest AWS API Documentation
|
45353
|
+
#
|
45354
|
+
class ListImagesInRecycleBinRequest < Struct.new(
|
45355
|
+
:image_ids,
|
45356
|
+
:next_token,
|
45357
|
+
:max_results,
|
45358
|
+
:dry_run)
|
45359
|
+
SENSITIVE = []
|
45360
|
+
include Aws::Structure
|
45361
|
+
end
|
45362
|
+
|
45363
|
+
# @!attribute [rw] images
|
45364
|
+
# Information about the AMIs.
|
45365
|
+
# @return [Array<Types::ImageRecycleBinInfo>]
|
45366
|
+
#
|
45367
|
+
# @!attribute [rw] next_token
|
45368
|
+
# The token to use to retrieve the next page of results. This value is
|
45369
|
+
# `null` when there are no more results to return.
|
45370
|
+
# @return [String]
|
45371
|
+
#
|
45372
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ListImagesInRecycleBinResult AWS API Documentation
|
45373
|
+
#
|
45374
|
+
class ListImagesInRecycleBinResult < Struct.new(
|
45375
|
+
:images,
|
45376
|
+
:next_token)
|
45377
|
+
SENSITIVE = []
|
45378
|
+
include Aws::Structure
|
45379
|
+
end
|
45380
|
+
|
45236
45381
|
# @note When making an API call, you may pass ListSnapshotsInRecycleBinRequest
|
45237
45382
|
# data as a hash:
|
45238
45383
|
#
|
@@ -46322,9 +46467,17 @@ module Aws::EC2
|
|
46322
46467
|
# @return [Types::ClientConnectOptions]
|
46323
46468
|
#
|
46324
46469
|
# @!attribute [rw] session_timeout_hours
|
46470
|
+
# The maximum VPN session duration time in hours.
|
46471
|
+
#
|
46472
|
+
# Valid values: `8 | 10 | 12 | 24`
|
46473
|
+
#
|
46474
|
+
# Default value: `24`
|
46325
46475
|
# @return [Integer]
|
46326
46476
|
#
|
46327
46477
|
# @!attribute [rw] client_login_banner_options
|
46478
|
+
# Options for enabling a customizable text banner that will be
|
46479
|
+
# displayed on Amazon Web Services provided clients when a VPN session
|
46480
|
+
# is established.
|
46328
46481
|
# @return [Types::ClientLoginBannerOptions]
|
46329
46482
|
#
|
46330
46483
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpointRequest AWS API Documentation
|
@@ -57800,6 +57953,47 @@ module Aws::EC2
|
|
57800
57953
|
include Aws::Structure
|
57801
57954
|
end
|
57802
57955
|
|
57956
|
+
# @note When making an API call, you may pass RestoreImageFromRecycleBinRequest
|
57957
|
+
# data as a hash:
|
57958
|
+
#
|
57959
|
+
# {
|
57960
|
+
# image_id: "ImageId", # required
|
57961
|
+
# dry_run: false,
|
57962
|
+
# }
|
57963
|
+
#
|
57964
|
+
# @!attribute [rw] image_id
|
57965
|
+
# The ID of the AMI to restore.
|
57966
|
+
# @return [String]
|
57967
|
+
#
|
57968
|
+
# @!attribute [rw] dry_run
|
57969
|
+
# Checks whether you have the required permissions for the action,
|
57970
|
+
# without actually making the request, and provides an error response.
|
57971
|
+
# If you have the required permissions, the error response is
|
57972
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
57973
|
+
# @return [Boolean]
|
57974
|
+
#
|
57975
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreImageFromRecycleBinRequest AWS API Documentation
|
57976
|
+
#
|
57977
|
+
class RestoreImageFromRecycleBinRequest < Struct.new(
|
57978
|
+
:image_id,
|
57979
|
+
:dry_run)
|
57980
|
+
SENSITIVE = []
|
57981
|
+
include Aws::Structure
|
57982
|
+
end
|
57983
|
+
|
57984
|
+
# @!attribute [rw] return
|
57985
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
57986
|
+
# error.
|
57987
|
+
# @return [Boolean]
|
57988
|
+
#
|
57989
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreImageFromRecycleBinResult AWS API Documentation
|
57990
|
+
#
|
57991
|
+
class RestoreImageFromRecycleBinResult < Struct.new(
|
57992
|
+
:return)
|
57993
|
+
SENSITIVE = []
|
57994
|
+
include Aws::Structure
|
57995
|
+
end
|
57996
|
+
|
57803
57997
|
# @note When making an API call, you may pass RestoreManagedPrefixListVersionRequest
|
57804
57998
|
# data as a hash:
|
57805
57999
|
#
|
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.298.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-
|
11
|
+
date: 2022-02-03 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.
|
36
|
+
version: 3.126.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.
|
46
|
+
version: 3.126.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:
|