aws-sdk-ec2 1.468.0 → 1.469.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
  SHA256:
3
- metadata.gz: d164038c3e50954e8d70c7994b51bdacdc26f1d1fad3bfe99d69cffd7adc8e08
4
- data.tar.gz: ed8a5efcd26a3019e9d63b974ce3fb03fdb349ff094f24c34a499034e38fdd19
3
+ metadata.gz: e21ca0d4a8c414edf0b8ee7a21c38e5b65726ec28dc8ce34d71d47706dc95287
4
+ data.tar.gz: ec33ebfaad5835daa02a1c1197a7842393e8e3cab4d8fab8f89056f0809880ff
5
5
  SHA512:
6
- metadata.gz: 8c96c4391fb5d2c28afb1ea083e3632c91179b7dc0d452f679a8e93c30a82047658b0337f1ca039153a2fb2804753c41c79911231cb64522c8131855a835c84e
7
- data.tar.gz: dc7dbb5653217b35ebe050519aca650804cd89dedba4b9d56ea1457e6d095e13d9c4c6381ab03237a323b3e818bc5a926d1befadfcc224496cbb33573d3645dc
6
+ metadata.gz: 8a915465fa02505cb3844c0a91a441f7a87695e67c7d7d19e33b2e7f0021ab5c3c8f7cf3fe7058dc090a91da294927755decaff2d8cc443e2d88060642ba9d2b
7
+ data.tar.gz: 5ef2b19b3fd5edada90347f9f4d8bb78ea0feb9c553f6394f017f37ec9b8ae2d72725a0db34fd60c8fbc1b1d7ac3d2bd4523416fb4718edbcf81abaac0557d10
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.469.0 (2024-08-12)
5
+ ------------------
6
+
7
+ * Feature - This release adds new capabilities to manage On-Demand Capacity Reservations including the ability to split your reservation, move capacity between reservations, and modify the instance eligibility of your reservation.
8
+
4
9
  1.468.0 (2024-08-08)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.468.0
1
+ 1.469.0
@@ -5132,6 +5132,135 @@ module Aws::EC2
5132
5132
  req.send_request(options)
5133
5133
  end
5134
5134
 
5135
+ # Create a new Capacity Reservation by splitting the available capacity
5136
+ # of the source Capacity Reservation. The new Capacity Reservation will
5137
+ # have the same attributes as the source Capacity Reservation except for
5138
+ # tags. The source Capacity Reservation must be `active` and owned by
5139
+ # your Amazon Web Services account.
5140
+ #
5141
+ # @option params [Boolean] :dry_run
5142
+ # Checks whether you have the required permissions for the action,
5143
+ # without actually making the request, and provides an error response.
5144
+ # If you have the required permissions, the error response is
5145
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
5146
+ #
5147
+ # @option params [String] :client_token
5148
+ # Unique, case-sensitive identifier that you provide to ensure the
5149
+ # idempotency of the request. For more information, see [Ensure
5150
+ # Idempotency][1].
5151
+ #
5152
+ # **A suitable default value is auto-generated.** You should normally
5153
+ # not need to pass this option.**
5154
+ #
5155
+ #
5156
+ #
5157
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
5158
+ #
5159
+ # @option params [required, String] :source_capacity_reservation_id
5160
+ # The ID of the Capacity Reservation from which you want to split the
5161
+ # available capacity.
5162
+ #
5163
+ # @option params [required, Integer] :instance_count
5164
+ # The number of instances to split from the source Capacity Reservation.
5165
+ #
5166
+ # @option params [Array<Types::TagSpecification>] :tag_specifications
5167
+ # The tags to apply to the new Capacity Reservation.
5168
+ #
5169
+ # @return [Types::CreateCapacityReservationBySplittingResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5170
+ #
5171
+ # * {Types::CreateCapacityReservationBySplittingResult#source_capacity_reservation #source_capacity_reservation} => Types::CapacityReservation
5172
+ # * {Types::CreateCapacityReservationBySplittingResult#destination_capacity_reservation #destination_capacity_reservation} => Types::CapacityReservation
5173
+ # * {Types::CreateCapacityReservationBySplittingResult#instance_count #instance_count} => Integer
5174
+ #
5175
+ # @example Request syntax with placeholder values
5176
+ #
5177
+ # resp = client.create_capacity_reservation_by_splitting({
5178
+ # dry_run: false,
5179
+ # client_token: "String",
5180
+ # source_capacity_reservation_id: "CapacityReservationId", # required
5181
+ # instance_count: 1, # required
5182
+ # tag_specifications: [
5183
+ # {
5184
+ # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, ipam-external-resource-verification-token
5185
+ # tags: [
5186
+ # {
5187
+ # key: "String",
5188
+ # value: "String",
5189
+ # },
5190
+ # ],
5191
+ # },
5192
+ # ],
5193
+ # })
5194
+ #
5195
+ # @example Response structure
5196
+ #
5197
+ # resp.source_capacity_reservation.capacity_reservation_id #=> String
5198
+ # resp.source_capacity_reservation.owner_id #=> String
5199
+ # resp.source_capacity_reservation.capacity_reservation_arn #=> String
5200
+ # resp.source_capacity_reservation.availability_zone_id #=> String
5201
+ # resp.source_capacity_reservation.instance_type #=> String
5202
+ # resp.source_capacity_reservation.instance_platform #=> String, one of "Linux/UNIX", "Red Hat Enterprise Linux", "SUSE Linux", "Windows", "Windows with SQL Server", "Windows with SQL Server Enterprise", "Windows with SQL Server Standard", "Windows with SQL Server Web", "Linux with SQL Server Standard", "Linux with SQL Server Web", "Linux with SQL Server Enterprise", "RHEL with SQL Server Standard", "RHEL with SQL Server Enterprise", "RHEL with SQL Server Web", "RHEL with HA", "RHEL with HA and SQL Server Standard", "RHEL with HA and SQL Server Enterprise", "Ubuntu Pro"
5203
+ # resp.source_capacity_reservation.availability_zone #=> String
5204
+ # resp.source_capacity_reservation.tenancy #=> String, one of "default", "dedicated"
5205
+ # resp.source_capacity_reservation.total_instance_count #=> Integer
5206
+ # resp.source_capacity_reservation.available_instance_count #=> Integer
5207
+ # resp.source_capacity_reservation.ebs_optimized #=> Boolean
5208
+ # resp.source_capacity_reservation.ephemeral_storage #=> Boolean
5209
+ # resp.source_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
5210
+ # resp.source_capacity_reservation.start_date #=> Time
5211
+ # resp.source_capacity_reservation.end_date #=> Time
5212
+ # resp.source_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
5213
+ # resp.source_capacity_reservation.instance_match_criteria #=> String, one of "open", "targeted"
5214
+ # resp.source_capacity_reservation.create_date #=> Time
5215
+ # resp.source_capacity_reservation.tags #=> Array
5216
+ # resp.source_capacity_reservation.tags[0].key #=> String
5217
+ # resp.source_capacity_reservation.tags[0].value #=> String
5218
+ # resp.source_capacity_reservation.outpost_arn #=> String
5219
+ # resp.source_capacity_reservation.capacity_reservation_fleet_id #=> String
5220
+ # resp.source_capacity_reservation.placement_group_arn #=> String
5221
+ # resp.source_capacity_reservation.capacity_allocations #=> Array
5222
+ # resp.source_capacity_reservation.capacity_allocations[0].allocation_type #=> String, one of "used"
5223
+ # resp.source_capacity_reservation.capacity_allocations[0].count #=> Integer
5224
+ # resp.source_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
5225
+ # resp.destination_capacity_reservation.capacity_reservation_id #=> String
5226
+ # resp.destination_capacity_reservation.owner_id #=> String
5227
+ # resp.destination_capacity_reservation.capacity_reservation_arn #=> String
5228
+ # resp.destination_capacity_reservation.availability_zone_id #=> String
5229
+ # resp.destination_capacity_reservation.instance_type #=> String
5230
+ # resp.destination_capacity_reservation.instance_platform #=> String, one of "Linux/UNIX", "Red Hat Enterprise Linux", "SUSE Linux", "Windows", "Windows with SQL Server", "Windows with SQL Server Enterprise", "Windows with SQL Server Standard", "Windows with SQL Server Web", "Linux with SQL Server Standard", "Linux with SQL Server Web", "Linux with SQL Server Enterprise", "RHEL with SQL Server Standard", "RHEL with SQL Server Enterprise", "RHEL with SQL Server Web", "RHEL with HA", "RHEL with HA and SQL Server Standard", "RHEL with HA and SQL Server Enterprise", "Ubuntu Pro"
5231
+ # resp.destination_capacity_reservation.availability_zone #=> String
5232
+ # resp.destination_capacity_reservation.tenancy #=> String, one of "default", "dedicated"
5233
+ # resp.destination_capacity_reservation.total_instance_count #=> Integer
5234
+ # resp.destination_capacity_reservation.available_instance_count #=> Integer
5235
+ # resp.destination_capacity_reservation.ebs_optimized #=> Boolean
5236
+ # resp.destination_capacity_reservation.ephemeral_storage #=> Boolean
5237
+ # resp.destination_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
5238
+ # resp.destination_capacity_reservation.start_date #=> Time
5239
+ # resp.destination_capacity_reservation.end_date #=> Time
5240
+ # resp.destination_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
5241
+ # resp.destination_capacity_reservation.instance_match_criteria #=> String, one of "open", "targeted"
5242
+ # resp.destination_capacity_reservation.create_date #=> Time
5243
+ # resp.destination_capacity_reservation.tags #=> Array
5244
+ # resp.destination_capacity_reservation.tags[0].key #=> String
5245
+ # resp.destination_capacity_reservation.tags[0].value #=> String
5246
+ # resp.destination_capacity_reservation.outpost_arn #=> String
5247
+ # resp.destination_capacity_reservation.capacity_reservation_fleet_id #=> String
5248
+ # resp.destination_capacity_reservation.placement_group_arn #=> String
5249
+ # resp.destination_capacity_reservation.capacity_allocations #=> Array
5250
+ # resp.destination_capacity_reservation.capacity_allocations[0].allocation_type #=> String, one of "used"
5251
+ # resp.destination_capacity_reservation.capacity_allocations[0].count #=> Integer
5252
+ # resp.destination_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
5253
+ # resp.instance_count #=> Integer
5254
+ #
5255
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservationBySplitting AWS API Documentation
5256
+ #
5257
+ # @overload create_capacity_reservation_by_splitting(params = {})
5258
+ # @param [Hash] params ({})
5259
+ def create_capacity_reservation_by_splitting(params = {}, options = {})
5260
+ req = build_request(:create_capacity_reservation_by_splitting, params)
5261
+ req.send_request(options)
5262
+ end
5263
+
5135
5264
  # Creates a Capacity Reservation Fleet. For more information, see
5136
5265
  # [Create a Capacity Reservation Fleet][1] in the *Amazon EC2 User
5137
5266
  # Guide*.
@@ -10723,7 +10852,7 @@ module Aws::EC2
10723
10852
  # The Amazon Web Services account ID.
10724
10853
  #
10725
10854
  # @option params [String] :aws_service
10726
- # The Amazon Web Service. Currently not supported.
10855
+ # The Amazon Web Services service. Currently not supported.
10727
10856
  #
10728
10857
  # @option params [required, String] :permission
10729
10858
  # The type of permission to grant.
@@ -19779,8 +19908,8 @@ module Aws::EC2
19779
19908
  # days, the source account can view the pending transfer by using this
19780
19909
  # action. After seven days, the transfer expires and ownership of the
19781
19910
  # Elastic IP address returns to the source account. Accepted transfers
19782
- # are visible to the source account for three days after the transfers
19783
- # have been accepted.
19911
+ # are visible to the source account for 14 days after the transfers have
19912
+ # been accepted.
19784
19913
  #
19785
19914
  #
19786
19915
  #
@@ -30092,7 +30221,8 @@ module Aws::EC2
30092
30221
  # * `network-interface-permission.aws-account-id` - The Amazon Web
30093
30222
  # Services account ID.
30094
30223
  #
30095
- # * `network-interface-permission.aws-service` - The Amazon Web Service.
30224
+ # * `network-interface-permission.aws-service` - The Amazon Web Services
30225
+ # service.
30096
30226
  #
30097
30227
  # * `network-interface-permission.permission` - The type of permission
30098
30228
  # (`INSTANCE-ATTACH` \| `EIP-ASSOCIATE`).
@@ -30251,8 +30381,8 @@ module Aws::EC2
30251
30381
  # principal or service that created the network interface.
30252
30382
  #
30253
30383
  # * `requester-managed` - Indicates whether the network interface is
30254
- # being managed by an Amazon Web Service (for example, Amazon Web
30255
- # Services Management Console, Auto Scaling, and so on).
30384
+ # being managed by an Amazon Web Services service (for example, Amazon
30385
+ # Web Services Management Console, Auto Scaling, and so on).
30256
30386
  #
30257
30387
  # * `source-dest-check` - Indicates whether the network interface
30258
30388
  # performs source/destination checking. A value of `true` means
@@ -31627,7 +31757,7 @@ module Aws::EC2
31627
31757
  # in a route in the route table.
31628
31758
  #
31629
31759
  # * `route.destination-prefix-list-id` - The ID (prefix) of the Amazon
31630
- # Web Service specified in a route in the table.
31760
+ # Web Services service specified in a route in the table.
31631
31761
  #
31632
31762
  # * `route.egress-only-internet-gateway-id` - The ID of an egress-only
31633
31763
  # Internet gateway specified in a route in the route table.
@@ -46341,13 +46471,18 @@ module Aws::EC2
46341
46471
  req.send_request(options)
46342
46472
  end
46343
46473
 
46344
- # Modifies a Capacity Reservation's capacity and the conditions under
46345
- # which it is to be released. You cannot change a Capacity
46346
- # Reservation's instance type, EBS optimization, instance store
46347
- # settings, platform, Availability Zone, or instance eligibility. If you
46348
- # need to modify any of these attributes, we recommend that you cancel
46349
- # the Capacity Reservation, and then create a new one with the required
46350
- # attributes.
46474
+ # Modifies a Capacity Reservation's capacity, instance eligibility, and
46475
+ # the conditions under which it is to be released. You can't modify a
46476
+ # Capacity Reservation's instance type, EBS optimization, platform,
46477
+ # instance store settings, Availability Zone, or tenancy. If you need to
46478
+ # modify any of these attributes, we recommend that you cancel the
46479
+ # Capacity Reservation, and then create a new one with the required
46480
+ # attributes. For more information, see [Modify an active Capacity
46481
+ # Reservation][1].
46482
+ #
46483
+ #
46484
+ #
46485
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html
46351
46486
  #
46352
46487
  # @option params [required, String] :capacity_reservation_id
46353
46488
  # The ID of the Capacity Reservation.
@@ -46397,6 +46532,18 @@ module Aws::EC2
46397
46532
  # @option params [String] :additional_info
46398
46533
  # Reserved for future use.
46399
46534
  #
46535
+ # @option params [String] :instance_match_criteria
46536
+ # The matching criteria (instance eligibility) that you want to use in
46537
+ # the modified Capacity Reservation. If you change the instance
46538
+ # eligibility of an existing Capacity Reservation from `targeted` to
46539
+ # `open`, any running instances that match the attributes of the
46540
+ # Capacity Reservation, have the `CapacityReservationPreference` set to
46541
+ # `open`, and are not yet running in the Capacity Reservation, will
46542
+ # automatically use the modified Capacity Reservation.
46543
+ #
46544
+ # To modify the instance eligibility, the Capacity Reservation must be
46545
+ # completely idle (zero usage).
46546
+ #
46400
46547
  # @return [Types::ModifyCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
46401
46548
  #
46402
46549
  # * {Types::ModifyCapacityReservationResult#return #return} => Boolean
@@ -46411,6 +46558,7 @@ module Aws::EC2
46411
46558
  # accept: false,
46412
46559
  # dry_run: false,
46413
46560
  # additional_info: "String",
46561
+ # instance_match_criteria: "open", # accepts open, targeted
46414
46562
  # })
46415
46563
  #
46416
46564
  # @example Response structure
@@ -52387,6 +52535,138 @@ module Aws::EC2
52387
52535
  req.send_request(options)
52388
52536
  end
52389
52537
 
52538
+ # Move available capacity from a source Capacity Reservation to a
52539
+ # destination Capacity Reservation. The source Capacity Reservation and
52540
+ # the destination Capacity Reservation must be `active`, owned by your
52541
+ # Amazon Web Services account, and share the following:
52542
+ #
52543
+ # * Instance type
52544
+ #
52545
+ # * Platform
52546
+ #
52547
+ # * Availability Zone
52548
+ #
52549
+ # * Tenancy
52550
+ #
52551
+ # * Placement group
52552
+ #
52553
+ # * Capacity Reservation end time - `At specific time` or `Manually`.
52554
+ #
52555
+ # @option params [Boolean] :dry_run
52556
+ # Checks whether you have the required permissions for the action,
52557
+ # without actually making the request, and provides an error response.
52558
+ # If you have the required permissions, the error response is
52559
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
52560
+ #
52561
+ # @option params [String] :client_token
52562
+ # Unique, case-sensitive identifier that you provide to ensure the
52563
+ # idempotency of the request. For more information, see [Ensure
52564
+ # Idempotency][1].
52565
+ #
52566
+ # **A suitable default value is auto-generated.** You should normally
52567
+ # not need to pass this option.**
52568
+ #
52569
+ #
52570
+ #
52571
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
52572
+ #
52573
+ # @option params [required, String] :source_capacity_reservation_id
52574
+ # The ID of the Capacity Reservation from which you want to move
52575
+ # capacity.
52576
+ #
52577
+ # @option params [required, String] :destination_capacity_reservation_id
52578
+ # The ID of the Capacity Reservation that you want to move capacity
52579
+ # into.
52580
+ #
52581
+ # @option params [required, Integer] :instance_count
52582
+ # The number of instances that you want to move from the source Capacity
52583
+ # Reservation.
52584
+ #
52585
+ # @return [Types::MoveCapacityReservationInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
52586
+ #
52587
+ # * {Types::MoveCapacityReservationInstancesResult#source_capacity_reservation #source_capacity_reservation} => Types::CapacityReservation
52588
+ # * {Types::MoveCapacityReservationInstancesResult#destination_capacity_reservation #destination_capacity_reservation} => Types::CapacityReservation
52589
+ # * {Types::MoveCapacityReservationInstancesResult#instance_count #instance_count} => Integer
52590
+ #
52591
+ # @example Request syntax with placeholder values
52592
+ #
52593
+ # resp = client.move_capacity_reservation_instances({
52594
+ # dry_run: false,
52595
+ # client_token: "String",
52596
+ # source_capacity_reservation_id: "CapacityReservationId", # required
52597
+ # destination_capacity_reservation_id: "CapacityReservationId", # required
52598
+ # instance_count: 1, # required
52599
+ # })
52600
+ #
52601
+ # @example Response structure
52602
+ #
52603
+ # resp.source_capacity_reservation.capacity_reservation_id #=> String
52604
+ # resp.source_capacity_reservation.owner_id #=> String
52605
+ # resp.source_capacity_reservation.capacity_reservation_arn #=> String
52606
+ # resp.source_capacity_reservation.availability_zone_id #=> String
52607
+ # resp.source_capacity_reservation.instance_type #=> String
52608
+ # resp.source_capacity_reservation.instance_platform #=> String, one of "Linux/UNIX", "Red Hat Enterprise Linux", "SUSE Linux", "Windows", "Windows with SQL Server", "Windows with SQL Server Enterprise", "Windows with SQL Server Standard", "Windows with SQL Server Web", "Linux with SQL Server Standard", "Linux with SQL Server Web", "Linux with SQL Server Enterprise", "RHEL with SQL Server Standard", "RHEL with SQL Server Enterprise", "RHEL with SQL Server Web", "RHEL with HA", "RHEL with HA and SQL Server Standard", "RHEL with HA and SQL Server Enterprise", "Ubuntu Pro"
52609
+ # resp.source_capacity_reservation.availability_zone #=> String
52610
+ # resp.source_capacity_reservation.tenancy #=> String, one of "default", "dedicated"
52611
+ # resp.source_capacity_reservation.total_instance_count #=> Integer
52612
+ # resp.source_capacity_reservation.available_instance_count #=> Integer
52613
+ # resp.source_capacity_reservation.ebs_optimized #=> Boolean
52614
+ # resp.source_capacity_reservation.ephemeral_storage #=> Boolean
52615
+ # resp.source_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
52616
+ # resp.source_capacity_reservation.start_date #=> Time
52617
+ # resp.source_capacity_reservation.end_date #=> Time
52618
+ # resp.source_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
52619
+ # resp.source_capacity_reservation.instance_match_criteria #=> String, one of "open", "targeted"
52620
+ # resp.source_capacity_reservation.create_date #=> Time
52621
+ # resp.source_capacity_reservation.tags #=> Array
52622
+ # resp.source_capacity_reservation.tags[0].key #=> String
52623
+ # resp.source_capacity_reservation.tags[0].value #=> String
52624
+ # resp.source_capacity_reservation.outpost_arn #=> String
52625
+ # resp.source_capacity_reservation.capacity_reservation_fleet_id #=> String
52626
+ # resp.source_capacity_reservation.placement_group_arn #=> String
52627
+ # resp.source_capacity_reservation.capacity_allocations #=> Array
52628
+ # resp.source_capacity_reservation.capacity_allocations[0].allocation_type #=> String, one of "used"
52629
+ # resp.source_capacity_reservation.capacity_allocations[0].count #=> Integer
52630
+ # resp.source_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
52631
+ # resp.destination_capacity_reservation.capacity_reservation_id #=> String
52632
+ # resp.destination_capacity_reservation.owner_id #=> String
52633
+ # resp.destination_capacity_reservation.capacity_reservation_arn #=> String
52634
+ # resp.destination_capacity_reservation.availability_zone_id #=> String
52635
+ # resp.destination_capacity_reservation.instance_type #=> String
52636
+ # resp.destination_capacity_reservation.instance_platform #=> String, one of "Linux/UNIX", "Red Hat Enterprise Linux", "SUSE Linux", "Windows", "Windows with SQL Server", "Windows with SQL Server Enterprise", "Windows with SQL Server Standard", "Windows with SQL Server Web", "Linux with SQL Server Standard", "Linux with SQL Server Web", "Linux with SQL Server Enterprise", "RHEL with SQL Server Standard", "RHEL with SQL Server Enterprise", "RHEL with SQL Server Web", "RHEL with HA", "RHEL with HA and SQL Server Standard", "RHEL with HA and SQL Server Enterprise", "Ubuntu Pro"
52637
+ # resp.destination_capacity_reservation.availability_zone #=> String
52638
+ # resp.destination_capacity_reservation.tenancy #=> String, one of "default", "dedicated"
52639
+ # resp.destination_capacity_reservation.total_instance_count #=> Integer
52640
+ # resp.destination_capacity_reservation.available_instance_count #=> Integer
52641
+ # resp.destination_capacity_reservation.ebs_optimized #=> Boolean
52642
+ # resp.destination_capacity_reservation.ephemeral_storage #=> Boolean
52643
+ # resp.destination_capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed", "scheduled", "payment-pending", "payment-failed"
52644
+ # resp.destination_capacity_reservation.start_date #=> Time
52645
+ # resp.destination_capacity_reservation.end_date #=> Time
52646
+ # resp.destination_capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
52647
+ # resp.destination_capacity_reservation.instance_match_criteria #=> String, one of "open", "targeted"
52648
+ # resp.destination_capacity_reservation.create_date #=> Time
52649
+ # resp.destination_capacity_reservation.tags #=> Array
52650
+ # resp.destination_capacity_reservation.tags[0].key #=> String
52651
+ # resp.destination_capacity_reservation.tags[0].value #=> String
52652
+ # resp.destination_capacity_reservation.outpost_arn #=> String
52653
+ # resp.destination_capacity_reservation.capacity_reservation_fleet_id #=> String
52654
+ # resp.destination_capacity_reservation.placement_group_arn #=> String
52655
+ # resp.destination_capacity_reservation.capacity_allocations #=> Array
52656
+ # resp.destination_capacity_reservation.capacity_allocations[0].allocation_type #=> String, one of "used"
52657
+ # resp.destination_capacity_reservation.capacity_allocations[0].count #=> Integer
52658
+ # resp.destination_capacity_reservation.reservation_type #=> String, one of "default", "capacity-block"
52659
+ # resp.instance_count #=> Integer
52660
+ #
52661
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveCapacityReservationInstances AWS API Documentation
52662
+ #
52663
+ # @overload move_capacity_reservation_instances(params = {})
52664
+ # @param [Hash] params ({})
52665
+ def move_capacity_reservation_instances(params = {}, options = {})
52666
+ req = build_request(:move_capacity_reservation_instances, params)
52667
+ req.send_request(options)
52668
+ end
52669
+
52390
52670
  # Provisions an IPv4 or IPv6 address range for use with your Amazon Web
52391
52671
  # Services resources through bring your own IP addresses (BYOIP) and
52392
52672
  # creates a corresponding address pool. After the address range is
@@ -59810,7 +60090,7 @@ module Aws::EC2
59810
60090
  params: params,
59811
60091
  config: config)
59812
60092
  context[:gem_name] = 'aws-sdk-ec2'
59813
- context[:gem_version] = '1.468.0'
60093
+ context[:gem_version] = '1.469.0'
59814
60094
  Seahorse::Client::Request.new(handlers, context)
59815
60095
  end
59816
60096
 
@@ -401,6 +401,8 @@ module Aws::EC2
401
401
  CpuManufacturerSet = Shapes::ListShape.new(name: 'CpuManufacturerSet')
402
402
  CpuOptions = Shapes::StructureShape.new(name: 'CpuOptions')
403
403
  CpuOptionsRequest = Shapes::StructureShape.new(name: 'CpuOptionsRequest')
404
+ CreateCapacityReservationBySplittingRequest = Shapes::StructureShape.new(name: 'CreateCapacityReservationBySplittingRequest')
405
+ CreateCapacityReservationBySplittingResult = Shapes::StructureShape.new(name: 'CreateCapacityReservationBySplittingResult')
404
406
  CreateCapacityReservationFleetRequest = Shapes::StructureShape.new(name: 'CreateCapacityReservationFleetRequest')
405
407
  CreateCapacityReservationFleetResult = Shapes::StructureShape.new(name: 'CreateCapacityReservationFleetResult')
406
408
  CreateCapacityReservationRequest = Shapes::StructureShape.new(name: 'CreateCapacityReservationRequest')
@@ -2235,6 +2237,8 @@ module Aws::EC2
2235
2237
  MoveAddressToVpcResult = Shapes::StructureShape.new(name: 'MoveAddressToVpcResult')
2236
2238
  MoveByoipCidrToIpamRequest = Shapes::StructureShape.new(name: 'MoveByoipCidrToIpamRequest')
2237
2239
  MoveByoipCidrToIpamResult = Shapes::StructureShape.new(name: 'MoveByoipCidrToIpamResult')
2240
+ MoveCapacityReservationInstancesRequest = Shapes::StructureShape.new(name: 'MoveCapacityReservationInstancesRequest')
2241
+ MoveCapacityReservationInstancesResult = Shapes::StructureShape.new(name: 'MoveCapacityReservationInstancesResult')
2238
2242
  MoveStatus = Shapes::StringShape.new(name: 'MoveStatus')
2239
2243
  MovingAddressStatus = Shapes::StructureShape.new(name: 'MovingAddressStatus')
2240
2244
  MovingAddressStatusSet = Shapes::ListShape.new(name: 'MovingAddressStatusSet')
@@ -4524,6 +4528,18 @@ module Aws::EC2
4524
4528
  CpuOptionsRequest.add_member(:amd_sev_snp, Shapes::ShapeRef.new(shape: AmdSevSnpSpecification, location_name: "AmdSevSnp"))
4525
4529
  CpuOptionsRequest.struct_class = Types::CpuOptionsRequest
4526
4530
 
4531
+ CreateCapacityReservationBySplittingRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
4532
+ CreateCapacityReservationBySplittingRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
4533
+ CreateCapacityReservationBySplittingRequest.add_member(:source_capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, required: true, location_name: "SourceCapacityReservationId"))
4534
+ CreateCapacityReservationBySplittingRequest.add_member(:instance_count, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "InstanceCount"))
4535
+ CreateCapacityReservationBySplittingRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
4536
+ CreateCapacityReservationBySplittingRequest.struct_class = Types::CreateCapacityReservationBySplittingRequest
4537
+
4538
+ CreateCapacityReservationBySplittingResult.add_member(:source_capacity_reservation, Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "sourceCapacityReservation"))
4539
+ CreateCapacityReservationBySplittingResult.add_member(:destination_capacity_reservation, Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "destinationCapacityReservation"))
4540
+ CreateCapacityReservationBySplittingResult.add_member(:instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "instanceCount"))
4541
+ CreateCapacityReservationBySplittingResult.struct_class = Types::CreateCapacityReservationBySplittingResult
4542
+
4527
4543
  CreateCapacityReservationFleetRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: String, location_name: "AllocationStrategy"))
4528
4544
  CreateCapacityReservationFleetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
4529
4545
  CreateCapacityReservationFleetRequest.add_member(:instance_type_specifications, Shapes::ShapeRef.new(shape: ReservationFleetInstanceSpecificationList, required: true, location_name: "InstanceTypeSpecification"))
@@ -11469,6 +11485,7 @@ module Aws::EC2
11469
11485
  ModifyCapacityReservationRequest.add_member(:accept, Shapes::ShapeRef.new(shape: Boolean, location_name: "Accept"))
11470
11486
  ModifyCapacityReservationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
11471
11487
  ModifyCapacityReservationRequest.add_member(:additional_info, Shapes::ShapeRef.new(shape: String, location_name: "AdditionalInfo"))
11488
+ ModifyCapacityReservationRequest.add_member(:instance_match_criteria, Shapes::ShapeRef.new(shape: InstanceMatchCriteria, location_name: "InstanceMatchCriteria"))
11472
11489
  ModifyCapacityReservationRequest.struct_class = Types::ModifyCapacityReservationRequest
11473
11490
 
11474
11491
  ModifyCapacityReservationResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
@@ -12220,6 +12237,18 @@ module Aws::EC2
12220
12237
  MoveByoipCidrToIpamResult.add_member(:byoip_cidr, Shapes::ShapeRef.new(shape: ByoipCidr, location_name: "byoipCidr"))
12221
12238
  MoveByoipCidrToIpamResult.struct_class = Types::MoveByoipCidrToIpamResult
12222
12239
 
12240
+ MoveCapacityReservationInstancesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
12241
+ MoveCapacityReservationInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
12242
+ MoveCapacityReservationInstancesRequest.add_member(:source_capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, required: true, location_name: "SourceCapacityReservationId"))
12243
+ MoveCapacityReservationInstancesRequest.add_member(:destination_capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, required: true, location_name: "DestinationCapacityReservationId"))
12244
+ MoveCapacityReservationInstancesRequest.add_member(:instance_count, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "InstanceCount"))
12245
+ MoveCapacityReservationInstancesRequest.struct_class = Types::MoveCapacityReservationInstancesRequest
12246
+
12247
+ MoveCapacityReservationInstancesResult.add_member(:source_capacity_reservation, Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "sourceCapacityReservation"))
12248
+ MoveCapacityReservationInstancesResult.add_member(:destination_capacity_reservation, Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "destinationCapacityReservation"))
12249
+ MoveCapacityReservationInstancesResult.add_member(:instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "instanceCount"))
12250
+ MoveCapacityReservationInstancesResult.struct_class = Types::MoveCapacityReservationInstancesResult
12251
+
12223
12252
  MovingAddressStatus.add_member(:move_status, Shapes::ShapeRef.new(shape: MoveStatus, location_name: "moveStatus"))
12224
12253
  MovingAddressStatus.add_member(:public_ip, Shapes::ShapeRef.new(shape: String, location_name: "publicIp"))
12225
12254
  MovingAddressStatus.struct_class = Types::MovingAddressStatus
@@ -16270,6 +16299,14 @@ module Aws::EC2
16270
16299
  o.output = Shapes::ShapeRef.new(shape: CreateCapacityReservationResult)
16271
16300
  end)
16272
16301
 
16302
+ api.add_operation(:create_capacity_reservation_by_splitting, Seahorse::Model::Operation.new.tap do |o|
16303
+ o.name = "CreateCapacityReservationBySplitting"
16304
+ o.http_method = "POST"
16305
+ o.http_request_uri = "/"
16306
+ o.input = Shapes::ShapeRef.new(shape: CreateCapacityReservationBySplittingRequest)
16307
+ o.output = Shapes::ShapeRef.new(shape: CreateCapacityReservationBySplittingResult)
16308
+ end)
16309
+
16273
16310
  api.add_operation(:create_capacity_reservation_fleet, Seahorse::Model::Operation.new.tap do |o|
16274
16311
  o.name = "CreateCapacityReservationFleet"
16275
16312
  o.http_method = "POST"
@@ -21113,6 +21150,14 @@ module Aws::EC2
21113
21150
  o.output = Shapes::ShapeRef.new(shape: MoveByoipCidrToIpamResult)
21114
21151
  end)
21115
21152
 
21153
+ api.add_operation(:move_capacity_reservation_instances, Seahorse::Model::Operation.new.tap do |o|
21154
+ o.name = "MoveCapacityReservationInstances"
21155
+ o.http_method = "POST"
21156
+ o.http_request_uri = "/"
21157
+ o.input = Shapes::ShapeRef.new(shape: MoveCapacityReservationInstancesRequest)
21158
+ o.output = Shapes::ShapeRef.new(shape: MoveCapacityReservationInstancesResult)
21159
+ end)
21160
+
21116
21161
  api.add_operation(:provision_byoip_cidr, Seahorse::Model::Operation.new.tap do |o|
21117
21162
  o.name = "ProvisionByoipCidr"
21118
21163
  o.http_method = "POST"
@@ -796,6 +796,20 @@ module Aws::EC2
796
796
  end
797
797
  end
798
798
 
799
+ class CreateCapacityReservationBySplitting
800
+ def self.build(context)
801
+ unless context.config.regional_endpoint
802
+ endpoint = context.config.endpoint.to_s
803
+ end
804
+ Aws::EC2::EndpointParameters.new(
805
+ region: context.config.region,
806
+ use_dual_stack: context.config.use_dualstack_endpoint,
807
+ use_fips: context.config.use_fips_endpoint,
808
+ endpoint: endpoint,
809
+ )
810
+ end
811
+ end
812
+
799
813
  class CreateCapacityReservationFleet
800
814
  def self.build(context)
801
815
  unless context.config.regional_endpoint
@@ -7824,6 +7838,20 @@ module Aws::EC2
7824
7838
  end
7825
7839
  end
7826
7840
 
7841
+ class MoveCapacityReservationInstances
7842
+ def self.build(context)
7843
+ unless context.config.regional_endpoint
7844
+ endpoint = context.config.endpoint.to_s
7845
+ end
7846
+ Aws::EC2::EndpointParameters.new(
7847
+ region: context.config.region,
7848
+ use_dual_stack: context.config.use_dualstack_endpoint,
7849
+ use_fips: context.config.use_fips_endpoint,
7850
+ endpoint: endpoint,
7851
+ )
7852
+ end
7853
+ end
7854
+
7827
7855
  class ProvisionByoipCidr
7828
7856
  def self.build(context)
7829
7857
  unless context.config.regional_endpoint
@@ -170,6 +170,8 @@ module Aws::EC2
170
170
  Aws::EC2::Endpoints::CopySnapshot.build(context)
171
171
  when :create_capacity_reservation
172
172
  Aws::EC2::Endpoints::CreateCapacityReservation.build(context)
173
+ when :create_capacity_reservation_by_splitting
174
+ Aws::EC2::Endpoints::CreateCapacityReservationBySplitting.build(context)
173
175
  when :create_capacity_reservation_fleet
174
176
  Aws::EC2::Endpoints::CreateCapacityReservationFleet.build(context)
175
177
  when :create_carrier_gateway
@@ -1174,6 +1176,8 @@ module Aws::EC2
1174
1176
  Aws::EC2::Endpoints::MoveAddressToVpc.build(context)
1175
1177
  when :move_byoip_cidr_to_ipam
1176
1178
  Aws::EC2::Endpoints::MoveByoipCidrToIpam.build(context)
1179
+ when :move_capacity_reservation_instances
1180
+ Aws::EC2::Endpoints::MoveCapacityReservationInstances.build(context)
1177
1181
  when :provision_byoip_cidr
1178
1182
  Aws::EC2::Endpoints::ProvisionByoipCidr.build(context)
1179
1183
  when :provision_ipam_byoasn
@@ -3330,8 +3330,8 @@ module Aws::EC2
3330
3330
  # principal or service that created the network interface.
3331
3331
  #
3332
3332
  # * `requester-managed` - Indicates whether the network interface is
3333
- # being managed by an Amazon Web Service (for example, Amazon Web
3334
- # Services Management Console, Auto Scaling, and so on).
3333
+ # being managed by an Amazon Web Services service (for example, Amazon
3334
+ # Web Services Management Console, Auto Scaling, and so on).
3335
3335
  #
3336
3336
  # * `source-dest-check` - Indicates whether the network interface
3337
3337
  # performs source/destination checking. A value of `true` means
@@ -3534,7 +3534,7 @@ module Aws::EC2
3534
3534
  # in a route in the route table.
3535
3535
  #
3536
3536
  # * `route.destination-prefix-list-id` - The ID (prefix) of the Amazon
3537
- # Web Service specified in a route in the table.
3537
+ # Web Services service specified in a route in the table.
3538
3538
  #
3539
3539
  # * `route.egress-only-internet-gateway-id` - The ID of an egress-only
3540
3540
  # Internet gateway specified in a route in the route table.
@@ -48,7 +48,7 @@ module Aws::EC2
48
48
  data[:destination_ipv_6_cidr_block]
49
49
  end
50
50
 
51
- # The prefix of the Amazon Web Service.
51
+ # The prefix of the Amazon Web Services service.
52
52
  # @return [String]
53
53
  def destination_prefix_list_id
54
54
  data[:destination_prefix_list_id]
@@ -1786,8 +1786,8 @@ module Aws::EC2
1786
1786
  # principal or service that created the network interface.
1787
1787
  #
1788
1788
  # * `requester-managed` - Indicates whether the network interface is
1789
- # being managed by an Amazon Web Service (for example, Amazon Web
1790
- # Services Management Console, Auto Scaling, and so on).
1789
+ # being managed by an Amazon Web Services service (for example, Amazon
1790
+ # Web Services Management Console, Auto Scaling, and so on).
1791
1791
  #
1792
1792
  # * `source-dest-check` - Indicates whether the network interface
1793
1793
  # performs source/destination checking. A value of `true` means
@@ -1413,7 +1413,7 @@ module Aws::EC2
1413
1413
  # @return [String]
1414
1414
  #
1415
1415
  # @!attribute [rw] destination_prefix_list_id
1416
- # The prefix of the Amazon Web Service.
1416
+ # The prefix of the Amazon Web Services service.
1417
1417
  # @return [String]
1418
1418
  #
1419
1419
  # @!attribute [rw] egress_only_internet_gateway_id
@@ -6707,6 +6707,76 @@ module Aws::EC2
6707
6707
  include Aws::Structure
6708
6708
  end
6709
6709
 
6710
+ # @!attribute [rw] dry_run
6711
+ # Checks whether you have the required permissions for the action,
6712
+ # without actually making the request, and provides an error response.
6713
+ # If you have the required permissions, the error response is
6714
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
6715
+ # @return [Boolean]
6716
+ #
6717
+ # @!attribute [rw] client_token
6718
+ # Unique, case-sensitive identifier that you provide to ensure the
6719
+ # idempotency of the request. For more information, see [Ensure
6720
+ # Idempotency][1].
6721
+ #
6722
+ # **A suitable default value is auto-generated.** You should normally
6723
+ # not need to pass this option.
6724
+ #
6725
+ #
6726
+ #
6727
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
6728
+ # @return [String]
6729
+ #
6730
+ # @!attribute [rw] source_capacity_reservation_id
6731
+ # The ID of the Capacity Reservation from which you want to split the
6732
+ # available capacity.
6733
+ # @return [String]
6734
+ #
6735
+ # @!attribute [rw] instance_count
6736
+ # The number of instances to split from the source Capacity
6737
+ # Reservation.
6738
+ # @return [Integer]
6739
+ #
6740
+ # @!attribute [rw] tag_specifications
6741
+ # The tags to apply to the new Capacity Reservation.
6742
+ # @return [Array<Types::TagSpecification>]
6743
+ #
6744
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservationBySplittingRequest AWS API Documentation
6745
+ #
6746
+ class CreateCapacityReservationBySplittingRequest < Struct.new(
6747
+ :dry_run,
6748
+ :client_token,
6749
+ :source_capacity_reservation_id,
6750
+ :instance_count,
6751
+ :tag_specifications)
6752
+ SENSITIVE = []
6753
+ include Aws::Structure
6754
+ end
6755
+
6756
+ # @!attribute [rw] source_capacity_reservation
6757
+ # Information about the source Capacity Reservation.
6758
+ # @return [Types::CapacityReservation]
6759
+ #
6760
+ # @!attribute [rw] destination_capacity_reservation
6761
+ # Information about the destination Capacity Reservation.
6762
+ # @return [Types::CapacityReservation]
6763
+ #
6764
+ # @!attribute [rw] instance_count
6765
+ # The number of instances in the new Capacity Reservation. The number
6766
+ # of instances in the source Capacity Reservation was reduced by this
6767
+ # amount.
6768
+ # @return [Integer]
6769
+ #
6770
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservationBySplittingResult AWS API Documentation
6771
+ #
6772
+ class CreateCapacityReservationBySplittingResult < Struct.new(
6773
+ :source_capacity_reservation,
6774
+ :destination_capacity_reservation,
6775
+ :instance_count)
6776
+ SENSITIVE = []
6777
+ include Aws::Structure
6778
+ end
6779
+
6710
6780
  # @!attribute [rw] allocation_strategy
6711
6781
  # The strategy used by the Capacity Reservation Fleet to determine
6712
6782
  # which of the specified instance types to use. Currently, only the
@@ -9847,7 +9917,7 @@ module Aws::EC2
9847
9917
  # @return [String]
9848
9918
  #
9849
9919
  # @!attribute [rw] aws_service
9850
- # The Amazon Web Service. Currently not supported.
9920
+ # The Amazon Web Services service. Currently not supported.
9851
9921
  # @return [String]
9852
9922
  #
9853
9923
  # @!attribute [rw] permission
@@ -23114,7 +23184,7 @@ module Aws::EC2
23114
23184
  # Services account ID.
23115
23185
  #
23116
23186
  # * `network-interface-permission.aws-service` - The Amazon Web
23117
- # Service.
23187
+ # Services service.
23118
23188
  #
23119
23189
  # * `network-interface-permission.permission` - The type of permission
23120
23190
  # (`INSTANCE-ATTACH` \| `EIP-ASSOCIATE`).
@@ -23259,8 +23329,8 @@ module Aws::EC2
23259
23329
  # the principal or service that created the network interface.
23260
23330
  #
23261
23331
  # * `requester-managed` - Indicates whether the network interface is
23262
- # being managed by an Amazon Web Service (for example, Amazon Web
23263
- # Services Management Console, Auto Scaling, and so on).
23332
+ # being managed by an Amazon Web Services service (for example,
23333
+ # Amazon Web Services Management Console, Auto Scaling, and so on).
23264
23334
  #
23265
23335
  # * `source-dest-check` - Indicates whether the network interface
23266
23336
  # performs source/destination checking. A value of `true` means
@@ -24153,7 +24223,7 @@ module Aws::EC2
24153
24223
  # specified in a route in the route table.
24154
24224
  #
24155
24225
  # * `route.destination-prefix-list-id` - The ID (prefix) of the Amazon
24156
- # Web Service specified in a route in the table.
24226
+ # Web Services service specified in a route in the table.
24157
24227
  #
24158
24228
  # * `route.egress-only-internet-gateway-id` - The ID of an egress-only
24159
24229
  # Internet gateway specified in a route in the route table.
@@ -47551,6 +47621,19 @@ module Aws::EC2
47551
47621
  # Reserved for future use.
47552
47622
  # @return [String]
47553
47623
  #
47624
+ # @!attribute [rw] instance_match_criteria
47625
+ # The matching criteria (instance eligibility) that you want to use in
47626
+ # the modified Capacity Reservation. If you change the instance
47627
+ # eligibility of an existing Capacity Reservation from `targeted` to
47628
+ # `open`, any running instances that match the attributes of the
47629
+ # Capacity Reservation, have the `CapacityReservationPreference` set
47630
+ # to `open`, and are not yet running in the Capacity Reservation, will
47631
+ # automatically use the modified Capacity Reservation.
47632
+ #
47633
+ # To modify the instance eligibility, the Capacity Reservation must be
47634
+ # completely idle (zero usage).
47635
+ # @return [String]
47636
+ #
47554
47637
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservationRequest AWS API Documentation
47555
47638
  #
47556
47639
  class ModifyCapacityReservationRequest < Struct.new(
@@ -47560,7 +47643,8 @@ module Aws::EC2
47560
47643
  :end_date_type,
47561
47644
  :accept,
47562
47645
  :dry_run,
47563
- :additional_info)
47646
+ :additional_info,
47647
+ :instance_match_criteria)
47564
47648
  SENSITIVE = []
47565
47649
  include Aws::Structure
47566
47650
  end
@@ -52000,6 +52084,76 @@ module Aws::EC2
52000
52084
  include Aws::Structure
52001
52085
  end
52002
52086
 
52087
+ # @!attribute [rw] dry_run
52088
+ # Checks whether you have the required permissions for the action,
52089
+ # without actually making the request, and provides an error response.
52090
+ # If you have the required permissions, the error response is
52091
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
52092
+ # @return [Boolean]
52093
+ #
52094
+ # @!attribute [rw] client_token
52095
+ # Unique, case-sensitive identifier that you provide to ensure the
52096
+ # idempotency of the request. For more information, see [Ensure
52097
+ # Idempotency][1].
52098
+ #
52099
+ # **A suitable default value is auto-generated.** You should normally
52100
+ # not need to pass this option.
52101
+ #
52102
+ #
52103
+ #
52104
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
52105
+ # @return [String]
52106
+ #
52107
+ # @!attribute [rw] source_capacity_reservation_id
52108
+ # The ID of the Capacity Reservation from which you want to move
52109
+ # capacity.
52110
+ # @return [String]
52111
+ #
52112
+ # @!attribute [rw] destination_capacity_reservation_id
52113
+ # The ID of the Capacity Reservation that you want to move capacity
52114
+ # into.
52115
+ # @return [String]
52116
+ #
52117
+ # @!attribute [rw] instance_count
52118
+ # The number of instances that you want to move from the source
52119
+ # Capacity Reservation.
52120
+ # @return [Integer]
52121
+ #
52122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveCapacityReservationInstancesRequest AWS API Documentation
52123
+ #
52124
+ class MoveCapacityReservationInstancesRequest < Struct.new(
52125
+ :dry_run,
52126
+ :client_token,
52127
+ :source_capacity_reservation_id,
52128
+ :destination_capacity_reservation_id,
52129
+ :instance_count)
52130
+ SENSITIVE = []
52131
+ include Aws::Structure
52132
+ end
52133
+
52134
+ # @!attribute [rw] source_capacity_reservation
52135
+ # Information about the source Capacity Reservation.
52136
+ # @return [Types::CapacityReservation]
52137
+ #
52138
+ # @!attribute [rw] destination_capacity_reservation
52139
+ # Information about the destination Capacity Reservation.
52140
+ # @return [Types::CapacityReservation]
52141
+ #
52142
+ # @!attribute [rw] instance_count
52143
+ # The number of instances that were moved from the source Capacity
52144
+ # Reservation to the destination Capacity Reservation.
52145
+ # @return [Integer]
52146
+ #
52147
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MoveCapacityReservationInstancesResult AWS API Documentation
52148
+ #
52149
+ class MoveCapacityReservationInstancesResult < Struct.new(
52150
+ :source_capacity_reservation,
52151
+ :destination_capacity_reservation,
52152
+ :instance_count)
52153
+ SENSITIVE = []
52154
+ include Aws::Structure
52155
+ end
52156
+
52003
52157
  # <note markdown="1"> This action is deprecated.
52004
52158
  #
52005
52159
  # </note>
@@ -53168,7 +53322,7 @@ module Aws::EC2
53168
53322
  # @return [String]
53169
53323
  #
53170
53324
  # @!attribute [rw] aws_service
53171
- # The Amazon Web Service.
53325
+ # The Amazon Web Services service.
53172
53326
  # @return [String]
53173
53327
  #
53174
53328
  # @!attribute [rw] permission
@@ -54382,7 +54536,7 @@ module Aws::EC2
54382
54536
  # Describes prefixes for Amazon Web Services services.
54383
54537
  #
54384
54538
  # @!attribute [rw] cidrs
54385
- # The IP address range of the Amazon Web Service.
54539
+ # The IP address range of the Amazon Web Services service.
54386
54540
  # @return [Array<String>]
54387
54541
  #
54388
54542
  # @!attribute [rw] prefix_list_id
@@ -59184,7 +59338,7 @@ module Aws::EC2
59184
59338
  # @return [String]
59185
59339
  #
59186
59340
  # @!attribute [rw] destination_prefix_list_id
59187
- # The prefix of the Amazon Web Service.
59341
+ # The prefix of the Amazon Web Services service.
59188
59342
  # @return [String]
59189
59343
  #
59190
59344
  # @!attribute [rw] egress_only_internet_gateway_id
@@ -1750,8 +1750,8 @@ module Aws::EC2
1750
1750
  # principal or service that created the network interface.
1751
1751
  #
1752
1752
  # * `requester-managed` - Indicates whether the network interface is
1753
- # being managed by an Amazon Web Service (for example, Amazon Web
1754
- # Services Management Console, Auto Scaling, and so on).
1753
+ # being managed by an Amazon Web Services service (for example, Amazon
1754
+ # Web Services Management Console, Auto Scaling, and so on).
1755
1755
  #
1756
1756
  # * `source-dest-check` - Indicates whether the network interface
1757
1757
  # performs source/destination checking. A value of `true` means
@@ -1942,7 +1942,7 @@ module Aws::EC2
1942
1942
  # in a route in the route table.
1943
1943
  #
1944
1944
  # * `route.destination-prefix-list-id` - The ID (prefix) of the Amazon
1945
- # Web Service specified in a route in the table.
1945
+ # Web Services service specified in a route in the table.
1946
1946
  #
1947
1947
  # * `route.egress-only-internet-gateway-id` - The ID of an egress-only
1948
1948
  # Internet gateway specified in a route in the route table.
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.468.0'
79
+ GEM_VERSION = '1.469.0'
80
80
 
81
81
  end
data/sig/client.rbs CHANGED
@@ -1048,6 +1048,32 @@ module Aws
1048
1048
  ) -> _CreateCapacityReservationResponseSuccess
1049
1049
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCapacityReservationResponseSuccess
1050
1050
 
1051
+ interface _CreateCapacityReservationBySplittingResponseSuccess
1052
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCapacityReservationBySplittingResult]
1053
+ def source_capacity_reservation: () -> Types::CapacityReservation
1054
+ def destination_capacity_reservation: () -> Types::CapacityReservation
1055
+ def instance_count: () -> ::Integer
1056
+ end
1057
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#create_capacity_reservation_by_splitting-instance_method
1058
+ def create_capacity_reservation_by_splitting: (
1059
+ ?dry_run: bool,
1060
+ ?client_token: ::String,
1061
+ source_capacity_reservation_id: ::String,
1062
+ instance_count: ::Integer,
1063
+ ?tag_specifications: Array[
1064
+ {
1065
+ resource_type: ("capacity-reservation" | "client-vpn-endpoint" | "customer-gateway" | "carrier-gateway" | "coip-pool" | "dedicated-host" | "dhcp-options" | "egress-only-internet-gateway" | "elastic-ip" | "elastic-gpu" | "export-image-task" | "export-instance-task" | "fleet" | "fpga-image" | "host-reservation" | "image" | "import-image-task" | "import-snapshot-task" | "instance" | "instance-event-window" | "internet-gateway" | "ipam" | "ipam-pool" | "ipam-scope" | "ipv4pool-ec2" | "ipv6pool-ec2" | "key-pair" | "launch-template" | "local-gateway" | "local-gateway-route-table" | "local-gateway-virtual-interface" | "local-gateway-virtual-interface-group" | "local-gateway-route-table-vpc-association" | "local-gateway-route-table-virtual-interface-group-association" | "natgateway" | "network-acl" | "network-interface" | "network-insights-analysis" | "network-insights-path" | "network-insights-access-scope" | "network-insights-access-scope-analysis" | "placement-group" | "prefix-list" | "replace-root-volume-task" | "reserved-instances" | "route-table" | "security-group" | "security-group-rule" | "snapshot" | "spot-fleet-request" | "spot-instances-request" | "subnet" | "subnet-cidr-reservation" | "traffic-mirror-filter" | "traffic-mirror-session" | "traffic-mirror-target" | "transit-gateway" | "transit-gateway-attachment" | "transit-gateway-connect-peer" | "transit-gateway-multicast-domain" | "transit-gateway-policy-table" | "transit-gateway-route-table" | "transit-gateway-route-table-announcement" | "volume" | "vpc" | "vpc-endpoint" | "vpc-endpoint-connection" | "vpc-endpoint-service" | "vpc-endpoint-service-permission" | "vpc-peering-connection" | "vpn-connection" | "vpn-gateway" | "vpc-flow-log" | "capacity-reservation-fleet" | "traffic-mirror-filter-rule" | "vpc-endpoint-connection-device-type" | "verified-access-instance" | "verified-access-group" | "verified-access-endpoint" | "verified-access-policy" | "verified-access-trust-provider" | "vpn-connection-device-type" | "vpc-block-public-access-exclusion" | "ipam-resource-discovery" | "ipam-resource-discovery-association" | "instance-connect-endpoint" | "ipam-external-resource-verification-token")?,
1066
+ tags: Array[
1067
+ {
1068
+ key: ::String?,
1069
+ value: ::String?
1070
+ },
1071
+ ]?
1072
+ },
1073
+ ]
1074
+ ) -> _CreateCapacityReservationBySplittingResponseSuccess
1075
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCapacityReservationBySplittingResponseSuccess
1076
+
1051
1077
  interface _CreateCapacityReservationFleetResponseSuccess
1052
1078
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateCapacityReservationFleetResult]
1053
1079
  def capacity_reservation_fleet_id: () -> ::String
@@ -9746,7 +9772,8 @@ module Aws
9746
9772
  ?end_date_type: ("unlimited" | "limited"),
9747
9773
  ?accept: bool,
9748
9774
  ?dry_run: bool,
9749
- ?additional_info: ::String
9775
+ ?additional_info: ::String,
9776
+ ?instance_match_criteria: ("open" | "targeted")
9750
9777
  ) -> _ModifyCapacityReservationResponseSuccess
9751
9778
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyCapacityReservationResponseSuccess
9752
9779
 
@@ -11177,6 +11204,22 @@ module Aws
11177
11204
  ) -> _MoveByoipCidrToIpamResponseSuccess
11178
11205
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _MoveByoipCidrToIpamResponseSuccess
11179
11206
 
11207
+ interface _MoveCapacityReservationInstancesResponseSuccess
11208
+ include ::Seahorse::Client::_ResponseSuccess[Types::MoveCapacityReservationInstancesResult]
11209
+ def source_capacity_reservation: () -> Types::CapacityReservation
11210
+ def destination_capacity_reservation: () -> Types::CapacityReservation
11211
+ def instance_count: () -> ::Integer
11212
+ end
11213
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#move_capacity_reservation_instances-instance_method
11214
+ def move_capacity_reservation_instances: (
11215
+ ?dry_run: bool,
11216
+ ?client_token: ::String,
11217
+ source_capacity_reservation_id: ::String,
11218
+ destination_capacity_reservation_id: ::String,
11219
+ instance_count: ::Integer
11220
+ ) -> _MoveCapacityReservationInstancesResponseSuccess
11221
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _MoveCapacityReservationInstancesResponseSuccess
11222
+
11180
11223
  interface _ProvisionByoipCidrResponseSuccess
11181
11224
  include ::Seahorse::Client::_ResponseSuccess[Types::ProvisionByoipCidrResult]
11182
11225
  def byoip_cidr: () -> Types::ByoipCidr
data/sig/types.rbs CHANGED
@@ -1585,6 +1585,22 @@ module Aws::EC2
1585
1585
  SENSITIVE: []
1586
1586
  end
1587
1587
 
1588
+ class CreateCapacityReservationBySplittingRequest
1589
+ attr_accessor dry_run: bool
1590
+ attr_accessor client_token: ::String
1591
+ attr_accessor source_capacity_reservation_id: ::String
1592
+ attr_accessor instance_count: ::Integer
1593
+ attr_accessor tag_specifications: ::Array[Types::TagSpecification]
1594
+ SENSITIVE: []
1595
+ end
1596
+
1597
+ class CreateCapacityReservationBySplittingResult
1598
+ attr_accessor source_capacity_reservation: Types::CapacityReservation
1599
+ attr_accessor destination_capacity_reservation: Types::CapacityReservation
1600
+ attr_accessor instance_count: ::Integer
1601
+ SENSITIVE: []
1602
+ end
1603
+
1588
1604
  class CreateCapacityReservationFleetRequest
1589
1605
  attr_accessor allocation_strategy: ::String
1590
1606
  attr_accessor client_token: ::String
@@ -10385,6 +10401,7 @@ module Aws::EC2
10385
10401
  attr_accessor accept: bool
10386
10402
  attr_accessor dry_run: bool
10387
10403
  attr_accessor additional_info: ::String
10404
+ attr_accessor instance_match_criteria: ("open" | "targeted")
10388
10405
  SENSITIVE: []
10389
10406
  end
10390
10407
 
@@ -11391,6 +11408,22 @@ module Aws::EC2
11391
11408
  SENSITIVE: []
11392
11409
  end
11393
11410
 
11411
+ class MoveCapacityReservationInstancesRequest
11412
+ attr_accessor dry_run: bool
11413
+ attr_accessor client_token: ::String
11414
+ attr_accessor source_capacity_reservation_id: ::String
11415
+ attr_accessor destination_capacity_reservation_id: ::String
11416
+ attr_accessor instance_count: ::Integer
11417
+ SENSITIVE: []
11418
+ end
11419
+
11420
+ class MoveCapacityReservationInstancesResult
11421
+ attr_accessor source_capacity_reservation: Types::CapacityReservation
11422
+ attr_accessor destination_capacity_reservation: Types::CapacityReservation
11423
+ attr_accessor instance_count: ::Integer
11424
+ SENSITIVE: []
11425
+ end
11426
+
11394
11427
  class MovingAddressStatus
11395
11428
  attr_accessor move_status: ("movingToVpc" | "restoringToClassic")
11396
11429
  attr_accessor public_ip: ::String
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.468.0
4
+ version: 1.469.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: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core