aws-sdk-ec2 1.491.0 → 1.492.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 +133 -31
- data/lib/aws-sdk-ec2/client_api.rb +32 -0
- data/lib/aws-sdk-ec2/resource.rb +2 -2
- data/lib/aws-sdk-ec2/subnet.rb +2 -2
- data/lib/aws-sdk-ec2/types.rb +273 -16
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +103 -22
- data/sig/resource.rbs +1 -1
- data/sig/subnet.rbs +1 -1
- data/sig/types.rbs +38 -6
- metadata +2 -2
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -178,7 +178,7 @@ module Aws::EC2
|
|
178
178
|
# amd_sev_snp: "enabled", # accepts enabled, disabled
|
179
179
|
# },
|
180
180
|
# capacity_reservation_specification: {
|
181
|
-
# capacity_reservation_preference: "
|
181
|
+
# capacity_reservation_preference: "capacity-reservations-only", # accepts capacity-reservations-only, open, none
|
182
182
|
# capacity_reservation_target: {
|
183
183
|
# capacity_reservation_id: "CapacityReservationId",
|
184
184
|
# capacity_reservation_resource_group_arn: "String",
|
@@ -483,7 +483,7 @@ module Aws::EC2
|
|
483
483
|
# not specify this parameter, the instance's Capacity Reservation
|
484
484
|
# preference defaults to `open`, which enables it to run in any open
|
485
485
|
# Capacity Reservation that has matching attributes (instance type,
|
486
|
-
# platform, Availability Zone).
|
486
|
+
# platform, Availability Zone, and tenancy).
|
487
487
|
# @option options [Types::HibernationOptionsRequest] :hibernation_options
|
488
488
|
# Indicates whether an instance is enabled for hibernation. This
|
489
489
|
# parameter is valid only if the instance meets the [hibernation
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -419,7 +419,7 @@ module Aws::EC2
|
|
419
419
|
# amd_sev_snp: "enabled", # accepts enabled, disabled
|
420
420
|
# },
|
421
421
|
# capacity_reservation_specification: {
|
422
|
-
# capacity_reservation_preference: "
|
422
|
+
# capacity_reservation_preference: "capacity-reservations-only", # accepts capacity-reservations-only, open, none
|
423
423
|
# capacity_reservation_target: {
|
424
424
|
# capacity_reservation_id: "CapacityReservationId",
|
425
425
|
# capacity_reservation_resource_group_arn: "String",
|
@@ -719,7 +719,7 @@ module Aws::EC2
|
|
719
719
|
# not specify this parameter, the instance's Capacity Reservation
|
720
720
|
# preference defaults to `open`, which enables it to run in any open
|
721
721
|
# Capacity Reservation that has matching attributes (instance type,
|
722
|
-
# platform, Availability Zone).
|
722
|
+
# platform, Availability Zone, and tenancy).
|
723
723
|
# @option options [Types::HibernationOptionsRequest] :hibernation_options
|
724
724
|
# Indicates whether an instance is enabled for hibernation. This
|
725
725
|
# parameter is valid only if the instance meets the [hibernation
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -3711,6 +3711,54 @@ module Aws::EC2
|
|
3711
3711
|
include Aws::Structure
|
3712
3712
|
end
|
3713
3713
|
|
3714
|
+
# The baseline performance to consider, using an instance family as a
|
3715
|
+
# baseline reference. The instance family establishes the lowest
|
3716
|
+
# acceptable level of performance. Amazon EC2 uses this baseline to
|
3717
|
+
# guide instance type selection, but there is no guarantee that the
|
3718
|
+
# selected instance types will always exceed the baseline for every
|
3719
|
+
# application.
|
3720
|
+
#
|
3721
|
+
# Currently, this parameter only supports CPU performance as a baseline
|
3722
|
+
# performance factor. For example, specifying `c6i` would use the CPU
|
3723
|
+
# performance of the `c6i` family as the baseline reference.
|
3724
|
+
#
|
3725
|
+
# @!attribute [rw] cpu
|
3726
|
+
# The CPU performance to consider, using an instance family as the
|
3727
|
+
# baseline reference.
|
3728
|
+
# @return [Types::CpuPerformanceFactor]
|
3729
|
+
#
|
3730
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BaselinePerformanceFactors AWS API Documentation
|
3731
|
+
#
|
3732
|
+
class BaselinePerformanceFactors < Struct.new(
|
3733
|
+
:cpu)
|
3734
|
+
SENSITIVE = []
|
3735
|
+
include Aws::Structure
|
3736
|
+
end
|
3737
|
+
|
3738
|
+
# The baseline performance to consider, using an instance family as a
|
3739
|
+
# baseline reference. The instance family establishes the lowest
|
3740
|
+
# acceptable level of performance. Amazon EC2 uses this baseline to
|
3741
|
+
# guide instance type selection, but there is no guarantee that the
|
3742
|
+
# selected instance types will always exceed the baseline for every
|
3743
|
+
# application.
|
3744
|
+
#
|
3745
|
+
# Currently, this parameter only supports CPU performance as a baseline
|
3746
|
+
# performance factor. For example, specifying `c6i` would use the CPU
|
3747
|
+
# performance of the `c6i` family as the baseline reference.
|
3748
|
+
#
|
3749
|
+
# @!attribute [rw] cpu
|
3750
|
+
# The CPU performance to consider, using an instance family as the
|
3751
|
+
# baseline reference.
|
3752
|
+
# @return [Types::CpuPerformanceFactorRequest]
|
3753
|
+
#
|
3754
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/BaselinePerformanceFactorsRequest AWS API Documentation
|
3755
|
+
#
|
3756
|
+
class BaselinePerformanceFactorsRequest < Struct.new(
|
3757
|
+
:cpu)
|
3758
|
+
SENSITIVE = []
|
3759
|
+
include Aws::Structure
|
3760
|
+
end
|
3761
|
+
|
3714
3762
|
# @!attribute [rw] value
|
3715
3763
|
# @return [String]
|
3716
3764
|
#
|
@@ -5110,29 +5158,34 @@ module Aws::EC2
|
|
5110
5158
|
include Aws::Structure
|
5111
5159
|
end
|
5112
5160
|
|
5113
|
-
# Describes an instance's Capacity Reservation targeting option.
|
5114
|
-
# can specify only one parameter at a time. If you specify
|
5115
|
-
# `CapacityReservationPreference` and `CapacityReservationTarget`, the
|
5116
|
-
# request fails.
|
5161
|
+
# Describes an instance's Capacity Reservation targeting option.
|
5117
5162
|
#
|
5118
5163
|
# Use the `CapacityReservationPreference` parameter to configure the
|
5119
|
-
# instance to run as an On-Demand Instance
|
5120
|
-
# Capacity Reservation that has matching attributes
|
5121
|
-
#
|
5122
|
-
# parameter to explicitly target a specific
|
5123
|
-
# Capacity Reservation group.
|
5164
|
+
# instance to run as an On-Demand Instance, to run in any `open`
|
5165
|
+
# Capacity Reservation that has matching attributes, or to run only in a
|
5166
|
+
# Capacity Reservation or Capacity Reservation group. Use the
|
5167
|
+
# `CapacityReservationTarget` parameter to explicitly target a specific
|
5168
|
+
# Capacity Reservation or a Capacity Reservation group.
|
5169
|
+
#
|
5170
|
+
# You can only specify `CapacityReservationPreference` and
|
5171
|
+
# `CapacityReservationTarget` if the `CapacityReservationPreference` is
|
5172
|
+
# `capacity-reservations-only`.
|
5124
5173
|
#
|
5125
5174
|
# @!attribute [rw] capacity_reservation_preference
|
5126
5175
|
# Indicates the instance's Capacity Reservation preferences. Possible
|
5127
5176
|
# preferences include:
|
5128
5177
|
#
|
5178
|
+
# * `capacity-reservations-only` - The instance will only run in a
|
5179
|
+
# Capacity Reservation or Capacity Reservation group. If capacity
|
5180
|
+
# isn't available, the instance will fail to launch.
|
5181
|
+
#
|
5129
5182
|
# * `open` - The instance can run in any `open` Capacity Reservation
|
5130
5183
|
# that has matching attributes (instance type, platform,
|
5131
|
-
# Availability Zone).
|
5184
|
+
# Availability Zone, and tenancy). If capacity isn't available, the
|
5185
|
+
# instance runs as an On-Demand Instance.
|
5132
5186
|
#
|
5133
|
-
# * `none` - The instance
|
5134
|
-
#
|
5135
|
-
# Instance.
|
5187
|
+
# * `none` - The instance doesn't run in a Capacity Reservation even
|
5188
|
+
# if one is available. The instance runs as an On-Demand Instance.
|
5136
5189
|
# @return [String]
|
5137
5190
|
#
|
5138
5191
|
# @!attribute [rw] capacity_reservation_target
|
@@ -6939,6 +6992,52 @@ module Aws::EC2
|
|
6939
6992
|
include Aws::Structure
|
6940
6993
|
end
|
6941
6994
|
|
6995
|
+
# The CPU performance to consider, using an instance family as the
|
6996
|
+
# baseline reference.
|
6997
|
+
#
|
6998
|
+
# @!attribute [rw] references
|
6999
|
+
# Specify an instance family to use as the baseline reference for CPU
|
7000
|
+
# performance. All instance types that match your specified attributes
|
7001
|
+
# will be compared against the CPU performance of the referenced
|
7002
|
+
# instance family, regardless of CPU manufacturer or architecture
|
7003
|
+
# differences.
|
7004
|
+
#
|
7005
|
+
# <note markdown="1"> Currently, only one instance family can be specified in the list.
|
7006
|
+
#
|
7007
|
+
# </note>
|
7008
|
+
# @return [Array<Types::PerformanceFactorReference>]
|
7009
|
+
#
|
7010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CpuPerformanceFactor AWS API Documentation
|
7011
|
+
#
|
7012
|
+
class CpuPerformanceFactor < Struct.new(
|
7013
|
+
:references)
|
7014
|
+
SENSITIVE = []
|
7015
|
+
include Aws::Structure
|
7016
|
+
end
|
7017
|
+
|
7018
|
+
# The CPU performance to consider, using an instance family as the
|
7019
|
+
# baseline reference.
|
7020
|
+
#
|
7021
|
+
# @!attribute [rw] references
|
7022
|
+
# Specify an instance family to use as the baseline reference for CPU
|
7023
|
+
# performance. All instance types that match your specified attributes
|
7024
|
+
# will be compared against the CPU performance of the referenced
|
7025
|
+
# instance family, regardless of CPU manufacturer or architecture
|
7026
|
+
# differences.
|
7027
|
+
#
|
7028
|
+
# <note markdown="1"> Currently, only one instance family can be specified in the list.
|
7029
|
+
#
|
7030
|
+
# </note>
|
7031
|
+
# @return [Array<Types::PerformanceFactorReferenceRequest>]
|
7032
|
+
#
|
7033
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CpuPerformanceFactorRequest AWS API Documentation
|
7034
|
+
#
|
7035
|
+
class CpuPerformanceFactorRequest < Struct.new(
|
7036
|
+
:references)
|
7037
|
+
SENSITIVE = []
|
7038
|
+
include Aws::Structure
|
7039
|
+
end
|
7040
|
+
|
6942
7041
|
# @!attribute [rw] dry_run
|
6943
7042
|
# Checks whether you have the required permissions for the action,
|
6944
7043
|
# without actually making the request, and provides an error response.
|
@@ -42315,6 +42414,21 @@ module Aws::EC2
|
|
42315
42414
|
# </note>
|
42316
42415
|
# @return [Integer]
|
42317
42416
|
#
|
42417
|
+
# @!attribute [rw] baseline_performance_factors
|
42418
|
+
# The baseline performance to consider, using an instance family as a
|
42419
|
+
# baseline reference. The instance family establishes the lowest
|
42420
|
+
# acceptable level of performance. Amazon EC2 uses this baseline to
|
42421
|
+
# guide instance type selection, but there is no guarantee that the
|
42422
|
+
# selected instance types will always exceed the baseline for every
|
42423
|
+
# application. Currently, this parameter only supports CPU performance
|
42424
|
+
# as a baseline performance factor. For more information, see
|
42425
|
+
# [Performance protection][1] in the *Amazon EC2 User Guide*.
|
42426
|
+
#
|
42427
|
+
#
|
42428
|
+
#
|
42429
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection
|
42430
|
+
# @return [Types::BaselinePerformanceFactors]
|
42431
|
+
#
|
42318
42432
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceRequirements AWS API Documentation
|
42319
42433
|
#
|
42320
42434
|
class InstanceRequirements < Struct.new(
|
@@ -42341,7 +42455,8 @@ module Aws::EC2
|
|
42341
42455
|
:accelerator_total_memory_mi_b,
|
42342
42456
|
:network_bandwidth_gbps,
|
42343
42457
|
:allowed_instance_types,
|
42344
|
-
:max_spot_price_as_percentage_of_optimal_on_demand_price
|
42458
|
+
:max_spot_price_as_percentage_of_optimal_on_demand_price,
|
42459
|
+
:baseline_performance_factors)
|
42345
42460
|
SENSITIVE = []
|
42346
42461
|
include Aws::Structure
|
42347
42462
|
end
|
@@ -42785,6 +42900,21 @@ module Aws::EC2
|
|
42785
42900
|
# </note>
|
42786
42901
|
# @return [Integer]
|
42787
42902
|
#
|
42903
|
+
# @!attribute [rw] baseline_performance_factors
|
42904
|
+
# The baseline performance to consider, using an instance family as a
|
42905
|
+
# baseline reference. The instance family establishes the lowest
|
42906
|
+
# acceptable level of performance. Amazon EC2 uses this baseline to
|
42907
|
+
# guide instance type selection, but there is no guarantee that the
|
42908
|
+
# selected instance types will always exceed the baseline for every
|
42909
|
+
# application. Currently, this parameter only supports CPU performance
|
42910
|
+
# as a baseline performance factor. For more information, see
|
42911
|
+
# [Performance protection][1] in the *Amazon EC2 User Guide*.
|
42912
|
+
#
|
42913
|
+
#
|
42914
|
+
#
|
42915
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection
|
42916
|
+
# @return [Types::BaselinePerformanceFactorsRequest]
|
42917
|
+
#
|
42788
42918
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceRequirementsRequest AWS API Documentation
|
42789
42919
|
#
|
42790
42920
|
class InstanceRequirementsRequest < Struct.new(
|
@@ -42811,7 +42941,8 @@ module Aws::EC2
|
|
42811
42941
|
:accelerator_total_memory_mi_b,
|
42812
42942
|
:network_bandwidth_gbps,
|
42813
42943
|
:allowed_instance_types,
|
42814
|
-
:max_spot_price_as_percentage_of_optimal_on_demand_price
|
42944
|
+
:max_spot_price_as_percentage_of_optimal_on_demand_price,
|
42945
|
+
:baseline_performance_factors)
|
42815
42946
|
SENSITIVE = []
|
42816
42947
|
include Aws::Structure
|
42817
42948
|
end
|
@@ -55367,6 +55498,132 @@ module Aws::EC2
|
|
55367
55498
|
include Aws::Structure
|
55368
55499
|
end
|
55369
55500
|
|
55501
|
+
# Specify an instance family to use as the baseline reference for CPU
|
55502
|
+
# performance. All instance types that match your specified attributes
|
55503
|
+
# will be compared against the CPU performance of the referenced
|
55504
|
+
# instance family, regardless of CPU manufacturer or architecture.
|
55505
|
+
#
|
55506
|
+
# <note markdown="1"> Currently, only one instance family can be specified in the list.
|
55507
|
+
#
|
55508
|
+
# </note>
|
55509
|
+
#
|
55510
|
+
# @!attribute [rw] instance_family
|
55511
|
+
# The instance family to use as a baseline reference.
|
55512
|
+
#
|
55513
|
+
# <note markdown="1"> Ensure that you specify the correct value for the instance family.
|
55514
|
+
# The instance family is everything before the period (`.`) in the
|
55515
|
+
# instance type name. For example, in the instance type `c6i.large`,
|
55516
|
+
# the instance family is `c6i`, not `c6`. For more information, see
|
55517
|
+
# [Amazon EC2 instance type naming conventions][1] in *Amazon EC2
|
55518
|
+
# Instance Types*.
|
55519
|
+
#
|
55520
|
+
# </note>
|
55521
|
+
#
|
55522
|
+
# The following instance families are *not supported* for performance
|
55523
|
+
# protection:
|
55524
|
+
#
|
55525
|
+
# * `c1`
|
55526
|
+
#
|
55527
|
+
# * `g3` \| `g3s`
|
55528
|
+
#
|
55529
|
+
# * `hpc7g`
|
55530
|
+
#
|
55531
|
+
# * `m1` \| `m2`
|
55532
|
+
#
|
55533
|
+
# * `mac1` \| `mac2` \| `mac2-m1ultra` \| `mac2-m2` \| `mac2-m2pro`
|
55534
|
+
#
|
55535
|
+
# * `p3dn` \| `p4d` \| `p5`
|
55536
|
+
#
|
55537
|
+
# * `t1`
|
55538
|
+
#
|
55539
|
+
# * `u-12tb1` \| `u-18tb1` \| `u-24tb1` \| `u-3tb1` \| `u-6tb1` \|
|
55540
|
+
# `u-9tb1` \| `u7i-12tb` \| `u7in-16tb` \| `u7in-24tb` \|
|
55541
|
+
# `u7in-32tb`
|
55542
|
+
#
|
55543
|
+
# If you enable performance protection by specifying a supported
|
55544
|
+
# instance family, the returned instance types will exclude the above
|
55545
|
+
# unsupported instance families.
|
55546
|
+
#
|
55547
|
+
# If you specify an unsupported instance family as a value for
|
55548
|
+
# baseline performance, the API returns an empty response for and an
|
55549
|
+
# exception for , , , and .
|
55550
|
+
#
|
55551
|
+
#
|
55552
|
+
#
|
55553
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html
|
55554
|
+
# @return [String]
|
55555
|
+
#
|
55556
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PerformanceFactorReference AWS API Documentation
|
55557
|
+
#
|
55558
|
+
class PerformanceFactorReference < Struct.new(
|
55559
|
+
:instance_family)
|
55560
|
+
SENSITIVE = []
|
55561
|
+
include Aws::Structure
|
55562
|
+
end
|
55563
|
+
|
55564
|
+
# Specify an instance family to use as the baseline reference for CPU
|
55565
|
+
# performance. All instance types that match your specified attributes
|
55566
|
+
# will be compared against the CPU performance of the referenced
|
55567
|
+
# instance family, regardless of CPU manufacturer or architecture.
|
55568
|
+
#
|
55569
|
+
# <note markdown="1"> Currently, only one instance family can be specified in the list.
|
55570
|
+
#
|
55571
|
+
# </note>
|
55572
|
+
#
|
55573
|
+
# @!attribute [rw] instance_family
|
55574
|
+
# The instance family to use as a baseline reference.
|
55575
|
+
#
|
55576
|
+
# <note markdown="1"> Ensure that you specify the correct value for the instance family.
|
55577
|
+
# The instance family is everything before the period (`.`) in the
|
55578
|
+
# instance type name. For example, in the instance type `c6i.large`,
|
55579
|
+
# the instance family is `c6i`, not `c6`. For more information, see
|
55580
|
+
# [Amazon EC2 instance type naming conventions][1] in *Amazon EC2
|
55581
|
+
# Instance Types*.
|
55582
|
+
#
|
55583
|
+
# </note>
|
55584
|
+
#
|
55585
|
+
# The following instance families are *not supported* for performance
|
55586
|
+
# protection:
|
55587
|
+
#
|
55588
|
+
# * `c1`
|
55589
|
+
#
|
55590
|
+
# * `g3` \| `g3s`
|
55591
|
+
#
|
55592
|
+
# * `hpc7g`
|
55593
|
+
#
|
55594
|
+
# * `m1` \| `m2`
|
55595
|
+
#
|
55596
|
+
# * `mac1` \| `mac2` \| `mac2-m1ultra` \| `mac2-m2` \| `mac2-m2pro`
|
55597
|
+
#
|
55598
|
+
# * `p3dn` \| `p4d` \| `p5`
|
55599
|
+
#
|
55600
|
+
# * `t1`
|
55601
|
+
#
|
55602
|
+
# * `u-12tb1` \| `u-18tb1` \| `u-24tb1` \| `u-3tb1` \| `u-6tb1` \|
|
55603
|
+
# `u-9tb1` \| `u7i-12tb` \| `u7in-16tb` \| `u7in-24tb` \|
|
55604
|
+
# `u7in-32tb`
|
55605
|
+
#
|
55606
|
+
# If you enable performance protection by specifying a supported
|
55607
|
+
# instance family, the returned instance types will exclude the above
|
55608
|
+
# unsupported instance families.
|
55609
|
+
#
|
55610
|
+
# If you specify an unsupported instance family as a value for
|
55611
|
+
# baseline performance, the API returns an empty response for and an
|
55612
|
+
# exception for , , , and .
|
55613
|
+
#
|
55614
|
+
#
|
55615
|
+
#
|
55616
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html
|
55617
|
+
# @return [String]
|
55618
|
+
#
|
55619
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PerformanceFactorReferenceRequest AWS API Documentation
|
55620
|
+
#
|
55621
|
+
class PerformanceFactorReferenceRequest < Struct.new(
|
55622
|
+
:instance_family)
|
55623
|
+
SENSITIVE = []
|
55624
|
+
include Aws::Structure
|
55625
|
+
end
|
55626
|
+
|
55370
55627
|
# The Diffie-Hellmann group number for phase 1 IKE negotiations.
|
55371
55628
|
#
|
55372
55629
|
# @!attribute [rw] value
|
@@ -61216,7 +61473,7 @@ module Aws::EC2
|
|
61216
61473
|
# do not specify this parameter, the instance's Capacity Reservation
|
61217
61474
|
# preference defaults to `open`, which enables it to run in any open
|
61218
61475
|
# Capacity Reservation that has matching attributes (instance type,
|
61219
|
-
# platform, Availability Zone).
|
61476
|
+
# platform, Availability Zone, and tenancy).
|
61220
61477
|
# @return [Types::CapacityReservationSpecification]
|
61221
61478
|
#
|
61222
61479
|
# @!attribute [rw] hibernation_options
|