aws-sdk-ec2 1.417.0 → 1.418.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 +162 -1
- data/lib/aws-sdk-ec2/client_api.rb +50 -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 +124 -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: '09ef990077457f5ffd7d8666fe33d33613e9bfadb193eeb3e1c9a0bf7dba6a98'
|
4
|
+
data.tar.gz: b2773e0f8086200d2e055377dc4f18fca51b27fcb638f6423b6d9dfcd906ea58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141cfeb55798b634120530dd6b235b7c6293775a42518927e9582467d6013717d1cec1c3c826831fcfda857b34697eeeb6e64c09791d7b2eef6894dc14476f4d
|
7
|
+
data.tar.gz: 38904bbccc3fb94d94c21d96271439437f50669584ba882c67e3960744434183d46df56afd3e5369f486048c49cf6fc59dc6baeeebd2714515bdcef7a7522cdc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.418.0 (2023-11-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - AWS EBS now supports Block Public Access for EBS Snapshots. This release introduces the EnableSnapshotBlockPublicAccess, DisableSnapshotBlockPublicAccess and GetSnapshotBlockPublicAccessState APIs to manage account-level public access settings for EBS Snapshots in an AWS Region.
|
8
|
+
|
4
9
|
1.417.0 (2023-10-31)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.418.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -37762,6 +37762,54 @@ module Aws::EC2
|
|
37762
37762
|
req.send_request(options)
|
37763
37763
|
end
|
37764
37764
|
|
37765
|
+
# Disables the *block public access for snapshots* setting at the
|
37766
|
+
# account level for the specified Amazon Web Services Region. After you
|
37767
|
+
# disable block public access for snapshots in a Region, users can
|
37768
|
+
# publicly share snapshots in that Region.
|
37769
|
+
#
|
37770
|
+
# If block public access is enabled in `block-all-sharing` mode, and you
|
37771
|
+
# disable block public access, all snapshots that were previously
|
37772
|
+
# publicly shared are no longer treated as private and they become
|
37773
|
+
# publicly accessible again.
|
37774
|
+
#
|
37775
|
+
# For more information, see [ Block public access for snapshots][1] in
|
37776
|
+
# the *Amazon Elastic Compute Cloud User Guide* .
|
37777
|
+
#
|
37778
|
+
#
|
37779
|
+
#
|
37780
|
+
#
|
37781
|
+
#
|
37782
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-snapshots.html
|
37783
|
+
#
|
37784
|
+
# @option params [Boolean] :dry_run
|
37785
|
+
# Checks whether you have the required permissions for the action,
|
37786
|
+
# without actually making the request, and provides an error response.
|
37787
|
+
# If you have the required permissions, the error response is
|
37788
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
37789
|
+
#
|
37790
|
+
# @return [Types::DisableSnapshotBlockPublicAccessResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
37791
|
+
#
|
37792
|
+
# * {Types::DisableSnapshotBlockPublicAccessResult#state #state} => String
|
37793
|
+
#
|
37794
|
+
# @example Request syntax with placeholder values
|
37795
|
+
#
|
37796
|
+
# resp = client.disable_snapshot_block_public_access({
|
37797
|
+
# dry_run: false,
|
37798
|
+
# })
|
37799
|
+
#
|
37800
|
+
# @example Response structure
|
37801
|
+
#
|
37802
|
+
# resp.state #=> String, one of "block-all-sharing", "block-new-sharing", "unblocked"
|
37803
|
+
#
|
37804
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableSnapshotBlockPublicAccess AWS API Documentation
|
37805
|
+
#
|
37806
|
+
# @overload disable_snapshot_block_public_access(params = {})
|
37807
|
+
# @param [Hash] params ({})
|
37808
|
+
def disable_snapshot_block_public_access(params = {}, options = {})
|
37809
|
+
req = build_request(:disable_snapshot_block_public_access, params)
|
37810
|
+
req.send_request(options)
|
37811
|
+
end
|
37812
|
+
|
37765
37813
|
# Disables the specified resource attachment from propagating routes to
|
37766
37814
|
# the specified propagation route table.
|
37767
37815
|
#
|
@@ -39247,6 +39295,80 @@ module Aws::EC2
|
|
39247
39295
|
req.send_request(options)
|
39248
39296
|
end
|
39249
39297
|
|
39298
|
+
# Enables or modifies the *block public access for snapshots* setting at
|
39299
|
+
# the account level for the specified Amazon Web Services Region. After
|
39300
|
+
# you enable block public access for snapshots in a Region, users can no
|
39301
|
+
# longer request public sharing for snapshots in that Region. Snapshots
|
39302
|
+
# that are already publicly shared are either treated as private or they
|
39303
|
+
# remain publicly shared, depending on the **State** that you specify.
|
39304
|
+
#
|
39305
|
+
# If block public access is enabled in `block-all-sharing` mode, and you
|
39306
|
+
# change the mode to `block-new-sharing`, all snapshots that were
|
39307
|
+
# previously publicly shared are no longer treated as private and they
|
39308
|
+
# become publicly accessible again.
|
39309
|
+
#
|
39310
|
+
# For more information, see [ Block public access for snapshots][1] in
|
39311
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
39312
|
+
#
|
39313
|
+
#
|
39314
|
+
#
|
39315
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-snapshots.html
|
39316
|
+
#
|
39317
|
+
# @option params [required, String] :state
|
39318
|
+
# The mode in which to enable block public access for snapshots for the
|
39319
|
+
# Region. Specify one of the following values:
|
39320
|
+
#
|
39321
|
+
# * `block-all-sharing` - Prevents all public sharing of snapshots in
|
39322
|
+
# the Region. Users in the account will no longer be able to request
|
39323
|
+
# new public sharing. Additionally, snapshots that are already
|
39324
|
+
# publicly shared are treated as private and they are no longer
|
39325
|
+
# publicly available.
|
39326
|
+
#
|
39327
|
+
# <note markdown="1"> If you enable block public access for snapshots in
|
39328
|
+
# `block-all-sharing` mode, it does not change the permissions for
|
39329
|
+
# snapshots that are already publicly shared. Instead, it prevents
|
39330
|
+
# these snapshots from be publicly visible and publicly accessible.
|
39331
|
+
# Therefore, the attributes for these snapshots still indicate that
|
39332
|
+
# they are publicly shared, even though they are not publicly
|
39333
|
+
# available.
|
39334
|
+
#
|
39335
|
+
# </note>
|
39336
|
+
#
|
39337
|
+
# * `block-new-sharing` - Prevents only new public sharing of snapshots
|
39338
|
+
# in the Region. Users in the account will no longer be able to
|
39339
|
+
# request new public sharing. However, snapshots that are already
|
39340
|
+
# publicly shared, remain publicly available.
|
39341
|
+
#
|
39342
|
+
# @option params [Boolean] :dry_run
|
39343
|
+
# Checks whether you have the required permissions for the action,
|
39344
|
+
# without actually making the request, and provides an error response.
|
39345
|
+
# If you have the required permissions, the error response is
|
39346
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
39347
|
+
#
|
39348
|
+
# @return [Types::EnableSnapshotBlockPublicAccessResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
39349
|
+
#
|
39350
|
+
# * {Types::EnableSnapshotBlockPublicAccessResult#state #state} => String
|
39351
|
+
#
|
39352
|
+
# @example Request syntax with placeholder values
|
39353
|
+
#
|
39354
|
+
# resp = client.enable_snapshot_block_public_access({
|
39355
|
+
# state: "block-all-sharing", # required, accepts block-all-sharing, block-new-sharing, unblocked
|
39356
|
+
# dry_run: false,
|
39357
|
+
# })
|
39358
|
+
#
|
39359
|
+
# @example Response structure
|
39360
|
+
#
|
39361
|
+
# resp.state #=> String, one of "block-all-sharing", "block-new-sharing", "unblocked"
|
39362
|
+
#
|
39363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableSnapshotBlockPublicAccess AWS API Documentation
|
39364
|
+
#
|
39365
|
+
# @overload enable_snapshot_block_public_access(params = {})
|
39366
|
+
# @param [Hash] params ({})
|
39367
|
+
def enable_snapshot_block_public_access(params = {}, options = {})
|
39368
|
+
req = build_request(:enable_snapshot_block_public_access, params)
|
39369
|
+
req.send_request(options)
|
39370
|
+
end
|
39371
|
+
|
39250
39372
|
# Enables the specified attachment to propagate routes to the specified
|
39251
39373
|
# propagation route table.
|
39252
39374
|
#
|
@@ -42336,6 +42458,45 @@ module Aws::EC2
|
|
42336
42458
|
req.send_request(options)
|
42337
42459
|
end
|
42338
42460
|
|
42461
|
+
# Gets the current state of *block public access for snapshots* setting
|
42462
|
+
# for the account and Region.
|
42463
|
+
#
|
42464
|
+
# For more information, see [ Block public access for snapshots][1] in
|
42465
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
42466
|
+
#
|
42467
|
+
#
|
42468
|
+
#
|
42469
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-snapshots.html
|
42470
|
+
#
|
42471
|
+
# @option params [Boolean] :dry_run
|
42472
|
+
# Checks whether you have the required permissions for the action,
|
42473
|
+
# without actually making the request, and provides an error response.
|
42474
|
+
# If you have the required permissions, the error response is
|
42475
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
42476
|
+
#
|
42477
|
+
# @return [Types::GetSnapshotBlockPublicAccessStateResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
42478
|
+
#
|
42479
|
+
# * {Types::GetSnapshotBlockPublicAccessStateResult#state #state} => String
|
42480
|
+
#
|
42481
|
+
# @example Request syntax with placeholder values
|
42482
|
+
#
|
42483
|
+
# resp = client.get_snapshot_block_public_access_state({
|
42484
|
+
# dry_run: false,
|
42485
|
+
# })
|
42486
|
+
#
|
42487
|
+
# @example Response structure
|
42488
|
+
#
|
42489
|
+
# resp.state #=> String, one of "block-all-sharing", "block-new-sharing", "unblocked"
|
42490
|
+
#
|
42491
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSnapshotBlockPublicAccessState AWS API Documentation
|
42492
|
+
#
|
42493
|
+
# @overload get_snapshot_block_public_access_state(params = {})
|
42494
|
+
# @param [Hash] params ({})
|
42495
|
+
def get_snapshot_block_public_access_state(params = {}, options = {})
|
42496
|
+
req = build_request(:get_snapshot_block_public_access_state, params)
|
42497
|
+
req.send_request(options)
|
42498
|
+
end
|
42499
|
+
|
42339
42500
|
# Calculates the Spot placement score for a Region or Availability Zone
|
42340
42501
|
# based on the specified target capacity and compute requirements.
|
42341
42502
|
#
|
@@ -57434,7 +57595,7 @@ module Aws::EC2
|
|
57434
57595
|
params: params,
|
57435
57596
|
config: config)
|
57436
57597
|
context[:gem_name] = 'aws-sdk-ec2'
|
57437
|
-
context[:gem_version] = '1.
|
57598
|
+
context[:gem_version] = '1.418.0'
|
57438
57599
|
Seahorse::Client::Request.new(handlers, context)
|
57439
57600
|
end
|
57440
57601
|
|
@@ -1140,6 +1140,8 @@ module Aws::EC2
|
|
1140
1140
|
DisableIpamOrganizationAdminAccountResult = Shapes::StructureShape.new(name: 'DisableIpamOrganizationAdminAccountResult')
|
1141
1141
|
DisableSerialConsoleAccessRequest = Shapes::StructureShape.new(name: 'DisableSerialConsoleAccessRequest')
|
1142
1142
|
DisableSerialConsoleAccessResult = Shapes::StructureShape.new(name: 'DisableSerialConsoleAccessResult')
|
1143
|
+
DisableSnapshotBlockPublicAccessRequest = Shapes::StructureShape.new(name: 'DisableSnapshotBlockPublicAccessRequest')
|
1144
|
+
DisableSnapshotBlockPublicAccessResult = Shapes::StructureShape.new(name: 'DisableSnapshotBlockPublicAccessResult')
|
1143
1145
|
DisableTransitGatewayRouteTablePropagationRequest = Shapes::StructureShape.new(name: 'DisableTransitGatewayRouteTablePropagationRequest')
|
1144
1146
|
DisableTransitGatewayRouteTablePropagationResult = Shapes::StructureShape.new(name: 'DisableTransitGatewayRouteTablePropagationResult')
|
1145
1147
|
DisableVgwRoutePropagationRequest = Shapes::StructureShape.new(name: 'DisableVgwRoutePropagationRequest')
|
@@ -1268,6 +1270,8 @@ module Aws::EC2
|
|
1268
1270
|
EnableReachabilityAnalyzerOrganizationSharingResult = Shapes::StructureShape.new(name: 'EnableReachabilityAnalyzerOrganizationSharingResult')
|
1269
1271
|
EnableSerialConsoleAccessRequest = Shapes::StructureShape.new(name: 'EnableSerialConsoleAccessRequest')
|
1270
1272
|
EnableSerialConsoleAccessResult = Shapes::StructureShape.new(name: 'EnableSerialConsoleAccessResult')
|
1273
|
+
EnableSnapshotBlockPublicAccessRequest = Shapes::StructureShape.new(name: 'EnableSnapshotBlockPublicAccessRequest')
|
1274
|
+
EnableSnapshotBlockPublicAccessResult = Shapes::StructureShape.new(name: 'EnableSnapshotBlockPublicAccessResult')
|
1271
1275
|
EnableTransitGatewayRouteTablePropagationRequest = Shapes::StructureShape.new(name: 'EnableTransitGatewayRouteTablePropagationRequest')
|
1272
1276
|
EnableTransitGatewayRouteTablePropagationResult = Shapes::StructureShape.new(name: 'EnableTransitGatewayRouteTablePropagationResult')
|
1273
1277
|
EnableVgwRoutePropagationRequest = Shapes::StructureShape.new(name: 'EnableVgwRoutePropagationRequest')
|
@@ -1459,6 +1463,8 @@ module Aws::EC2
|
|
1459
1463
|
GetSecurityGroupsForVpcResult = Shapes::StructureShape.new(name: 'GetSecurityGroupsForVpcResult')
|
1460
1464
|
GetSerialConsoleAccessStatusRequest = Shapes::StructureShape.new(name: 'GetSerialConsoleAccessStatusRequest')
|
1461
1465
|
GetSerialConsoleAccessStatusResult = Shapes::StructureShape.new(name: 'GetSerialConsoleAccessStatusResult')
|
1466
|
+
GetSnapshotBlockPublicAccessStateRequest = Shapes::StructureShape.new(name: 'GetSnapshotBlockPublicAccessStateRequest')
|
1467
|
+
GetSnapshotBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetSnapshotBlockPublicAccessStateResult')
|
1462
1468
|
GetSpotPlacementScoresRequest = Shapes::StructureShape.new(name: 'GetSpotPlacementScoresRequest')
|
1463
1469
|
GetSpotPlacementScoresResult = Shapes::StructureShape.new(name: 'GetSpotPlacementScoresResult')
|
1464
1470
|
GetSubnetCidrReservationsMaxResults = Shapes::IntegerShape.new(name: 'GetSubnetCidrReservationsMaxResults')
|
@@ -2605,6 +2611,7 @@ module Aws::EC2
|
|
2605
2611
|
SlotStartTimeRangeRequest = Shapes::StructureShape.new(name: 'SlotStartTimeRangeRequest')
|
2606
2612
|
Snapshot = Shapes::StructureShape.new(name: 'Snapshot')
|
2607
2613
|
SnapshotAttributeName = Shapes::StringShape.new(name: 'SnapshotAttributeName')
|
2614
|
+
SnapshotBlockPublicAccessState = Shapes::StringShape.new(name: 'SnapshotBlockPublicAccessState')
|
2608
2615
|
SnapshotDetail = Shapes::StructureShape.new(name: 'SnapshotDetail')
|
2609
2616
|
SnapshotDetailList = Shapes::ListShape.new(name: 'SnapshotDetailList')
|
2610
2617
|
SnapshotDiskContainer = Shapes::StructureShape.new(name: 'SnapshotDiskContainer')
|
@@ -7799,6 +7806,12 @@ module Aws::EC2
|
|
7799
7806
|
DisableSerialConsoleAccessResult.add_member(:serial_console_access_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "serialConsoleAccessEnabled"))
|
7800
7807
|
DisableSerialConsoleAccessResult.struct_class = Types::DisableSerialConsoleAccessResult
|
7801
7808
|
|
7809
|
+
DisableSnapshotBlockPublicAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
7810
|
+
DisableSnapshotBlockPublicAccessRequest.struct_class = Types::DisableSnapshotBlockPublicAccessRequest
|
7811
|
+
|
7812
|
+
DisableSnapshotBlockPublicAccessResult.add_member(:state, Shapes::ShapeRef.new(shape: SnapshotBlockPublicAccessState, location_name: "state"))
|
7813
|
+
DisableSnapshotBlockPublicAccessResult.struct_class = Types::DisableSnapshotBlockPublicAccessResult
|
7814
|
+
|
7802
7815
|
DisableTransitGatewayRouteTablePropagationRequest.add_member(:transit_gateway_route_table_id, Shapes::ShapeRef.new(shape: TransitGatewayRouteTableId, required: true, location_name: "TransitGatewayRouteTableId"))
|
7803
7816
|
DisableTransitGatewayRouteTablePropagationRequest.add_member(:transit_gateway_attachment_id, Shapes::ShapeRef.new(shape: TransitGatewayAttachmentId, location_name: "TransitGatewayAttachmentId"))
|
7804
7817
|
DisableTransitGatewayRouteTablePropagationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -8226,6 +8239,13 @@ module Aws::EC2
|
|
8226
8239
|
EnableSerialConsoleAccessResult.add_member(:serial_console_access_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "serialConsoleAccessEnabled"))
|
8227
8240
|
EnableSerialConsoleAccessResult.struct_class = Types::EnableSerialConsoleAccessResult
|
8228
8241
|
|
8242
|
+
EnableSnapshotBlockPublicAccessRequest.add_member(:state, Shapes::ShapeRef.new(shape: SnapshotBlockPublicAccessState, required: true, location_name: "State"))
|
8243
|
+
EnableSnapshotBlockPublicAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
8244
|
+
EnableSnapshotBlockPublicAccessRequest.struct_class = Types::EnableSnapshotBlockPublicAccessRequest
|
8245
|
+
|
8246
|
+
EnableSnapshotBlockPublicAccessResult.add_member(:state, Shapes::ShapeRef.new(shape: SnapshotBlockPublicAccessState, location_name: "state"))
|
8247
|
+
EnableSnapshotBlockPublicAccessResult.struct_class = Types::EnableSnapshotBlockPublicAccessResult
|
8248
|
+
|
8229
8249
|
EnableTransitGatewayRouteTablePropagationRequest.add_member(:transit_gateway_route_table_id, Shapes::ShapeRef.new(shape: TransitGatewayRouteTableId, required: true, location_name: "TransitGatewayRouteTableId"))
|
8230
8250
|
EnableTransitGatewayRouteTablePropagationRequest.add_member(:transit_gateway_attachment_id, Shapes::ShapeRef.new(shape: TransitGatewayAttachmentId, location_name: "TransitGatewayAttachmentId"))
|
8231
8251
|
EnableTransitGatewayRouteTablePropagationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -8986,6 +9006,12 @@ module Aws::EC2
|
|
8986
9006
|
GetSerialConsoleAccessStatusResult.add_member(:serial_console_access_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "serialConsoleAccessEnabled"))
|
8987
9007
|
GetSerialConsoleAccessStatusResult.struct_class = Types::GetSerialConsoleAccessStatusResult
|
8988
9008
|
|
9009
|
+
GetSnapshotBlockPublicAccessStateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
9010
|
+
GetSnapshotBlockPublicAccessStateRequest.struct_class = Types::GetSnapshotBlockPublicAccessStateRequest
|
9011
|
+
|
9012
|
+
GetSnapshotBlockPublicAccessStateResult.add_member(:state, Shapes::ShapeRef.new(shape: SnapshotBlockPublicAccessState, location_name: "state"))
|
9013
|
+
GetSnapshotBlockPublicAccessStateResult.struct_class = Types::GetSnapshotBlockPublicAccessStateResult
|
9014
|
+
|
8989
9015
|
GetSpotPlacementScoresRequest.add_member(:instance_types, Shapes::ShapeRef.new(shape: InstanceTypes, location_name: "InstanceType"))
|
8990
9016
|
GetSpotPlacementScoresRequest.add_member(:target_capacity, Shapes::ShapeRef.new(shape: SpotPlacementScoresTargetCapacity, required: true, location_name: "TargetCapacity"))
|
8991
9017
|
GetSpotPlacementScoresRequest.add_member(:target_capacity_unit_type, Shapes::ShapeRef.new(shape: TargetCapacityUnitType, location_name: "TargetCapacityUnitType"))
|
@@ -18872,6 +18898,14 @@ module Aws::EC2
|
|
18872
18898
|
o.output = Shapes::ShapeRef.new(shape: DisableSerialConsoleAccessResult)
|
18873
18899
|
end)
|
18874
18900
|
|
18901
|
+
api.add_operation(:disable_snapshot_block_public_access, Seahorse::Model::Operation.new.tap do |o|
|
18902
|
+
o.name = "DisableSnapshotBlockPublicAccess"
|
18903
|
+
o.http_method = "POST"
|
18904
|
+
o.http_request_uri = "/"
|
18905
|
+
o.input = Shapes::ShapeRef.new(shape: DisableSnapshotBlockPublicAccessRequest)
|
18906
|
+
o.output = Shapes::ShapeRef.new(shape: DisableSnapshotBlockPublicAccessResult)
|
18907
|
+
end)
|
18908
|
+
|
18875
18909
|
api.add_operation(:disable_transit_gateway_route_table_propagation, Seahorse::Model::Operation.new.tap do |o|
|
18876
18910
|
o.name = "DisableTransitGatewayRouteTablePropagation"
|
18877
18911
|
o.http_method = "POST"
|
@@ -19104,6 +19138,14 @@ module Aws::EC2
|
|
19104
19138
|
o.output = Shapes::ShapeRef.new(shape: EnableSerialConsoleAccessResult)
|
19105
19139
|
end)
|
19106
19140
|
|
19141
|
+
api.add_operation(:enable_snapshot_block_public_access, Seahorse::Model::Operation.new.tap do |o|
|
19142
|
+
o.name = "EnableSnapshotBlockPublicAccess"
|
19143
|
+
o.http_method = "POST"
|
19144
|
+
o.http_request_uri = "/"
|
19145
|
+
o.input = Shapes::ShapeRef.new(shape: EnableSnapshotBlockPublicAccessRequest)
|
19146
|
+
o.output = Shapes::ShapeRef.new(shape: EnableSnapshotBlockPublicAccessResult)
|
19147
|
+
end)
|
19148
|
+
|
19107
19149
|
api.add_operation(:enable_transit_gateway_route_table_propagation, Seahorse::Model::Operation.new.tap do |o|
|
19108
19150
|
o.name = "EnableTransitGatewayRouteTablePropagation"
|
19109
19151
|
o.http_method = "POST"
|
@@ -19508,6 +19550,14 @@ module Aws::EC2
|
|
19508
19550
|
o.output = Shapes::ShapeRef.new(shape: GetSerialConsoleAccessStatusResult)
|
19509
19551
|
end)
|
19510
19552
|
|
19553
|
+
api.add_operation(:get_snapshot_block_public_access_state, Seahorse::Model::Operation.new.tap do |o|
|
19554
|
+
o.name = "GetSnapshotBlockPublicAccessState"
|
19555
|
+
o.http_method = "POST"
|
19556
|
+
o.http_request_uri = "/"
|
19557
|
+
o.input = Shapes::ShapeRef.new(shape: GetSnapshotBlockPublicAccessStateRequest)
|
19558
|
+
o.output = Shapes::ShapeRef.new(shape: GetSnapshotBlockPublicAccessStateResult)
|
19559
|
+
end)
|
19560
|
+
|
19511
19561
|
api.add_operation(:get_spot_placement_scores, Seahorse::Model::Operation.new.tap do |o|
|
19512
19562
|
o.name = "GetSpotPlacementScores"
|
19513
19563
|
o.http_method = "POST"
|
@@ -5318,6 +5318,20 @@ module Aws::EC2
|
|
5318
5318
|
end
|
5319
5319
|
end
|
5320
5320
|
|
5321
|
+
class DisableSnapshotBlockPublicAccess
|
5322
|
+
def self.build(context)
|
5323
|
+
unless context.config.regional_endpoint
|
5324
|
+
endpoint = context.config.endpoint.to_s
|
5325
|
+
end
|
5326
|
+
Aws::EC2::EndpointParameters.new(
|
5327
|
+
region: context.config.region,
|
5328
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5329
|
+
use_fips: context.config.use_fips_endpoint,
|
5330
|
+
endpoint: endpoint,
|
5331
|
+
)
|
5332
|
+
end
|
5333
|
+
end
|
5334
|
+
|
5321
5335
|
class DisableTransitGatewayRouteTablePropagation
|
5322
5336
|
def self.build(context)
|
5323
5337
|
unless context.config.regional_endpoint
|
@@ -5724,6 +5738,20 @@ module Aws::EC2
|
|
5724
5738
|
end
|
5725
5739
|
end
|
5726
5740
|
|
5741
|
+
class EnableSnapshotBlockPublicAccess
|
5742
|
+
def self.build(context)
|
5743
|
+
unless context.config.regional_endpoint
|
5744
|
+
endpoint = context.config.endpoint.to_s
|
5745
|
+
end
|
5746
|
+
Aws::EC2::EndpointParameters.new(
|
5747
|
+
region: context.config.region,
|
5748
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5749
|
+
use_fips: context.config.use_fips_endpoint,
|
5750
|
+
endpoint: endpoint,
|
5751
|
+
)
|
5752
|
+
end
|
5753
|
+
end
|
5754
|
+
|
5727
5755
|
class EnableTransitGatewayRouteTablePropagation
|
5728
5756
|
def self.build(context)
|
5729
5757
|
unless context.config.regional_endpoint
|
@@ -6284,6 +6312,20 @@ module Aws::EC2
|
|
6284
6312
|
end
|
6285
6313
|
end
|
6286
6314
|
|
6315
|
+
class GetSnapshotBlockPublicAccessState
|
6316
|
+
def self.build(context)
|
6317
|
+
unless context.config.regional_endpoint
|
6318
|
+
endpoint = context.config.endpoint.to_s
|
6319
|
+
end
|
6320
|
+
Aws::EC2::EndpointParameters.new(
|
6321
|
+
region: context.config.region,
|
6322
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
6323
|
+
use_fips: context.config.use_fips_endpoint,
|
6324
|
+
endpoint: endpoint,
|
6325
|
+
)
|
6326
|
+
end
|
6327
|
+
end
|
6328
|
+
|
6287
6329
|
class GetSpotPlacementScores
|
6288
6330
|
def self.build(context)
|
6289
6331
|
unless context.config.regional_endpoint
|
@@ -814,6 +814,8 @@ module Aws::EC2
|
|
814
814
|
Aws::EC2::Endpoints::DisableIpamOrganizationAdminAccount.build(context)
|
815
815
|
when :disable_serial_console_access
|
816
816
|
Aws::EC2::Endpoints::DisableSerialConsoleAccess.build(context)
|
817
|
+
when :disable_snapshot_block_public_access
|
818
|
+
Aws::EC2::Endpoints::DisableSnapshotBlockPublicAccess.build(context)
|
817
819
|
when :disable_transit_gateway_route_table_propagation
|
818
820
|
Aws::EC2::Endpoints::DisableTransitGatewayRouteTablePropagation.build(context)
|
819
821
|
when :disable_vgw_route_propagation
|
@@ -872,6 +874,8 @@ module Aws::EC2
|
|
872
874
|
Aws::EC2::Endpoints::EnableReachabilityAnalyzerOrganizationSharing.build(context)
|
873
875
|
when :enable_serial_console_access
|
874
876
|
Aws::EC2::Endpoints::EnableSerialConsoleAccess.build(context)
|
877
|
+
when :enable_snapshot_block_public_access
|
878
|
+
Aws::EC2::Endpoints::EnableSnapshotBlockPublicAccess.build(context)
|
875
879
|
when :enable_transit_gateway_route_table_propagation
|
876
880
|
Aws::EC2::Endpoints::EnableTransitGatewayRouteTablePropagation.build(context)
|
877
881
|
when :enable_vgw_route_propagation
|
@@ -952,6 +956,8 @@ module Aws::EC2
|
|
952
956
|
Aws::EC2::Endpoints::GetSecurityGroupsForVpc.build(context)
|
953
957
|
when :get_serial_console_access_status
|
954
958
|
Aws::EC2::Endpoints::GetSerialConsoleAccessStatus.build(context)
|
959
|
+
when :get_snapshot_block_public_access_state
|
960
|
+
Aws::EC2::Endpoints::GetSnapshotBlockPublicAccessState.build(context)
|
955
961
|
when :get_spot_placement_scores
|
956
962
|
Aws::EC2::Endpoints::GetSpotPlacementScores.build(context)
|
957
963
|
when :get_subnet_cidr_reservations
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -28205,6 +28205,33 @@ module Aws::EC2
|
|
28205
28205
|
include Aws::Structure
|
28206
28206
|
end
|
28207
28207
|
|
28208
|
+
# @!attribute [rw] dry_run
|
28209
|
+
# Checks whether you have the required permissions for the action,
|
28210
|
+
# without actually making the request, and provides an error response.
|
28211
|
+
# If you have the required permissions, the error response is
|
28212
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
28213
|
+
# @return [Boolean]
|
28214
|
+
#
|
28215
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableSnapshotBlockPublicAccessRequest AWS API Documentation
|
28216
|
+
#
|
28217
|
+
class DisableSnapshotBlockPublicAccessRequest < Struct.new(
|
28218
|
+
:dry_run)
|
28219
|
+
SENSITIVE = []
|
28220
|
+
include Aws::Structure
|
28221
|
+
end
|
28222
|
+
|
28223
|
+
# @!attribute [rw] state
|
28224
|
+
# Returns `unblocked` if the request succeeds.
|
28225
|
+
# @return [String]
|
28226
|
+
#
|
28227
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableSnapshotBlockPublicAccessResult AWS API Documentation
|
28228
|
+
#
|
28229
|
+
class DisableSnapshotBlockPublicAccessResult < Struct.new(
|
28230
|
+
:state)
|
28231
|
+
SENSITIVE = []
|
28232
|
+
include Aws::Structure
|
28233
|
+
end
|
28234
|
+
|
28208
28235
|
# @!attribute [rw] transit_gateway_route_table_id
|
28209
28236
|
# The ID of the propagation route table.
|
28210
28237
|
# @return [String]
|
@@ -30353,6 +30380,62 @@ module Aws::EC2
|
|
30353
30380
|
include Aws::Structure
|
30354
30381
|
end
|
30355
30382
|
|
30383
|
+
# @!attribute [rw] state
|
30384
|
+
# The mode in which to enable block public access for snapshots for
|
30385
|
+
# the Region. Specify one of the following values:
|
30386
|
+
#
|
30387
|
+
# * `block-all-sharing` - Prevents all public sharing of snapshots in
|
30388
|
+
# the Region. Users in the account will no longer be able to request
|
30389
|
+
# new public sharing. Additionally, snapshots that are already
|
30390
|
+
# publicly shared are treated as private and they are no longer
|
30391
|
+
# publicly available.
|
30392
|
+
#
|
30393
|
+
# <note markdown="1"> If you enable block public access for snapshots in
|
30394
|
+
# `block-all-sharing` mode, it does not change the permissions for
|
30395
|
+
# snapshots that are already publicly shared. Instead, it prevents
|
30396
|
+
# these snapshots from be publicly visible and publicly accessible.
|
30397
|
+
# Therefore, the attributes for these snapshots still indicate that
|
30398
|
+
# they are publicly shared, even though they are not publicly
|
30399
|
+
# available.
|
30400
|
+
#
|
30401
|
+
# </note>
|
30402
|
+
#
|
30403
|
+
# * `block-new-sharing` - Prevents only new public sharing of
|
30404
|
+
# snapshots in the Region. Users in the account will no longer be
|
30405
|
+
# able to request new public sharing. However, snapshots that are
|
30406
|
+
# already publicly shared, remain publicly available.
|
30407
|
+
# @return [String]
|
30408
|
+
#
|
30409
|
+
# @!attribute [rw] dry_run
|
30410
|
+
# Checks whether you have the required permissions for the action,
|
30411
|
+
# without actually making the request, and provides an error response.
|
30412
|
+
# If you have the required permissions, the error response is
|
30413
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
30414
|
+
# @return [Boolean]
|
30415
|
+
#
|
30416
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableSnapshotBlockPublicAccessRequest AWS API Documentation
|
30417
|
+
#
|
30418
|
+
class EnableSnapshotBlockPublicAccessRequest < Struct.new(
|
30419
|
+
:state,
|
30420
|
+
:dry_run)
|
30421
|
+
SENSITIVE = []
|
30422
|
+
include Aws::Structure
|
30423
|
+
end
|
30424
|
+
|
30425
|
+
# @!attribute [rw] state
|
30426
|
+
# The state of block public access for snapshots for the account and
|
30427
|
+
# Region. Returns either `block-all-sharing` or `block-new-sharing` if
|
30428
|
+
# the request succeeds.
|
30429
|
+
# @return [String]
|
30430
|
+
#
|
30431
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableSnapshotBlockPublicAccessResult AWS API Documentation
|
30432
|
+
#
|
30433
|
+
class EnableSnapshotBlockPublicAccessResult < Struct.new(
|
30434
|
+
:state)
|
30435
|
+
SENSITIVE = []
|
30436
|
+
include Aws::Structure
|
30437
|
+
end
|
30438
|
+
|
30356
30439
|
# @!attribute [rw] transit_gateway_route_table_id
|
30357
30440
|
# The ID of the propagation route table.
|
30358
30441
|
# @return [String]
|
@@ -34392,6 +34475,47 @@ module Aws::EC2
|
|
34392
34475
|
include Aws::Structure
|
34393
34476
|
end
|
34394
34477
|
|
34478
|
+
# @!attribute [rw] dry_run
|
34479
|
+
# Checks whether you have the required permissions for the action,
|
34480
|
+
# without actually making the request, and provides an error response.
|
34481
|
+
# If you have the required permissions, the error response is
|
34482
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
34483
|
+
# @return [Boolean]
|
34484
|
+
#
|
34485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSnapshotBlockPublicAccessStateRequest AWS API Documentation
|
34486
|
+
#
|
34487
|
+
class GetSnapshotBlockPublicAccessStateRequest < Struct.new(
|
34488
|
+
:dry_run)
|
34489
|
+
SENSITIVE = []
|
34490
|
+
include Aws::Structure
|
34491
|
+
end
|
34492
|
+
|
34493
|
+
# @!attribute [rw] state
|
34494
|
+
# The current state of block public access for snapshots. Possible
|
34495
|
+
# values include:
|
34496
|
+
#
|
34497
|
+
# * `block-all-sharing` - All public sharing of snapshots is blocked.
|
34498
|
+
# Users in the account can't request new public sharing.
|
34499
|
+
# Additionally, snapshots that were already publicly shared are
|
34500
|
+
# treated as private and are not publicly available.
|
34501
|
+
#
|
34502
|
+
# * `block-new-sharing` - Only new public sharing of snapshots is
|
34503
|
+
# blocked. Users in the account can't request new public sharing.
|
34504
|
+
# However, snapshots that were already publicly shared, remain
|
34505
|
+
# publicly available.
|
34506
|
+
#
|
34507
|
+
# * `unblocked` - Public sharing is not blocked. Users can publicly
|
34508
|
+
# share snapshots.
|
34509
|
+
# @return [String]
|
34510
|
+
#
|
34511
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSnapshotBlockPublicAccessStateResult AWS API Documentation
|
34512
|
+
#
|
34513
|
+
class GetSnapshotBlockPublicAccessStateResult < Struct.new(
|
34514
|
+
:state)
|
34515
|
+
SENSITIVE = []
|
34516
|
+
include Aws::Structure
|
34517
|
+
end
|
34518
|
+
|
34395
34519
|
# @!attribute [rw] instance_types
|
34396
34520
|
# The instance types. We recommend that you specify at least three
|
34397
34521
|
# instance types. If you specify one or two instance types, or specify
|
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.418.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-
|
11
|
+
date: 2023-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|