aws-sdk-ec2 1.492.0 → 1.493.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4066,6 +4066,18 @@ module Aws::EC2
4066
4066
  # capacity, and changes the Capacity Reservation's state to
4067
4067
  # `cancelled`.
4068
4068
  #
4069
+ # You can cancel a Capacity Reservation that is in the following states:
4070
+ #
4071
+ # * `assessing`
4072
+ #
4073
+ # * `active` and there is no commitment duration or the commitment
4074
+ # duration has elapsed. You can't cancel a future-dated Capacity
4075
+ # Reservation during the commitment duration.
4076
+ #
4077
+ # If a future-dated Capacity Reservation enters the `delayed` state, the
4078
+ # commitment duration is waived, and you can cancel it as soon as it
4079
+ # enters the `active` state.
4080
+ #
4069
4081
  # Instances running in the reserved capacity continue running until you
4070
4082
  # stop them. Stopped instances that target the Capacity Reservation can
4071
4083
  # no longer launch. Modify these instances to either target a different
@@ -5070,30 +5082,28 @@ module Aws::EC2
5070
5082
  end
5071
5083
 
5072
5084
  # Creates a new Capacity Reservation with the specified attributes.
5073
- #
5074
5085
  # Capacity Reservations enable you to reserve capacity for your Amazon
5075
- # EC2 instances in a specific Availability Zone for any duration. This
5076
- # gives you the flexibility to selectively add capacity reservations and
5077
- # still get the Regional RI discounts for that usage. By creating
5078
- # Capacity Reservations, you ensure that you always have access to
5079
- # Amazon EC2 capacity when you need it, for as long as you need it. For
5080
- # more information, see [Capacity Reservations][1] in the *Amazon EC2
5081
- # User Guide*.
5086
+ # EC2 instances in a specific Availability Zone for any duration.
5082
5087
  #
5083
- # Your request to create a Capacity Reservation could fail if Amazon EC2
5084
- # does not have sufficient capacity to fulfill the request. If your
5085
- # request fails due to Amazon EC2 capacity constraints, either try again
5086
- # at a later time, try in a different Availability Zone, or request a
5087
- # smaller capacity reservation. If your application is flexible across
5088
- # instance types and sizes, try to create a Capacity Reservation with
5089
- # different instance attributes.
5088
+ # You can create a Capacity Reservation at any time, and you can choose
5089
+ # when it starts. You can create a Capacity Reservation for immediate
5090
+ # use or you can request a Capacity Reservation for a future date.
5090
5091
  #
5091
- # Your request could also fail if the requested quantity exceeds your
5092
- # On-Demand Instance limit for the selected instance type. If your
5093
- # request fails due to limit constraints, increase your On-Demand
5094
- # Instance limit for the required instance type and try again. For more
5095
- # information about increasing your instance limits, see [Amazon EC2
5096
- # Service Quotas][2] in the *Amazon EC2 User Guide*.
5092
+ # For more information, see [ Reserve compute capacity with On-Demand
5093
+ # Capacity Reservations][1] in the *Amazon EC2 User Guide*.
5094
+ #
5095
+ # Your request to create a Capacity Reservation could fail if:
5096
+ #
5097
+ # * Amazon EC2 does not have sufficient capacity. In this case, try
5098
+ # again at a later time, try in a different Availability Zone, or
5099
+ # request a smaller Capacity Reservation. If your workload is flexible
5100
+ # across instance types and sizes, try with different instance
5101
+ # attributes.
5102
+ #
5103
+ # * The requested quantity exceeds your On-Demand Instance quota. In
5104
+ # this case, increase your On-Demand Instance quota for the requested
5105
+ # instance type and try again. For more information, see [ Amazon EC2
5106
+ # Service Quotas][2] in the *Amazon EC2 User Guide*.
5097
5107
  #
5098
5108
  #
5099
5109
  #
@@ -5110,8 +5120,15 @@ module Aws::EC2
5110
5120
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
5111
5121
  #
5112
5122
  # @option params [required, String] :instance_type
5113
- # The instance type for which to reserve capacity. For more information,
5114
- # see [Instance types][1] in the *Amazon EC2 User Guide*.
5123
+ # The instance type for which to reserve capacity.
5124
+ #
5125
+ # <note markdown="1"> You can request future-dated Capacity Reservations for instance types
5126
+ # in the C, M, R, I, and T instance families only.
5127
+ #
5128
+ # </note>
5129
+ #
5130
+ # For more information, see [Instance types][1] in the *Amazon EC2 User
5131
+ # Guide*.
5115
5132
  #
5116
5133
  #
5117
5134
  #
@@ -5140,6 +5157,13 @@ module Aws::EC2
5140
5157
  # @option params [required, Integer] :instance_count
5141
5158
  # The number of instances for which to reserve capacity.
5142
5159
  #
5160
+ # <note markdown="1"> You can request future-dated Capacity Reservations for an instance
5161
+ # count with a minimum of 100 VPUs. For example, if you request a
5162
+ # future-dated Capacity Reservation for `m5.xlarge` instances, you must
5163
+ # request at least 25 instances (*25 * m5.xlarge = 100 vCPUs*).
5164
+ #
5165
+ # </note>
5166
+ #
5143
5167
  # Valid range: 1 - 1000
5144
5168
  #
5145
5169
  # @option params [Boolean] :ebs_optimized
@@ -5168,6 +5192,9 @@ module Aws::EC2
5168
5192
  # specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to
5169
5193
  # end between 13:30:55 and 14:30:55 on 5/31/2019.
5170
5194
  #
5195
+ # If you are requesting a future-dated Capacity Reservation, you can't
5196
+ # specify an end date and time that is within the commitment duration.
5197
+ #
5171
5198
  # @option params [String] :end_date_type
5172
5199
  # Indicates the way in which the Capacity Reservation ends. A Capacity
5173
5200
  # Reservation can have one of the following end types:
@@ -5195,6 +5222,11 @@ module Aws::EC2
5195
5222
  # Zone), and explicitly target the Capacity Reservation. This ensures
5196
5223
  # that only permitted instances can use the reserved capacity.
5197
5224
  #
5225
+ # <note markdown="1"> If you are requesting a future-dated Capacity Reservation, you must
5226
+ # specify `targeted`.
5227
+ #
5228
+ # </note>
5229
+ #
5198
5230
  # Default: `open`
5199
5231
  #
5200
5232
  # @option params [Array<Types::TagSpecification>] :tag_specifications
@@ -5207,10 +5239,18 @@ module Aws::EC2
5207
5239
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
5208
5240
  #
5209
5241
  # @option params [String] :outpost_arn
5242
+ # <note markdown="1"> Not supported for future-dated Capacity Reservations.
5243
+ #
5244
+ # </note>
5245
+ #
5210
5246
  # The Amazon Resource Name (ARN) of the Outpost on which to create the
5211
5247
  # Capacity Reservation.
5212
5248
  #
5213
5249
  # @option params [String] :placement_group_arn
5250
+ # <note markdown="1"> Not supported for future-dated Capacity Reservations.
5251
+ #
5252
+ # </note>
5253
+ #
5214
5254
  # The Amazon Resource Name (ARN) of the cluster placement group in which
5215
5255
  # to create the Capacity Reservation. For more information, see [
5216
5256
  # Capacity Reservations for cluster placement groups][1] in the *Amazon
@@ -5220,6 +5260,50 @@ module Aws::EC2
5220
5260
  #
5221
5261
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-cpg.html
5222
5262
  #
5263
+ # @option params [Time,DateTime,Date,Integer,String] :start_date
5264
+ # <note markdown="1"> Required for future-dated Capacity Reservations only. To create a
5265
+ # Capacity Reservation for immediate use, omit this parameter.
5266
+ #
5267
+ # </note>
5268
+ #
5269
+ # The date and time at which the future-dated Capacity Reservation
5270
+ # should become available for use, in the ISO8601 format in the UTC time
5271
+ # zone (`YYYY-MM-DDThh:mm:ss.sssZ`).
5272
+ #
5273
+ # You can request a future-dated Capacity Reservation between 5 and 120
5274
+ # days in advance.
5275
+ #
5276
+ # @option params [Integer] :commitment_duration
5277
+ # <note markdown="1"> Required for future-dated Capacity Reservations only. To create a
5278
+ # Capacity Reservation for immediate use, omit this parameter.
5279
+ #
5280
+ # </note>
5281
+ #
5282
+ # Specify a commitment duration, in seconds, for the future-dated
5283
+ # Capacity Reservation.
5284
+ #
5285
+ # The commitment duration is a minimum duration for which you commit to
5286
+ # having the future-dated Capacity Reservation in the `active` state in
5287
+ # your account after it has been delivered.
5288
+ #
5289
+ # For more information, see [ Commitment duration][1].
5290
+ #
5291
+ #
5292
+ #
5293
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-concepts.html#cr-commitment-duration
5294
+ #
5295
+ # @option params [String] :delivery_preference
5296
+ # <note markdown="1"> Required for future-dated Capacity Reservations only. To create a
5297
+ # Capacity Reservation for immediate use, omit this parameter.
5298
+ #
5299
+ # </note>
5300
+ #
5301
+ # Indicates that the requested capacity will be delivered in addition to
5302
+ # any running instances or reserved capacity that you have in your
5303
+ # account at the requested date and time.
5304
+ #
5305
+ # The only supported value is `incremental`.
5306
+ #
5223
5307
  # @return [Types::CreateCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5224
5308
  #
5225
5309
  # * {Types::CreateCapacityReservationResult#capacity_reservation #capacity_reservation} => Types::CapacityReservation
@@ -5253,6 +5337,9 @@ module Aws::EC2
5253
5337
  # dry_run: false,
5254
5338
  # outpost_arn: "OutpostArn",
5255
5339
  # placement_group_arn: "PlacementGroupArn",
5340
+ # start_date: Time.now,
5341
+ # commitment_duration: 1,
5342
+ # delivery_preference: "fixed", # accepts fixed, incremental
5256
5343
  # })
5257
5344
  #
5258
5345
  # @example Response structure
@@ -5269,7 +5356,7 @@ module Aws::EC2
5269
5356
  # resp.capacity_reservation.available_instance_count #=> Integer
5270
5357
  # resp.capacity_reservation.ebs_optimized #=> Boolean
5271
5358
  # resp.capacity_reservation.ephemeral_storage #=> Boolean
5272
- # resp.capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
5359
+ # resp.capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
5273
5360
  # resp.capacity_reservation.start_date #=> Time
5274
5361
  # resp.capacity_reservation.end_date #=> Time
5275
5362
  # resp.capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
@@ -5286,6 +5373,9 @@ module Aws::EC2
5286
5373
  # resp.capacity_reservation.capacity_allocations[0].count #=> Integer
5287
5374
  # resp.capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
5288
5375
  # resp.capacity_reservation.unused_reservation_billing_owner_id #=> String
5376
+ # resp.capacity_reservation.commitment_info.committed_instance_count #=> Integer
5377
+ # resp.capacity_reservation.commitment_info.commitment_end_date #=> Time
5378
+ # resp.capacity_reservation.delivery_preference #=> String, one of "fixed", "incremental"
5289
5379
  #
5290
5380
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation AWS API Documentation
5291
5381
  #
@@ -5370,7 +5460,7 @@ module Aws::EC2
5370
5460
  # resp.source_capacity_reservation.available_instance_count #=> Integer
5371
5461
  # resp.source_capacity_reservation.ebs_optimized #=> Boolean
5372
5462
  # resp.source_capacity_reservation.ephemeral_storage #=> Boolean
5373
- # resp.source_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
5463
+ # resp.source_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
5374
5464
  # resp.source_capacity_reservation.start_date #=> Time
5375
5465
  # resp.source_capacity_reservation.end_date #=> Time
5376
5466
  # resp.source_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
@@ -5387,6 +5477,9 @@ module Aws::EC2
5387
5477
  # resp.source_capacity_reservation.capacity_allocations[0].count #=> Integer
5388
5478
  # resp.source_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
5389
5479
  # resp.source_capacity_reservation.unused_reservation_billing_owner_id #=> String
5480
+ # resp.source_capacity_reservation.commitment_info.committed_instance_count #=> Integer
5481
+ # resp.source_capacity_reservation.commitment_info.commitment_end_date #=> Time
5482
+ # resp.source_capacity_reservation.delivery_preference #=> String, one of "fixed", "incremental"
5390
5483
  # resp.destination_capacity_reservation.capacity_reservation_id #=> String
5391
5484
  # resp.destination_capacity_reservation.owner_id #=> String
5392
5485
  # resp.destination_capacity_reservation.capacity_reservation_arn #=> String
@@ -5399,7 +5492,7 @@ module Aws::EC2
5399
5492
  # resp.destination_capacity_reservation.available_instance_count #=> Integer
5400
5493
  # resp.destination_capacity_reservation.ebs_optimized #=> Boolean
5401
5494
  # resp.destination_capacity_reservation.ephemeral_storage #=> Boolean
5402
- # resp.destination_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
5495
+ # resp.destination_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
5403
5496
  # resp.destination_capacity_reservation.start_date #=> Time
5404
5497
  # resp.destination_capacity_reservation.end_date #=> Time
5405
5498
  # resp.destination_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
@@ -5416,6 +5509,9 @@ module Aws::EC2
5416
5509
  # resp.destination_capacity_reservation.capacity_allocations[0].count #=> Integer
5417
5510
  # resp.destination_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
5418
5511
  # resp.destination_capacity_reservation.unused_reservation_billing_owner_id #=> String
5512
+ # resp.destination_capacity_reservation.commitment_info.committed_instance_count #=> Integer
5513
+ # resp.destination_capacity_reservation.commitment_info.commitment_end_date #=> Time
5514
+ # resp.destination_capacity_reservation.delivery_preference #=> String, one of "fixed", "incremental"
5419
5515
  # resp.instance_count #=> Integer
5420
5516
  #
5421
5517
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservationBySplitting AWS API Documentation
@@ -8354,6 +8450,8 @@ module Aws::EC2
8354
8450
  # resp.ipam_resource_discovery.tags #=> Array
8355
8451
  # resp.ipam_resource_discovery.tags[0].key #=> String
8356
8452
  # resp.ipam_resource_discovery.tags[0].value #=> String
8453
+ # resp.ipam_resource_discovery.organizational_unit_exclusions #=> Array
8454
+ # resp.ipam_resource_discovery.organizational_unit_exclusions[0].organizations_entity_path #=> String
8357
8455
  #
8358
8456
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateIpamResourceDiscovery AWS API Documentation
8359
8457
  #
@@ -15138,13 +15236,13 @@ module Aws::EC2
15138
15236
  # @option params [required, String] :internet_gateway_exclusion_mode
15139
15237
  # The exclusion mode for internet gateway traffic.
15140
15238
  #
15141
- # * `bidirectional-access-allowed`: Allow all internet traffic to and
15142
- # from the excluded VPCs and subnets.
15239
+ # * `allow-bidirectional`: Allow all internet traffic to and from the
15240
+ # excluded VPCs and subnets.
15143
15241
  #
15144
- # * `egress-access-allowed`: Allow outbound internet traffic from the
15145
- # excluded VPCs and subnets. Block inbound internet traffic to the
15146
- # excluded VPCs and subnets. Only applies when VPC Block Public Access
15147
- # is set to Bidirectional.
15242
+ # * `allow-egress`: Allow outbound internet traffic from the excluded
15243
+ # VPCs and subnets. Block inbound internet traffic to the excluded
15244
+ # VPCs and subnets. Only applies when VPC Block Public Access is set
15245
+ # to Bidirectional.
15148
15246
  #
15149
15247
  # @option params [Array<Types::TagSpecification>] :tag_specifications
15150
15248
  # `tag` - The key/value combination of a tag assigned to the resource.
@@ -16938,6 +17036,8 @@ module Aws::EC2
16938
17036
  # resp.ipam_resource_discovery.tags #=> Array
16939
17037
  # resp.ipam_resource_discovery.tags[0].key #=> String
16940
17038
  # resp.ipam_resource_discovery.tags[0].value #=> String
17039
+ # resp.ipam_resource_discovery.organizational_unit_exclusions #=> Array
17040
+ # resp.ipam_resource_discovery.organizational_unit_exclusions[0].organizations_entity_path #=> String
16941
17041
  #
16942
17042
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteIpamResourceDiscovery AWS API Documentation
16943
17043
  #
@@ -20992,6 +21092,167 @@ module Aws::EC2
20992
21092
  req.send_request(options)
20993
21093
  end
20994
21094
 
21095
+ # Describes the events for the specified Capacity Block extension during
21096
+ # the specified time.
21097
+ #
21098
+ # @option params [Array<String>] :capacity_reservation_ids
21099
+ # The IDs of Capacity Block reservations that you want to display the
21100
+ # history for.
21101
+ #
21102
+ # @option params [String] :next_token
21103
+ # The token to use to retrieve the next page of results.
21104
+ #
21105
+ # @option params [Integer] :max_results
21106
+ # The maximum number of items to return for this request. To get the
21107
+ # next page of items, make another request with the token returned in
21108
+ # the output. For more information, see [Pagination][1].
21109
+ #
21110
+ #
21111
+ #
21112
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
21113
+ #
21114
+ # @option params [Array<Types::Filter>] :filters
21115
+ # One or more filters
21116
+ #
21117
+ # * `availability-zone` - The Availability Zone of the extension.
21118
+ #
21119
+ # * `availability-zone-id` - The Availability Zone ID of the extension.
21120
+ #
21121
+ # * `capacity-block-extension-offering-id` - The ID of the extension
21122
+ # offering.
21123
+ #
21124
+ # * `capacity-block-extension-status` - The status of the extension
21125
+ # (`payment-pending` \| `payment-failed` \| `payment-succeeded`).
21126
+ #
21127
+ # * `capacity-reservation-id` - The reservation ID of the extension.
21128
+ #
21129
+ # * `instance-type` - The instance type of the extension.
21130
+ #
21131
+ # @option params [Boolean] :dry_run
21132
+ # Checks whether you have the required permissions for the action,
21133
+ # without actually making the request, and provides an error response.
21134
+ # If you have the required permissions, the error response is
21135
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
21136
+ #
21137
+ # @return [Types::DescribeCapacityBlockExtensionHistoryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
21138
+ #
21139
+ # * {Types::DescribeCapacityBlockExtensionHistoryResult#capacity_block_extensions #capacity_block_extensions} => Array&lt;Types::CapacityBlockExtension&gt;
21140
+ # * {Types::DescribeCapacityBlockExtensionHistoryResult#next_token #next_token} => String
21141
+ #
21142
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
21143
+ #
21144
+ # @example Request syntax with placeholder values
21145
+ #
21146
+ # resp = client.describe_capacity_block_extension_history({
21147
+ # capacity_reservation_ids: ["CapacityReservationId"],
21148
+ # next_token: "String",
21149
+ # max_results: 1,
21150
+ # filters: [
21151
+ # {
21152
+ # name: "String",
21153
+ # values: ["String"],
21154
+ # },
21155
+ # ],
21156
+ # dry_run: false,
21157
+ # })
21158
+ #
21159
+ # @example Response structure
21160
+ #
21161
+ # resp.capacity_block_extensions #=> Array
21162
+ # resp.capacity_block_extensions[0].capacity_reservation_id #=> String
21163
+ # resp.capacity_block_extensions[0].instance_type #=> String
21164
+ # resp.capacity_block_extensions[0].instance_count #=> Integer
21165
+ # resp.capacity_block_extensions[0].availability_zone #=> String
21166
+ # resp.capacity_block_extensions[0].availability_zone_id #=> String
21167
+ # resp.capacity_block_extensions[0].capacity_block_extension_offering_id #=> String
21168
+ # resp.capacity_block_extensions[0].capacity_block_extension_duration_hours #=> Integer
21169
+ # resp.capacity_block_extensions[0].capacity_block_extension_status #=> String, one of "payment-pending", "payment-failed", "payment-succeeded"
21170
+ # resp.capacity_block_extensions[0].capacity_block_extension_purchase_date #=> Time
21171
+ # resp.capacity_block_extensions[0].capacity_block_extension_start_date #=> Time
21172
+ # resp.capacity_block_extensions[0].capacity_block_extension_end_date #=> Time
21173
+ # resp.capacity_block_extensions[0].upfront_fee #=> String
21174
+ # resp.capacity_block_extensions[0].currency_code #=> String
21175
+ # resp.next_token #=> String
21176
+ #
21177
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockExtensionHistory AWS API Documentation
21178
+ #
21179
+ # @overload describe_capacity_block_extension_history(params = {})
21180
+ # @param [Hash] params ({})
21181
+ def describe_capacity_block_extension_history(params = {}, options = {})
21182
+ req = build_request(:describe_capacity_block_extension_history, params)
21183
+ req.send_request(options)
21184
+ end
21185
+
21186
+ # Describes Capacity Block extension offerings available for purchase in
21187
+ # the Amazon Web Services Region that you're currently using.
21188
+ #
21189
+ # @option params [Boolean] :dry_run
21190
+ # Checks whether you have the required permissions for the action,
21191
+ # without actually making the request, and provides an error response.
21192
+ # If you have the required permissions, the error response is
21193
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
21194
+ #
21195
+ # @option params [required, Integer] :capacity_block_extension_duration_hours
21196
+ # The duration of the Capacity Block extension offering in hours.
21197
+ #
21198
+ # @option params [required, String] :capacity_reservation_id
21199
+ # The ID of the Capacity reservation to be extended.
21200
+ #
21201
+ # @option params [String] :next_token
21202
+ # The token to use to retrieve the next page of results.
21203
+ #
21204
+ # @option params [Integer] :max_results
21205
+ # The maximum number of items to return for this request. To get the
21206
+ # next page of items, make another request with the token returned in
21207
+ # the output. For more information, see [Pagination][1].
21208
+ #
21209
+ #
21210
+ #
21211
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
21212
+ #
21213
+ # @return [Types::DescribeCapacityBlockExtensionOfferingsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
21214
+ #
21215
+ # * {Types::DescribeCapacityBlockExtensionOfferingsResult#capacity_block_extension_offerings #capacity_block_extension_offerings} => Array&lt;Types::CapacityBlockExtensionOffering&gt;
21216
+ # * {Types::DescribeCapacityBlockExtensionOfferingsResult#next_token #next_token} => String
21217
+ #
21218
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
21219
+ #
21220
+ # @example Request syntax with placeholder values
21221
+ #
21222
+ # resp = client.describe_capacity_block_extension_offerings({
21223
+ # dry_run: false,
21224
+ # capacity_block_extension_duration_hours: 1, # required
21225
+ # capacity_reservation_id: "CapacityReservationId", # required
21226
+ # next_token: "String",
21227
+ # max_results: 1,
21228
+ # })
21229
+ #
21230
+ # @example Response structure
21231
+ #
21232
+ # resp.capacity_block_extension_offerings #=> Array
21233
+ # resp.capacity_block_extension_offerings[0].capacity_block_extension_offering_id #=> String
21234
+ # resp.capacity_block_extension_offerings[0].instance_type #=> String
21235
+ # resp.capacity_block_extension_offerings[0].instance_count #=> Integer
21236
+ # resp.capacity_block_extension_offerings[0].availability_zone #=> String
21237
+ # resp.capacity_block_extension_offerings[0].availability_zone_id #=> String
21238
+ # resp.capacity_block_extension_offerings[0].start_date #=> Time
21239
+ # resp.capacity_block_extension_offerings[0].capacity_block_extension_start_date #=> Time
21240
+ # resp.capacity_block_extension_offerings[0].capacity_block_extension_end_date #=> Time
21241
+ # resp.capacity_block_extension_offerings[0].capacity_block_extension_duration_hours #=> Integer
21242
+ # resp.capacity_block_extension_offerings[0].upfront_fee #=> String
21243
+ # resp.capacity_block_extension_offerings[0].currency_code #=> String
21244
+ # resp.capacity_block_extension_offerings[0].tenancy #=> String, one of "default", "dedicated"
21245
+ # resp.next_token #=> String
21246
+ #
21247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockExtensionOfferings AWS API Documentation
21248
+ #
21249
+ # @overload describe_capacity_block_extension_offerings(params = {})
21250
+ # @param [Hash] params ({})
21251
+ def describe_capacity_block_extension_offerings(params = {}, options = {})
21252
+ req = build_request(:describe_capacity_block_extension_offerings, params)
21253
+ req.send_request(options)
21254
+ end
21255
+
20995
21256
  # Describes Capacity Block offerings available for purchase in the
20996
21257
  # Amazon Web Services Region that you're currently using. With Capacity
20997
21258
  # Blocks, you purchase a specific instance type for a period of time.
@@ -21063,6 +21324,7 @@ module Aws::EC2
21063
21324
  # resp.capacity_block_offerings[0].upfront_fee #=> String
21064
21325
  # resp.capacity_block_offerings[0].currency_code #=> String
21065
21326
  # resp.capacity_block_offerings[0].tenancy #=> String, one of "default", "dedicated"
21327
+ # resp.capacity_block_offerings[0].capacity_block_duration_minutes #=> Integer
21066
21328
  # resp.next_token #=> String
21067
21329
  #
21068
21330
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockOfferings AWS API Documentation
@@ -21419,7 +21681,7 @@ module Aws::EC2
21419
21681
  # resp.capacity_reservations[0].available_instance_count #=> Integer
21420
21682
  # resp.capacity_reservations[0].ebs_optimized #=> Boolean
21421
21683
  # resp.capacity_reservations[0].ephemeral_storage #=> Boolean
21422
- # resp.capacity_reservations[0].state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
21684
+ # resp.capacity_reservations[0].state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
21423
21685
  # resp.capacity_reservations[0].start_date #=> Time
21424
21686
  # resp.capacity_reservations[0].end_date #=> Time
21425
21687
  # resp.capacity_reservations[0].end_date_type #=> String, one of "unlimited", "limited"
@@ -21436,6 +21698,9 @@ module Aws::EC2
21436
21698
  # resp.capacity_reservations[0].capacity_allocations[0].count #=> Integer
21437
21699
  # resp.capacity_reservations[0].reservation_type #=> String, one of "default", "capacity-block"
21438
21700
  # resp.capacity_reservations[0].unused_reservation_billing_owner_id #=> String
21701
+ # resp.capacity_reservations[0].commitment_info.committed_instance_count #=> Integer
21702
+ # resp.capacity_reservations[0].commitment_info.commitment_end_date #=> Time
21703
+ # resp.capacity_reservations[0].delivery_preference #=> String, one of "fixed", "incremental"
21439
21704
  #
21440
21705
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations AWS API Documentation
21441
21706
  #
@@ -27461,6 +27726,8 @@ module Aws::EC2
27461
27726
  # resp.ipam_resource_discoveries[0].tags #=> Array
27462
27727
  # resp.ipam_resource_discoveries[0].tags[0].key #=> String
27463
27728
  # resp.ipam_resource_discoveries[0].tags[0].value #=> String
27729
+ # resp.ipam_resource_discoveries[0].organizational_unit_exclusions #=> Array
27730
+ # resp.ipam_resource_discoveries[0].organizational_unit_exclusions[0].organizations_entity_path #=> String
27464
27731
  # resp.next_token #=> String
27465
27732
  #
27466
27733
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeIpamResourceDiscoveries AWS API Documentation
@@ -37891,8 +38158,7 @@ module Aws::EC2
37891
38158
  # * `resource-arn` - The Amazon Resource Name (ARN) of a exclusion.
37892
38159
  #
37893
38160
  # * `internet-gateway-exclusion-mode` - The mode of a VPC BPA exclusion.
37894
- # Possible values: `bidirectional-access-allowed |
37895
- # egress-access-allowed`.
38161
+ # Possible values: `allow-bidirectional | allow-egress`.
37896
38162
  #
37897
38163
  # * `state` - The state of VPC BPA. Possible values: `create-in-progress
37898
38164
  # | create-complete | update-in-progress | update-complete |
@@ -37974,7 +38240,7 @@ module Aws::EC2
37974
38240
  req.send_request(options)
37975
38241
  end
37976
38242
 
37977
- # Describe VPC Block Public Access (BPA) options. VPC Block public
38243
+ # Describe VPC Block Public Access (BPA) options. VPC Block Public
37978
38244
  # Access (BPA) enables you to block resources in VPCs and subnets that
37979
38245
  # you own in a Region from reaching or being reached from the internet
37980
38246
  # through internet gateways and egress-only internet gateways. To learn
@@ -42756,7 +43022,7 @@ module Aws::EC2
42756
43022
  # resp.instance_type #=> String
42757
43023
  # resp.total_instance_count #=> Integer
42758
43024
  # resp.available_instance_count #=> Integer
42759
- # resp.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
43025
+ # resp.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
42760
43026
  # resp.instance_usages #=> Array
42761
43027
  # resp.instance_usages[0].account_id #=> String
42762
43028
  # resp.instance_usages[0].used_instance_count #=> Integer
@@ -43763,6 +44029,7 @@ module Aws::EC2
43763
44029
  # resp.ipam_discovered_accounts[0].failure_reason.message #=> String
43764
44030
  # resp.ipam_discovered_accounts[0].last_attempted_discovery_time #=> Time
43765
44031
  # resp.ipam_discovered_accounts[0].last_successful_discovery_time #=> Time
44032
+ # resp.ipam_discovered_accounts[0].organizational_unit_id #=> String
43766
44033
  # resp.next_token #=> String
43767
44034
  #
43768
44035
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetIpamDiscoveredAccounts AWS API Documentation
@@ -47511,9 +47778,27 @@ module Aws::EC2
47511
47778
  # instance store settings, Availability Zone, or tenancy. If you need to
47512
47779
  # modify any of these attributes, we recommend that you cancel the
47513
47780
  # Capacity Reservation, and then create a new one with the required
47514
- # attributes. For more information, see [Modify an active Capacity
47781
+ # attributes. For more information, see [ Modify an active Capacity
47515
47782
  # Reservation][1].
47516
47783
  #
47784
+ # The allowed modifications depend on the state of the Capacity
47785
+ # Reservation:
47786
+ #
47787
+ # * `assessing` or `scheduled` state - You can modify the tags only.
47788
+ #
47789
+ # * `pending` state - You can't modify the Capacity Reservation in any
47790
+ # way.
47791
+ #
47792
+ # * `active` state but still within the commitment duration - You can't
47793
+ # decrease the instance count or set an end date that is within the
47794
+ # commitment duration. All other modifications are allowed.
47795
+ #
47796
+ # * `active` state with no commitment duration or elapsed commitment
47797
+ # duration - All modifications are allowed.
47798
+ #
47799
+ # * `expired`, `cancelled`, `unsupported`, or `failed` state - You
47800
+ # can't modify the Capacity Reservation in any way.
47801
+ #
47517
47802
  #
47518
47803
  #
47519
47804
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html
@@ -49916,6 +50201,30 @@ module Aws::EC2
49916
50201
  # @option params [Array<Types::RemoveIpamOperatingRegion>] :remove_operating_regions
49917
50202
  # Remove operating Regions.
49918
50203
  #
50204
+ # @option params [Array<Types::AddIpamOrganizationalUnitExclusion>] :add_organizational_unit_exclusions
50205
+ # Add an Organizational Unit (OU) exclusion to your IPAM. If your IPAM
50206
+ # is integrated with Amazon Web Services Organizations and you add an
50207
+ # organizational unit (OU) exclusion, IPAM will not manage the IP
50208
+ # addresses in accounts in that OU exclusion. There is a limit on the
50209
+ # number of exclusions you can create. For more information, see [Quotas
50210
+ # for your IPAM][1] in the *Amazon VPC IPAM User Guide*.
50211
+ #
50212
+ #
50213
+ #
50214
+ # [1]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html
50215
+ #
50216
+ # @option params [Array<Types::RemoveIpamOrganizationalUnitExclusion>] :remove_organizational_unit_exclusions
50217
+ # Remove an Organizational Unit (OU) exclusion to your IPAM. If your
50218
+ # IPAM is integrated with Amazon Web Services Organizations and you add
50219
+ # an organizational unit (OU) exclusion, IPAM will not manage the IP
50220
+ # addresses in accounts in that OU exclusion. There is a limit on the
50221
+ # number of exclusions you can create. For more information, see [Quotas
50222
+ # for your IPAM][1] in the *Amazon VPC IPAM User Guide*.
50223
+ #
50224
+ #
50225
+ #
50226
+ # [1]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html
50227
+ #
49919
50228
  # @return [Types::ModifyIpamResourceDiscoveryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
49920
50229
  #
49921
50230
  # * {Types::ModifyIpamResourceDiscoveryResult#ipam_resource_discovery #ipam_resource_discovery} => Types::IpamResourceDiscovery
@@ -49936,6 +50245,16 @@ module Aws::EC2
49936
50245
  # region_name: "String",
49937
50246
  # },
49938
50247
  # ],
50248
+ # add_organizational_unit_exclusions: [
50249
+ # {
50250
+ # organizations_entity_path: "String",
50251
+ # },
50252
+ # ],
50253
+ # remove_organizational_unit_exclusions: [
50254
+ # {
50255
+ # organizations_entity_path: "String",
50256
+ # },
50257
+ # ],
49939
50258
  # })
49940
50259
  #
49941
50260
  # @example Response structure
@@ -49952,6 +50271,8 @@ module Aws::EC2
49952
50271
  # resp.ipam_resource_discovery.tags #=> Array
49953
50272
  # resp.ipam_resource_discovery.tags[0].key #=> String
49954
50273
  # resp.ipam_resource_discovery.tags[0].value #=> String
50274
+ # resp.ipam_resource_discovery.organizational_unit_exclusions #=> Array
50275
+ # resp.ipam_resource_discovery.organizational_unit_exclusions[0].organizations_entity_path #=> String
49955
50276
  #
49956
50277
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyIpamResourceDiscovery AWS API Documentation
49957
50278
  #
@@ -52477,13 +52798,13 @@ module Aws::EC2
52477
52798
  # @option params [required, String] :internet_gateway_exclusion_mode
52478
52799
  # The exclusion mode for internet gateway traffic.
52479
52800
  #
52480
- # * `bidirectional-access-allowed`: Allow all internet traffic to and
52481
- # from the excluded VPCs and subnets.
52801
+ # * `allow-bidirectional`: Allow all internet traffic to and from the
52802
+ # excluded VPCs and subnets.
52482
52803
  #
52483
- # * `egress-access-allowed`: Allow outbound internet traffic from the
52484
- # excluded VPCs and subnets. Block inbound internet traffic to the
52485
- # excluded VPCs and subnets. Only applies when VPC Block Public Access
52486
- # is set to Bidirectional.
52804
+ # * `allow-egress`: Allow outbound internet traffic from the excluded
52805
+ # VPCs and subnets. Block inbound internet traffic to the excluded
52806
+ # VPCs and subnets. Only applies when VPC Block Public Access is set
52807
+ # to Bidirectional.
52487
52808
  #
52488
52809
  # @return [Types::ModifyVpcBlockPublicAccessExclusionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
52489
52810
  #
@@ -52520,7 +52841,7 @@ module Aws::EC2
52520
52841
  req.send_request(options)
52521
52842
  end
52522
52843
 
52523
- # Modify VPC Block Public Access (BPA) options. VPC Block public Access
52844
+ # Modify VPC Block Public Access (BPA) options. VPC Block Public Access
52524
52845
  # (BPA) enables you to block resources in VPCs and subnets that you own
52525
52846
  # in a Region from reaching or being reached from the internet through
52526
52847
  # internet gateways and egress-only internet gateways. To learn more
@@ -52540,19 +52861,18 @@ module Aws::EC2
52540
52861
  # @option params [required, String] :internet_gateway_block_mode
52541
52862
  # The mode of VPC BPA.
52542
52863
  #
52543
- # * `bidirectional-access-allowed`: VPC BPA is not enabled and traffic
52544
- # is allowed to and from internet gateways and egress-only internet
52545
- # gateways in this Region.
52864
+ # * `off`: VPC BPA is not enabled and traffic is allowed to and from
52865
+ # internet gateways and egress-only internet gateways in this Region.
52546
52866
  #
52547
- # * `bidirectional-access-blocked`: Block all traffic to and from
52548
- # internet gateways and egress-only internet gateways in this Region
52549
- # (except for excluded VPCs and subnets).
52867
+ # * `block-bidirectional`: Block all traffic to and from internet
52868
+ # gateways and egress-only internet gateways in this Region (except
52869
+ # for excluded VPCs and subnets).
52550
52870
  #
52551
- # * `ingress-access-blocked`: Block all internet traffic to the VPCs in
52552
- # this Region (except for VPCs or subnets which are excluded). Only
52553
- # traffic to and from NAT gateways and egress-only internet gateways
52554
- # is allowed because these gateways only allow outbound connections to
52555
- # be established.
52871
+ # * `block-ingress`: Block all internet traffic to the VPCs in this
52872
+ # Region (except for VPCs or subnets which are excluded). Only traffic
52873
+ # to and from NAT gateways and egress-only internet gateways is
52874
+ # allowed because these gateways only allow outbound connections to be
52875
+ # established.
52556
52876
  #
52557
52877
  # @return [Types::ModifyVpcBlockPublicAccessOptionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
52558
52878
  #
@@ -53866,7 +54186,7 @@ module Aws::EC2
53866
54186
  # resp.source_capacity_reservation.available_instance_count #=> Integer
53867
54187
  # resp.source_capacity_reservation.ebs_optimized #=> Boolean
53868
54188
  # resp.source_capacity_reservation.ephemeral_storage #=> Boolean
53869
- # resp.source_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
54189
+ # resp.source_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
53870
54190
  # resp.source_capacity_reservation.start_date #=> Time
53871
54191
  # resp.source_capacity_reservation.end_date #=> Time
53872
54192
  # resp.source_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
@@ -53883,6 +54203,9 @@ module Aws::EC2
53883
54203
  # resp.source_capacity_reservation.capacity_allocations[0].count #=> Integer
53884
54204
  # resp.source_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
53885
54205
  # resp.source_capacity_reservation.unused_reservation_billing_owner_id #=> String
54206
+ # resp.source_capacity_reservation.commitment_info.committed_instance_count #=> Integer
54207
+ # resp.source_capacity_reservation.commitment_info.commitment_end_date #=> Time
54208
+ # resp.source_capacity_reservation.delivery_preference #=> String, one of "fixed", "incremental"
53886
54209
  # resp.destination_capacity_reservation.capacity_reservation_id #=> String
53887
54210
  # resp.destination_capacity_reservation.owner_id #=> String
53888
54211
  # resp.destination_capacity_reservation.capacity_reservation_arn #=> String
@@ -53895,7 +54218,7 @@ module Aws::EC2
53895
54218
  # resp.destination_capacity_reservation.available_instance_count #=> Integer
53896
54219
  # resp.destination_capacity_reservation.ebs_optimized #=> Boolean
53897
54220
  # resp.destination_capacity_reservation.ephemeral_storage #=> Boolean
53898
- # resp.destination_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
54221
+ # resp.destination_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
53899
54222
  # resp.destination_capacity_reservation.start_date #=> Time
53900
54223
  # resp.destination_capacity_reservation.end_date #=> Time
53901
54224
  # resp.destination_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
@@ -53912,6 +54235,9 @@ module Aws::EC2
53912
54235
  # resp.destination_capacity_reservation.capacity_allocations[0].count #=> Integer
53913
54236
  # resp.destination_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
53914
54237
  # resp.destination_capacity_reservation.unused_reservation_billing_owner_id #=> String
54238
+ # resp.destination_capacity_reservation.commitment_info.committed_instance_count #=> Integer
54239
+ # resp.destination_capacity_reservation.commitment_info.commitment_end_date #=> Time
54240
+ # resp.destination_capacity_reservation.delivery_preference #=> String, one of "fixed", "incremental"
53915
54241
  # resp.instance_count #=> Integer
53916
54242
  #
53917
54243
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveCapacityReservationInstances AWS API Documentation
@@ -54337,7 +54663,7 @@ module Aws::EC2
54337
54663
  # resp.capacity_reservation.available_instance_count #=> Integer
54338
54664
  # resp.capacity_reservation.ebs_optimized #=> Boolean
54339
54665
  # resp.capacity_reservation.ephemeral_storage #=> Boolean
54340
- # resp.capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
54666
+ # resp.capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed", "assessing", "delayed", "unsupported"
54341
54667
  # resp.capacity_reservation.start_date #=> Time
54342
54668
  # resp.capacity_reservation.end_date #=> Time
54343
54669
  # resp.capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
@@ -54354,6 +54680,9 @@ module Aws::EC2
54354
54680
  # resp.capacity_reservation.capacity_allocations[0].count #=> Integer
54355
54681
  # resp.capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
54356
54682
  # resp.capacity_reservation.unused_reservation_billing_owner_id #=> String
54683
+ # resp.capacity_reservation.commitment_info.committed_instance_count #=> Integer
54684
+ # resp.capacity_reservation.commitment_info.commitment_end_date #=> Time
54685
+ # resp.capacity_reservation.delivery_preference #=> String, one of "fixed", "incremental"
54357
54686
  #
54358
54687
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseCapacityBlock AWS API Documentation
54359
54688
  #
@@ -54364,6 +54693,60 @@ module Aws::EC2
54364
54693
  req.send_request(options)
54365
54694
  end
54366
54695
 
54696
+ # Purchase the Capacity Block extension for use with your account. You
54697
+ # must specify the ID of the Capacity Block extension offering you are
54698
+ # purchasing.
54699
+ #
54700
+ # @option params [required, String] :capacity_block_extension_offering_id
54701
+ # The ID of the Capacity Block extension offering to purchase.
54702
+ #
54703
+ # @option params [required, String] :capacity_reservation_id
54704
+ # The ID of the Capacity reservation to be extended.
54705
+ #
54706
+ # @option params [Boolean] :dry_run
54707
+ # Checks whether you have the required permissions for the action,
54708
+ # without actually making the request, and provides an error response.
54709
+ # If you have the required permissions, the error response is
54710
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
54711
+ #
54712
+ # @return [Types::PurchaseCapacityBlockExtensionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
54713
+ #
54714
+ # * {Types::PurchaseCapacityBlockExtensionResult#capacity_block_extensions #capacity_block_extensions} => Array&lt;Types::CapacityBlockExtension&gt;
54715
+ #
54716
+ # @example Request syntax with placeholder values
54717
+ #
54718
+ # resp = client.purchase_capacity_block_extension({
54719
+ # capacity_block_extension_offering_id: "OfferingId", # required
54720
+ # capacity_reservation_id: "CapacityReservationId", # required
54721
+ # dry_run: false,
54722
+ # })
54723
+ #
54724
+ # @example Response structure
54725
+ #
54726
+ # resp.capacity_block_extensions #=> Array
54727
+ # resp.capacity_block_extensions[0].capacity_reservation_id #=> String
54728
+ # resp.capacity_block_extensions[0].instance_type #=> String
54729
+ # resp.capacity_block_extensions[0].instance_count #=> Integer
54730
+ # resp.capacity_block_extensions[0].availability_zone #=> String
54731
+ # resp.capacity_block_extensions[0].availability_zone_id #=> String
54732
+ # resp.capacity_block_extensions[0].capacity_block_extension_offering_id #=> String
54733
+ # resp.capacity_block_extensions[0].capacity_block_extension_duration_hours #=> Integer
54734
+ # resp.capacity_block_extensions[0].capacity_block_extension_status #=> String, one of "payment-pending", "payment-failed", "payment-succeeded"
54735
+ # resp.capacity_block_extensions[0].capacity_block_extension_purchase_date #=> Time
54736
+ # resp.capacity_block_extensions[0].capacity_block_extension_start_date #=> Time
54737
+ # resp.capacity_block_extensions[0].capacity_block_extension_end_date #=> Time
54738
+ # resp.capacity_block_extensions[0].upfront_fee #=> String
54739
+ # resp.capacity_block_extensions[0].currency_code #=> String
54740
+ #
54741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseCapacityBlockExtension AWS API Documentation
54742
+ #
54743
+ # @overload purchase_capacity_block_extension(params = {})
54744
+ # @param [Hash] params ({})
54745
+ def purchase_capacity_block_extension(params = {}, options = {})
54746
+ req = build_request(:purchase_capacity_block_extension, params)
54747
+ req.send_request(options)
54748
+ end
54749
+
54367
54750
  # Purchase a reservation with configurations that match those of your
54368
54751
  # Dedicated Host. You must have active Dedicated Hosts in your account
54369
54752
  # before you purchase a reservation. This action results in the
@@ -61450,7 +61833,7 @@ module Aws::EC2
61450
61833
  tracer: tracer
61451
61834
  )
61452
61835
  context[:gem_name] = 'aws-sdk-ec2'
61453
- context[:gem_version] = '1.492.0'
61836
+ context[:gem_version] = '1.493.0'
61454
61837
  Seahorse::Client::Request.new(handlers, context)
61455
61838
  end
61456
61839