aws-sdk-ec2 1.30.0 → 1.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9de39f6395c0f00573f4a5ad50ec4ea1b811f78
4
- data.tar.gz: 3e90eff1ae4ec4cf4105c79fb8e68e25e67e608e
3
+ metadata.gz: 0ff8ee334afdd3d8025b50ace9ebf37fba0dbdf1
4
+ data.tar.gz: 016e1d479a98874df7ff358c9fce8ca19445252a
5
5
  SHA512:
6
- metadata.gz: 6b3e845094ab1fa3c395556077eb7ae04db6182b7f8dfe6d1dbe3d9663f2d992e181ccaedfe10657021d77077cd5937ec42f61b468772c62d978b724ff69e3f4
7
- data.tar.gz: bbd5f4cad596741adfadc37283fccb116948507540762081f6d65498ee78efb54f42e30dd5d7747bc913fa7fad28198f0e3ab4a24aa05428475bf5cf4401ae8f
6
+ metadata.gz: 331fa603642217f36979d84ecec5bec551eee7ea7f33759a84679adae9c4ac792a6ea91df05917bef916ab4e5b27ffcaf13ded346aeced6d6e7b85624c13f85d
7
+ data.tar.gz: 57a975a9579cde33c1b41d15ea890e6d7c06ae1852bd5892f36c71a756c33c6fa92fdc753feea8cce72cbc12a9e1d3c9de30b07f688891a1d4de156ce023b1af
@@ -65,6 +65,6 @@ require_relative 'aws-sdk-ec2/customizations'
65
65
  # @service
66
66
  module Aws::EC2
67
67
 
68
- GEM_VERSION = '1.30.0'
68
+ GEM_VERSION = '1.31.0'
69
69
 
70
70
  end
@@ -2008,8 +2008,8 @@ module Aws::EC2
2008
2008
  # Cancels one or more Spot Instance requests. Spot Instances are
2009
2009
  # instances that Amazon EC2 starts on your behalf when the maximum price
2010
2010
  # that you specify exceeds the current Spot price. For more information,
2011
- # see [Spot Instance Requests][1] in the *Amazon Elastic Compute Cloud
2012
- # User Guide*.
2011
+ # see [Spot Instance Requests][1] in the *Amazon EC2 User Guide for
2012
+ # Linux Instances*.
2013
2013
  #
2014
2014
  # Canceling a Spot Instance request does not terminate running Spot
2015
2015
  # Instances associated with the request.
@@ -2915,6 +2915,151 @@ module Aws::EC2
2915
2915
  req.send_request(options)
2916
2916
  end
2917
2917
 
2918
+ # Launches an EC2 Fleet.
2919
+ #
2920
+ # You can create a single EC2 Fleet that includes multiple launch
2921
+ # specifications that vary by instance type, AMI, Availability Zone, or
2922
+ # subnet.
2923
+ #
2924
+ # For more information, see [Launching an EC2 Fleet][1] in the *Amazon
2925
+ # Elastic Compute Cloud User Guide*.
2926
+ #
2927
+ #
2928
+ #
2929
+ # [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-ec2-fleet.html
2930
+ #
2931
+ # @option params [Boolean] :dry_run
2932
+ # Checks whether you have the required permissions for the action,
2933
+ # without actually making the request, and provides an error response.
2934
+ # If you have the required permissions, the error response is
2935
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
2936
+ #
2937
+ # @option params [String] :client_token
2938
+ # Unique, case-sensitive identifier you provide to ensure the
2939
+ # idempotency of the request. For more information, see [Ensuring
2940
+ # Idempotency][1].
2941
+ #
2942
+ #
2943
+ #
2944
+ # [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
2945
+ #
2946
+ # @option params [Types::SpotOptionsRequest] :spot_options
2947
+ # Includes `SpotAllocationStrategy` and
2948
+ # `SpotInstanceInterruptionBehavior` inside this structure.
2949
+ #
2950
+ # @option params [String] :excess_capacity_termination_policy
2951
+ # Indicates whether running instances should be terminated if the total
2952
+ # target capacity of the EC2 Fleet is decreased below the current size
2953
+ # of the EC2 Fleet.
2954
+ #
2955
+ # @option params [required, Array<Types::FleetLaunchTemplateConfigRequest>] :launch_template_configs
2956
+ # The configuration for the EC2 Fleet.
2957
+ #
2958
+ # @option params [required, Types::TargetCapacitySpecificationRequest] :target_capacity_specification
2959
+ # The `TotalTargetCapacity`, `OnDemandTargetCapacity`,
2960
+ # `SpotTargetCapacity`, and `DefaultCapacityType` structure.
2961
+ #
2962
+ # @option params [Boolean] :terminate_instances_with_expiration
2963
+ # Indicates whether running instances should be terminated when the EC2
2964
+ # Fleet expires.
2965
+ #
2966
+ # @option params [String] :type
2967
+ # The type of request. Indicates whether the EC2 Fleet only `requests`
2968
+ # the target capacity, or also attempts to `maintain` it. If you request
2969
+ # a certain target capacity, EC2 Fleet only places the required
2970
+ # requests. It does not attempt to replenish instances if capacity is
2971
+ # diminished, and does not submit requests in alternative capacity pools
2972
+ # if capacity is unavailable. To maintain a certain target capacity, EC2
2973
+ # Fleet places the required requests to meet this target capacity. It
2974
+ # also automatically replenishes any interrupted Spot Instances.
2975
+ # Default: `maintain`.
2976
+ #
2977
+ # @option params [Time,DateTime,Date,Integer,String] :valid_from
2978
+ # The start date and time of the request, in UTC format (for example,
2979
+ # *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z). The default is to start
2980
+ # fulfilling the request immediately.
2981
+ #
2982
+ # @option params [Time,DateTime,Date,Integer,String] :valid_until
2983
+ # The end date and time of the request, in UTC format (for example,
2984
+ # *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z). At this point, no new EC2 Fleet
2985
+ # requests are placed or able to fulfill the request. The default end
2986
+ # date is 7 days from the current date.
2987
+ #
2988
+ # @option params [Boolean] :replace_unhealthy_instances
2989
+ # Indicates whether EC2 Fleet should replace unhealthy instances.
2990
+ #
2991
+ # @option params [Array<Types::TagSpecification>] :tag_specifications
2992
+ # The tags for an EC2 Fleet resource.
2993
+ #
2994
+ # @return [Types::CreateFleetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2995
+ #
2996
+ # * {Types::CreateFleetResult#fleet_id #fleet_id} => String
2997
+ #
2998
+ # @example Request syntax with placeholder values
2999
+ #
3000
+ # resp = client.create_fleet({
3001
+ # dry_run: false,
3002
+ # client_token: "String",
3003
+ # spot_options: {
3004
+ # allocation_strategy: "lowest-price", # accepts lowest-price, diversified
3005
+ # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
3006
+ # },
3007
+ # excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
3008
+ # launch_template_configs: [ # required
3009
+ # {
3010
+ # launch_template_specification: {
3011
+ # launch_template_id: "String",
3012
+ # launch_template_name: "LaunchTemplateName",
3013
+ # version: "String",
3014
+ # },
3015
+ # overrides: [
3016
+ # {
3017
+ # instance_type: "t1.micro", # accepts t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, t2.xlarge, t2.2xlarge, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m4.16xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, r4.large, r4.xlarge, r4.2xlarge, r4.4xlarge, r4.8xlarge, r4.16xlarge, x1.16xlarge, x1.32xlarge, x1e.xlarge, x1e.2xlarge, x1e.4xlarge, x1e.8xlarge, x1e.16xlarge, x1e.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, i3.large, i3.xlarge, i3.2xlarge, i3.4xlarge, i3.8xlarge, i3.16xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, c5.large, c5.xlarge, c5.2xlarge, c5.4xlarge, c5.9xlarge, c5.18xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, g3.4xlarge, g3.8xlarge, g3.16xlarge, cg1.4xlarge, p2.xlarge, p2.8xlarge, p2.16xlarge, p3.2xlarge, p3.8xlarge, p3.16xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge, f1.2xlarge, f1.16xlarge, m5.large, m5.xlarge, m5.2xlarge, m5.4xlarge, m5.12xlarge, m5.24xlarge, h1.2xlarge, h1.4xlarge, h1.8xlarge, h1.16xlarge
3018
+ # max_price: "String",
3019
+ # subnet_id: "String",
3020
+ # availability_zone: "String",
3021
+ # weighted_capacity: 1.0,
3022
+ # },
3023
+ # ],
3024
+ # },
3025
+ # ],
3026
+ # target_capacity_specification: { # required
3027
+ # total_target_capacity: 1, # required
3028
+ # on_demand_target_capacity: 1,
3029
+ # spot_target_capacity: 1,
3030
+ # default_target_capacity_type: "spot", # accepts spot, on-demand
3031
+ # },
3032
+ # terminate_instances_with_expiration: false,
3033
+ # type: "request", # accepts request, maintain
3034
+ # valid_from: Time.now,
3035
+ # valid_until: Time.now,
3036
+ # replace_unhealthy_instances: false,
3037
+ # tag_specifications: [
3038
+ # {
3039
+ # resource_type: "customer-gateway", # accepts customer-gateway, 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
3040
+ # tags: [
3041
+ # {
3042
+ # key: "String",
3043
+ # value: "String",
3044
+ # },
3045
+ # ],
3046
+ # },
3047
+ # ],
3048
+ # })
3049
+ #
3050
+ # @example Response structure
3051
+ #
3052
+ # resp.fleet_id #=> String
3053
+ #
3054
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet AWS API Documentation
3055
+ #
3056
+ # @overload create_fleet(params = {})
3057
+ # @param [Hash] params ({})
3058
+ def create_fleet(params = {}, options = {})
3059
+ req = build_request(:create_fleet, params)
3060
+ req.send_request(options)
3061
+ end
3062
+
2918
3063
  # Creates one or more flow logs to capture IP traffic for a specific
2919
3064
  # network interface, subnet, or VPC. Flow logs are delivered to a
2920
3065
  # specified log group in Amazon CloudWatch Logs. If you specify a VPC or
@@ -4943,8 +5088,8 @@ module Aws::EC2
4943
5088
 
4944
5089
  # Creates a data feed for Spot Instances, enabling you to view Spot
4945
5090
  # Instance usage logs. You can create one data feed per AWS account. For
4946
- # more information, see [Spot Instance Data Feed][1] in the *Amazon
4947
- # Elastic Compute Cloud User Guide*.
5091
+ # more information, see [Spot Instance Data Feed][1] in the *Amazon EC2
5092
+ # User Guide for Linux Instances*.
4948
5093
  #
4949
5094
  #
4950
5095
  #
@@ -6286,6 +6431,61 @@ module Aws::EC2
6286
6431
  req.send_request(options)
6287
6432
  end
6288
6433
 
6434
+ # Deletes the specified EC2 Fleet.
6435
+ #
6436
+ # After you delete an EC2 Fleet, the EC2 Fleet launches no new
6437
+ # instances. You must specify whether the EC2 Fleet should also
6438
+ # terminate its instances. If you terminate the instances, the EC2 Fleet
6439
+ # enters the `deleted_terminating` state. Otherwise, the EC2 Fleet
6440
+ # enters the `deleted_running` state, and the instances continue to run
6441
+ # until they are interrupted or you terminate them manually.
6442
+ #
6443
+ # @option params [Boolean] :dry_run
6444
+ # Checks whether you have the required permissions for the action,
6445
+ # without actually making the request, and provides an error response.
6446
+ # If you have the required permissions, the error response is
6447
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
6448
+ #
6449
+ # @option params [required, Array<String>] :fleet_ids
6450
+ # The IDs of the EC2 Fleets.
6451
+ #
6452
+ # @option params [required, Boolean] :terminate_instances
6453
+ # Indicates whether to terminate instances for an EC2 Fleet if it is
6454
+ # deleted successfully.
6455
+ #
6456
+ # @return [Types::DeleteFleetsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6457
+ #
6458
+ # * {Types::DeleteFleetsResult#successful_fleet_deletions #successful_fleet_deletions} => Array&lt;Types::DeleteFleetSuccessItem&gt;
6459
+ # * {Types::DeleteFleetsResult#unsuccessful_fleet_deletions #unsuccessful_fleet_deletions} => Array&lt;Types::DeleteFleetErrorItem&gt;
6460
+ #
6461
+ # @example Request syntax with placeholder values
6462
+ #
6463
+ # resp = client.delete_fleets({
6464
+ # dry_run: false,
6465
+ # fleet_ids: ["FleetIdentifier"], # required
6466
+ # terminate_instances: false, # required
6467
+ # })
6468
+ #
6469
+ # @example Response structure
6470
+ #
6471
+ # resp.successful_fleet_deletions #=> Array
6472
+ # resp.successful_fleet_deletions[0].current_fleet_state #=> String, one of "submitted", "active", "deleted", "failed", "deleted-running", "deleted-terminating", "modifying"
6473
+ # resp.successful_fleet_deletions[0].previous_fleet_state #=> String, one of "submitted", "active", "deleted", "failed", "deleted-running", "deleted-terminating", "modifying"
6474
+ # resp.successful_fleet_deletions[0].fleet_id #=> String
6475
+ # resp.unsuccessful_fleet_deletions #=> Array
6476
+ # resp.unsuccessful_fleet_deletions[0].error.code #=> String, one of "fleetIdDoesNotExist", "fleetIdMalformed", "fleetNotInDeletableState", "unexpectedError"
6477
+ # resp.unsuccessful_fleet_deletions[0].error.message #=> String
6478
+ # resp.unsuccessful_fleet_deletions[0].fleet_id #=> String
6479
+ #
6480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteFleets AWS API Documentation
6481
+ #
6482
+ # @overload delete_fleets(params = {})
6483
+ # @param [Hash] params ({})
6484
+ def delete_fleets(params = {}, options = {})
6485
+ req = build_request(:delete_fleets, params)
6486
+ req.send_request(options)
6487
+ end
6488
+
6289
6489
  # Deletes one or more flow logs.
6290
6490
  #
6291
6491
  # @option params [required, Array<String>] :flow_log_ids
@@ -8710,6 +8910,227 @@ module Aws::EC2
8710
8910
  req.send_request(options)
8711
8911
  end
8712
8912
 
8913
+ # Describes the events for the specified EC2 Fleet during the specified
8914
+ # time.
8915
+ #
8916
+ # @option params [Boolean] :dry_run
8917
+ # Checks whether you have the required permissions for the action,
8918
+ # without actually making the request, and provides an error response.
8919
+ # If you have the required permissions, the error response is
8920
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
8921
+ #
8922
+ # @option params [String] :event_type
8923
+ # The type of events to describe. By default, all events are described.
8924
+ #
8925
+ # @option params [Integer] :max_results
8926
+ # The maximum number of results to return in a single call. Specify a
8927
+ # value between 1 and 1000. The default value is 1000. To retrieve the
8928
+ # remaining results, make another call with the returned `NextToken`
8929
+ # value.
8930
+ #
8931
+ # @option params [String] :next_token
8932
+ # The token for the next set of results.
8933
+ #
8934
+ # @option params [required, String] :fleet_id
8935
+ # The ID of the EC2 Fleet.
8936
+ #
8937
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_time
8938
+ # The start date and time for the events, in UTC format (for example,
8939
+ # *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z).
8940
+ #
8941
+ # @return [Types::DescribeFleetHistoryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8942
+ #
8943
+ # * {Types::DescribeFleetHistoryResult#history_records #history_records} => Array&lt;Types::HistoryRecordEntry&gt;
8944
+ # * {Types::DescribeFleetHistoryResult#last_evaluated_time #last_evaluated_time} => Time
8945
+ # * {Types::DescribeFleetHistoryResult#next_token #next_token} => String
8946
+ # * {Types::DescribeFleetHistoryResult#fleet_id #fleet_id} => String
8947
+ # * {Types::DescribeFleetHistoryResult#start_time #start_time} => Time
8948
+ #
8949
+ # @example Request syntax with placeholder values
8950
+ #
8951
+ # resp = client.describe_fleet_history({
8952
+ # dry_run: false,
8953
+ # event_type: "instance-change", # accepts instance-change, fleet-change, service-error
8954
+ # max_results: 1,
8955
+ # next_token: "String",
8956
+ # fleet_id: "FleetIdentifier", # required
8957
+ # start_time: Time.now, # required
8958
+ # })
8959
+ #
8960
+ # @example Response structure
8961
+ #
8962
+ # resp.history_records #=> Array
8963
+ # resp.history_records[0].event_information.event_description #=> String
8964
+ # resp.history_records[0].event_information.event_sub_type #=> String
8965
+ # resp.history_records[0].event_information.instance_id #=> String
8966
+ # resp.history_records[0].event_type #=> String, one of "instance-change", "fleet-change", "service-error"
8967
+ # resp.history_records[0].timestamp #=> Time
8968
+ # resp.last_evaluated_time #=> Time
8969
+ # resp.next_token #=> String
8970
+ # resp.fleet_id #=> String
8971
+ # resp.start_time #=> Time
8972
+ #
8973
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetHistory AWS API Documentation
8974
+ #
8975
+ # @overload describe_fleet_history(params = {})
8976
+ # @param [Hash] params ({})
8977
+ def describe_fleet_history(params = {}, options = {})
8978
+ req = build_request(:describe_fleet_history, params)
8979
+ req.send_request(options)
8980
+ end
8981
+
8982
+ # Describes the running instances for the specified EC2 Fleet.
8983
+ #
8984
+ # @option params [Boolean] :dry_run
8985
+ # Checks whether you have the required permissions for the action,
8986
+ # without actually making the request, and provides an error response.
8987
+ # If you have the required permissions, the error response is
8988
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
8989
+ #
8990
+ # @option params [Integer] :max_results
8991
+ # The maximum number of results to return in a single call. Specify a
8992
+ # value between 1 and 1000. The default value is 1000. To retrieve the
8993
+ # remaining results, make another call with the returned `NextToken`
8994
+ # value.
8995
+ #
8996
+ # @option params [String] :next_token
8997
+ # The token for the next set of results.
8998
+ #
8999
+ # @option params [required, String] :fleet_id
9000
+ # The ID of the EC2 Fleet.
9001
+ #
9002
+ # @option params [Array<Types::Filter>] :filters
9003
+ # One or more filters.
9004
+ #
9005
+ # @return [Types::DescribeFleetInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9006
+ #
9007
+ # * {Types::DescribeFleetInstancesResult#active_instances #active_instances} => Array&lt;Types::ActiveInstance&gt;
9008
+ # * {Types::DescribeFleetInstancesResult#next_token #next_token} => String
9009
+ # * {Types::DescribeFleetInstancesResult#fleet_id #fleet_id} => String
9010
+ #
9011
+ # @example Request syntax with placeholder values
9012
+ #
9013
+ # resp = client.describe_fleet_instances({
9014
+ # dry_run: false,
9015
+ # max_results: 1,
9016
+ # next_token: "String",
9017
+ # fleet_id: "FleetIdentifier", # required
9018
+ # filters: [
9019
+ # {
9020
+ # name: "String",
9021
+ # values: ["String"],
9022
+ # },
9023
+ # ],
9024
+ # })
9025
+ #
9026
+ # @example Response structure
9027
+ #
9028
+ # resp.active_instances #=> Array
9029
+ # resp.active_instances[0].instance_id #=> String
9030
+ # resp.active_instances[0].instance_type #=> String
9031
+ # resp.active_instances[0].spot_instance_request_id #=> String
9032
+ # resp.active_instances[0].instance_health #=> String, one of "healthy", "unhealthy"
9033
+ # resp.next_token #=> String
9034
+ # resp.fleet_id #=> String
9035
+ #
9036
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetInstances AWS API Documentation
9037
+ #
9038
+ # @overload describe_fleet_instances(params = {})
9039
+ # @param [Hash] params ({})
9040
+ def describe_fleet_instances(params = {}, options = {})
9041
+ req = build_request(:describe_fleet_instances, params)
9042
+ req.send_request(options)
9043
+ end
9044
+
9045
+ # Describes the specified EC2 Fleet.
9046
+ #
9047
+ # @option params [Boolean] :dry_run
9048
+ # Checks whether you have the required permissions for the action,
9049
+ # without actually making the request, and provides an error response.
9050
+ # If you have the required permissions, the error response is
9051
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
9052
+ #
9053
+ # @option params [Integer] :max_results
9054
+ # The maximum number of results to return in a single call. Specify a
9055
+ # value between 1 and 1000. The default value is 1000. To retrieve the
9056
+ # remaining results, make another call with the returned `NextToken`
9057
+ # value.
9058
+ #
9059
+ # @option params [String] :next_token
9060
+ # The token for the next set of results.
9061
+ #
9062
+ # @option params [Array<String>] :fleet_ids
9063
+ # The ID of the EC2 Fleets.
9064
+ #
9065
+ # @option params [Array<Types::Filter>] :filters
9066
+ # One or more filters.
9067
+ #
9068
+ # @return [Types::DescribeFleetsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9069
+ #
9070
+ # * {Types::DescribeFleetsResult#next_token #next_token} => String
9071
+ # * {Types::DescribeFleetsResult#fleets #fleets} => Array&lt;Types::FleetData&gt;
9072
+ #
9073
+ # @example Request syntax with placeholder values
9074
+ #
9075
+ # resp = client.describe_fleets({
9076
+ # dry_run: false,
9077
+ # max_results: 1,
9078
+ # next_token: "String",
9079
+ # fleet_ids: ["FleetIdentifier"],
9080
+ # filters: [
9081
+ # {
9082
+ # name: "String",
9083
+ # values: ["String"],
9084
+ # },
9085
+ # ],
9086
+ # })
9087
+ #
9088
+ # @example Response structure
9089
+ #
9090
+ # resp.next_token #=> String
9091
+ # resp.fleets #=> Array
9092
+ # resp.fleets[0].activity_status #=> String, one of "error", "pending-fulfillment", "pending-termination", "fulfilled"
9093
+ # resp.fleets[0].create_time #=> Time
9094
+ # resp.fleets[0].fleet_id #=> String
9095
+ # resp.fleets[0].fleet_state #=> String, one of "submitted", "active", "deleted", "failed", "deleted-running", "deleted-terminating", "modifying"
9096
+ # resp.fleets[0].client_token #=> String
9097
+ # resp.fleets[0].excess_capacity_termination_policy #=> String, one of "no-termination", "termination"
9098
+ # resp.fleets[0].fulfilled_capacity #=> Float
9099
+ # resp.fleets[0].fulfilled_on_demand_capacity #=> Float
9100
+ # resp.fleets[0].launch_template_configs #=> Array
9101
+ # resp.fleets[0].launch_template_configs[0].launch_template_specification.launch_template_id #=> String
9102
+ # resp.fleets[0].launch_template_configs[0].launch_template_specification.launch_template_name #=> String
9103
+ # resp.fleets[0].launch_template_configs[0].launch_template_specification.version #=> String
9104
+ # resp.fleets[0].launch_template_configs[0].overrides #=> Array
9105
+ # resp.fleets[0].launch_template_configs[0].overrides[0].instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge"
9106
+ # resp.fleets[0].launch_template_configs[0].overrides[0].max_price #=> String
9107
+ # resp.fleets[0].launch_template_configs[0].overrides[0].subnet_id #=> String
9108
+ # resp.fleets[0].launch_template_configs[0].overrides[0].availability_zone #=> String
9109
+ # resp.fleets[0].launch_template_configs[0].overrides[0].weighted_capacity #=> Float
9110
+ # resp.fleets[0].target_capacity_specification.total_target_capacity #=> Integer
9111
+ # resp.fleets[0].target_capacity_specification.on_demand_target_capacity #=> Integer
9112
+ # resp.fleets[0].target_capacity_specification.spot_target_capacity #=> Integer
9113
+ # resp.fleets[0].target_capacity_specification.default_target_capacity_type #=> String, one of "spot", "on-demand"
9114
+ # resp.fleets[0].terminate_instances_with_expiration #=> Boolean
9115
+ # resp.fleets[0].type #=> String, one of "request", "maintain"
9116
+ # resp.fleets[0].valid_from #=> Time
9117
+ # resp.fleets[0].valid_until #=> Time
9118
+ # resp.fleets[0].replace_unhealthy_instances #=> Boolean
9119
+ # resp.fleets[0].spot_options.allocation_strategy #=> String, one of "lowest-price", "diversified"
9120
+ # resp.fleets[0].spot_options.instance_interruption_behavior #=> String, one of "hibernate", "stop", "terminate"
9121
+ # resp.fleets[0].tags #=> Array
9122
+ # resp.fleets[0].tags[0].key #=> String
9123
+ # resp.fleets[0].tags[0].value #=> String
9124
+ #
9125
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets AWS API Documentation
9126
+ #
9127
+ # @overload describe_fleets(params = {})
9128
+ # @param [Hash] params ({})
9129
+ def describe_fleets(params = {}, options = {})
9130
+ req = build_request(:describe_fleets, params)
9131
+ req.send_request(options)
9132
+ end
9133
+
8713
9134
  # Describes one or more flow logs. To view the information in your flow
8714
9135
  # logs (the log streams for the network interfaces), you must use the
8715
9136
  # CloudWatch Logs console or the CloudWatch Logs API.
@@ -13926,8 +14347,8 @@ module Aws::EC2
13926
14347
  end
13927
14348
 
13928
14349
  # Describes the data feed for Spot Instances. For more information, see
13929
- # [Spot Instance Data Feed][1] in the *Amazon Elastic Compute Cloud User
13930
- # Guide*.
14350
+ # [Spot Instance Data Feed][1] in the *Amazon EC2 User Guide for Linux
14351
+ # Instances*.
13931
14352
  #
13932
14353
  #
13933
14354
  #
@@ -14285,6 +14706,7 @@ module Aws::EC2
14285
14706
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.client_token #=> String
14286
14707
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.excess_capacity_termination_policy #=> String, one of "noTermination", "default"
14287
14708
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.fulfilled_capacity #=> Float
14709
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_fulfilled_capacity #=> Float
14288
14710
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.iam_fleet_role #=> String
14289
14711
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications #=> Array
14290
14712
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_specifications[0].security_groups #=> Array
@@ -14352,6 +14774,7 @@ module Aws::EC2
14352
14774
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.launch_template_configs[0].overrides[0].weighted_capacity #=> Float
14353
14775
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_price #=> String
14354
14776
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.target_capacity #=> Integer
14777
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_target_capacity #=> Integer
14355
14778
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.terminate_instances_with_expiration #=> Boolean
14356
14779
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.type #=> String, one of "request", "maintain"
14357
14780
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.valid_from #=> Time
@@ -14377,8 +14800,8 @@ module Aws::EC2
14377
14800
  # Describes the Spot Instance requests that belong to your account. Spot
14378
14801
  # Instances are instances that Amazon EC2 launches when the Spot price
14379
14802
  # that you specify exceeds the current Spot price. For more information,
14380
- # see [Spot Instance Requests][1] in the *Amazon Elastic Compute Cloud
14381
- # User Guide*.
14803
+ # see [Spot Instance Requests][1] in the *Amazon EC2 User Guide for
14804
+ # Linux Instances*.
14382
14805
  #
14383
14806
  # You can use `DescribeSpotInstanceRequests` to find a running Spot
14384
14807
  # Instance by examining the response. If the status of the Spot Instance
@@ -14387,8 +14810,8 @@ module Aws::EC2
14387
14810
  # DescribeInstances with a filter to look for instances where the
14388
14811
  # instance lifecycle is `spot`.
14389
14812
  #
14390
- # Spot Instance requests are deleted 4 hours after they are canceled and
14391
- # their instances are terminated.
14813
+ # Spot Instance requests are deleted four hours after they are canceled
14814
+ # and their instances are terminated.
14392
14815
  #
14393
14816
  #
14394
14817
  #
@@ -14487,7 +14910,7 @@ module Aws::EC2
14487
14910
  # \| `closed` \| `cancelled` \| `failed`). Spot request status
14488
14911
  # information can help you track your Amazon EC2 Spot Instance
14489
14912
  # requests. For more information, see [Spot Request Status][1] in the
14490
- # Amazon Elastic Compute Cloud User Guide.
14913
+ # *Amazon EC2 User Guide for Linux Instances*.
14491
14914
  #
14492
14915
  # * `status-code` - The short code describing the most recent evaluation
14493
14916
  # of your Spot Instance request.
@@ -14686,8 +15109,8 @@ module Aws::EC2
14686
15109
  end
14687
15110
 
14688
15111
  # Describes the Spot price history. For more information, see [Spot
14689
- # Instance Pricing History][1] in the *Amazon Elastic Compute Cloud User
14690
- # Guide*.
15112
+ # Instance Pricing History][1] in the *Amazon EC2 User Guide for Linux
15113
+ # Instances*.
14691
15114
  #
14692
15115
  # When you specify a start and end time, this operation returns the
14693
15116
  # prices of the instance types within the time range that you specified
@@ -14714,10 +15137,10 @@ module Aws::EC2
14714
15137
  # * `spot-price` - The Spot price. The value must match exactly (or use
14715
15138
  # wildcards; greater than or less than comparison is not supported).
14716
15139
  #
14717
- # * `timestamp` - The timestamp of the Spot price history, in UTC format
14718
- # (for example, *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z). You can use
14719
- # wildcards (* and ?). Greater than or less than comparison is not
14720
- # supported.
15140
+ # * `timestamp` - The time stamp of the Spot price history, in UTC
15141
+ # format (for example, *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z). You can
15142
+ # use wildcards (* and ?). Greater than or less than comparison is
15143
+ # not supported.
14721
15144
  #
14722
15145
  # @option params [String] :availability_zone
14723
15146
  # Filters the results by the specified Availability Zone.
@@ -18597,6 +19020,58 @@ module Aws::EC2
18597
19020
  req.send_request(options)
18598
19021
  end
18599
19022
 
19023
+ # Modifies the specified EC2 Fleet.
19024
+ #
19025
+ # While the EC2 Fleet is being modified, it is in the `modifying` state.
19026
+ #
19027
+ # @option params [Boolean] :dry_run
19028
+ # Checks whether you have the required permissions for the action,
19029
+ # without actually making the request, and provides an error response.
19030
+ # If you have the required permissions, the error response is
19031
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
19032
+ #
19033
+ # @option params [String] :excess_capacity_termination_policy
19034
+ # Indicates whether running instances should be terminated if the total
19035
+ # target capacity of the EC2 Fleet is decreased below the current size
19036
+ # of the EC2 Fleet.
19037
+ #
19038
+ # @option params [required, String] :fleet_id
19039
+ # The ID of the EC2 Fleet.
19040
+ #
19041
+ # @option params [required, Types::TargetCapacitySpecificationRequest] :target_capacity_specification
19042
+ # The size of the EC2 Fleet.
19043
+ #
19044
+ # @return [Types::ModifyFleetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
19045
+ #
19046
+ # * {Types::ModifyFleetResult#return #return} => Boolean
19047
+ #
19048
+ # @example Request syntax with placeholder values
19049
+ #
19050
+ # resp = client.modify_fleet({
19051
+ # dry_run: false,
19052
+ # excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
19053
+ # fleet_id: "FleetIdentifier", # required
19054
+ # target_capacity_specification: { # required
19055
+ # total_target_capacity: 1, # required
19056
+ # on_demand_target_capacity: 1,
19057
+ # spot_target_capacity: 1,
19058
+ # default_target_capacity_type: "spot", # accepts spot, on-demand
19059
+ # },
19060
+ # })
19061
+ #
19062
+ # @example Response structure
19063
+ #
19064
+ # resp.return #=> Boolean
19065
+ #
19066
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleet AWS API Documentation
19067
+ #
19068
+ # @overload modify_fleet(params = {})
19069
+ # @param [Hash] params ({})
19070
+ def modify_fleet(params = {}, options = {})
19071
+ req = build_request(:modify_fleet, params)
19072
+ req.send_request(options)
19073
+ end
19074
+
18600
19075
  # Modifies the specified attribute of the specified Amazon FPGA Image
18601
19076
  # (AFI).
18602
19077
  #
@@ -21659,6 +22134,11 @@ module Aws::EC2
21659
22134
 
21660
22135
  # Creates a Spot Fleet request.
21661
22136
  #
22137
+ # The Spot Fleet request specifies the total target capacity and the
22138
+ # On-Demand target capacity. Amazon EC2 calculates the difference
22139
+ # between the total capacity and On-Demand capacity, and launches the
22140
+ # difference as Spot capacity.
22141
+ #
21662
22142
  # You can submit a single request that includes multiple launch
21663
22143
  # specifications that vary by instance type, AMI, Availability Zone, or
21664
22144
  # subnet.
@@ -21675,11 +22155,11 @@ module Aws::EC2
21675
22155
  # fleet.
21676
22156
  #
21677
22157
  # You can specify tags for the Spot Instances. You cannot tag other
21678
- # resource types in a Spot Fleet request; only the `instance` resource
21679
- # type is supported.
22158
+ # resource types in a Spot Fleet request because only the `instance`
22159
+ # resource type is supported.
21680
22160
  #
21681
- # For more information, see [Spot Fleet Requests][1] in the *Amazon
21682
- # Elastic Compute Cloud User Guide*.
22161
+ # For more information, see [Spot Fleet Requests][1] in the *Amazon EC2
22162
+ # User Guide for Linux Instances*.
21683
22163
  #
21684
22164
  #
21685
22165
  #
@@ -21858,6 +22338,7 @@ module Aws::EC2
21858
22338
  # client_token: "String",
21859
22339
  # excess_capacity_termination_policy: "noTermination", # accepts noTermination, default
21860
22340
  # fulfilled_capacity: 1.0,
22341
+ # on_demand_fulfilled_capacity: 1.0,
21861
22342
  # iam_fleet_role: "String", # required
21862
22343
  # launch_specifications: [
21863
22344
  # {
@@ -21964,6 +22445,7 @@ module Aws::EC2
21964
22445
  # ],
21965
22446
  # spot_price: "String",
21966
22447
  # target_capacity: 1, # required
22448
+ # on_demand_target_capacity: 1,
21967
22449
  # terminate_instances_with_expiration: false,
21968
22450
  # type: "request", # accepts request, maintain
21969
22451
  # valid_from: Time.now,
@@ -22005,7 +22487,7 @@ module Aws::EC2
22005
22487
  # Creates a Spot Instance request. Spot Instances are instances that
22006
22488
  # Amazon EC2 launches when the maximum price that you specify exceeds
22007
22489
  # the current Spot price. For more information, see [Spot Instance
22008
- # Requests][1] in the *Amazon Elastic Compute Cloud User Guide*.
22490
+ # Requests][1] in the *Amazon EC2 User Guide for Linux Instances*.
22009
22491
  #
22010
22492
  #
22011
22493
  #
@@ -22045,13 +22527,13 @@ module Aws::EC2
22045
22527
  # notice, which gives the instance a two-minute warning before it
22046
22528
  # terminates.
22047
22529
  #
22048
- # Note that you can't specify an Availability Zone group or a launch
22049
- # group if you specify a duration.
22530
+ # You can't specify an Availability Zone group or a launch group if you
22531
+ # specify a duration.
22050
22532
  #
22051
22533
  # @option params [String] :client_token
22052
22534
  # Unique, case-sensitive identifier that you provide to ensure the
22053
22535
  # idempotency of the request. For more information, see [How to Ensure
22054
- # Idempotency][1] in the *Amazon Elastic Compute Cloud User Guide*.
22536
+ # Idempotency][1] in the *Amazon EC2 User Guide for Linux Instances*.
22055
22537
  #
22056
22538
  #
22057
22539
  #
@@ -23118,7 +23600,8 @@ module Aws::EC2
23118
23600
  # @option params [Types::LaunchTemplateSpecification] :launch_template
23119
23601
  # The launch template to use to launch the instances. Any parameters
23120
23602
  # that you specify in RunInstances override the same parameters in the
23121
- # launch template.
23603
+ # launch template. You can specify either the name or ID of a launch
23604
+ # template, but not both.
23122
23605
  #
23123
23606
  # @option params [Types::InstanceMarketOptionsRequest] :instance_market_options
23124
23607
  # The market (purchasing) option for the instances.
@@ -24116,7 +24599,7 @@ module Aws::EC2
24116
24599
  params: params,
24117
24600
  config: config)
24118
24601
  context[:gem_name] = 'aws-sdk-ec2'
24119
- context[:gem_version] = '1.30.0'
24602
+ context[:gem_version] = '1.31.0'
24120
24603
  Seahorse::Client::Request.new(handlers, context)
24121
24604
  end
24122
24605