aws-sdk-ec2 1.180.0 → 1.181.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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +72 -7
- data/lib/aws-sdk-ec2/client_api.rb +37 -0
- data/lib/aws-sdk-ec2/resource.rb +1 -0
- data/lib/aws-sdk-ec2/subnet.rb +1 -0
- data/lib/aws-sdk-ec2/types.rb +130 -22
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4b244a12a58fd0424b5d65bbb2d3345883901a9ce2d6b9b450d8cc64220e820
|
|
4
|
+
data.tar.gz: 928716a11c98a9e55df1f9b01a3943f0d6135c02aa7b28275f188a86b72de78e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84bb48aca449eea74869388a69110b63a79a7ecf9a7468296abde03c554092aae5547050ab419640c1a4c54c9e00952061ce8d1124c401dc5022745ba6cb6926
|
|
7
|
+
data.tar.gz: cf754031201cd7e26edf7028cedad804e7ef287819284ab23f0544487ca7086b7719b5132552ae6650c1e15f49f16348e5caa3ea512e3311fc8f26d76df36549
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
|
@@ -3526,8 +3526,6 @@ module Aws::EC2
|
|
|
3526
3526
|
# idempotency of the request. For more information, see [How to Ensure
|
|
3527
3527
|
# Idempotency][1].
|
|
3528
3528
|
#
|
|
3529
|
-
# Constraint: Maximum 64 ASCII characters.
|
|
3530
|
-
#
|
|
3531
3529
|
#
|
|
3532
3530
|
#
|
|
3533
3531
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
|
@@ -5504,6 +5502,7 @@ module Aws::EC2
|
|
|
5504
5502
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
5505
5503
|
# capacity_reservation_target: {
|
|
5506
5504
|
# capacity_reservation_id: "CapacityReservationId",
|
|
5505
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
5507
5506
|
# },
|
|
5508
5507
|
# },
|
|
5509
5508
|
# license_specifications: [
|
|
@@ -5783,6 +5782,7 @@ module Aws::EC2
|
|
|
5783
5782
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
5784
5783
|
# capacity_reservation_target: {
|
|
5785
5784
|
# capacity_reservation_id: "CapacityReservationId",
|
|
5785
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
5786
5786
|
# },
|
|
5787
5787
|
# },
|
|
5788
5788
|
# license_specifications: [
|
|
@@ -5884,6 +5884,7 @@ module Aws::EC2
|
|
|
5884
5884
|
# resp.launch_template_version.launch_template_data.cpu_options.threads_per_core #=> Integer
|
|
5885
5885
|
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
|
5886
5886
|
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
|
5887
|
+
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
|
5887
5888
|
# resp.launch_template_version.launch_template_data.license_specifications #=> Array
|
|
5888
5889
|
# resp.launch_template_version.launch_template_data.license_specifications[0].license_configuration_arn #=> String
|
|
5889
5890
|
# resp.launch_template_version.launch_template_data.hibernation_options.configured #=> Boolean
|
|
@@ -13029,12 +13030,14 @@ module Aws::EC2
|
|
|
13029
13030
|
# The ID of the Capacity Reservation.
|
|
13030
13031
|
#
|
|
13031
13032
|
# @option params [String] :next_token
|
|
13032
|
-
# The token to retrieve the next page of results.
|
|
13033
|
+
# The token to use to retrieve the next page of results.
|
|
13033
13034
|
#
|
|
13034
13035
|
# @option params [Integer] :max_results
|
|
13035
13036
|
# The maximum number of results to return for the request in a single
|
|
13036
13037
|
# page. The remaining results can be seen by sending another request
|
|
13037
|
-
# with the returned nextToken value.
|
|
13038
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
|
13039
|
+
# 500. If `maxResults` is given a larger value than 500, you receive an
|
|
13040
|
+
# error.
|
|
13038
13041
|
#
|
|
13039
13042
|
# @option params [Array<Types::Filter>] :filters
|
|
13040
13043
|
# One or more filters.
|
|
@@ -17339,6 +17342,7 @@ module Aws::EC2
|
|
|
17339
17342
|
# resp.reservations[0].instances[0].capacity_reservation_id #=> String
|
|
17340
17343
|
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
|
17341
17344
|
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
|
17345
|
+
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
|
17342
17346
|
# resp.reservations[0].instances[0].hibernation_options.configured #=> Boolean
|
|
17343
17347
|
# resp.reservations[0].instances[0].licenses #=> Array
|
|
17344
17348
|
# resp.reservations[0].instances[0].licenses[0].license_configuration_arn #=> String
|
|
@@ -17916,6 +17920,7 @@ module Aws::EC2
|
|
|
17916
17920
|
# resp.launch_template_versions[0].launch_template_data.cpu_options.threads_per_core #=> Integer
|
|
17917
17921
|
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
|
17918
17922
|
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
|
17923
|
+
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
|
17919
17924
|
# resp.launch_template_versions[0].launch_template_data.license_specifications #=> Array
|
|
17920
17925
|
# resp.launch_template_versions[0].launch_template_data.license_specifications[0].license_configuration_arn #=> String
|
|
17921
17926
|
# resp.launch_template_versions[0].launch_template_data.hibernation_options.configured #=> Boolean
|
|
@@ -27315,12 +27320,14 @@ module Aws::EC2
|
|
|
27315
27320
|
# The ID of the Capacity Reservation.
|
|
27316
27321
|
#
|
|
27317
27322
|
# @option params [String] :next_token
|
|
27318
|
-
# The token to retrieve the next page of results.
|
|
27323
|
+
# The token to use to retrieve the next page of results.
|
|
27319
27324
|
#
|
|
27320
27325
|
# @option params [Integer] :max_results
|
|
27321
27326
|
# The maximum number of results to return for the request in a single
|
|
27322
27327
|
# page. The remaining results can be seen by sending another request
|
|
27323
|
-
# with the returned nextToken value.
|
|
27328
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
|
27329
|
+
# 500. If `maxResults` is given a larger value than 500, you receive an
|
|
27330
|
+
# error.
|
|
27324
27331
|
#
|
|
27325
27332
|
# Valid range: Minimum value of 1. Maximum value of 1000.
|
|
27326
27333
|
#
|
|
@@ -27703,6 +27710,60 @@ module Aws::EC2
|
|
|
27703
27710
|
req.send_request(options)
|
|
27704
27711
|
end
|
|
27705
27712
|
|
|
27713
|
+
# Lists the resource groups to which a Capacity Reservation has been
|
|
27714
|
+
# added.
|
|
27715
|
+
#
|
|
27716
|
+
# @option params [required, String] :capacity_reservation_id
|
|
27717
|
+
# The ID of the Capacity Reservation.
|
|
27718
|
+
#
|
|
27719
|
+
# @option params [String] :next_token
|
|
27720
|
+
# The token to use to retrieve the next page of results.
|
|
27721
|
+
#
|
|
27722
|
+
# @option params [Integer] :max_results
|
|
27723
|
+
# The maximum number of results to return for the request in a single
|
|
27724
|
+
# page. The remaining results can be seen by sending another request
|
|
27725
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
|
27726
|
+
# 500. If `maxResults` is given a larger value than 500, you receive an
|
|
27727
|
+
# error.
|
|
27728
|
+
#
|
|
27729
|
+
# @option params [Boolean] :dry_run
|
|
27730
|
+
# Checks whether you have the required permissions for the action,
|
|
27731
|
+
# without actually making the request, and provides an error response.
|
|
27732
|
+
# If you have the required permissions, the error response is
|
|
27733
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
27734
|
+
#
|
|
27735
|
+
# @return [Types::GetGroupsForCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
27736
|
+
#
|
|
27737
|
+
# * {Types::GetGroupsForCapacityReservationResult#next_token #next_token} => String
|
|
27738
|
+
# * {Types::GetGroupsForCapacityReservationResult#capacity_reservation_groups #capacity_reservation_groups} => Array<Types::CapacityReservationGroup>
|
|
27739
|
+
#
|
|
27740
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
27741
|
+
#
|
|
27742
|
+
# @example Request syntax with placeholder values
|
|
27743
|
+
#
|
|
27744
|
+
# resp = client.get_groups_for_capacity_reservation({
|
|
27745
|
+
# capacity_reservation_id: "CapacityReservationId", # required
|
|
27746
|
+
# next_token: "String",
|
|
27747
|
+
# max_results: 1,
|
|
27748
|
+
# dry_run: false,
|
|
27749
|
+
# })
|
|
27750
|
+
#
|
|
27751
|
+
# @example Response structure
|
|
27752
|
+
#
|
|
27753
|
+
# resp.next_token #=> String
|
|
27754
|
+
# resp.capacity_reservation_groups #=> Array
|
|
27755
|
+
# resp.capacity_reservation_groups[0].group_arn #=> String
|
|
27756
|
+
# resp.capacity_reservation_groups[0].owner_id #=> String
|
|
27757
|
+
#
|
|
27758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetGroupsForCapacityReservation AWS API Documentation
|
|
27759
|
+
#
|
|
27760
|
+
# @overload get_groups_for_capacity_reservation(params = {})
|
|
27761
|
+
# @param [Hash] params ({})
|
|
27762
|
+
def get_groups_for_capacity_reservation(params = {}, options = {})
|
|
27763
|
+
req = build_request(:get_groups_for_capacity_reservation, params)
|
|
27764
|
+
req.send_request(options)
|
|
27765
|
+
end
|
|
27766
|
+
|
|
27706
27767
|
# Preview a reservation purchase with configurations that match those of
|
|
27707
27768
|
# your Dedicated Host. You must have active Dedicated Hosts in your
|
|
27708
27769
|
# account before you purchase a reservation.
|
|
@@ -27924,6 +27985,7 @@ module Aws::EC2
|
|
|
27924
27985
|
# resp.launch_template_data.cpu_options.threads_per_core #=> Integer
|
|
27925
27986
|
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
|
27926
27987
|
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
|
27988
|
+
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
|
27927
27989
|
# resp.launch_template_data.license_specifications #=> Array
|
|
27928
27990
|
# resp.launch_template_data.license_specifications[0].license_configuration_arn #=> String
|
|
27929
27991
|
# resp.launch_template_data.hibernation_options.configured #=> Boolean
|
|
@@ -30327,6 +30389,7 @@ module Aws::EC2
|
|
|
30327
30389
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
30328
30390
|
# capacity_reservation_target: {
|
|
30329
30391
|
# capacity_reservation_id: "CapacityReservationId",
|
|
30392
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
30330
30393
|
# },
|
|
30331
30394
|
# },
|
|
30332
30395
|
# dry_run: false,
|
|
@@ -36362,6 +36425,7 @@ module Aws::EC2
|
|
|
36362
36425
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
36363
36426
|
# capacity_reservation_target: {
|
|
36364
36427
|
# capacity_reservation_id: "CapacityReservationId",
|
|
36428
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
36365
36429
|
# },
|
|
36366
36430
|
# },
|
|
36367
36431
|
# hibernation_options: {
|
|
@@ -36491,6 +36555,7 @@ module Aws::EC2
|
|
|
36491
36555
|
# resp.instances[0].capacity_reservation_id #=> String
|
|
36492
36556
|
# resp.instances[0].capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
|
36493
36557
|
# resp.instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
|
36558
|
+
# resp.instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
|
36494
36559
|
# resp.instances[0].hibernation_options.configured #=> Boolean
|
|
36495
36560
|
# resp.instances[0].licenses #=> Array
|
|
36496
36561
|
# resp.instances[0].licenses[0].license_configuration_arn #=> String
|
|
@@ -37862,7 +37927,7 @@ module Aws::EC2
|
|
|
37862
37927
|
params: params,
|
|
37863
37928
|
config: config)
|
|
37864
37929
|
context[:gem_name] = 'aws-sdk-ec2'
|
|
37865
|
-
context[:gem_version] = '1.
|
|
37930
|
+
context[:gem_version] = '1.181.0'
|
|
37866
37931
|
Seahorse::Client::Request.new(handlers, context)
|
|
37867
37932
|
end
|
|
37868
37933
|
|
|
@@ -161,6 +161,8 @@ module Aws::EC2
|
|
|
161
161
|
CancelledSpotInstanceRequest = Shapes::StructureShape.new(name: 'CancelledSpotInstanceRequest')
|
|
162
162
|
CancelledSpotInstanceRequestList = Shapes::ListShape.new(name: 'CancelledSpotInstanceRequestList')
|
|
163
163
|
CapacityReservation = Shapes::StructureShape.new(name: 'CapacityReservation')
|
|
164
|
+
CapacityReservationGroup = Shapes::StructureShape.new(name: 'CapacityReservationGroup')
|
|
165
|
+
CapacityReservationGroupSet = Shapes::ListShape.new(name: 'CapacityReservationGroupSet')
|
|
164
166
|
CapacityReservationId = Shapes::StringShape.new(name: 'CapacityReservationId')
|
|
165
167
|
CapacityReservationIdSet = Shapes::ListShape.new(name: 'CapacityReservationIdSet')
|
|
166
168
|
CapacityReservationInstancePlatform = Shapes::StringShape.new(name: 'CapacityReservationInstancePlatform')
|
|
@@ -961,6 +963,9 @@ module Aws::EC2
|
|
|
961
963
|
GetEbsDefaultKmsKeyIdResult = Shapes::StructureShape.new(name: 'GetEbsDefaultKmsKeyIdResult')
|
|
962
964
|
GetEbsEncryptionByDefaultRequest = Shapes::StructureShape.new(name: 'GetEbsEncryptionByDefaultRequest')
|
|
963
965
|
GetEbsEncryptionByDefaultResult = Shapes::StructureShape.new(name: 'GetEbsEncryptionByDefaultResult')
|
|
966
|
+
GetGroupsForCapacityReservationRequest = Shapes::StructureShape.new(name: 'GetGroupsForCapacityReservationRequest')
|
|
967
|
+
GetGroupsForCapacityReservationRequestMaxResults = Shapes::IntegerShape.new(name: 'GetGroupsForCapacityReservationRequestMaxResults')
|
|
968
|
+
GetGroupsForCapacityReservationResult = Shapes::StructureShape.new(name: 'GetGroupsForCapacityReservationResult')
|
|
964
969
|
GetHostReservationPurchasePreviewRequest = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewRequest')
|
|
965
970
|
GetHostReservationPurchasePreviewResult = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewResult')
|
|
966
971
|
GetLaunchTemplateDataRequest = Shapes::StructureShape.new(name: 'GetLaunchTemplateDataRequest')
|
|
@@ -2578,6 +2583,12 @@ module Aws::EC2
|
|
|
2578
2583
|
CapacityReservation.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
|
2579
2584
|
CapacityReservation.struct_class = Types::CapacityReservation
|
|
2580
2585
|
|
|
2586
|
+
CapacityReservationGroup.add_member(:group_arn, Shapes::ShapeRef.new(shape: String, location_name: "groupArn"))
|
|
2587
|
+
CapacityReservationGroup.add_member(:owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ownerId"))
|
|
2588
|
+
CapacityReservationGroup.struct_class = Types::CapacityReservationGroup
|
|
2589
|
+
|
|
2590
|
+
CapacityReservationGroupSet.member = Shapes::ShapeRef.new(shape: CapacityReservationGroup, location_name: "item")
|
|
2591
|
+
|
|
2581
2592
|
CapacityReservationIdSet.member = Shapes::ShapeRef.new(shape: CapacityReservationId, location_name: "item")
|
|
2582
2593
|
|
|
2583
2594
|
CapacityReservationOptions.add_member(:usage_strategy, Shapes::ShapeRef.new(shape: FleetCapacityReservationUsageStrategy, location_name: "usageStrategy"))
|
|
@@ -2597,9 +2608,11 @@ module Aws::EC2
|
|
|
2597
2608
|
CapacityReservationSpecificationResponse.struct_class = Types::CapacityReservationSpecificationResponse
|
|
2598
2609
|
|
|
2599
2610
|
CapacityReservationTarget.add_member(:capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, location_name: "CapacityReservationId"))
|
|
2611
|
+
CapacityReservationTarget.add_member(:capacity_reservation_resource_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "CapacityReservationResourceGroupArn"))
|
|
2600
2612
|
CapacityReservationTarget.struct_class = Types::CapacityReservationTarget
|
|
2601
2613
|
|
|
2602
2614
|
CapacityReservationTargetResponse.add_member(:capacity_reservation_id, Shapes::ShapeRef.new(shape: String, location_name: "capacityReservationId"))
|
|
2615
|
+
CapacityReservationTargetResponse.add_member(:capacity_reservation_resource_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "capacityReservationResourceGroupArn"))
|
|
2603
2616
|
CapacityReservationTargetResponse.struct_class = Types::CapacityReservationTargetResponse
|
|
2604
2617
|
|
|
2605
2618
|
CertificateAuthentication.add_member(:client_root_certificate_chain, Shapes::ShapeRef.new(shape: String, location_name: "clientRootCertificateChain"))
|
|
@@ -5827,6 +5840,16 @@ module Aws::EC2
|
|
|
5827
5840
|
GetEbsEncryptionByDefaultResult.add_member(:ebs_encryption_by_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "ebsEncryptionByDefault"))
|
|
5828
5841
|
GetEbsEncryptionByDefaultResult.struct_class = Types::GetEbsEncryptionByDefaultResult
|
|
5829
5842
|
|
|
5843
|
+
GetGroupsForCapacityReservationRequest.add_member(:capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, required: true, location_name: "CapacityReservationId"))
|
|
5844
|
+
GetGroupsForCapacityReservationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
|
5845
|
+
GetGroupsForCapacityReservationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetGroupsForCapacityReservationRequestMaxResults, location_name: "MaxResults"))
|
|
5846
|
+
GetGroupsForCapacityReservationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
|
5847
|
+
GetGroupsForCapacityReservationRequest.struct_class = Types::GetGroupsForCapacityReservationRequest
|
|
5848
|
+
|
|
5849
|
+
GetGroupsForCapacityReservationResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
|
5850
|
+
GetGroupsForCapacityReservationResult.add_member(:capacity_reservation_groups, Shapes::ShapeRef.new(shape: CapacityReservationGroupSet, location_name: "capacityReservationGroupSet"))
|
|
5851
|
+
GetGroupsForCapacityReservationResult.struct_class = Types::GetGroupsForCapacityReservationResult
|
|
5852
|
+
|
|
5830
5853
|
GetHostReservationPurchasePreviewRequest.add_member(:host_id_set, Shapes::ShapeRef.new(shape: RequestHostIdSet, required: true, location_name: "HostIdSet"))
|
|
5831
5854
|
GetHostReservationPurchasePreviewRequest.add_member(:offering_id, Shapes::ShapeRef.new(shape: OfferingId, required: true, location_name: "OfferingId"))
|
|
5832
5855
|
GetHostReservationPurchasePreviewRequest.struct_class = Types::GetHostReservationPurchasePreviewRequest
|
|
@@ -12899,6 +12922,20 @@ module Aws::EC2
|
|
|
12899
12922
|
o.output = Shapes::ShapeRef.new(shape: GetEbsEncryptionByDefaultResult)
|
|
12900
12923
|
end)
|
|
12901
12924
|
|
|
12925
|
+
api.add_operation(:get_groups_for_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
|
|
12926
|
+
o.name = "GetGroupsForCapacityReservation"
|
|
12927
|
+
o.http_method = "POST"
|
|
12928
|
+
o.http_request_uri = "/"
|
|
12929
|
+
o.input = Shapes::ShapeRef.new(shape: GetGroupsForCapacityReservationRequest)
|
|
12930
|
+
o.output = Shapes::ShapeRef.new(shape: GetGroupsForCapacityReservationResult)
|
|
12931
|
+
o[:pager] = Aws::Pager.new(
|
|
12932
|
+
limit_key: "max_results",
|
|
12933
|
+
tokens: {
|
|
12934
|
+
"next_token" => "next_token"
|
|
12935
|
+
}
|
|
12936
|
+
)
|
|
12937
|
+
end)
|
|
12938
|
+
|
|
12902
12939
|
api.add_operation(:get_host_reservation_purchase_preview, Seahorse::Model::Operation.new.tap do |o|
|
|
12903
12940
|
o.name = "GetHostReservationPurchasePreview"
|
|
12904
12941
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
|
@@ -211,6 +211,7 @@ module Aws::EC2
|
|
|
211
211
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
212
212
|
# capacity_reservation_target: {
|
|
213
213
|
# capacity_reservation_id: "CapacityReservationId",
|
|
214
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
214
215
|
# },
|
|
215
216
|
# },
|
|
216
217
|
# hibernation_options: {
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
|
@@ -405,6 +405,7 @@ module Aws::EC2
|
|
|
405
405
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
406
406
|
# capacity_reservation_target: {
|
|
407
407
|
# capacity_reservation_id: "CapacityReservationId",
|
|
408
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
408
409
|
# },
|
|
409
410
|
# },
|
|
410
411
|
# hibernation_options: {
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
|
@@ -3066,6 +3066,26 @@ module Aws::EC2
|
|
|
3066
3066
|
include Aws::Structure
|
|
3067
3067
|
end
|
|
3068
3068
|
|
|
3069
|
+
# Describes a resource group to which a Capacity Reservation has been
|
|
3070
|
+
# added.
|
|
3071
|
+
#
|
|
3072
|
+
# @!attribute [rw] group_arn
|
|
3073
|
+
# The ARN of the resource group.
|
|
3074
|
+
# @return [String]
|
|
3075
|
+
#
|
|
3076
|
+
# @!attribute [rw] owner_id
|
|
3077
|
+
# The ID of the AWS account that owns the resource group.
|
|
3078
|
+
# @return [String]
|
|
3079
|
+
#
|
|
3080
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationGroup AWS API Documentation
|
|
3081
|
+
#
|
|
3082
|
+
class CapacityReservationGroup < Struct.new(
|
|
3083
|
+
:group_arn,
|
|
3084
|
+
:owner_id)
|
|
3085
|
+
SENSITIVE = []
|
|
3086
|
+
include Aws::Structure
|
|
3087
|
+
end
|
|
3088
|
+
|
|
3069
3089
|
# Describes the strategy for using unused Capacity Reservations for
|
|
3070
3090
|
# fulfilling On-Demand capacity.
|
|
3071
3091
|
#
|
|
@@ -3170,7 +3190,8 @@ module Aws::EC2
|
|
|
3170
3190
|
# instance to run as an On-Demand Instance or to run in any `open`
|
|
3171
3191
|
# Capacity Reservation that has matching attributes (instance type,
|
|
3172
3192
|
# platform, Availability Zone). Use the `CapacityReservationTarget`
|
|
3173
|
-
# parameter to explicitly target a specific Capacity Reservation
|
|
3193
|
+
# parameter to explicitly target a specific Capacity Reservation or a
|
|
3194
|
+
# Capacity Reservation group.
|
|
3174
3195
|
#
|
|
3175
3196
|
# @note When making an API call, you may pass CapacityReservationSpecification
|
|
3176
3197
|
# data as a hash:
|
|
@@ -3179,6 +3200,7 @@ module Aws::EC2
|
|
|
3179
3200
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
3180
3201
|
# capacity_reservation_target: {
|
|
3181
3202
|
# capacity_reservation_id: "CapacityReservationId",
|
|
3203
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
3182
3204
|
# },
|
|
3183
3205
|
# }
|
|
3184
3206
|
#
|
|
@@ -3193,13 +3215,11 @@ module Aws::EC2
|
|
|
3193
3215
|
# * `none` - The instance avoids running in a Capacity Reservation
|
|
3194
3216
|
# even if one is available. The instance runs as an On-Demand
|
|
3195
3217
|
# Instance.
|
|
3196
|
-
#
|
|
3197
|
-
# When `CapacityReservationPreference` is not specified, it defaults
|
|
3198
|
-
# to `open`.
|
|
3199
3218
|
# @return [String]
|
|
3200
3219
|
#
|
|
3201
3220
|
# @!attribute [rw] capacity_reservation_target
|
|
3202
|
-
# Information about the target Capacity Reservation
|
|
3221
|
+
# Information about the target Capacity Reservation or Capacity
|
|
3222
|
+
# Reservation group.
|
|
3203
3223
|
# @return [Types::CapacityReservationTarget]
|
|
3204
3224
|
#
|
|
3205
3225
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationSpecification AWS API Documentation
|
|
@@ -3217,7 +3237,8 @@ module Aws::EC2
|
|
|
3217
3237
|
# if it is configured in run in any `open` Capacity Reservation that has
|
|
3218
3238
|
# matching attributes (instance type, platform, Availability Zone). The
|
|
3219
3239
|
# action returns the `capacityReservationTarget` response element if the
|
|
3220
|
-
# instance explicily targets a specific Capacity Reservation
|
|
3240
|
+
# instance explicily targets a specific Capacity Reservation or Capacity
|
|
3241
|
+
# Reservation group.
|
|
3221
3242
|
#
|
|
3222
3243
|
# @!attribute [rw] capacity_reservation_preference
|
|
3223
3244
|
# Describes the instance's Capacity Reservation preferences. Possible
|
|
@@ -3232,7 +3253,8 @@ module Aws::EC2
|
|
|
3232
3253
|
# @return [String]
|
|
3233
3254
|
#
|
|
3234
3255
|
# @!attribute [rw] capacity_reservation_target
|
|
3235
|
-
# Information about the targeted Capacity Reservation
|
|
3256
|
+
# Information about the targeted Capacity Reservation or Capacity
|
|
3257
|
+
# Reservation group.
|
|
3236
3258
|
# @return [Types::CapacityReservationTargetResponse]
|
|
3237
3259
|
#
|
|
3238
3260
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationSpecificationResponse AWS API Documentation
|
|
@@ -3244,37 +3266,49 @@ module Aws::EC2
|
|
|
3244
3266
|
include Aws::Structure
|
|
3245
3267
|
end
|
|
3246
3268
|
|
|
3247
|
-
# Describes a target Capacity Reservation.
|
|
3269
|
+
# Describes a target Capacity Reservation or Capacity Reservation group.
|
|
3248
3270
|
#
|
|
3249
3271
|
# @note When making an API call, you may pass CapacityReservationTarget
|
|
3250
3272
|
# data as a hash:
|
|
3251
3273
|
#
|
|
3252
3274
|
# {
|
|
3253
3275
|
# capacity_reservation_id: "CapacityReservationId",
|
|
3276
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
3254
3277
|
# }
|
|
3255
3278
|
#
|
|
3256
3279
|
# @!attribute [rw] capacity_reservation_id
|
|
3257
|
-
# The ID of the Capacity Reservation.
|
|
3280
|
+
# The ID of the Capacity Reservation in which to run the instance.
|
|
3281
|
+
# @return [String]
|
|
3282
|
+
#
|
|
3283
|
+
# @!attribute [rw] capacity_reservation_resource_group_arn
|
|
3284
|
+
# The ARN of the Capacity Reservation resource group in which to run
|
|
3285
|
+
# the instance.
|
|
3258
3286
|
# @return [String]
|
|
3259
3287
|
#
|
|
3260
3288
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationTarget AWS API Documentation
|
|
3261
3289
|
#
|
|
3262
3290
|
class CapacityReservationTarget < Struct.new(
|
|
3263
|
-
:capacity_reservation_id
|
|
3291
|
+
:capacity_reservation_id,
|
|
3292
|
+
:capacity_reservation_resource_group_arn)
|
|
3264
3293
|
SENSITIVE = []
|
|
3265
3294
|
include Aws::Structure
|
|
3266
3295
|
end
|
|
3267
3296
|
|
|
3268
|
-
# Describes a target Capacity Reservation.
|
|
3297
|
+
# Describes a target Capacity Reservation or Capacity Reservation group.
|
|
3269
3298
|
#
|
|
3270
3299
|
# @!attribute [rw] capacity_reservation_id
|
|
3271
|
-
# The ID of the Capacity Reservation.
|
|
3300
|
+
# The ID of the targeted Capacity Reservation.
|
|
3301
|
+
# @return [String]
|
|
3302
|
+
#
|
|
3303
|
+
# @!attribute [rw] capacity_reservation_resource_group_arn
|
|
3304
|
+
# The ARN of the targeted Capacity Reservation group.
|
|
3272
3305
|
# @return [String]
|
|
3273
3306
|
#
|
|
3274
3307
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservationTargetResponse AWS API Documentation
|
|
3275
3308
|
#
|
|
3276
3309
|
class CapacityReservationTargetResponse < Struct.new(
|
|
3277
|
-
:capacity_reservation_id
|
|
3310
|
+
:capacity_reservation_id,
|
|
3311
|
+
:capacity_reservation_resource_group_arn)
|
|
3278
3312
|
SENSITIVE = []
|
|
3279
3313
|
include Aws::Structure
|
|
3280
3314
|
end
|
|
@@ -4653,8 +4687,6 @@ module Aws::EC2
|
|
|
4653
4687
|
# idempotency of the request. For more information, see [How to Ensure
|
|
4654
4688
|
# Idempotency][1].
|
|
4655
4689
|
#
|
|
4656
|
-
# Constraint: Maximum 64 ASCII characters.
|
|
4657
|
-
#
|
|
4658
4690
|
#
|
|
4659
4691
|
#
|
|
4660
4692
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
|
@@ -6361,6 +6393,7 @@ module Aws::EC2
|
|
|
6361
6393
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
6362
6394
|
# capacity_reservation_target: {
|
|
6363
6395
|
# capacity_reservation_id: "CapacityReservationId",
|
|
6396
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
6364
6397
|
# },
|
|
6365
6398
|
# },
|
|
6366
6399
|
# license_specifications: [
|
|
@@ -6581,6 +6614,7 @@ module Aws::EC2
|
|
|
6581
6614
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
6582
6615
|
# capacity_reservation_target: {
|
|
6583
6616
|
# capacity_reservation_id: "CapacityReservationId",
|
|
6617
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
6584
6618
|
# },
|
|
6585
6619
|
# },
|
|
6586
6620
|
# license_specifications: [
|
|
@@ -12658,13 +12692,15 @@ module Aws::EC2
|
|
|
12658
12692
|
# @return [Array<String>]
|
|
12659
12693
|
#
|
|
12660
12694
|
# @!attribute [rw] next_token
|
|
12661
|
-
# The token to retrieve the next page of results.
|
|
12695
|
+
# The token to use to retrieve the next page of results.
|
|
12662
12696
|
# @return [String]
|
|
12663
12697
|
#
|
|
12664
12698
|
# @!attribute [rw] max_results
|
|
12665
12699
|
# The maximum number of results to return for the request in a single
|
|
12666
12700
|
# page. The remaining results can be seen by sending another request
|
|
12667
|
-
# with the returned nextToken value.
|
|
12701
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
|
12702
|
+
# 500. If `maxResults` is given a larger value than 500, you receive
|
|
12703
|
+
# an error.
|
|
12668
12704
|
# @return [Integer]
|
|
12669
12705
|
#
|
|
12670
12706
|
# @!attribute [rw] filters
|
|
@@ -26416,13 +26452,15 @@ module Aws::EC2
|
|
|
26416
26452
|
# @return [String]
|
|
26417
26453
|
#
|
|
26418
26454
|
# @!attribute [rw] next_token
|
|
26419
|
-
# The token to retrieve the next page of results.
|
|
26455
|
+
# The token to use to retrieve the next page of results.
|
|
26420
26456
|
# @return [String]
|
|
26421
26457
|
#
|
|
26422
26458
|
# @!attribute [rw] max_results
|
|
26423
26459
|
# The maximum number of results to return for the request in a single
|
|
26424
26460
|
# page. The remaining results can be seen by sending another request
|
|
26425
|
-
# with the returned nextToken value.
|
|
26461
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
|
26462
|
+
# 500. If `maxResults` is given a larger value than 500, you receive
|
|
26463
|
+
# an error.
|
|
26426
26464
|
#
|
|
26427
26465
|
# Valid range: Minimum value of 1. Maximum value of 1000.
|
|
26428
26466
|
# @return [Integer]
|
|
@@ -26824,6 +26862,69 @@ module Aws::EC2
|
|
|
26824
26862
|
include Aws::Structure
|
|
26825
26863
|
end
|
|
26826
26864
|
|
|
26865
|
+
# @note When making an API call, you may pass GetGroupsForCapacityReservationRequest
|
|
26866
|
+
# data as a hash:
|
|
26867
|
+
#
|
|
26868
|
+
# {
|
|
26869
|
+
# capacity_reservation_id: "CapacityReservationId", # required
|
|
26870
|
+
# next_token: "String",
|
|
26871
|
+
# max_results: 1,
|
|
26872
|
+
# dry_run: false,
|
|
26873
|
+
# }
|
|
26874
|
+
#
|
|
26875
|
+
# @!attribute [rw] capacity_reservation_id
|
|
26876
|
+
# The ID of the Capacity Reservation.
|
|
26877
|
+
# @return [String]
|
|
26878
|
+
#
|
|
26879
|
+
# @!attribute [rw] next_token
|
|
26880
|
+
# The token to use to retrieve the next page of results.
|
|
26881
|
+
# @return [String]
|
|
26882
|
+
#
|
|
26883
|
+
# @!attribute [rw] max_results
|
|
26884
|
+
# The maximum number of results to return for the request in a single
|
|
26885
|
+
# page. The remaining results can be seen by sending another request
|
|
26886
|
+
# with the returned `nextToken` value. This value can be between 5 and
|
|
26887
|
+
# 500. If `maxResults` is given a larger value than 500, you receive
|
|
26888
|
+
# an error.
|
|
26889
|
+
# @return [Integer]
|
|
26890
|
+
#
|
|
26891
|
+
# @!attribute [rw] dry_run
|
|
26892
|
+
# Checks whether you have the required permissions for the action,
|
|
26893
|
+
# without actually making the request, and provides an error response.
|
|
26894
|
+
# If you have the required permissions, the error response is
|
|
26895
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
26896
|
+
# @return [Boolean]
|
|
26897
|
+
#
|
|
26898
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetGroupsForCapacityReservationRequest AWS API Documentation
|
|
26899
|
+
#
|
|
26900
|
+
class GetGroupsForCapacityReservationRequest < Struct.new(
|
|
26901
|
+
:capacity_reservation_id,
|
|
26902
|
+
:next_token,
|
|
26903
|
+
:max_results,
|
|
26904
|
+
:dry_run)
|
|
26905
|
+
SENSITIVE = []
|
|
26906
|
+
include Aws::Structure
|
|
26907
|
+
end
|
|
26908
|
+
|
|
26909
|
+
# @!attribute [rw] next_token
|
|
26910
|
+
# The token to use to retrieve the next page of results. This value is
|
|
26911
|
+
# `null` when there are no more results to return.
|
|
26912
|
+
# @return [String]
|
|
26913
|
+
#
|
|
26914
|
+
# @!attribute [rw] capacity_reservation_groups
|
|
26915
|
+
# Information about the resource groups to which the Capacity
|
|
26916
|
+
# Reservation has been added.
|
|
26917
|
+
# @return [Array<Types::CapacityReservationGroup>]
|
|
26918
|
+
#
|
|
26919
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetGroupsForCapacityReservationResult AWS API Documentation
|
|
26920
|
+
#
|
|
26921
|
+
class GetGroupsForCapacityReservationResult < Struct.new(
|
|
26922
|
+
:next_token,
|
|
26923
|
+
:capacity_reservation_groups)
|
|
26924
|
+
SENSITIVE = []
|
|
26925
|
+
include Aws::Structure
|
|
26926
|
+
end
|
|
26927
|
+
|
|
26827
26928
|
# @note When making an API call, you may pass GetHostReservationPurchasePreviewRequest
|
|
26828
26929
|
# data as a hash:
|
|
26829
26930
|
#
|
|
@@ -31860,7 +31961,8 @@ module Aws::EC2
|
|
|
31860
31961
|
# run in On-Demand capacity or to run in any `open` Capacity Reservation
|
|
31861
31962
|
# that has matching attributes (instance type, platform, Availability
|
|
31862
31963
|
# Zone). Use the `CapacityReservationTarget` parameter to explicitly
|
|
31863
|
-
# target a specific Capacity Reservation
|
|
31964
|
+
# target a specific Capacity Reservation or a Capacity Reservation
|
|
31965
|
+
# group.
|
|
31864
31966
|
#
|
|
31865
31967
|
# @note When making an API call, you may pass LaunchTemplateCapacityReservationSpecificationRequest
|
|
31866
31968
|
# data as a hash:
|
|
@@ -31869,6 +31971,7 @@ module Aws::EC2
|
|
|
31869
31971
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
31870
31972
|
# capacity_reservation_target: {
|
|
31871
31973
|
# capacity_reservation_id: "CapacityReservationId",
|
|
31974
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
31872
31975
|
# },
|
|
31873
31976
|
# }
|
|
31874
31977
|
#
|
|
@@ -31885,7 +31988,8 @@ module Aws::EC2
|
|
|
31885
31988
|
# @return [String]
|
|
31886
31989
|
#
|
|
31887
31990
|
# @!attribute [rw] capacity_reservation_target
|
|
31888
|
-
# Information about the target Capacity Reservation
|
|
31991
|
+
# Information about the target Capacity Reservation or Capacity
|
|
31992
|
+
# Reservation group.
|
|
31889
31993
|
# @return [Types::CapacityReservationTarget]
|
|
31890
31994
|
#
|
|
31891
31995
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateCapacityReservationSpecificationRequest AWS API Documentation
|
|
@@ -31912,7 +32016,8 @@ module Aws::EC2
|
|
|
31912
32016
|
# @return [String]
|
|
31913
32017
|
#
|
|
31914
32018
|
# @!attribute [rw] capacity_reservation_target
|
|
31915
|
-
# Information about the target Capacity Reservation
|
|
32019
|
+
# Information about the target Capacity Reservation or Capacity
|
|
32020
|
+
# Reservation group.
|
|
31916
32021
|
# @return [Types::CapacityReservationTargetResponse]
|
|
31917
32022
|
#
|
|
31918
32023
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateCapacityReservationSpecificationResponse AWS API Documentation
|
|
@@ -34641,6 +34746,7 @@ module Aws::EC2
|
|
|
34641
34746
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
34642
34747
|
# capacity_reservation_target: {
|
|
34643
34748
|
# capacity_reservation_id: "CapacityReservationId",
|
|
34749
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
34644
34750
|
# },
|
|
34645
34751
|
# },
|
|
34646
34752
|
# dry_run: false,
|
|
@@ -40425,6 +40531,7 @@ module Aws::EC2
|
|
|
40425
40531
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
40426
40532
|
# capacity_reservation_target: {
|
|
40427
40533
|
# capacity_reservation_id: "CapacityReservationId",
|
|
40534
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
40428
40535
|
# },
|
|
40429
40536
|
# },
|
|
40430
40537
|
# license_specifications: [
|
|
@@ -42994,6 +43101,7 @@ module Aws::EC2
|
|
|
42994
43101
|
# capacity_reservation_preference: "open", # accepts open, none
|
|
42995
43102
|
# capacity_reservation_target: {
|
|
42996
43103
|
# capacity_reservation_id: "CapacityReservationId",
|
|
43104
|
+
# capacity_reservation_resource_group_arn: "String",
|
|
42997
43105
|
# },
|
|
42998
43106
|
# },
|
|
42999
43107
|
# hibernation_options: {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-ec2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.181.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: 2020-07-
|
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sigv4
|