aws-sdk-ec2 1.124.0 → 1.125.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc71ff23df209755f52fce9a6995c27059eb1624
4
- data.tar.gz: fd76c333096e1549ff40f5d9e6648155a3b3fd4e
3
+ metadata.gz: 764d409f3afea114d99e249efb0041175b80a173
4
+ data.tar.gz: f98b0ca0f262004569a0c7db3f78b9a4aa8c851f
5
5
  SHA512:
6
- metadata.gz: 88afb8a02c5bf8dd70b8f23f26a41ae4a839cbab94df9cde6fde6480681bcc31593b502be3e8fa9fd18aefd189d679f7dee4ebfb1ce8519ef3c53473bcf5e9fd
7
- data.tar.gz: 12fdfcdfb74d10a0e20a63349bd1980c94d536f095d7b7dc80937a6b7abb58d8cab87ab412524147d48c55dd099ae74302a28e888cc666c801217c0f25dfe68b
6
+ metadata.gz: 81c92adce6a9ca375be694151c8c0d7c6b4519a1b70b48ccc5cbd3c39757144ee5f3cbbf20041f7c0fb44414e36881b754d46b45114c22bdeacc387447ebbbe2
7
+ data.tar.gz: a251dfccc7a708a3f5d618a39e6bd50282d27af2dcc5cd4c2ca4662e483b76a6a4c41e7fe8b8f1afa9814405199a8a4005fd27fa9c72e31a26b4df0edbfbcc4f
data/lib/aws-sdk-ec2.rb CHANGED
@@ -66,6 +66,6 @@ require_relative 'aws-sdk-ec2/customizations'
66
66
  # @service
67
67
  module Aws::EC2
68
68
 
69
- GEM_VERSION = '1.124.0'
69
+ GEM_VERSION = '1.125.0'
70
70
 
71
71
  end
@@ -4369,6 +4369,9 @@ module Aws::EC2
4369
4369
  # },
4370
4370
  # on_demand_options: {
4371
4371
  # allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
4372
+ # capacity_reservation_options: {
4373
+ # usage_strategy: "use-capacity-reservations-first", # accepts use-capacity-reservations-first
4374
+ # },
4372
4375
  # single_instance_type: false,
4373
4376
  # single_availability_zone: false,
4374
4377
  # min_target_capacity: 1,
@@ -13667,6 +13670,7 @@ module Aws::EC2
13667
13670
  # resp.fleets[0].spot_options.min_target_capacity #=> Integer
13668
13671
  # resp.fleets[0].spot_options.max_total_price #=> String
13669
13672
  # resp.fleets[0].on_demand_options.allocation_strategy #=> String, one of "lowest-price", "prioritized"
13673
+ # resp.fleets[0].on_demand_options.capacity_reservation_options.usage_strategy #=> String, one of "use-capacity-reservations-first"
13670
13674
  # resp.fleets[0].on_demand_options.single_instance_type #=> Boolean
13671
13675
  # resp.fleets[0].on_demand_options.single_availability_zone #=> Boolean
13672
13676
  # resp.fleets[0].on_demand_options.min_target_capacity #=> Integer
@@ -15744,8 +15748,9 @@ module Aws::EC2
15744
15748
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
15745
15749
  #
15746
15750
  # * `iam-instance-profile.arn` - The instance profile associated with
15747
- # the instance. Specified as an ARN. `image-id` - The ID of the image
15748
- # used to launch the instance.
15751
+ # the instance. Specified as an ARN.
15752
+ #
15753
+ # * `image-id` - The ID of the image used to launch the instance.
15749
15754
  #
15750
15755
  # * `instance-id` - The ID of the instance.
15751
15756
  #
@@ -35426,7 +35431,7 @@ module Aws::EC2
35426
35431
  params: params,
35427
35432
  config: config)
35428
35433
  context[:gem_name] = 'aws-sdk-ec2'
35429
- context[:gem_version] = '1.124.0'
35434
+ context[:gem_version] = '1.125.0'
35430
35435
  Seahorse::Client::Request.new(handlers, context)
35431
35436
  end
35432
35437
 
@@ -157,6 +157,8 @@ module Aws::EC2
157
157
  CapacityReservationId = Shapes::StringShape.new(name: 'CapacityReservationId')
158
158
  CapacityReservationIdSet = Shapes::ListShape.new(name: 'CapacityReservationIdSet')
159
159
  CapacityReservationInstancePlatform = Shapes::StringShape.new(name: 'CapacityReservationInstancePlatform')
160
+ CapacityReservationOptions = Shapes::StructureShape.new(name: 'CapacityReservationOptions')
161
+ CapacityReservationOptionsRequest = Shapes::StructureShape.new(name: 'CapacityReservationOptionsRequest')
160
162
  CapacityReservationPreference = Shapes::StringShape.new(name: 'CapacityReservationPreference')
161
163
  CapacityReservationSet = Shapes::ListShape.new(name: 'CapacityReservationSet')
162
164
  CapacityReservationSpecification = Shapes::StructureShape.new(name: 'CapacityReservationSpecification')
@@ -859,6 +861,7 @@ module Aws::EC2
859
861
  Filter = Shapes::StructureShape.new(name: 'Filter')
860
862
  FilterList = Shapes::ListShape.new(name: 'FilterList')
861
863
  FleetActivityStatus = Shapes::StringShape.new(name: 'FleetActivityStatus')
864
+ FleetCapacityReservationUsageStrategy = Shapes::StringShape.new(name: 'FleetCapacityReservationUsageStrategy')
862
865
  FleetData = Shapes::StructureShape.new(name: 'FleetData')
863
866
  FleetEventType = Shapes::StringShape.new(name: 'FleetEventType')
864
867
  FleetExcessCapacityTerminationPolicy = Shapes::StringShape.new(name: 'FleetExcessCapacityTerminationPolicy')
@@ -2414,6 +2417,12 @@ module Aws::EC2
2414
2417
 
2415
2418
  CapacityReservationIdSet.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
2416
2419
 
2420
+ CapacityReservationOptions.add_member(:usage_strategy, Shapes::ShapeRef.new(shape: FleetCapacityReservationUsageStrategy, location_name: "usageStrategy"))
2421
+ CapacityReservationOptions.struct_class = Types::CapacityReservationOptions
2422
+
2423
+ CapacityReservationOptionsRequest.add_member(:usage_strategy, Shapes::ShapeRef.new(shape: FleetCapacityReservationUsageStrategy, location_name: "UsageStrategy"))
2424
+ CapacityReservationOptionsRequest.struct_class = Types::CapacityReservationOptionsRequest
2425
+
2417
2426
  CapacityReservationSet.member = Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "item")
2418
2427
 
2419
2428
  CapacityReservationSpecification.add_member(:capacity_reservation_preference, Shapes::ShapeRef.new(shape: CapacityReservationPreference, location_name: "CapacityReservationPreference"))
@@ -7237,6 +7246,7 @@ module Aws::EC2
7237
7246
  OccurrenceDaySet.member = Shapes::ShapeRef.new(shape: Integer, location_name: "item")
7238
7247
 
7239
7248
  OnDemandOptions.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: FleetOnDemandAllocationStrategy, location_name: "allocationStrategy"))
7249
+ OnDemandOptions.add_member(:capacity_reservation_options, Shapes::ShapeRef.new(shape: CapacityReservationOptions, location_name: "capacityReservationOptions"))
7240
7250
  OnDemandOptions.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleInstanceType"))
7241
7251
  OnDemandOptions.add_member(:single_availability_zone, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleAvailabilityZone"))
7242
7252
  OnDemandOptions.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "minTargetCapacity"))
@@ -7244,6 +7254,7 @@ module Aws::EC2
7244
7254
  OnDemandOptions.struct_class = Types::OnDemandOptions
7245
7255
 
7246
7256
  OnDemandOptionsRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: FleetOnDemandAllocationStrategy, location_name: "AllocationStrategy"))
7257
+ OnDemandOptionsRequest.add_member(:capacity_reservation_options, Shapes::ShapeRef.new(shape: CapacityReservationOptionsRequest, location_name: "CapacityReservationOptions"))
7247
7258
  OnDemandOptionsRequest.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleInstanceType"))
7248
7259
  OnDemandOptionsRequest.add_member(:single_availability_zone, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleAvailabilityZone"))
7249
7260
  OnDemandOptionsRequest.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MinTargetCapacity"))
@@ -263,8 +263,9 @@ module Aws::EC2
263
263
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
264
264
  #
265
265
  # * `iam-instance-profile.arn` - The instance profile associated with
266
- # the instance. Specified as an ARN. `image-id` - The ID of the image
267
- # used to launch the instance.
266
+ # the instance. Specified as an ARN.
267
+ #
268
+ # * `image-id` - The ID of the image used to launch the instance.
268
269
  #
269
270
  # * `instance-id` - The ID of the instance.
270
271
  #
@@ -1640,8 +1640,9 @@ module Aws::EC2
1640
1640
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
1641
1641
  #
1642
1642
  # * `iam-instance-profile.arn` - The instance profile associated with
1643
- # the instance. Specified as an ARN. `image-id` - The ID of the image
1644
- # used to launch the instance.
1643
+ # the instance. Specified as an ARN.
1644
+ #
1645
+ # * `image-id` - The ID of the image used to launch the instance.
1645
1646
  #
1646
1647
  # * `instance-id` - The ID of the instance.
1647
1648
  #
@@ -890,8 +890,9 @@ module Aws::EC2
890
890
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
891
891
  #
892
892
  # * `iam-instance-profile.arn` - The instance profile associated with
893
- # the instance. Specified as an ARN. `image-id` - The ID of the image
894
- # used to launch the instance.
893
+ # the instance. Specified as an ARN.
894
+ #
895
+ # * `image-id` - The ID of the image used to launch the instance.
895
896
  #
896
897
  # * `instance-id` - The ID of the instance.
897
898
  #
@@ -2899,6 +2899,91 @@ module Aws::EC2
2899
2899
  include Aws::Structure
2900
2900
  end
2901
2901
 
2902
+ # Describes the strategy for using unused Capacity Reservations for
2903
+ # fulfilling On-Demand capacity.
2904
+ #
2905
+ # <note markdown="1"> This strategy can only be used if the EC2 Fleet is of type `instant`.
2906
+ #
2907
+ # </note>
2908
+ #
2909
+ # For more information about Capacity Reservations, see [On-Demand
2910
+ # Capacity Reservations][1] in the *Amazon Elastic Compute Cloud User
2911
+ # Guide*.
2912
+ #
2913
+ #
2914
+ #
2915
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html
2916
+ #
2917
+ # @!attribute [rw] usage_strategy
2918
+ # Indicates whether to use unused Capacity Reservations for fulfilling
2919
+ # On-Demand capacity.
2920
+ #
2921
+ # If you specify `use-capacity-reservations-first`, the fleet uses
2922
+ # unused Capacity Reservations to fulfill On-Demand capacity up to the
2923
+ # target On-Demand capacity. If the number of unused Capacity
2924
+ # Reservations is less than the On-Demand target capacity, the
2925
+ # remaining On-Demand target capacity is launched as usual. When
2926
+ # unused Capacity Reservations are used to fulfil On-Demand capacity,
2927
+ # the On-Demand allocation strategy (`lowest-price` or `prioritized`)
2928
+ # is applied to them.
2929
+ #
2930
+ # If you do not specify a value, the fleet fulfils the On-Demand
2931
+ # capacity as usual.
2932
+ # @return [String]
2933
+ #
2934
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationOptions AWS API Documentation
2935
+ #
2936
+ class CapacityReservationOptions < Struct.new(
2937
+ :usage_strategy)
2938
+ include Aws::Structure
2939
+ end
2940
+
2941
+ # Describes the strategy for using unused Capacity Reservations for
2942
+ # fulfilling On-Demand capacity.
2943
+ #
2944
+ # <note markdown="1"> This strategy can only be used if the EC2 Fleet is of type `instant`.
2945
+ #
2946
+ # </note>
2947
+ #
2948
+ # For more information about Capacity Reservations, see [On-Demand
2949
+ # Capacity Reservations][1] in the *Amazon Elastic Compute Cloud User
2950
+ # Guide*.
2951
+ #
2952
+ #
2953
+ #
2954
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html
2955
+ #
2956
+ # @note When making an API call, you may pass CapacityReservationOptionsRequest
2957
+ # data as a hash:
2958
+ #
2959
+ # {
2960
+ # usage_strategy: "use-capacity-reservations-first", # accepts use-capacity-reservations-first
2961
+ # }
2962
+ #
2963
+ # @!attribute [rw] usage_strategy
2964
+ # Indicates whether to use unused Capacity Reservations for fulfilling
2965
+ # On-Demand capacity.
2966
+ #
2967
+ # If you specify `use-capacity-reservations-first`, the fleet uses
2968
+ # unused Capacity Reservations to fulfill On-Demand capacity up to the
2969
+ # target On-Demand capacity. If the number of unused Capacity
2970
+ # Reservations is less than the On-Demand target capacity, the
2971
+ # remaining On-Demand target capacity is launched as usual. When
2972
+ # unused Capacity Reservations are used to fulfil On-Demand capacity,
2973
+ # the On-Demand allocation strategy (`lowest-price` or `prioritized`)
2974
+ # is applied to them.
2975
+ #
2976
+ # If you do not specify a value, the fleet fulfils the On-Demand
2977
+ # capacity as usual.
2978
+ # @return [String]
2979
+ #
2980
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationOptionsRequest AWS API Documentation
2981
+ #
2982
+ class CapacityReservationOptionsRequest < Struct.new(
2983
+ :usage_strategy)
2984
+ include Aws::Structure
2985
+ end
2986
+
2902
2987
  # Describes an instance's Capacity Reservation targeting option. You
2903
2988
  # can specify only one parameter at a time. If you specify
2904
2989
  # `CapacityReservationPreference` and `CapacityReservationTarget`, the
@@ -5062,6 +5147,9 @@ module Aws::EC2
5062
5147
  # },
5063
5148
  # on_demand_options: {
5064
5149
  # allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
5150
+ # capacity_reservation_options: {
5151
+ # usage_strategy: "use-capacity-reservations-first", # accepts use-capacity-reservations-first
5152
+ # },
5065
5153
  # single_instance_type: false,
5066
5154
  # single_availability_zone: false,
5067
5155
  # min_target_capacity: 1,
@@ -14406,8 +14494,9 @@ module Aws::EC2
14406
14494
  # `xen`).
14407
14495
  #
14408
14496
  # * `iam-instance-profile.arn` - The instance profile associated with
14409
- # the instance. Specified as an ARN. `image-id` - The ID of the
14410
- # image used to launch the instance.
14497
+ # the instance. Specified as an ARN.
14498
+ #
14499
+ # * `image-id` - The ID of the image used to launch the instance.
14411
14500
  #
14412
14501
  # * `instance-id` - The ID of the instance.
14413
14502
  #
@@ -21763,7 +21852,7 @@ module Aws::EC2
21763
21852
  # Describes the disk.
21764
21853
  #
21765
21854
  # @!attribute [rw] size_in_gb
21766
- # The size of the disk in GiB.
21855
+ # The size of the disk in GB.
21767
21856
  # @return [Integer]
21768
21857
  #
21769
21858
  # @!attribute [rw] count
@@ -21901,7 +21990,8 @@ module Aws::EC2
21901
21990
  #
21902
21991
  # @!attribute [rw] volume_type
21903
21992
  # The volume type. If you set the type to `io1`, you must also specify
21904
- # the IOPS that the volume supports.
21993
+ # the **Iops** parameter. If you set the type to `gp2`, `st1`, `sc1`,
21994
+ # or `standard`, you must omit the **Iops** parameter.
21905
21995
  #
21906
21996
  # Default: `gp2`
21907
21997
  # @return [String]
@@ -28165,7 +28255,7 @@ module Aws::EC2
28165
28255
  # Describes the disks that are available for the instance type.
28166
28256
  #
28167
28257
  # @!attribute [rw] total_size_in_gb
28168
- # The total size of the disks, in GiB.
28258
+ # The total size of the disks, in GB.
28169
28259
  # @return [Integer]
28170
28260
  #
28171
28261
  # @!attribute [rw] disks
@@ -34066,6 +34156,11 @@ module Aws::EC2
34066
34156
  # `lowest-price`.
34067
34157
  # @return [String]
34068
34158
  #
34159
+ # @!attribute [rw] capacity_reservation_options
34160
+ # The strategy for using unused Capacity Reservations for fulfilling
34161
+ # On-Demand capacity. Only available for fleets of type `instant`.
34162
+ # @return [Types::CapacityReservationOptions]
34163
+ #
34069
34164
  # @!attribute [rw] single_instance_type
34070
34165
  # Indicates that the fleet uses a single instance type to launch all
34071
34166
  # On-Demand Instances in the fleet.
@@ -34091,6 +34186,7 @@ module Aws::EC2
34091
34186
  #
34092
34187
  class OnDemandOptions < Struct.new(
34093
34188
  :allocation_strategy,
34189
+ :capacity_reservation_options,
34094
34190
  :single_instance_type,
34095
34191
  :single_availability_zone,
34096
34192
  :min_target_capacity,
@@ -34105,6 +34201,9 @@ module Aws::EC2
34105
34201
  #
34106
34202
  # {
34107
34203
  # allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
34204
+ # capacity_reservation_options: {
34205
+ # usage_strategy: "use-capacity-reservations-first", # accepts use-capacity-reservations-first
34206
+ # },
34108
34207
  # single_instance_type: false,
34109
34208
  # single_availability_zone: false,
34110
34209
  # min_target_capacity: 1,
@@ -34121,6 +34220,11 @@ module Aws::EC2
34121
34220
  # `lowest-price`.
34122
34221
  # @return [String]
34123
34222
  #
34223
+ # @!attribute [rw] capacity_reservation_options
34224
+ # The strategy for using unused Capacity Reservations for fulfilling
34225
+ # On-Demand capacity. Only available for fleets of type `instant`.
34226
+ # @return [Types::CapacityReservationOptionsRequest]
34227
+ #
34124
34228
  # @!attribute [rw] single_instance_type
34125
34229
  # Indicates that the fleet uses a single instance type to launch all
34126
34230
  # On-Demand Instances in the fleet.
@@ -34146,6 +34250,7 @@ module Aws::EC2
34146
34250
  #
34147
34251
  class OnDemandOptionsRequest < Struct.new(
34148
34252
  :allocation_strategy,
34253
+ :capacity_reservation_options,
34149
34254
  :single_instance_type,
34150
34255
  :single_availability_zone,
34151
34256
  :min_target_capacity,
@@ -859,8 +859,9 @@ module Aws::EC2
859
859
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
860
860
  #
861
861
  # * `iam-instance-profile.arn` - The instance profile associated with
862
- # the instance. Specified as an ARN. `image-id` - The ID of the image
863
- # used to launch the instance.
862
+ # the instance. Specified as an ARN.
863
+ #
864
+ # * `image-id` - The ID of the image used to launch the instance.
864
865
  #
865
866
  # * `instance-id` - The ID of the instance.
866
867
  #
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.124.0
4
+ version: 1.125.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: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2019-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4