aws-sdk-ec2 1.241.0 → 1.242.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +110 -2
- data/lib/aws-sdk-ec2/client_api.rb +37 -0
- data/lib/aws-sdk-ec2/image.rb +8 -0
- data/lib/aws-sdk-ec2/resource.rb +11 -0
- data/lib/aws-sdk-ec2/types.rb +115 -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: 0ac9de936fe99f536320733719f7eb0dd530ed2d6c9ac3712840d3de01bc2fc8
|
4
|
+
data.tar.gz: a5f9bdc800afbddf4e25f690c0e7d0f854da6496474069ec91f08960b40f3f2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868627239b4b75e37b51cbdab1f1c334292645b6ba2290a982ab2a52c16295d00e5a6f32916494f7ea6bebfa49fceba9c5ef85ee3d5273f6c04bc14ad29c1087
|
7
|
+
data.tar.gz: 116579752af868de9681cdacbbb17137a1b8c47d101dd959692a72ca0eddcee5b206566481bae7985d3e53d5bb9f7c5983b7d68781e01803af4171e03e979dd1
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.242.0
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -17318,7 +17318,8 @@ module Aws::EC2
|
|
17318
17318
|
# Recently deregistered images appear in the returned results for a
|
17319
17319
|
# short interval and then return empty results. After all instances that
|
17320
17320
|
# reference a deregistered AMI are terminated, specifying the ID of the
|
17321
|
-
# image
|
17321
|
+
# image will eventually return an error indicating that the AMI ID
|
17322
|
+
# cannot be found.
|
17322
17323
|
#
|
17323
17324
|
# @option params [Array<String>] :executable_users
|
17324
17325
|
# Scopes the images by users with explicit launch permissions. Specify
|
@@ -17429,6 +17430,17 @@ module Aws::EC2
|
|
17429
17430
|
# `aws-marketplace`. If you omit this parameter, the results include all
|
17430
17431
|
# images for which you have launch permissions, regardless of ownership.
|
17431
17432
|
#
|
17433
|
+
# @option params [Boolean] :include_deprecated
|
17434
|
+
# If `true`, all deprecated AMIs are included in the response. If
|
17435
|
+
# `false`, no deprecated AMIs are included in the response. If no value
|
17436
|
+
# is specified, the default value is `false`.
|
17437
|
+
#
|
17438
|
+
# <note markdown="1"> If you are the AMI owner, all deprecated AMIs appear in the response
|
17439
|
+
# regardless of the value (`true` or `false`) that you set for this
|
17440
|
+
# parameter.
|
17441
|
+
#
|
17442
|
+
# </note>
|
17443
|
+
#
|
17432
17444
|
# @option params [Boolean] :dry_run
|
17433
17445
|
# Checks whether you have the required permissions for the action,
|
17434
17446
|
# without actually making the request, and provides an error response.
|
@@ -17495,6 +17507,7 @@ module Aws::EC2
|
|
17495
17507
|
# ],
|
17496
17508
|
# image_ids: ["ImageId"],
|
17497
17509
|
# owners: ["String"],
|
17510
|
+
# include_deprecated: false,
|
17498
17511
|
# dry_run: false,
|
17499
17512
|
# })
|
17500
17513
|
#
|
@@ -17545,6 +17558,7 @@ module Aws::EC2
|
|
17545
17558
|
# resp.images[0].tags[0].value #=> String
|
17546
17559
|
# resp.images[0].virtualization_type #=> String, one of "hvm", "paravirtual"
|
17547
17560
|
# resp.images[0].boot_mode #=> String, one of "legacy-bios", "uefi"
|
17561
|
+
# resp.images[0].deprecation_time #=> String
|
17548
17562
|
#
|
17549
17563
|
#
|
17550
17564
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -28648,6 +28662,48 @@ module Aws::EC2
|
|
28648
28662
|
req.send_request(options)
|
28649
28663
|
end
|
28650
28664
|
|
28665
|
+
# Cancels the deprecation of the specified AMI.
|
28666
|
+
#
|
28667
|
+
# For more information, see [Deprecate an AMI][1] in the *Amazon Elastic
|
28668
|
+
# Compute Cloud User Guide*.
|
28669
|
+
#
|
28670
|
+
#
|
28671
|
+
#
|
28672
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
|
28673
|
+
#
|
28674
|
+
# @option params [required, String] :image_id
|
28675
|
+
# The ID of the AMI.
|
28676
|
+
#
|
28677
|
+
# @option params [Boolean] :dry_run
|
28678
|
+
# Checks whether you have the required permissions for the action,
|
28679
|
+
# without actually making the request, and provides an error response.
|
28680
|
+
# If you have the required permissions, the error response is
|
28681
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
28682
|
+
#
|
28683
|
+
# @return [Types::DisableImageDeprecationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
28684
|
+
#
|
28685
|
+
# * {Types::DisableImageDeprecationResult#return #return} => Boolean
|
28686
|
+
#
|
28687
|
+
# @example Request syntax with placeholder values
|
28688
|
+
#
|
28689
|
+
# resp = client.disable_image_deprecation({
|
28690
|
+
# image_id: "ImageId", # required
|
28691
|
+
# dry_run: false,
|
28692
|
+
# })
|
28693
|
+
#
|
28694
|
+
# @example Response structure
|
28695
|
+
#
|
28696
|
+
# resp.return #=> Boolean
|
28697
|
+
#
|
28698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeprecation AWS API Documentation
|
28699
|
+
#
|
28700
|
+
# @overload disable_image_deprecation(params = {})
|
28701
|
+
# @param [Hash] params ({})
|
28702
|
+
def disable_image_deprecation(params = {}, options = {})
|
28703
|
+
req = build_request(:disable_image_deprecation, params)
|
28704
|
+
req.send_request(options)
|
28705
|
+
end
|
28706
|
+
|
28651
28707
|
# Disables access to the EC2 serial console of all instances for your
|
28652
28708
|
# account. By default, access to the EC2 serial console is disabled for
|
28653
28709
|
# your account. For more information, see [Manage account access to the
|
@@ -29419,6 +29475,58 @@ module Aws::EC2
|
|
29419
29475
|
req.send_request(options)
|
29420
29476
|
end
|
29421
29477
|
|
29478
|
+
# Enables deprecation of the specified AMI at the specified date and
|
29479
|
+
# time.
|
29480
|
+
#
|
29481
|
+
# For more information, see [Deprecate an AMI][1] in the *Amazon Elastic
|
29482
|
+
# Compute Cloud User Guide*.
|
29483
|
+
#
|
29484
|
+
#
|
29485
|
+
#
|
29486
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
|
29487
|
+
#
|
29488
|
+
# @option params [required, String] :image_id
|
29489
|
+
# The ID of the AMI.
|
29490
|
+
#
|
29491
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :deprecate_at
|
29492
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
29493
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specify a value for
|
29494
|
+
# seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
29495
|
+
#
|
29496
|
+
# You can’t specify a date in the past. The upper limit for
|
29497
|
+
# `DeprecateAt` is 10 years from now.
|
29498
|
+
#
|
29499
|
+
# @option params [Boolean] :dry_run
|
29500
|
+
# Checks whether you have the required permissions for the action,
|
29501
|
+
# without actually making the request, and provides an error response.
|
29502
|
+
# If you have the required permissions, the error response is
|
29503
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
29504
|
+
#
|
29505
|
+
# @return [Types::EnableImageDeprecationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
29506
|
+
#
|
29507
|
+
# * {Types::EnableImageDeprecationResult#return #return} => Boolean
|
29508
|
+
#
|
29509
|
+
# @example Request syntax with placeholder values
|
29510
|
+
#
|
29511
|
+
# resp = client.enable_image_deprecation({
|
29512
|
+
# image_id: "ImageId", # required
|
29513
|
+
# deprecate_at: Time.now, # required
|
29514
|
+
# dry_run: false,
|
29515
|
+
# })
|
29516
|
+
#
|
29517
|
+
# @example Response structure
|
29518
|
+
#
|
29519
|
+
# resp.return #=> Boolean
|
29520
|
+
#
|
29521
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeprecation AWS API Documentation
|
29522
|
+
#
|
29523
|
+
# @overload enable_image_deprecation(params = {})
|
29524
|
+
# @param [Hash] params ({})
|
29525
|
+
def enable_image_deprecation(params = {}, options = {})
|
29526
|
+
req = build_request(:enable_image_deprecation, params)
|
29527
|
+
req.send_request(options)
|
29528
|
+
end
|
29529
|
+
|
29422
29530
|
# Enables access to the EC2 serial console of all instances for your
|
29423
29531
|
# account. By default, access to the EC2 serial console is disabled for
|
29424
29532
|
# your account. For more information, see [Manage account access to the
|
@@ -41915,7 +42023,7 @@ module Aws::EC2
|
|
41915
42023
|
params: params,
|
41916
42024
|
config: config)
|
41917
42025
|
context[:gem_name] = 'aws-sdk-ec2'
|
41918
|
-
context[:gem_version] = '1.
|
42026
|
+
context[:gem_version] = '1.242.0'
|
41919
42027
|
Seahorse::Client::Request.new(handlers, context)
|
41920
42028
|
end
|
41921
42029
|
|
@@ -861,6 +861,8 @@ module Aws::EC2
|
|
861
861
|
DisableFastSnapshotRestoreSuccessSet = Shapes::ListShape.new(name: 'DisableFastSnapshotRestoreSuccessSet')
|
862
862
|
DisableFastSnapshotRestoresRequest = Shapes::StructureShape.new(name: 'DisableFastSnapshotRestoresRequest')
|
863
863
|
DisableFastSnapshotRestoresResult = Shapes::StructureShape.new(name: 'DisableFastSnapshotRestoresResult')
|
864
|
+
DisableImageDeprecationRequest = Shapes::StructureShape.new(name: 'DisableImageDeprecationRequest')
|
865
|
+
DisableImageDeprecationResult = Shapes::StructureShape.new(name: 'DisableImageDeprecationResult')
|
864
866
|
DisableSerialConsoleAccessRequest = Shapes::StructureShape.new(name: 'DisableSerialConsoleAccessRequest')
|
865
867
|
DisableSerialConsoleAccessResult = Shapes::StructureShape.new(name: 'DisableSerialConsoleAccessResult')
|
866
868
|
DisableTransitGatewayRouteTablePropagationRequest = Shapes::StructureShape.new(name: 'DisableTransitGatewayRouteTablePropagationRequest')
|
@@ -950,6 +952,8 @@ module Aws::EC2
|
|
950
952
|
EnableFastSnapshotRestoreSuccessSet = Shapes::ListShape.new(name: 'EnableFastSnapshotRestoreSuccessSet')
|
951
953
|
EnableFastSnapshotRestoresRequest = Shapes::StructureShape.new(name: 'EnableFastSnapshotRestoresRequest')
|
952
954
|
EnableFastSnapshotRestoresResult = Shapes::StructureShape.new(name: 'EnableFastSnapshotRestoresResult')
|
955
|
+
EnableImageDeprecationRequest = Shapes::StructureShape.new(name: 'EnableImageDeprecationRequest')
|
956
|
+
EnableImageDeprecationResult = Shapes::StructureShape.new(name: 'EnableImageDeprecationResult')
|
953
957
|
EnableSerialConsoleAccessRequest = Shapes::StructureShape.new(name: 'EnableSerialConsoleAccessRequest')
|
954
958
|
EnableSerialConsoleAccessResult = Shapes::StructureShape.new(name: 'EnableSerialConsoleAccessResult')
|
955
959
|
EnableTransitGatewayRouteTablePropagationRequest = Shapes::StructureShape.new(name: 'EnableTransitGatewayRouteTablePropagationRequest')
|
@@ -4784,6 +4788,7 @@ module Aws::EC2
|
|
4784
4788
|
DescribeImagesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
4785
4789
|
DescribeImagesRequest.add_member(:image_ids, Shapes::ShapeRef.new(shape: ImageIdStringList, location_name: "ImageId"))
|
4786
4790
|
DescribeImagesRequest.add_member(:owners, Shapes::ShapeRef.new(shape: OwnerStringList, location_name: "Owner"))
|
4791
|
+
DescribeImagesRequest.add_member(:include_deprecated, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeDeprecated"))
|
4787
4792
|
DescribeImagesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
4788
4793
|
DescribeImagesRequest.struct_class = Types::DescribeImagesRequest
|
4789
4794
|
|
@@ -5797,6 +5802,13 @@ module Aws::EC2
|
|
5797
5802
|
DisableFastSnapshotRestoresResult.add_member(:unsuccessful, Shapes::ShapeRef.new(shape: DisableFastSnapshotRestoreErrorSet, location_name: "unsuccessful"))
|
5798
5803
|
DisableFastSnapshotRestoresResult.struct_class = Types::DisableFastSnapshotRestoresResult
|
5799
5804
|
|
5805
|
+
DisableImageDeprecationRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
5806
|
+
DisableImageDeprecationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
5807
|
+
DisableImageDeprecationRequest.struct_class = Types::DisableImageDeprecationRequest
|
5808
|
+
|
5809
|
+
DisableImageDeprecationResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
5810
|
+
DisableImageDeprecationResult.struct_class = Types::DisableImageDeprecationResult
|
5811
|
+
|
5800
5812
|
DisableSerialConsoleAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
5801
5813
|
DisableSerialConsoleAccessRequest.struct_class = Types::DisableSerialConsoleAccessRequest
|
5802
5814
|
|
@@ -6075,6 +6087,14 @@ module Aws::EC2
|
|
6075
6087
|
EnableFastSnapshotRestoresResult.add_member(:unsuccessful, Shapes::ShapeRef.new(shape: EnableFastSnapshotRestoreErrorSet, location_name: "unsuccessful"))
|
6076
6088
|
EnableFastSnapshotRestoresResult.struct_class = Types::EnableFastSnapshotRestoresResult
|
6077
6089
|
|
6090
|
+
EnableImageDeprecationRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
6091
|
+
EnableImageDeprecationRequest.add_member(:deprecate_at, Shapes::ShapeRef.new(shape: MillisecondDateTime, required: true, location_name: "DeprecateAt"))
|
6092
|
+
EnableImageDeprecationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
6093
|
+
EnableImageDeprecationRequest.struct_class = Types::EnableImageDeprecationRequest
|
6094
|
+
|
6095
|
+
EnableImageDeprecationResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
6096
|
+
EnableImageDeprecationResult.struct_class = Types::EnableImageDeprecationResult
|
6097
|
+
|
6078
6098
|
EnableSerialConsoleAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
6079
6099
|
EnableSerialConsoleAccessRequest.struct_class = Types::EnableSerialConsoleAccessRequest
|
6080
6100
|
|
@@ -6846,6 +6866,7 @@ module Aws::EC2
|
|
6846
6866
|
Image.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
6847
6867
|
Image.add_member(:virtualization_type, Shapes::ShapeRef.new(shape: VirtualizationType, location_name: "virtualizationType"))
|
6848
6868
|
Image.add_member(:boot_mode, Shapes::ShapeRef.new(shape: BootModeValues, location_name: "bootMode"))
|
6869
|
+
Image.add_member(:deprecation_time, Shapes::ShapeRef.new(shape: String, location_name: "deprecationTime"))
|
6849
6870
|
Image.struct_class = Types::Image
|
6850
6871
|
|
6851
6872
|
ImageAttribute.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: BlockDeviceMappingList, location_name: "blockDeviceMapping"))
|
@@ -13983,6 +14004,14 @@ module Aws::EC2
|
|
13983
14004
|
o.output = Shapes::ShapeRef.new(shape: DisableFastSnapshotRestoresResult)
|
13984
14005
|
end)
|
13985
14006
|
|
14007
|
+
api.add_operation(:disable_image_deprecation, Seahorse::Model::Operation.new.tap do |o|
|
14008
|
+
o.name = "DisableImageDeprecation"
|
14009
|
+
o.http_method = "POST"
|
14010
|
+
o.http_request_uri = "/"
|
14011
|
+
o.input = Shapes::ShapeRef.new(shape: DisableImageDeprecationRequest)
|
14012
|
+
o.output = Shapes::ShapeRef.new(shape: DisableImageDeprecationResult)
|
14013
|
+
end)
|
14014
|
+
|
13986
14015
|
api.add_operation(:disable_serial_console_access, Seahorse::Model::Operation.new.tap do |o|
|
13987
14016
|
o.name = "DisableSerialConsoleAccess"
|
13988
14017
|
o.http_method = "POST"
|
@@ -14111,6 +14140,14 @@ module Aws::EC2
|
|
14111
14140
|
o.output = Shapes::ShapeRef.new(shape: EnableFastSnapshotRestoresResult)
|
14112
14141
|
end)
|
14113
14142
|
|
14143
|
+
api.add_operation(:enable_image_deprecation, Seahorse::Model::Operation.new.tap do |o|
|
14144
|
+
o.name = "EnableImageDeprecation"
|
14145
|
+
o.http_method = "POST"
|
14146
|
+
o.http_request_uri = "/"
|
14147
|
+
o.input = Shapes::ShapeRef.new(shape: EnableImageDeprecationRequest)
|
14148
|
+
o.output = Shapes::ShapeRef.new(shape: EnableImageDeprecationResult)
|
14149
|
+
end)
|
14150
|
+
|
14114
14151
|
api.add_operation(:enable_serial_console_access, Seahorse::Model::Operation.new.tap do |o|
|
14115
14152
|
o.name = "EnableSerialConsoleAccess"
|
14116
14153
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -222,6 +222,14 @@ module Aws::EC2
|
|
222
222
|
data[:boot_mode]
|
223
223
|
end
|
224
224
|
|
225
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
226
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specified a value
|
227
|
+
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
228
|
+
# @return [String]
|
229
|
+
def deprecation_time
|
230
|
+
data[:deprecation_time]
|
231
|
+
end
|
232
|
+
|
225
233
|
# @!endgroup
|
226
234
|
|
227
235
|
# @return [Client]
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -1825,6 +1825,7 @@ module Aws::EC2
|
|
1825
1825
|
# ],
|
1826
1826
|
# image_ids: ["ImageId"],
|
1827
1827
|
# owners: ["String"],
|
1828
|
+
# include_deprecated: false,
|
1828
1829
|
# dry_run: false,
|
1829
1830
|
# })
|
1830
1831
|
# @param [Hash] options ({})
|
@@ -1933,6 +1934,16 @@ module Aws::EC2
|
|
1933
1934
|
# specify a combination of AWS account IDs, `self`, `amazon`, and
|
1934
1935
|
# `aws-marketplace`. If you omit this parameter, the results include all
|
1935
1936
|
# images for which you have launch permissions, regardless of ownership.
|
1937
|
+
# @option options [Boolean] :include_deprecated
|
1938
|
+
# If `true`, all deprecated AMIs are included in the response. If
|
1939
|
+
# `false`, no deprecated AMIs are included in the response. If no value
|
1940
|
+
# is specified, the default value is `false`.
|
1941
|
+
#
|
1942
|
+
# <note markdown="1"> If you are the AMI owner, all deprecated AMIs appear in the response
|
1943
|
+
# regardless of the value (`true` or `false`) that you set for this
|
1944
|
+
# parameter.
|
1945
|
+
#
|
1946
|
+
# </note>
|
1936
1947
|
# @option options [Boolean] :dry_run
|
1937
1948
|
# Checks whether you have the required permissions for the action,
|
1938
1949
|
# without actually making the request, and provides an error response.
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -17198,6 +17198,7 @@ module Aws::EC2
|
|
17198
17198
|
# ],
|
17199
17199
|
# image_ids: ["ImageId"],
|
17200
17200
|
# owners: ["String"],
|
17201
|
+
# include_deprecated: false,
|
17201
17202
|
# dry_run: false,
|
17202
17203
|
# }
|
17203
17204
|
#
|
@@ -17317,6 +17318,18 @@ module Aws::EC2
|
|
17317
17318
|
# ownership.
|
17318
17319
|
# @return [Array<String>]
|
17319
17320
|
#
|
17321
|
+
# @!attribute [rw] include_deprecated
|
17322
|
+
# If `true`, all deprecated AMIs are included in the response. If
|
17323
|
+
# `false`, no deprecated AMIs are included in the response. If no
|
17324
|
+
# value is specified, the default value is `false`.
|
17325
|
+
#
|
17326
|
+
# <note markdown="1"> If you are the AMI owner, all deprecated AMIs appear in the response
|
17327
|
+
# regardless of the value (`true` or `false`) that you set for this
|
17328
|
+
# parameter.
|
17329
|
+
#
|
17330
|
+
# </note>
|
17331
|
+
# @return [Boolean]
|
17332
|
+
#
|
17320
17333
|
# @!attribute [rw] dry_run
|
17321
17334
|
# Checks whether you have the required permissions for the action,
|
17322
17335
|
# without actually making the request, and provides an error response.
|
@@ -17331,6 +17344,7 @@ module Aws::EC2
|
|
17331
17344
|
:filters,
|
17332
17345
|
:image_ids,
|
17333
17346
|
:owners,
|
17347
|
+
:include_deprecated,
|
17334
17348
|
:dry_run)
|
17335
17349
|
SENSITIVE = []
|
17336
17350
|
include Aws::Structure
|
@@ -25925,6 +25939,47 @@ module Aws::EC2
|
|
25925
25939
|
include Aws::Structure
|
25926
25940
|
end
|
25927
25941
|
|
25942
|
+
# @note When making an API call, you may pass DisableImageDeprecationRequest
|
25943
|
+
# data as a hash:
|
25944
|
+
#
|
25945
|
+
# {
|
25946
|
+
# image_id: "ImageId", # required
|
25947
|
+
# dry_run: false,
|
25948
|
+
# }
|
25949
|
+
#
|
25950
|
+
# @!attribute [rw] image_id
|
25951
|
+
# The ID of the AMI.
|
25952
|
+
# @return [String]
|
25953
|
+
#
|
25954
|
+
# @!attribute [rw] dry_run
|
25955
|
+
# Checks whether you have the required permissions for the action,
|
25956
|
+
# without actually making the request, and provides an error response.
|
25957
|
+
# If you have the required permissions, the error response is
|
25958
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
25959
|
+
# @return [Boolean]
|
25960
|
+
#
|
25961
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeprecationRequest AWS API Documentation
|
25962
|
+
#
|
25963
|
+
class DisableImageDeprecationRequest < Struct.new(
|
25964
|
+
:image_id,
|
25965
|
+
:dry_run)
|
25966
|
+
SENSITIVE = []
|
25967
|
+
include Aws::Structure
|
25968
|
+
end
|
25969
|
+
|
25970
|
+
# @!attribute [rw] return
|
25971
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
25972
|
+
# error.
|
25973
|
+
# @return [Boolean]
|
25974
|
+
#
|
25975
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeprecationResult AWS API Documentation
|
25976
|
+
#
|
25977
|
+
class DisableImageDeprecationResult < Struct.new(
|
25978
|
+
:return)
|
25979
|
+
SENSITIVE = []
|
25980
|
+
include Aws::Structure
|
25981
|
+
end
|
25982
|
+
|
25928
25983
|
# @note When making an API call, you may pass DisableSerialConsoleAccessRequest
|
25929
25984
|
# data as a hash:
|
25930
25985
|
#
|
@@ -27456,6 +27511,58 @@ module Aws::EC2
|
|
27456
27511
|
include Aws::Structure
|
27457
27512
|
end
|
27458
27513
|
|
27514
|
+
# @note When making an API call, you may pass EnableImageDeprecationRequest
|
27515
|
+
# data as a hash:
|
27516
|
+
#
|
27517
|
+
# {
|
27518
|
+
# image_id: "ImageId", # required
|
27519
|
+
# deprecate_at: Time.now, # required
|
27520
|
+
# dry_run: false,
|
27521
|
+
# }
|
27522
|
+
#
|
27523
|
+
# @!attribute [rw] image_id
|
27524
|
+
# The ID of the AMI.
|
27525
|
+
# @return [String]
|
27526
|
+
#
|
27527
|
+
# @!attribute [rw] deprecate_at
|
27528
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
27529
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specify a value
|
27530
|
+
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
27531
|
+
#
|
27532
|
+
# You can’t specify a date in the past. The upper limit for
|
27533
|
+
# `DeprecateAt` is 10 years from now.
|
27534
|
+
# @return [Time]
|
27535
|
+
#
|
27536
|
+
# @!attribute [rw] dry_run
|
27537
|
+
# Checks whether you have the required permissions for the action,
|
27538
|
+
# without actually making the request, and provides an error response.
|
27539
|
+
# If you have the required permissions, the error response is
|
27540
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
27541
|
+
# @return [Boolean]
|
27542
|
+
#
|
27543
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeprecationRequest AWS API Documentation
|
27544
|
+
#
|
27545
|
+
class EnableImageDeprecationRequest < Struct.new(
|
27546
|
+
:image_id,
|
27547
|
+
:deprecate_at,
|
27548
|
+
:dry_run)
|
27549
|
+
SENSITIVE = []
|
27550
|
+
include Aws::Structure
|
27551
|
+
end
|
27552
|
+
|
27553
|
+
# @!attribute [rw] return
|
27554
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
27555
|
+
# error.
|
27556
|
+
# @return [Boolean]
|
27557
|
+
#
|
27558
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeprecationResult AWS API Documentation
|
27559
|
+
#
|
27560
|
+
class EnableImageDeprecationResult < Struct.new(
|
27561
|
+
:return)
|
27562
|
+
SENSITIVE = []
|
27563
|
+
include Aws::Structure
|
27564
|
+
end
|
27565
|
+
|
27459
27566
|
# @note When making an API call, you may pass EnableSerialConsoleAccessRequest
|
27460
27567
|
# data as a hash:
|
27461
27568
|
#
|
@@ -31862,6 +31969,12 @@ module Aws::EC2
|
|
31862
31969
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html
|
31863
31970
|
# @return [String]
|
31864
31971
|
#
|
31972
|
+
# @!attribute [rw] deprecation_time
|
31973
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
31974
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specified a value
|
31975
|
+
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
31976
|
+
# @return [String]
|
31977
|
+
#
|
31865
31978
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image AWS API Documentation
|
31866
31979
|
#
|
31867
31980
|
class Image < Struct.new(
|
@@ -31891,7 +32004,8 @@ module Aws::EC2
|
|
31891
32004
|
:state_reason,
|
31892
32005
|
:tags,
|
31893
32006
|
:virtualization_type,
|
31894
|
-
:boot_mode
|
32007
|
+
:boot_mode,
|
32008
|
+
:deprecation_time)
|
31895
32009
|
SENSITIVE = []
|
31896
32010
|
include Aws::Structure
|
31897
32011
|
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.
|
4
|
+
version: 1.242.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-06-
|
11
|
+
date: 2021-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|