aws-sdk-ec2 1.404.0 → 1.405.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/client.rb +141 -1
- data/lib/aws-sdk-ec2/client_api.rb +51 -0
- data/lib/aws-sdk-ec2/endpoints.rb +42 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-ec2/types.rb +99 -0
- 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: 9ef4f142c719715ce8bee59b7d448ac05245cde0c21c1713eaae1edcb6d58beb
|
4
|
+
data.tar.gz: 8d13f2c185bb725882bf718794c15fc9d9036f74571ea82227e6868e29aea501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17e474d1a89f1df3d80843de3f3a45e3866ec4fe9f1071aaf1f2cdcfe08c9ee7753f64ecde98e01c3cba1c2b6ea593c6cf6beff599877623b5b0cbabee75a52c
|
7
|
+
data.tar.gz: 81a32543c335d940c98d43b7a365f16536077461d48b7c8f8fae7acacb1986e17c98daabca5a34a0d163c80b47906f9592551e941063a902a68bd53f4320527f
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.405.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -37298,6 +37298,54 @@ module Aws::EC2
|
|
37298
37298
|
req.send_request(options)
|
37299
37299
|
end
|
37300
37300
|
|
37301
|
+
# Disables *block public access for AMIs* at the account level in the
|
37302
|
+
# specified Amazon Web Services Region. This removes the *block public
|
37303
|
+
# access* restriction from your account. With the restriction removed,
|
37304
|
+
# you can publicly share your AMIs in the specified Amazon Web Services
|
37305
|
+
# Region.
|
37306
|
+
#
|
37307
|
+
# The API can take up to 10 minutes to configure this setting. During
|
37308
|
+
# this time, if you run [GetImageBlockPublicAccessState][1], the
|
37309
|
+
# response will be `block-new-sharing`. When the API has completed the
|
37310
|
+
# configuration, the response will be `unblocked`.
|
37311
|
+
#
|
37312
|
+
# For more information, see [Block public access to your AMIs][2] in the
|
37313
|
+
# *Amazon EC2 User Guide*.
|
37314
|
+
#
|
37315
|
+
#
|
37316
|
+
#
|
37317
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html
|
37318
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
|
37319
|
+
#
|
37320
|
+
# @option params [Boolean] :dry_run
|
37321
|
+
# Checks whether you have the required permissions for the action,
|
37322
|
+
# without actually making the request, and provides an error response.
|
37323
|
+
# If you have the required permissions, the error response is
|
37324
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
37325
|
+
#
|
37326
|
+
# @return [Types::DisableImageBlockPublicAccessResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
37327
|
+
#
|
37328
|
+
# * {Types::DisableImageBlockPublicAccessResult#image_block_public_access_state #image_block_public_access_state} => String
|
37329
|
+
#
|
37330
|
+
# @example Request syntax with placeholder values
|
37331
|
+
#
|
37332
|
+
# resp = client.disable_image_block_public_access({
|
37333
|
+
# dry_run: false,
|
37334
|
+
# })
|
37335
|
+
#
|
37336
|
+
# @example Response structure
|
37337
|
+
#
|
37338
|
+
# resp.image_block_public_access_state #=> String, one of "unblocked"
|
37339
|
+
#
|
37340
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageBlockPublicAccess AWS API Documentation
|
37341
|
+
#
|
37342
|
+
# @overload disable_image_block_public_access(params = {})
|
37343
|
+
# @param [Hash] params ({})
|
37344
|
+
def disable_image_block_public_access(params = {}, options = {})
|
37345
|
+
req = build_request(:disable_image_block_public_access, params)
|
37346
|
+
req.send_request(options)
|
37347
|
+
end
|
37348
|
+
|
37301
37349
|
# Cancels the deprecation of the specified AMI.
|
37302
37350
|
#
|
37303
37351
|
# For more information, see [Deprecate an AMI][1] in the *Amazon EC2
|
@@ -38632,6 +38680,59 @@ module Aws::EC2
|
|
38632
38680
|
req.send_request(options)
|
38633
38681
|
end
|
38634
38682
|
|
38683
|
+
# Enables *block public access for AMIs* at the account level in the
|
38684
|
+
# specified Amazon Web Services Region. This prevents the public sharing
|
38685
|
+
# of your AMIs. However, if you already have public AMIs, they will
|
38686
|
+
# remain publicly available.
|
38687
|
+
#
|
38688
|
+
# The API can take up to 10 minutes to configure this setting. During
|
38689
|
+
# this time, if you run [GetImageBlockPublicAccessState][1], the
|
38690
|
+
# response will be `unblocked`. When the API has completed the
|
38691
|
+
# configuration, the response will be `block-new-sharing`.
|
38692
|
+
#
|
38693
|
+
# For more information, see [Block public access to your AMIs][2] in the
|
38694
|
+
# *Amazon EC2 User Guide*.
|
38695
|
+
#
|
38696
|
+
#
|
38697
|
+
#
|
38698
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html
|
38699
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
|
38700
|
+
#
|
38701
|
+
# @option params [required, String] :image_block_public_access_state
|
38702
|
+
# Specify `block-new-sharing` to enable block public access for AMIs at
|
38703
|
+
# the account level in the specified Region. This will block any attempt
|
38704
|
+
# to publicly share your AMIs in the specified Region.
|
38705
|
+
#
|
38706
|
+
# @option params [Boolean] :dry_run
|
38707
|
+
# Checks whether you have the required permissions for the action,
|
38708
|
+
# without actually making the request, and provides an error response.
|
38709
|
+
# If you have the required permissions, the error response is
|
38710
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
38711
|
+
#
|
38712
|
+
# @return [Types::EnableImageBlockPublicAccessResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
38713
|
+
#
|
38714
|
+
# * {Types::EnableImageBlockPublicAccessResult#image_block_public_access_state #image_block_public_access_state} => String
|
38715
|
+
#
|
38716
|
+
# @example Request syntax with placeholder values
|
38717
|
+
#
|
38718
|
+
# resp = client.enable_image_block_public_access({
|
38719
|
+
# image_block_public_access_state: "block-new-sharing", # required, accepts block-new-sharing
|
38720
|
+
# dry_run: false,
|
38721
|
+
# })
|
38722
|
+
#
|
38723
|
+
# @example Response structure
|
38724
|
+
#
|
38725
|
+
# resp.image_block_public_access_state #=> String, one of "block-new-sharing"
|
38726
|
+
#
|
38727
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageBlockPublicAccess AWS API Documentation
|
38728
|
+
#
|
38729
|
+
# @overload enable_image_block_public_access(params = {})
|
38730
|
+
# @param [Hash] params ({})
|
38731
|
+
def enable_image_block_public_access(params = {}, options = {})
|
38732
|
+
req = build_request(:enable_image_block_public_access, params)
|
38733
|
+
req.send_request(options)
|
38734
|
+
end
|
38735
|
+
|
38635
38736
|
# Enables deprecation of the specified AMI at the specified date and
|
38636
38737
|
# time.
|
38637
38738
|
#
|
@@ -40042,6 +40143,45 @@ module Aws::EC2
|
|
40042
40143
|
req.send_request(options)
|
40043
40144
|
end
|
40044
40145
|
|
40146
|
+
# Gets the current state of *block public access for AMIs* at the
|
40147
|
+
# account level in the specified Amazon Web Services Region.
|
40148
|
+
#
|
40149
|
+
# For more information, see [Block public access to your AMIs][1] in the
|
40150
|
+
# *Amazon EC2 User Guide*.
|
40151
|
+
#
|
40152
|
+
#
|
40153
|
+
#
|
40154
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-intro.html#block-public-access-to-amis
|
40155
|
+
#
|
40156
|
+
# @option params [Boolean] :dry_run
|
40157
|
+
# Checks whether you have the required permissions for the action,
|
40158
|
+
# without actually making the request, and provides an error response.
|
40159
|
+
# If you have the required permissions, the error response is
|
40160
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
40161
|
+
#
|
40162
|
+
# @return [Types::GetImageBlockPublicAccessStateResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
40163
|
+
#
|
40164
|
+
# * {Types::GetImageBlockPublicAccessStateResult#image_block_public_access_state #image_block_public_access_state} => String
|
40165
|
+
#
|
40166
|
+
# @example Request syntax with placeholder values
|
40167
|
+
#
|
40168
|
+
# resp = client.get_image_block_public_access_state({
|
40169
|
+
# dry_run: false,
|
40170
|
+
# })
|
40171
|
+
#
|
40172
|
+
# @example Response structure
|
40173
|
+
#
|
40174
|
+
# resp.image_block_public_access_state #=> String
|
40175
|
+
#
|
40176
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageBlockPublicAccessState AWS API Documentation
|
40177
|
+
#
|
40178
|
+
# @overload get_image_block_public_access_state(params = {})
|
40179
|
+
# @param [Hash] params ({})
|
40180
|
+
def get_image_block_public_access_state(params = {}, options = {})
|
40181
|
+
req = build_request(:get_image_block_public_access_state, params)
|
40182
|
+
req.send_request(options)
|
40183
|
+
end
|
40184
|
+
|
40045
40185
|
# Returns a list of instance types with the specified instance
|
40046
40186
|
# attributes. You can use the response to preview the instance types
|
40047
40187
|
# without launching instances. Note that the response does not consider
|
@@ -56739,7 +56879,7 @@ module Aws::EC2
|
|
56739
56879
|
params: params,
|
56740
56880
|
config: config)
|
56741
56881
|
context[:gem_name] = 'aws-sdk-ec2'
|
56742
|
-
context[:gem_version] = '1.
|
56882
|
+
context[:gem_version] = '1.405.0'
|
56743
56883
|
Seahorse::Client::Request.new(handlers, context)
|
56744
56884
|
end
|
56745
56885
|
|
@@ -1124,6 +1124,8 @@ module Aws::EC2
|
|
1124
1124
|
DisableFastSnapshotRestoreSuccessSet = Shapes::ListShape.new(name: 'DisableFastSnapshotRestoreSuccessSet')
|
1125
1125
|
DisableFastSnapshotRestoresRequest = Shapes::StructureShape.new(name: 'DisableFastSnapshotRestoresRequest')
|
1126
1126
|
DisableFastSnapshotRestoresResult = Shapes::StructureShape.new(name: 'DisableFastSnapshotRestoresResult')
|
1127
|
+
DisableImageBlockPublicAccessRequest = Shapes::StructureShape.new(name: 'DisableImageBlockPublicAccessRequest')
|
1128
|
+
DisableImageBlockPublicAccessResult = Shapes::StructureShape.new(name: 'DisableImageBlockPublicAccessResult')
|
1127
1129
|
DisableImageDeprecationRequest = Shapes::StructureShape.new(name: 'DisableImageDeprecationRequest')
|
1128
1130
|
DisableImageDeprecationResult = Shapes::StructureShape.new(name: 'DisableImageDeprecationResult')
|
1129
1131
|
DisableIpamOrganizationAdminAccountRequest = Shapes::StructureShape.new(name: 'DisableIpamOrganizationAdminAccountRequest')
|
@@ -1246,6 +1248,8 @@ module Aws::EC2
|
|
1246
1248
|
EnableFastSnapshotRestoreSuccessSet = Shapes::ListShape.new(name: 'EnableFastSnapshotRestoreSuccessSet')
|
1247
1249
|
EnableFastSnapshotRestoresRequest = Shapes::StructureShape.new(name: 'EnableFastSnapshotRestoresRequest')
|
1248
1250
|
EnableFastSnapshotRestoresResult = Shapes::StructureShape.new(name: 'EnableFastSnapshotRestoresResult')
|
1251
|
+
EnableImageBlockPublicAccessRequest = Shapes::StructureShape.new(name: 'EnableImageBlockPublicAccessRequest')
|
1252
|
+
EnableImageBlockPublicAccessResult = Shapes::StructureShape.new(name: 'EnableImageBlockPublicAccessResult')
|
1249
1253
|
EnableImageDeprecationRequest = Shapes::StructureShape.new(name: 'EnableImageDeprecationRequest')
|
1250
1254
|
EnableImageDeprecationResult = Shapes::StructureShape.new(name: 'EnableImageDeprecationResult')
|
1251
1255
|
EnableIpamOrganizationAdminAccountRequest = Shapes::StructureShape.new(name: 'EnableIpamOrganizationAdminAccountRequest')
|
@@ -1406,6 +1410,8 @@ module Aws::EC2
|
|
1406
1410
|
GetGroupsForCapacityReservationResult = Shapes::StructureShape.new(name: 'GetGroupsForCapacityReservationResult')
|
1407
1411
|
GetHostReservationPurchasePreviewRequest = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewRequest')
|
1408
1412
|
GetHostReservationPurchasePreviewResult = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewResult')
|
1413
|
+
GetImageBlockPublicAccessStateRequest = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateRequest')
|
1414
|
+
GetImageBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateResult')
|
1409
1415
|
GetInstanceTypesFromInstanceRequirementsRequest = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsRequest')
|
1410
1416
|
GetInstanceTypesFromInstanceRequirementsResult = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsResult')
|
1411
1417
|
GetInstanceUefiDataRequest = Shapes::StructureShape.new(name: 'GetInstanceUefiDataRequest')
|
@@ -1525,6 +1531,8 @@ module Aws::EC2
|
|
1525
1531
|
Image = Shapes::StructureShape.new(name: 'Image')
|
1526
1532
|
ImageAttribute = Shapes::StructureShape.new(name: 'ImageAttribute')
|
1527
1533
|
ImageAttributeName = Shapes::StringShape.new(name: 'ImageAttributeName')
|
1534
|
+
ImageBlockPublicAccessDisabledState = Shapes::StringShape.new(name: 'ImageBlockPublicAccessDisabledState')
|
1535
|
+
ImageBlockPublicAccessEnabledState = Shapes::StringShape.new(name: 'ImageBlockPublicAccessEnabledState')
|
1528
1536
|
ImageDiskContainer = Shapes::StructureShape.new(name: 'ImageDiskContainer')
|
1529
1537
|
ImageDiskContainerList = Shapes::ListShape.new(name: 'ImageDiskContainerList')
|
1530
1538
|
ImageId = Shapes::StringShape.new(name: 'ImageId')
|
@@ -7704,6 +7712,12 @@ module Aws::EC2
|
|
7704
7712
|
DisableFastSnapshotRestoresResult.add_member(:unsuccessful, Shapes::ShapeRef.new(shape: DisableFastSnapshotRestoreErrorSet, location_name: "unsuccessful"))
|
7705
7713
|
DisableFastSnapshotRestoresResult.struct_class = Types::DisableFastSnapshotRestoresResult
|
7706
7714
|
|
7715
|
+
DisableImageBlockPublicAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
7716
|
+
DisableImageBlockPublicAccessRequest.struct_class = Types::DisableImageBlockPublicAccessRequest
|
7717
|
+
|
7718
|
+
DisableImageBlockPublicAccessResult.add_member(:image_block_public_access_state, Shapes::ShapeRef.new(shape: ImageBlockPublicAccessDisabledState, location_name: "imageBlockPublicAccessState"))
|
7719
|
+
DisableImageBlockPublicAccessResult.struct_class = Types::DisableImageBlockPublicAccessResult
|
7720
|
+
|
7707
7721
|
DisableImageDeprecationRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
7708
7722
|
DisableImageDeprecationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
7709
7723
|
DisableImageDeprecationRequest.struct_class = Types::DisableImageDeprecationRequest
|
@@ -8110,6 +8124,13 @@ module Aws::EC2
|
|
8110
8124
|
EnableFastSnapshotRestoresResult.add_member(:unsuccessful, Shapes::ShapeRef.new(shape: EnableFastSnapshotRestoreErrorSet, location_name: "unsuccessful"))
|
8111
8125
|
EnableFastSnapshotRestoresResult.struct_class = Types::EnableFastSnapshotRestoresResult
|
8112
8126
|
|
8127
|
+
EnableImageBlockPublicAccessRequest.add_member(:image_block_public_access_state, Shapes::ShapeRef.new(shape: ImageBlockPublicAccessEnabledState, required: true, location_name: "ImageBlockPublicAccessState"))
|
8128
|
+
EnableImageBlockPublicAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
8129
|
+
EnableImageBlockPublicAccessRequest.struct_class = Types::EnableImageBlockPublicAccessRequest
|
8130
|
+
|
8131
|
+
EnableImageBlockPublicAccessResult.add_member(:image_block_public_access_state, Shapes::ShapeRef.new(shape: ImageBlockPublicAccessEnabledState, location_name: "imageBlockPublicAccessState"))
|
8132
|
+
EnableImageBlockPublicAccessResult.struct_class = Types::EnableImageBlockPublicAccessResult
|
8133
|
+
|
8113
8134
|
EnableImageDeprecationRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
8114
8135
|
EnableImageDeprecationRequest.add_member(:deprecate_at, Shapes::ShapeRef.new(shape: MillisecondDateTime, required: true, location_name: "DeprecateAt"))
|
8115
8136
|
EnableImageDeprecationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -8705,6 +8726,12 @@ module Aws::EC2
|
|
8705
8726
|
GetHostReservationPurchasePreviewResult.add_member(:total_upfront_price, Shapes::ShapeRef.new(shape: String, location_name: "totalUpfrontPrice"))
|
8706
8727
|
GetHostReservationPurchasePreviewResult.struct_class = Types::GetHostReservationPurchasePreviewResult
|
8707
8728
|
|
8729
|
+
GetImageBlockPublicAccessStateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
8730
|
+
GetImageBlockPublicAccessStateRequest.struct_class = Types::GetImageBlockPublicAccessStateRequest
|
8731
|
+
|
8732
|
+
GetImageBlockPublicAccessStateResult.add_member(:image_block_public_access_state, Shapes::ShapeRef.new(shape: String, location_name: "imageBlockPublicAccessState"))
|
8733
|
+
GetImageBlockPublicAccessStateResult.struct_class = Types::GetImageBlockPublicAccessStateResult
|
8734
|
+
|
8708
8735
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
8709
8736
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, required: true, location_name: "ArchitectureType"))
|
8710
8737
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:virtualization_types, Shapes::ShapeRef.new(shape: VirtualizationTypeSet, required: true, location_name: "VirtualizationType"))
|
@@ -18675,6 +18702,14 @@ module Aws::EC2
|
|
18675
18702
|
o.output = Shapes::ShapeRef.new(shape: DisableFastSnapshotRestoresResult)
|
18676
18703
|
end)
|
18677
18704
|
|
18705
|
+
api.add_operation(:disable_image_block_public_access, Seahorse::Model::Operation.new.tap do |o|
|
18706
|
+
o.name = "DisableImageBlockPublicAccess"
|
18707
|
+
o.http_method = "POST"
|
18708
|
+
o.http_request_uri = "/"
|
18709
|
+
o.input = Shapes::ShapeRef.new(shape: DisableImageBlockPublicAccessRequest)
|
18710
|
+
o.output = Shapes::ShapeRef.new(shape: DisableImageBlockPublicAccessResult)
|
18711
|
+
end)
|
18712
|
+
|
18678
18713
|
api.add_operation(:disable_image_deprecation, Seahorse::Model::Operation.new.tap do |o|
|
18679
18714
|
o.name = "DisableImageDeprecation"
|
18680
18715
|
o.http_method = "POST"
|
@@ -18883,6 +18918,14 @@ module Aws::EC2
|
|
18883
18918
|
o.output = Shapes::ShapeRef.new(shape: EnableFastSnapshotRestoresResult)
|
18884
18919
|
end)
|
18885
18920
|
|
18921
|
+
api.add_operation(:enable_image_block_public_access, Seahorse::Model::Operation.new.tap do |o|
|
18922
|
+
o.name = "EnableImageBlockPublicAccess"
|
18923
|
+
o.http_method = "POST"
|
18924
|
+
o.http_request_uri = "/"
|
18925
|
+
o.input = Shapes::ShapeRef.new(shape: EnableImageBlockPublicAccessRequest)
|
18926
|
+
o.output = Shapes::ShapeRef.new(shape: EnableImageBlockPublicAccessResult)
|
18927
|
+
end)
|
18928
|
+
|
18886
18929
|
api.add_operation(:enable_image_deprecation, Seahorse::Model::Operation.new.tap do |o|
|
18887
18930
|
o.name = "EnableImageDeprecation"
|
18888
18931
|
o.http_method = "POST"
|
@@ -19109,6 +19152,14 @@ module Aws::EC2
|
|
19109
19152
|
o.output = Shapes::ShapeRef.new(shape: GetHostReservationPurchasePreviewResult)
|
19110
19153
|
end)
|
19111
19154
|
|
19155
|
+
api.add_operation(:get_image_block_public_access_state, Seahorse::Model::Operation.new.tap do |o|
|
19156
|
+
o.name = "GetImageBlockPublicAccessState"
|
19157
|
+
o.http_method = "POST"
|
19158
|
+
o.http_request_uri = "/"
|
19159
|
+
o.input = Shapes::ShapeRef.new(shape: GetImageBlockPublicAccessStateRequest)
|
19160
|
+
o.output = Shapes::ShapeRef.new(shape: GetImageBlockPublicAccessStateResult)
|
19161
|
+
end)
|
19162
|
+
|
19112
19163
|
api.add_operation(:get_instance_types_from_instance_requirements, Seahorse::Model::Operation.new.tap do |o|
|
19113
19164
|
o.name = "GetInstanceTypesFromInstanceRequirements"
|
19114
19165
|
o.http_method = "POST"
|
@@ -5234,6 +5234,20 @@ module Aws::EC2
|
|
5234
5234
|
end
|
5235
5235
|
end
|
5236
5236
|
|
5237
|
+
class DisableImageBlockPublicAccess
|
5238
|
+
def self.build(context)
|
5239
|
+
unless context.config.regional_endpoint
|
5240
|
+
endpoint = context.config.endpoint.to_s
|
5241
|
+
end
|
5242
|
+
Aws::EC2::EndpointParameters.new(
|
5243
|
+
region: context.config.region,
|
5244
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5245
|
+
use_fips: context.config.use_fips_endpoint,
|
5246
|
+
endpoint: endpoint,
|
5247
|
+
)
|
5248
|
+
end
|
5249
|
+
end
|
5250
|
+
|
5237
5251
|
class DisableImageDeprecation
|
5238
5252
|
def self.build(context)
|
5239
5253
|
unless context.config.regional_endpoint
|
@@ -5598,6 +5612,20 @@ module Aws::EC2
|
|
5598
5612
|
end
|
5599
5613
|
end
|
5600
5614
|
|
5615
|
+
class EnableImageBlockPublicAccess
|
5616
|
+
def self.build(context)
|
5617
|
+
unless context.config.regional_endpoint
|
5618
|
+
endpoint = context.config.endpoint.to_s
|
5619
|
+
end
|
5620
|
+
Aws::EC2::EndpointParameters.new(
|
5621
|
+
region: context.config.region,
|
5622
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5623
|
+
use_fips: context.config.use_fips_endpoint,
|
5624
|
+
endpoint: endpoint,
|
5625
|
+
)
|
5626
|
+
end
|
5627
|
+
end
|
5628
|
+
|
5601
5629
|
class EnableImageDeprecation
|
5602
5630
|
def self.build(context)
|
5603
5631
|
unless context.config.regional_endpoint
|
@@ -5962,6 +5990,20 @@ module Aws::EC2
|
|
5962
5990
|
end
|
5963
5991
|
end
|
5964
5992
|
|
5993
|
+
class GetImageBlockPublicAccessState
|
5994
|
+
def self.build(context)
|
5995
|
+
unless context.config.regional_endpoint
|
5996
|
+
endpoint = context.config.endpoint.to_s
|
5997
|
+
end
|
5998
|
+
Aws::EC2::EndpointParameters.new(
|
5999
|
+
region: context.config.region,
|
6000
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
6001
|
+
use_fips: context.config.use_fips_endpoint,
|
6002
|
+
endpoint: endpoint,
|
6003
|
+
)
|
6004
|
+
end
|
6005
|
+
end
|
6006
|
+
|
5965
6007
|
class GetInstanceTypesFromInstanceRequirements
|
5966
6008
|
def self.build(context)
|
5967
6009
|
unless context.config.regional_endpoint
|
@@ -802,6 +802,8 @@ module Aws::EC2
|
|
802
802
|
Aws::EC2::Endpoints::DisableFastLaunch.build(context)
|
803
803
|
when :disable_fast_snapshot_restores
|
804
804
|
Aws::EC2::Endpoints::DisableFastSnapshotRestores.build(context)
|
805
|
+
when :disable_image_block_public_access
|
806
|
+
Aws::EC2::Endpoints::DisableImageBlockPublicAccess.build(context)
|
805
807
|
when :disable_image_deprecation
|
806
808
|
Aws::EC2::Endpoints::DisableImageDeprecation.build(context)
|
807
809
|
when :disable_ipam_organization_admin_account
|
@@ -854,6 +856,8 @@ module Aws::EC2
|
|
854
856
|
Aws::EC2::Endpoints::EnableFastLaunch.build(context)
|
855
857
|
when :enable_fast_snapshot_restores
|
856
858
|
Aws::EC2::Endpoints::EnableFastSnapshotRestores.build(context)
|
859
|
+
when :enable_image_block_public_access
|
860
|
+
Aws::EC2::Endpoints::EnableImageBlockPublicAccess.build(context)
|
857
861
|
when :enable_image_deprecation
|
858
862
|
Aws::EC2::Endpoints::EnableImageDeprecation.build(context)
|
859
863
|
when :enable_ipam_organization_admin_account
|
@@ -906,6 +910,8 @@ module Aws::EC2
|
|
906
910
|
Aws::EC2::Endpoints::GetGroupsForCapacityReservation.build(context)
|
907
911
|
when :get_host_reservation_purchase_preview
|
908
912
|
Aws::EC2::Endpoints::GetHostReservationPurchasePreview.build(context)
|
913
|
+
when :get_image_block_public_access_state
|
914
|
+
Aws::EC2::Endpoints::GetImageBlockPublicAccessState.build(context)
|
909
915
|
when :get_instance_types_from_instance_requirements
|
910
916
|
Aws::EC2::Endpoints::GetInstanceTypesFromInstanceRequirements.build(context)
|
911
917
|
when :get_instance_uefi_data
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -27817,6 +27817,34 @@ module Aws::EC2
|
|
27817
27817
|
include Aws::Structure
|
27818
27818
|
end
|
27819
27819
|
|
27820
|
+
# @!attribute [rw] dry_run
|
27821
|
+
# Checks whether you have the required permissions for the action,
|
27822
|
+
# without actually making the request, and provides an error response.
|
27823
|
+
# If you have the required permissions, the error response is
|
27824
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
27825
|
+
# @return [Boolean]
|
27826
|
+
#
|
27827
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageBlockPublicAccessRequest AWS API Documentation
|
27828
|
+
#
|
27829
|
+
class DisableImageBlockPublicAccessRequest < Struct.new(
|
27830
|
+
:dry_run)
|
27831
|
+
SENSITIVE = []
|
27832
|
+
include Aws::Structure
|
27833
|
+
end
|
27834
|
+
|
27835
|
+
# @!attribute [rw] image_block_public_access_state
|
27836
|
+
# Returns `unblocked` if the request succeeds; otherwise, it returns
|
27837
|
+
# an error.
|
27838
|
+
# @return [String]
|
27839
|
+
#
|
27840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageBlockPublicAccessResult AWS API Documentation
|
27841
|
+
#
|
27842
|
+
class DisableImageBlockPublicAccessResult < Struct.new(
|
27843
|
+
:image_block_public_access_state)
|
27844
|
+
SENSITIVE = []
|
27845
|
+
include Aws::Structure
|
27846
|
+
end
|
27847
|
+
|
27820
27848
|
# @!attribute [rw] image_id
|
27821
27849
|
# The ID of the AMI.
|
27822
27850
|
# @return [String]
|
@@ -29859,6 +29887,41 @@ module Aws::EC2
|
|
29859
29887
|
include Aws::Structure
|
29860
29888
|
end
|
29861
29889
|
|
29890
|
+
# @!attribute [rw] image_block_public_access_state
|
29891
|
+
# Specify `block-new-sharing` to enable block public access for AMIs
|
29892
|
+
# at the account level in the specified Region. This will block any
|
29893
|
+
# attempt to publicly share your AMIs in the specified Region.
|
29894
|
+
# @return [String]
|
29895
|
+
#
|
29896
|
+
# @!attribute [rw] dry_run
|
29897
|
+
# Checks whether you have the required permissions for the action,
|
29898
|
+
# without actually making the request, and provides an error response.
|
29899
|
+
# If you have the required permissions, the error response is
|
29900
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
29901
|
+
# @return [Boolean]
|
29902
|
+
#
|
29903
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageBlockPublicAccessRequest AWS API Documentation
|
29904
|
+
#
|
29905
|
+
class EnableImageBlockPublicAccessRequest < Struct.new(
|
29906
|
+
:image_block_public_access_state,
|
29907
|
+
:dry_run)
|
29908
|
+
SENSITIVE = []
|
29909
|
+
include Aws::Structure
|
29910
|
+
end
|
29911
|
+
|
29912
|
+
# @!attribute [rw] image_block_public_access_state
|
29913
|
+
# Returns `block-new-sharing` if the request succeeds; otherwise, it
|
29914
|
+
# returns an error.
|
29915
|
+
# @return [String]
|
29916
|
+
#
|
29917
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageBlockPublicAccessResult AWS API Documentation
|
29918
|
+
#
|
29919
|
+
class EnableImageBlockPublicAccessResult < Struct.new(
|
29920
|
+
:image_block_public_access_state)
|
29921
|
+
SENSITIVE = []
|
29922
|
+
include Aws::Structure
|
29923
|
+
end
|
29924
|
+
|
29862
29925
|
# @!attribute [rw] image_id
|
29863
29926
|
# The ID of the AMI.
|
29864
29927
|
# @return [String]
|
@@ -33033,6 +33096,42 @@ module Aws::EC2
|
|
33033
33096
|
include Aws::Structure
|
33034
33097
|
end
|
33035
33098
|
|
33099
|
+
# @!attribute [rw] dry_run
|
33100
|
+
# Checks whether you have the required permissions for the action,
|
33101
|
+
# without actually making the request, and provides an error response.
|
33102
|
+
# If you have the required permissions, the error response is
|
33103
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
33104
|
+
# @return [Boolean]
|
33105
|
+
#
|
33106
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageBlockPublicAccessStateRequest AWS API Documentation
|
33107
|
+
#
|
33108
|
+
class GetImageBlockPublicAccessStateRequest < Struct.new(
|
33109
|
+
:dry_run)
|
33110
|
+
SENSITIVE = []
|
33111
|
+
include Aws::Structure
|
33112
|
+
end
|
33113
|
+
|
33114
|
+
# @!attribute [rw] image_block_public_access_state
|
33115
|
+
# The current state of block public access for AMIs at the account
|
33116
|
+
# level in the specified Amazon Web Services Region.
|
33117
|
+
#
|
33118
|
+
# Possible values:
|
33119
|
+
#
|
33120
|
+
# * `block-new-sharing` - Any attempt to publicly share your AMIs in
|
33121
|
+
# the specified Region is blocked.
|
33122
|
+
#
|
33123
|
+
# * `unblocked` - Your AMIs in the specified Region can be publicly
|
33124
|
+
# shared.
|
33125
|
+
# @return [String]
|
33126
|
+
#
|
33127
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageBlockPublicAccessStateResult AWS API Documentation
|
33128
|
+
#
|
33129
|
+
class GetImageBlockPublicAccessStateResult < Struct.new(
|
33130
|
+
:image_block_public_access_state)
|
33131
|
+
SENSITIVE = []
|
33132
|
+
include Aws::Structure
|
33133
|
+
end
|
33134
|
+
|
33036
33135
|
# @!attribute [rw] dry_run
|
33037
33136
|
# Checks whether you have the required permissions for the action,
|
33038
33137
|
# without actually making the request, and provides an error response.
|
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.405.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: 2023-09-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|