aws-sdk-ec2 1.53.0 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +470 -1
- data/lib/aws-sdk-ec2/client_api.rb +167 -0
- data/lib/aws-sdk-ec2/instance.rb +12 -0
- data/lib/aws-sdk-ec2/resource.rb +8 -0
- data/lib/aws-sdk-ec2/subnet.rb +8 -0
- data/lib/aws-sdk-ec2/types.rb +784 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4b71f54b0f69959d028ba78a31db0c12b9b6866
|
4
|
+
data.tar.gz: 53d4d8b2cc8c4cfd91a08a1fb24c543b8bec9d38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4254528a275bd261322cfce2a6a1b3d8f5edaec657ee0c7700bbfbd998f4115d115db92d6d6557ab24a7da4257f66c7ff3d33c53ce35212c242dc37dd3c1e734
|
7
|
+
data.tar.gz: 1a17b327f54cb5ed5dfec9d4243253f5f7c2eb1c21693e7603ebbe7cf53fcbedb875599b5eaedeee5011be1803af6e863997bad7f186fe769d54242c07cdbf9c
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -2012,6 +2012,50 @@ module Aws::EC2
|
|
2012
2012
|
req.send_request(options)
|
2013
2013
|
end
|
2014
2014
|
|
2015
|
+
# Cancels the specified Capacity Reservation, releases the reserved
|
2016
|
+
# capacity, and changes the Capacity Reservation's state to
|
2017
|
+
# `cancelled`.
|
2018
|
+
#
|
2019
|
+
# Instances running in the reserved capacity continue running until you
|
2020
|
+
# stop them. Stopped instances that target the Capacity Reservation can
|
2021
|
+
# no longer launch. Modify these instances to either target a different
|
2022
|
+
# Capacity Reservation, launch On-Demand Instance capacity, or run in
|
2023
|
+
# any open Capacity Reservation that has matching attributes and
|
2024
|
+
# sufficient capacity.
|
2025
|
+
#
|
2026
|
+
# @option params [required, String] :capacity_reservation_id
|
2027
|
+
# The ID of the Capacity Reservation to be cancelled.
|
2028
|
+
#
|
2029
|
+
# @option params [Boolean] :dry_run
|
2030
|
+
# Checks whether you have the required permissions for the action,
|
2031
|
+
# without actually making the request, and provides an error response.
|
2032
|
+
# If you have the required permissions, the error response is
|
2033
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2034
|
+
#
|
2035
|
+
# @return [Types::CancelCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2036
|
+
#
|
2037
|
+
# * {Types::CancelCapacityReservationResult#return #return} => Boolean
|
2038
|
+
#
|
2039
|
+
# @example Request syntax with placeholder values
|
2040
|
+
#
|
2041
|
+
# resp = client.cancel_capacity_reservation({
|
2042
|
+
# capacity_reservation_id: "String", # required
|
2043
|
+
# dry_run: false,
|
2044
|
+
# })
|
2045
|
+
#
|
2046
|
+
# @example Response structure
|
2047
|
+
#
|
2048
|
+
# resp.return #=> Boolean
|
2049
|
+
#
|
2050
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelCapacityReservation AWS API Documentation
|
2051
|
+
#
|
2052
|
+
# @overload cancel_capacity_reservation(params = {})
|
2053
|
+
# @param [Hash] params ({})
|
2054
|
+
def cancel_capacity_reservation(params = {}, options = {})
|
2055
|
+
req = build_request(:cancel_capacity_reservation, params)
|
2056
|
+
req.send_request(options)
|
2057
|
+
end
|
2058
|
+
|
2015
2059
|
# Cancels an active conversion task. The task can be the import of an
|
2016
2060
|
# instance or volume. The action removes all artifacts of the
|
2017
2061
|
# conversion, including a partially uploaded volume or instance. If the
|
@@ -2780,6 +2824,202 @@ module Aws::EC2
|
|
2780
2824
|
req.send_request(options)
|
2781
2825
|
end
|
2782
2826
|
|
2827
|
+
# Creates a new Capacity Reservation with the specified attributes.
|
2828
|
+
#
|
2829
|
+
# Capacity Reservations enable you to reserve capacity for your Amazon
|
2830
|
+
# EC2 instances in a specific Availability Zone for any duration. This
|
2831
|
+
# gives you the flexibility to selectively add capacity reservations and
|
2832
|
+
# still get the Regional RI discounts for that usage. By creating
|
2833
|
+
# Capacity Reservations, you ensure that you always have access to
|
2834
|
+
# Amazon EC2 capacity when you need it, for as long as you need it. For
|
2835
|
+
# more information, see [Capacity Reservations][1] in the *Amazon
|
2836
|
+
# Elastic Compute Cloud User Guide*.
|
2837
|
+
#
|
2838
|
+
# Your request to create a Capacity Reservation could fail if Amazon EC2
|
2839
|
+
# does not have sufficient capacity to fulfill the request. If your
|
2840
|
+
# request fails due to Amazon EC2 capacity constraints, either try again
|
2841
|
+
# at a later time, try in a different Availability Zone, or request a
|
2842
|
+
# smaller capacity reservation. If your application is flexible across
|
2843
|
+
# instance types and sizes, try to create a Capacity Reservation with
|
2844
|
+
# different instance attributes.
|
2845
|
+
#
|
2846
|
+
# Your request could also fail if the requested quantity exceeds your
|
2847
|
+
# On-Demand Instance limit for the selected instance type. If your
|
2848
|
+
# request fails due to limit constraints, increase your On-Demand
|
2849
|
+
# Instance limit for the required instance type and try again. For more
|
2850
|
+
# information about increasing your instance limits, see [Amazon EC2
|
2851
|
+
# Service Limits][2] in the *Amazon Elastic Compute Cloud User Guide*.
|
2852
|
+
#
|
2853
|
+
#
|
2854
|
+
#
|
2855
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html
|
2856
|
+
# [2]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html
|
2857
|
+
#
|
2858
|
+
# @option params [String] :client_token
|
2859
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
2860
|
+
# idempotency of the request. For more information, see [How to Ensure
|
2861
|
+
# Idempotency][1].
|
2862
|
+
#
|
2863
|
+
# Constraint: Maximum 64 ASCII characters.
|
2864
|
+
#
|
2865
|
+
#
|
2866
|
+
#
|
2867
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
2868
|
+
#
|
2869
|
+
# @option params [required, String] :instance_type
|
2870
|
+
# The instance type for which to reserve capacity. For more information,
|
2871
|
+
# see [Instance Types][1] in the *Amazon Elastic Compute Cloud User
|
2872
|
+
# Guide*.
|
2873
|
+
#
|
2874
|
+
#
|
2875
|
+
#
|
2876
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
2877
|
+
#
|
2878
|
+
# @option params [required, String] :instance_platform
|
2879
|
+
# The type of operating system for which to reserve capacity.
|
2880
|
+
#
|
2881
|
+
# @option params [required, String] :availability_zone
|
2882
|
+
# The Availability Zone in which to create the Capacity Reservation.
|
2883
|
+
#
|
2884
|
+
# @option params [String] :tenancy
|
2885
|
+
# Indicates the tenancy of the Capacity Reservation. A Capacity
|
2886
|
+
# Reservation can have one of the following tenancy settings:
|
2887
|
+
#
|
2888
|
+
# * `default` - The Capacity Reservation is created on hardware that is
|
2889
|
+
# shared with other AWS accounts.
|
2890
|
+
#
|
2891
|
+
# * `dedicated` - The Capacity Reservation is created on single-tenant
|
2892
|
+
# hardware that is dedicated to a single AWS account.
|
2893
|
+
#
|
2894
|
+
# @option params [required, Integer] :instance_count
|
2895
|
+
# The number of instances for which to reserve capacity.
|
2896
|
+
#
|
2897
|
+
# @option params [Boolean] :ebs_optimized
|
2898
|
+
# Indicates whether the Capacity Reservation supports EBS-optimized
|
2899
|
+
# instances. This optimization provides dedicated throughput to Amazon
|
2900
|
+
# EBS and an optimized configuration stack to provide optimal I/O
|
2901
|
+
# performance. This optimization isn't available with all instance
|
2902
|
+
# types. Additional usage charges apply when using an EBS- optimized
|
2903
|
+
# instance.
|
2904
|
+
#
|
2905
|
+
# @option params [Boolean] :ephemeral_storage
|
2906
|
+
# Indicates whether the Capacity Reservation supports instances with
|
2907
|
+
# temporary, block-level storage.
|
2908
|
+
#
|
2909
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_date
|
2910
|
+
# The date and time at which the Capacity Reservation expires. When a
|
2911
|
+
# Capacity Reservation expires, the reserved capacity is released and
|
2912
|
+
# you can no longer launch instances into it. The Capacity
|
2913
|
+
# Reservation's state changes to `expired` when it reaches its end date
|
2914
|
+
# and time.
|
2915
|
+
#
|
2916
|
+
# You must provide an `EndDate` value if `EndDateType` is `limited`.
|
2917
|
+
# Omit `EndDate` if `EndDateType` is `unlimited`.
|
2918
|
+
#
|
2919
|
+
# If the `EndDateType` is `limited`, the Capacity Reservation is
|
2920
|
+
# cancelled within an hour from the specified time. For example, if you
|
2921
|
+
# specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to
|
2922
|
+
# end between 13:30:55 and 14:30:55 on 5/31/2019.
|
2923
|
+
#
|
2924
|
+
# @option params [String] :end_date_type
|
2925
|
+
# Indicates the way in which the Capacity Reservation ends. A Capacity
|
2926
|
+
# Reservation can have one of the following end types:
|
2927
|
+
#
|
2928
|
+
# * `unlimited` - The Capacity Reservation remains active until you
|
2929
|
+
# explicitly cancel it. Do not provide an `EndDate` if the
|
2930
|
+
# `EndDateType` is `unlimited`.
|
2931
|
+
#
|
2932
|
+
# * `limited` - The Capacity Reservation expires automatically at a
|
2933
|
+
# specified date and time. You must provide an `EndDate` value if the
|
2934
|
+
# `EndDateType` value is `limited`.
|
2935
|
+
#
|
2936
|
+
# @option params [String] :instance_match_criteria
|
2937
|
+
# Indicates the type of instance launches that the Capacity Reservation
|
2938
|
+
# accepts. The options include:
|
2939
|
+
#
|
2940
|
+
# * `open` - The Capacity Reservation automatically matches all
|
2941
|
+
# instances that have matching attributes (instance type, platform,
|
2942
|
+
# and Availability Zone). Instances that have matching attributes run
|
2943
|
+
# in the Capacity Reservation automatically without specifying any
|
2944
|
+
# additional parameters.
|
2945
|
+
#
|
2946
|
+
# * `targeted` - The Capacity Reservation only accepts instances that
|
2947
|
+
# have matching attributes (instance type, platform, and Availability
|
2948
|
+
# Zone), and explicitly target the Capacity Reservation. This ensures
|
2949
|
+
# that only permitted instances can use the reserved capacity.
|
2950
|
+
#
|
2951
|
+
# Default: `open`
|
2952
|
+
#
|
2953
|
+
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
2954
|
+
# The tags to apply to the Capacity Reservation during launch.
|
2955
|
+
#
|
2956
|
+
# @option params [Boolean] :dry_run
|
2957
|
+
# Checks whether you have the required permissions for the action,
|
2958
|
+
# without actually making the request, and provides an error response.
|
2959
|
+
# If you have the required permissions, the error response is
|
2960
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2961
|
+
#
|
2962
|
+
# @return [Types::CreateCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2963
|
+
#
|
2964
|
+
# * {Types::CreateCapacityReservationResult#capacity_reservation #capacity_reservation} => Types::CapacityReservation
|
2965
|
+
#
|
2966
|
+
# @example Request syntax with placeholder values
|
2967
|
+
#
|
2968
|
+
# resp = client.create_capacity_reservation({
|
2969
|
+
# client_token: "String",
|
2970
|
+
# instance_type: "String", # required
|
2971
|
+
# instance_platform: "Linux/UNIX", # required, accepts 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
|
2972
|
+
# availability_zone: "String", # required
|
2973
|
+
# tenancy: "default", # accepts default, dedicated
|
2974
|
+
# instance_count: 1, # required
|
2975
|
+
# ebs_optimized: false,
|
2976
|
+
# ephemeral_storage: false,
|
2977
|
+
# end_date: Time.now,
|
2978
|
+
# end_date_type: "unlimited", # accepts unlimited, limited
|
2979
|
+
# instance_match_criteria: "open", # accepts open, targeted
|
2980
|
+
# tag_specifications: [
|
2981
|
+
# {
|
2982
|
+
# resource_type: "customer-gateway", # accepts customer-gateway, dedicated-host, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
|
2983
|
+
# tags: [
|
2984
|
+
# {
|
2985
|
+
# key: "String",
|
2986
|
+
# value: "String",
|
2987
|
+
# },
|
2988
|
+
# ],
|
2989
|
+
# },
|
2990
|
+
# ],
|
2991
|
+
# dry_run: false,
|
2992
|
+
# })
|
2993
|
+
#
|
2994
|
+
# @example Response structure
|
2995
|
+
#
|
2996
|
+
# resp.capacity_reservation.capacity_reservation_id #=> String
|
2997
|
+
# resp.capacity_reservation.instance_type #=> String
|
2998
|
+
# resp.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"
|
2999
|
+
# resp.capacity_reservation.availability_zone #=> String
|
3000
|
+
# resp.capacity_reservation.tenancy #=> String, one of "default", "dedicated"
|
3001
|
+
# resp.capacity_reservation.total_instance_count #=> Integer
|
3002
|
+
# resp.capacity_reservation.available_instance_count #=> Integer
|
3003
|
+
# resp.capacity_reservation.ebs_optimized #=> Boolean
|
3004
|
+
# resp.capacity_reservation.ephemeral_storage #=> Boolean
|
3005
|
+
# resp.capacity_reservation.state #=> String, one of "active", "expired", "cancelled", "pending", "failed"
|
3006
|
+
# resp.capacity_reservation.end_date #=> Time
|
3007
|
+
# resp.capacity_reservation.end_date_type #=> String, one of "unlimited", "limited"
|
3008
|
+
# resp.capacity_reservation.instance_match_criteria #=> String, one of "open", "targeted"
|
3009
|
+
# resp.capacity_reservation.create_date #=> Time
|
3010
|
+
# resp.capacity_reservation.tags #=> Array
|
3011
|
+
# resp.capacity_reservation.tags[0].key #=> String
|
3012
|
+
# resp.capacity_reservation.tags[0].value #=> String
|
3013
|
+
#
|
3014
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation AWS API Documentation
|
3015
|
+
#
|
3016
|
+
# @overload create_capacity_reservation(params = {})
|
3017
|
+
# @param [Hash] params ({})
|
3018
|
+
def create_capacity_reservation(params = {}, options = {})
|
3019
|
+
req = build_request(:create_capacity_reservation, params)
|
3020
|
+
req.send_request(options)
|
3021
|
+
end
|
3022
|
+
|
2783
3023
|
# Provides information to AWS about your VPN customer gateway device.
|
2784
3024
|
# The customer gateway is the appliance at your end of the VPN
|
2785
3025
|
# connection. (The device on the AWS side of the VPN connection is the
|
@@ -4063,6 +4303,12 @@ module Aws::EC2
|
|
4063
4303
|
# core_count: 1,
|
4064
4304
|
# threads_per_core: 1,
|
4065
4305
|
# },
|
4306
|
+
# capacity_reservation_specification: {
|
4307
|
+
# capacity_reservation_preference: "open", # accepts open, none
|
4308
|
+
# capacity_reservation_target: {
|
4309
|
+
# capacity_reservation_id: "String",
|
4310
|
+
# },
|
4311
|
+
# },
|
4066
4312
|
# },
|
4067
4313
|
# })
|
4068
4314
|
#
|
@@ -4288,6 +4534,12 @@ module Aws::EC2
|
|
4288
4534
|
# core_count: 1,
|
4289
4535
|
# threads_per_core: 1,
|
4290
4536
|
# },
|
4537
|
+
# capacity_reservation_specification: {
|
4538
|
+
# capacity_reservation_preference: "open", # accepts open, none
|
4539
|
+
# capacity_reservation_target: {
|
4540
|
+
# capacity_reservation_id: "String",
|
4541
|
+
# },
|
4542
|
+
# },
|
4291
4543
|
# },
|
4292
4544
|
# })
|
4293
4545
|
#
|
@@ -4366,6 +4618,8 @@ module Aws::EC2
|
|
4366
4618
|
# resp.launch_template_version.launch_template_data.credit_specification.cpu_credits #=> String
|
4367
4619
|
# resp.launch_template_version.launch_template_data.cpu_options.core_count #=> Integer
|
4368
4620
|
# resp.launch_template_version.launch_template_data.cpu_options.threads_per_core #=> Integer
|
4621
|
+
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
4622
|
+
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
4369
4623
|
#
|
4370
4624
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateLaunchTemplateVersion AWS API Documentation
|
4371
4625
|
#
|
@@ -8982,6 +9236,81 @@ module Aws::EC2
|
|
8982
9236
|
req.send_request(options)
|
8983
9237
|
end
|
8984
9238
|
|
9239
|
+
# Describes one or more of your Capacity Reservations. The results
|
9240
|
+
# describe only the Capacity Reservations in the AWS Region that you're
|
9241
|
+
# currently using.
|
9242
|
+
#
|
9243
|
+
# @option params [Array<String>] :capacity_reservation_ids
|
9244
|
+
# The ID of the Capacity Reservation.
|
9245
|
+
#
|
9246
|
+
# @option params [String] :next_token
|
9247
|
+
# The token to retrieve the next page of results.
|
9248
|
+
#
|
9249
|
+
# @option params [Integer] :max_results
|
9250
|
+
# The maximum number of results to return for the request in a single
|
9251
|
+
# page. The remaining results can be seen by sending another request
|
9252
|
+
# with the returned nextToken value.
|
9253
|
+
#
|
9254
|
+
# @option params [Array<Types::Filter>] :filters
|
9255
|
+
# One or more filters.
|
9256
|
+
#
|
9257
|
+
# @option params [Boolean] :dry_run
|
9258
|
+
# Checks whether you have the required permissions for the action,
|
9259
|
+
# without actually making the request, and provides an error response.
|
9260
|
+
# If you have the required permissions, the error response is
|
9261
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
9262
|
+
#
|
9263
|
+
# @return [Types::DescribeCapacityReservationsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
9264
|
+
#
|
9265
|
+
# * {Types::DescribeCapacityReservationsResult#next_token #next_token} => String
|
9266
|
+
# * {Types::DescribeCapacityReservationsResult#capacity_reservations #capacity_reservations} => Array<Types::CapacityReservation>
|
9267
|
+
#
|
9268
|
+
# @example Request syntax with placeholder values
|
9269
|
+
#
|
9270
|
+
# resp = client.describe_capacity_reservations({
|
9271
|
+
# capacity_reservation_ids: ["String"],
|
9272
|
+
# next_token: "String",
|
9273
|
+
# max_results: 1,
|
9274
|
+
# filters: [
|
9275
|
+
# {
|
9276
|
+
# name: "String",
|
9277
|
+
# values: ["String"],
|
9278
|
+
# },
|
9279
|
+
# ],
|
9280
|
+
# dry_run: false,
|
9281
|
+
# })
|
9282
|
+
#
|
9283
|
+
# @example Response structure
|
9284
|
+
#
|
9285
|
+
# resp.next_token #=> String
|
9286
|
+
# resp.capacity_reservations #=> Array
|
9287
|
+
# resp.capacity_reservations[0].capacity_reservation_id #=> String
|
9288
|
+
# resp.capacity_reservations[0].instance_type #=> String
|
9289
|
+
# resp.capacity_reservations[0].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"
|
9290
|
+
# resp.capacity_reservations[0].availability_zone #=> String
|
9291
|
+
# resp.capacity_reservations[0].tenancy #=> String, one of "default", "dedicated"
|
9292
|
+
# resp.capacity_reservations[0].total_instance_count #=> Integer
|
9293
|
+
# resp.capacity_reservations[0].available_instance_count #=> Integer
|
9294
|
+
# resp.capacity_reservations[0].ebs_optimized #=> Boolean
|
9295
|
+
# resp.capacity_reservations[0].ephemeral_storage #=> Boolean
|
9296
|
+
# resp.capacity_reservations[0].state #=> String, one of "active", "expired", "cancelled", "pending", "failed"
|
9297
|
+
# resp.capacity_reservations[0].end_date #=> Time
|
9298
|
+
# resp.capacity_reservations[0].end_date_type #=> String, one of "unlimited", "limited"
|
9299
|
+
# resp.capacity_reservations[0].instance_match_criteria #=> String, one of "open", "targeted"
|
9300
|
+
# resp.capacity_reservations[0].create_date #=> Time
|
9301
|
+
# resp.capacity_reservations[0].tags #=> Array
|
9302
|
+
# resp.capacity_reservations[0].tags[0].key #=> String
|
9303
|
+
# resp.capacity_reservations[0].tags[0].value #=> String
|
9304
|
+
#
|
9305
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations AWS API Documentation
|
9306
|
+
#
|
9307
|
+
# @overload describe_capacity_reservations(params = {})
|
9308
|
+
# @param [Hash] params ({})
|
9309
|
+
def describe_capacity_reservations(params = {}, options = {})
|
9310
|
+
req = build_request(:describe_capacity_reservations, params)
|
9311
|
+
req.send_request(options)
|
9312
|
+
end
|
9313
|
+
|
8985
9314
|
# Describes one or more of your linked EC2-Classic instances. This
|
8986
9315
|
# request only returns information about EC2-Classic instances linked to
|
8987
9316
|
# a VPC through ClassicLink. You cannot use this request to return
|
@@ -11926,6 +12255,9 @@ module Aws::EC2
|
|
11926
12255
|
# resp.reservations[0].instances[0].virtualization_type #=> String, one of "hvm", "paravirtual"
|
11927
12256
|
# resp.reservations[0].instances[0].cpu_options.core_count #=> Integer
|
11928
12257
|
# resp.reservations[0].instances[0].cpu_options.threads_per_core #=> Integer
|
12258
|
+
# resp.reservations[0].instances[0].capacity_reservation_id #=> String
|
12259
|
+
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
12260
|
+
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
11929
12261
|
# resp.reservations[0].owner_id #=> String
|
11930
12262
|
# resp.reservations[0].requester_id #=> String
|
11931
12263
|
# resp.reservations[0].reservation_id #=> String
|
@@ -12341,6 +12673,8 @@ module Aws::EC2
|
|
12341
12673
|
# resp.launch_template_versions[0].launch_template_data.credit_specification.cpu_credits #=> String
|
12342
12674
|
# resp.launch_template_versions[0].launch_template_data.cpu_options.core_count #=> Integer
|
12343
12675
|
# resp.launch_template_versions[0].launch_template_data.cpu_options.threads_per_core #=> Integer
|
12676
|
+
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
12677
|
+
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
12344
12678
|
# resp.next_token #=> String
|
12345
12679
|
#
|
12346
12680
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions AWS API Documentation
|
@@ -19453,6 +19787,8 @@ module Aws::EC2
|
|
19453
19787
|
# resp.launch_template_data.credit_specification.cpu_credits #=> String
|
19454
19788
|
# resp.launch_template_data.cpu_options.core_count #=> Integer
|
19455
19789
|
# resp.launch_template_data.cpu_options.threads_per_core #=> Integer
|
19790
|
+
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
19791
|
+
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
19456
19792
|
#
|
19457
19793
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData AWS API Documentation
|
19458
19794
|
#
|
@@ -20091,6 +20427,80 @@ module Aws::EC2
|
|
20091
20427
|
req.send_request(options)
|
20092
20428
|
end
|
20093
20429
|
|
20430
|
+
# Modifies a Capacity Reservation's capacity and the conditions under
|
20431
|
+
# which it is to be released. You cannot change a Capacity
|
20432
|
+
# Reservation's instance type, EBS optimization, instance store
|
20433
|
+
# settings, platform, Availability Zone, or instance eligibility. If you
|
20434
|
+
# need to modify any of these attributes, we recommend that you cancel
|
20435
|
+
# the Capacity Reservation, and then create a new one with the required
|
20436
|
+
# attributes.
|
20437
|
+
#
|
20438
|
+
# @option params [required, String] :capacity_reservation_id
|
20439
|
+
# The ID of the Capacity Reservation.
|
20440
|
+
#
|
20441
|
+
# @option params [Integer] :instance_count
|
20442
|
+
# The number of instances for which to reserve capacity.
|
20443
|
+
#
|
20444
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_date
|
20445
|
+
# The date and time at which the Capacity Reservation expires. When a
|
20446
|
+
# Capacity Reservation expires, the reserved capacity is released and
|
20447
|
+
# you can no longer launch instances into it. The Capacity
|
20448
|
+
# Reservation's state changes to `expired` when it reaches its end date
|
20449
|
+
# and time.
|
20450
|
+
#
|
20451
|
+
# The Capacity Reservation is cancelled within an hour from the
|
20452
|
+
# specified time. For example, if you specify 5/31/2019, 13:30:55, the
|
20453
|
+
# Capacity Reservation is guaranteed to end between 13:30:55 and
|
20454
|
+
# 14:30:55 on 5/31/2019.
|
20455
|
+
#
|
20456
|
+
# You must provide an `EndDate` value if `EndDateType` is `limited`.
|
20457
|
+
# Omit `EndDate` if `EndDateType` is `unlimited`.
|
20458
|
+
#
|
20459
|
+
# @option params [String] :end_date_type
|
20460
|
+
# Indicates the way in which the Capacity Reservation ends. A Capacity
|
20461
|
+
# Reservation can have one of the following end types:
|
20462
|
+
#
|
20463
|
+
# * `unlimited` - The Capacity Reservation remains active until you
|
20464
|
+
# explicitly cancel it. Do not provide an `EndDate` value if
|
20465
|
+
# `EndDateType` is `unlimited`.
|
20466
|
+
#
|
20467
|
+
# * `limited` - The Capacity Reservation expires automatically at a
|
20468
|
+
# specified date and time. You must provide an `EndDate` value if
|
20469
|
+
# `EndDateType` is `limited`.
|
20470
|
+
#
|
20471
|
+
# @option params [Boolean] :dry_run
|
20472
|
+
# Checks whether you have the required permissions for the action,
|
20473
|
+
# without actually making the request, and provides an error response.
|
20474
|
+
# If you have the required permissions, the error response is
|
20475
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
20476
|
+
#
|
20477
|
+
# @return [Types::ModifyCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
20478
|
+
#
|
20479
|
+
# * {Types::ModifyCapacityReservationResult#return #return} => Boolean
|
20480
|
+
#
|
20481
|
+
# @example Request syntax with placeholder values
|
20482
|
+
#
|
20483
|
+
# resp = client.modify_capacity_reservation({
|
20484
|
+
# capacity_reservation_id: "String", # required
|
20485
|
+
# instance_count: 1,
|
20486
|
+
# end_date: Time.now,
|
20487
|
+
# end_date_type: "unlimited", # accepts unlimited, limited
|
20488
|
+
# dry_run: false,
|
20489
|
+
# })
|
20490
|
+
#
|
20491
|
+
# @example Response structure
|
20492
|
+
#
|
20493
|
+
# resp.return #=> Boolean
|
20494
|
+
#
|
20495
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation AWS API Documentation
|
20496
|
+
#
|
20497
|
+
# @overload modify_capacity_reservation(params = {})
|
20498
|
+
# @param [Hash] params ({})
|
20499
|
+
def modify_capacity_reservation(params = {}, options = {})
|
20500
|
+
req = build_request(:modify_capacity_reservation, params)
|
20501
|
+
req.send_request(options)
|
20502
|
+
end
|
20503
|
+
|
20094
20504
|
# Modifies the specified EC2 Fleet.
|
20095
20505
|
#
|
20096
20506
|
# While the EC2 Fleet is being modified, it is in the `modifying` state.
|
@@ -20769,6 +21179,53 @@ module Aws::EC2
|
|
20769
21179
|
req.send_request(options)
|
20770
21180
|
end
|
20771
21181
|
|
21182
|
+
# Modifies the Capacity Reservation settings for a stopped instance. Use
|
21183
|
+
# this action to configure an instance to target a specific Capacity
|
21184
|
+
# Reservation, run in any `open` Capacity Reservation with matching
|
21185
|
+
# attributes, or run On-Demand Instance capacity.
|
21186
|
+
#
|
21187
|
+
# @option params [required, String] :instance_id
|
21188
|
+
# The ID of the instance to be modified.
|
21189
|
+
#
|
21190
|
+
# @option params [required, Types::CapacityReservationSpecification] :capacity_reservation_specification
|
21191
|
+
# Information about the Capacity Reservation targeting option.
|
21192
|
+
#
|
21193
|
+
# @option params [Boolean] :dry_run
|
21194
|
+
# Checks whether you have the required permissions for the action,
|
21195
|
+
# without actually making the request, and provides an error response.
|
21196
|
+
# If you have the required permissions, the error response is
|
21197
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
21198
|
+
#
|
21199
|
+
# @return [Types::ModifyInstanceCapacityReservationAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
21200
|
+
#
|
21201
|
+
# * {Types::ModifyInstanceCapacityReservationAttributesResult#return #return} => Boolean
|
21202
|
+
#
|
21203
|
+
# @example Request syntax with placeholder values
|
21204
|
+
#
|
21205
|
+
# resp = client.modify_instance_capacity_reservation_attributes({
|
21206
|
+
# instance_id: "String", # required
|
21207
|
+
# capacity_reservation_specification: { # required
|
21208
|
+
# capacity_reservation_preference: "open", # accepts open, none
|
21209
|
+
# capacity_reservation_target: {
|
21210
|
+
# capacity_reservation_id: "String",
|
21211
|
+
# },
|
21212
|
+
# },
|
21213
|
+
# dry_run: false,
|
21214
|
+
# })
|
21215
|
+
#
|
21216
|
+
# @example Response structure
|
21217
|
+
#
|
21218
|
+
# resp.return #=> Boolean
|
21219
|
+
#
|
21220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes AWS API Documentation
|
21221
|
+
#
|
21222
|
+
# @overload modify_instance_capacity_reservation_attributes(params = {})
|
21223
|
+
# @param [Hash] params ({})
|
21224
|
+
def modify_instance_capacity_reservation_attributes(params = {}, options = {})
|
21225
|
+
req = build_request(:modify_instance_capacity_reservation_attributes, params)
|
21226
|
+
req.send_request(options)
|
21227
|
+
end
|
21228
|
+
|
20772
21229
|
# Modifies the credit option for CPU usage on a running or stopped T2 or
|
20773
21230
|
# T3 instance. The credit options are `standard` and `unlimited`.
|
20774
21231
|
#
|
@@ -24915,6 +25372,9 @@ module Aws::EC2
|
|
24915
25372
|
#
|
24916
25373
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html
|
24917
25374
|
#
|
25375
|
+
# @option params [Types::CapacityReservationSpecification] :capacity_reservation_specification
|
25376
|
+
# Information about the Capacity Reservation targeting option.
|
25377
|
+
#
|
24918
25378
|
# @return [Types::Reservation] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
24919
25379
|
#
|
24920
25380
|
# * {Types::Reservation#groups #groups} => Array<Types::GroupIdentifier>
|
@@ -25085,6 +25545,12 @@ module Aws::EC2
|
|
25085
25545
|
# core_count: 1,
|
25086
25546
|
# threads_per_core: 1,
|
25087
25547
|
# },
|
25548
|
+
# capacity_reservation_specification: {
|
25549
|
+
# capacity_reservation_preference: "open", # accepts open, none
|
25550
|
+
# capacity_reservation_target: {
|
25551
|
+
# capacity_reservation_id: "String",
|
25552
|
+
# },
|
25553
|
+
# },
|
25088
25554
|
# })
|
25089
25555
|
#
|
25090
25556
|
# @example Response structure
|
@@ -25187,6 +25653,9 @@ module Aws::EC2
|
|
25187
25653
|
# resp.instances[0].virtualization_type #=> String, one of "hvm", "paravirtual"
|
25188
25654
|
# resp.instances[0].cpu_options.core_count #=> Integer
|
25189
25655
|
# resp.instances[0].cpu_options.threads_per_core #=> Integer
|
25656
|
+
# resp.instances[0].capacity_reservation_id #=> String
|
25657
|
+
# resp.instances[0].capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
25658
|
+
# resp.instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
25190
25659
|
# resp.owner_id #=> String
|
25191
25660
|
# resp.requester_id #=> String
|
25192
25661
|
# resp.reservation_id #=> String
|
@@ -26124,7 +26593,7 @@ module Aws::EC2
|
|
26124
26593
|
params: params,
|
26125
26594
|
config: config)
|
26126
26595
|
context[:gem_name] = 'aws-sdk-ec2'
|
26127
|
-
context[:gem_version] = '1.
|
26596
|
+
context[:gem_version] = '1.54.0'
|
26128
26597
|
Seahorse::Client::Request.new(handlers, context)
|
26129
26598
|
end
|
26130
26599
|
|