aws-sdk-ec2 1.416.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +342 -16
- data/lib/aws-sdk-ec2/client_api.rb +118 -0
- data/lib/aws-sdk-ec2/endpoints.rb +70 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +10 -0
- data/lib/aws-sdk-ec2/resource.rb +1 -1
- data/lib/aws-sdk-ec2/subnet.rb +1 -1
- data/lib/aws-sdk-ec2/types.rb +313 -7
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -4129,6 +4129,65 @@ module Aws::EC2
|
|
4129
4129
|
include Aws::Structure
|
4130
4130
|
end
|
4131
4131
|
|
4132
|
+
# The recommended Capacity Block that fits your search requirements.
|
4133
|
+
#
|
4134
|
+
# @!attribute [rw] capacity_block_offering_id
|
4135
|
+
# The ID of the Capacity Block offering.
|
4136
|
+
# @return [String]
|
4137
|
+
#
|
4138
|
+
# @!attribute [rw] instance_type
|
4139
|
+
# The instance type of the Capacity Block offering.
|
4140
|
+
# @return [String]
|
4141
|
+
#
|
4142
|
+
# @!attribute [rw] availability_zone
|
4143
|
+
# The Availability Zone of the Capacity Block offering.
|
4144
|
+
# @return [String]
|
4145
|
+
#
|
4146
|
+
# @!attribute [rw] instance_count
|
4147
|
+
# The number of instances in the Capacity Block offering.
|
4148
|
+
# @return [Integer]
|
4149
|
+
#
|
4150
|
+
# @!attribute [rw] start_date
|
4151
|
+
# The start date of the Capacity Block offering.
|
4152
|
+
# @return [Time]
|
4153
|
+
#
|
4154
|
+
# @!attribute [rw] end_date
|
4155
|
+
# The end date of the Capacity Block offering.
|
4156
|
+
# @return [Time]
|
4157
|
+
#
|
4158
|
+
# @!attribute [rw] capacity_block_duration_hours
|
4159
|
+
# The amount of time of the Capacity Block reservation in hours.
|
4160
|
+
# @return [Integer]
|
4161
|
+
#
|
4162
|
+
# @!attribute [rw] upfront_fee
|
4163
|
+
# The total price to be paid up front.
|
4164
|
+
# @return [String]
|
4165
|
+
#
|
4166
|
+
# @!attribute [rw] currency_code
|
4167
|
+
# The currency of the payment for the Capacity Block.
|
4168
|
+
# @return [String]
|
4169
|
+
#
|
4170
|
+
# @!attribute [rw] tenancy
|
4171
|
+
# The tenancy of the Capacity Block.
|
4172
|
+
# @return [String]
|
4173
|
+
#
|
4174
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityBlockOffering AWS API Documentation
|
4175
|
+
#
|
4176
|
+
class CapacityBlockOffering < Struct.new(
|
4177
|
+
:capacity_block_offering_id,
|
4178
|
+
:instance_type,
|
4179
|
+
:availability_zone,
|
4180
|
+
:instance_count,
|
4181
|
+
:start_date,
|
4182
|
+
:end_date,
|
4183
|
+
:capacity_block_duration_hours,
|
4184
|
+
:upfront_fee,
|
4185
|
+
:currency_code,
|
4186
|
+
:tenancy)
|
4187
|
+
SENSITIVE = []
|
4188
|
+
include Aws::Structure
|
4189
|
+
end
|
4190
|
+
|
4132
4191
|
# Describes a Capacity Reservation.
|
4133
4192
|
#
|
4134
4193
|
# @!attribute [rw] capacity_reservation_id
|
@@ -4294,6 +4353,10 @@ module Aws::EC2
|
|
4294
4353
|
# Information about instance capacity usage.
|
4295
4354
|
# @return [Array<Types::CapacityAllocation>]
|
4296
4355
|
#
|
4356
|
+
# @!attribute [rw] reservation_type
|
4357
|
+
# The type of Capacity Reservation.
|
4358
|
+
# @return [String]
|
4359
|
+
#
|
4297
4360
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservation AWS API Documentation
|
4298
4361
|
#
|
4299
4362
|
class CapacityReservation < Struct.new(
|
@@ -4319,7 +4382,8 @@ module Aws::EC2
|
|
4319
4382
|
:outpost_arn,
|
4320
4383
|
:capacity_reservation_fleet_id,
|
4321
4384
|
:placement_group_arn,
|
4322
|
-
:capacity_allocations
|
4385
|
+
:capacity_allocations,
|
4386
|
+
:reservation_type)
|
4323
4387
|
SENSITIVE = []
|
4324
4388
|
include Aws::Structure
|
4325
4389
|
end
|
@@ -16147,6 +16211,79 @@ module Aws::EC2
|
|
16147
16211
|
include Aws::Structure
|
16148
16212
|
end
|
16149
16213
|
|
16214
|
+
# @!attribute [rw] dry_run
|
16215
|
+
# Checks whether you have the required permissions for the action,
|
16216
|
+
# without actually making the request, and provides an error response.
|
16217
|
+
# If you have the required permissions, the error response is
|
16218
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
16219
|
+
# @return [Boolean]
|
16220
|
+
#
|
16221
|
+
# @!attribute [rw] instance_type
|
16222
|
+
# The type of instance for which the Capacity Block offering reserves
|
16223
|
+
# capacity.
|
16224
|
+
# @return [String]
|
16225
|
+
#
|
16226
|
+
# @!attribute [rw] instance_count
|
16227
|
+
# The number of instances for which to reserve capacity.
|
16228
|
+
# @return [Integer]
|
16229
|
+
#
|
16230
|
+
# @!attribute [rw] start_date_range
|
16231
|
+
# The earliest start date for the Capacity Block offering.
|
16232
|
+
# @return [Time]
|
16233
|
+
#
|
16234
|
+
# @!attribute [rw] end_date_range
|
16235
|
+
# The latest end date for the Capacity Block offering.
|
16236
|
+
# @return [Time]
|
16237
|
+
#
|
16238
|
+
# @!attribute [rw] capacity_duration_hours
|
16239
|
+
# The number of hours for which to reserve Capacity Block.
|
16240
|
+
# @return [Integer]
|
16241
|
+
#
|
16242
|
+
# @!attribute [rw] next_token
|
16243
|
+
# The token to use to retrieve the next page of results.
|
16244
|
+
# @return [String]
|
16245
|
+
#
|
16246
|
+
# @!attribute [rw] max_results
|
16247
|
+
# The maximum number of results to return for the request in a single
|
16248
|
+
# page. The remaining results can be seen by sending another request
|
16249
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
16250
|
+
# 500. If `maxResults` is given a larger value than 500, you receive
|
16251
|
+
# an error.
|
16252
|
+
# @return [Integer]
|
16253
|
+
#
|
16254
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockOfferingsRequest AWS API Documentation
|
16255
|
+
#
|
16256
|
+
class DescribeCapacityBlockOfferingsRequest < Struct.new(
|
16257
|
+
:dry_run,
|
16258
|
+
:instance_type,
|
16259
|
+
:instance_count,
|
16260
|
+
:start_date_range,
|
16261
|
+
:end_date_range,
|
16262
|
+
:capacity_duration_hours,
|
16263
|
+
:next_token,
|
16264
|
+
:max_results)
|
16265
|
+
SENSITIVE = []
|
16266
|
+
include Aws::Structure
|
16267
|
+
end
|
16268
|
+
|
16269
|
+
# @!attribute [rw] capacity_block_offerings
|
16270
|
+
# The recommended Capacity Block offering for the dates specified.
|
16271
|
+
# @return [Array<Types::CapacityBlockOffering>]
|
16272
|
+
#
|
16273
|
+
# @!attribute [rw] next_token
|
16274
|
+
# The token to use to retrieve the next page of results. This value is
|
16275
|
+
# `null` when there are no more results to return.
|
16276
|
+
# @return [String]
|
16277
|
+
#
|
16278
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockOfferingsResult AWS API Documentation
|
16279
|
+
#
|
16280
|
+
class DescribeCapacityBlockOfferingsResult < Struct.new(
|
16281
|
+
:capacity_block_offerings,
|
16282
|
+
:next_token)
|
16283
|
+
SENSITIVE = []
|
16284
|
+
include Aws::Structure
|
16285
|
+
end
|
16286
|
+
|
16150
16287
|
# @!attribute [rw] capacity_reservation_fleet_ids
|
16151
16288
|
# The IDs of the Capacity Reservation Fleets to describe.
|
16152
16289
|
# @return [Array<String>]
|
@@ -28068,6 +28205,33 @@ module Aws::EC2
|
|
28068
28205
|
include Aws::Structure
|
28069
28206
|
end
|
28070
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
|
+
|
28071
28235
|
# @!attribute [rw] transit_gateway_route_table_id
|
28072
28236
|
# The ID of the propagation route table.
|
28073
28237
|
# @return [String]
|
@@ -30216,6 +30380,62 @@ module Aws::EC2
|
|
30216
30380
|
include Aws::Structure
|
30217
30381
|
end
|
30218
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
|
+
|
30219
30439
|
# @!attribute [rw] transit_gateway_route_table_id
|
30220
30440
|
# The ID of the propagation route table.
|
30221
30441
|
# @return [String]
|
@@ -34255,6 +34475,47 @@ module Aws::EC2
|
|
34255
34475
|
include Aws::Structure
|
34256
34476
|
end
|
34257
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
|
+
|
34258
34519
|
# @!attribute [rw] instance_types
|
34259
34520
|
# The instance types. We recommend that you specify at least three
|
34260
34521
|
# instance types. If you specify one or two instance types, or specify
|
@@ -38786,18 +39047,21 @@ module Aws::EC2
|
|
38786
39047
|
#
|
38787
39048
|
# </note>
|
38788
39049
|
#
|
38789
|
-
# For more information, see [
|
38790
|
-
#
|
38791
|
-
#
|
39050
|
+
# For more information, see [Create a mixed instances group using
|
39051
|
+
# attribute-based instance type selection][3] in the *Amazon EC2 Auto
|
39052
|
+
# Scaling User Guide*, and also [Attribute-based instance type selection
|
39053
|
+
# for EC2 Fleet][4], [Attribute-based instance type selection for Spot
|
39054
|
+
# Fleet][5], and [Spot placement score][6] in the *Amazon EC2 User
|
38792
39055
|
# Guide*.
|
38793
39056
|
#
|
38794
39057
|
#
|
38795
39058
|
#
|
38796
39059
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-instance-wizard.html
|
38797
39060
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
|
38798
|
-
# [3]: https://docs.aws.amazon.com/
|
38799
|
-
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
38800
|
-
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
39061
|
+
# [3]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-mixed-instances-group-attribute-based-instance-type-selection.html
|
39062
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html
|
39063
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-attribute-based-instance-type-selection.html
|
39064
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html
|
38801
39065
|
#
|
38802
39066
|
# @!attribute [rw] v_cpu_count
|
38803
39067
|
# The minimum and maximum number of vCPUs.
|
@@ -51870,6 +52134,48 @@ module Aws::EC2
|
|
51870
52134
|
include Aws::Structure
|
51871
52135
|
end
|
51872
52136
|
|
52137
|
+
# @!attribute [rw] dry_run
|
52138
|
+
# Checks whether you have the required permissions for the action,
|
52139
|
+
# without actually making the request, and provides an error response.
|
52140
|
+
# If you have the required permissions, the error response is
|
52141
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
52142
|
+
# @return [Boolean]
|
52143
|
+
#
|
52144
|
+
# @!attribute [rw] tag_specifications
|
52145
|
+
# The tags to apply to the Capacity Block during launch.
|
52146
|
+
# @return [Array<Types::TagSpecification>]
|
52147
|
+
#
|
52148
|
+
# @!attribute [rw] capacity_block_offering_id
|
52149
|
+
# The ID of the Capacity Block offering.
|
52150
|
+
# @return [String]
|
52151
|
+
#
|
52152
|
+
# @!attribute [rw] instance_platform
|
52153
|
+
# The type of operating system for which to reserve capacity.
|
52154
|
+
# @return [String]
|
52155
|
+
#
|
52156
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseCapacityBlockRequest AWS API Documentation
|
52157
|
+
#
|
52158
|
+
class PurchaseCapacityBlockRequest < Struct.new(
|
52159
|
+
:dry_run,
|
52160
|
+
:tag_specifications,
|
52161
|
+
:capacity_block_offering_id,
|
52162
|
+
:instance_platform)
|
52163
|
+
SENSITIVE = []
|
52164
|
+
include Aws::Structure
|
52165
|
+
end
|
52166
|
+
|
52167
|
+
# @!attribute [rw] capacity_reservation
|
52168
|
+
# The Capacity Reservation.
|
52169
|
+
# @return [Types::CapacityReservation]
|
52170
|
+
#
|
52171
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseCapacityBlockResult AWS API Documentation
|
52172
|
+
#
|
52173
|
+
class PurchaseCapacityBlockResult < Struct.new(
|
52174
|
+
:capacity_reservation)
|
52175
|
+
SENSITIVE = []
|
52176
|
+
include Aws::Structure
|
52177
|
+
end
|
52178
|
+
|
51873
52179
|
# @!attribute [rw] client_token
|
51874
52180
|
# Unique, case-sensitive identifier that you provide to ensure the
|
51875
52181
|
# idempotency of the request. For more information, see [Ensuring
|
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
|