Class: Aws::EC2::Types::ModifyFleetRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ModifyFleetRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
When making an API call, you may pass ModifyFleetRequest data as a hash:
{
dry_run: false,
excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
fleet_id: "FleetIdentifier", # required
target_capacity_specification: { # required
total_target_capacity: 1, # required
on_demand_target_capacity: 1,
spot_target_capacity: 1,
default_target_capacity_type: "spot", # accepts spot, on-demand
},
}
Instance Attribute Summary collapse
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#excess_capacity_termination_policy ⇒ String
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
-
#fleet_id ⇒ String
The ID of the EC2 Fleet.
-
#target_capacity_specification ⇒ Types::TargetCapacitySpecificationRequest
The size of the EC2 Fleet.
Instance Attribute Details
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ‘DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
25237 25238 25239 25240 25241 25242 25243 |
# File 'lib/aws-sdk-ec2/types.rb', line 25237 class ModifyFleetRequest < Struct.new( :dry_run, :excess_capacity_termination_policy, :fleet_id, :target_capacity_specification) include Aws::Structure end |
#excess_capacity_termination_policy ⇒ String
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
25237 25238 25239 25240 25241 25242 25243 |
# File 'lib/aws-sdk-ec2/types.rb', line 25237 class ModifyFleetRequest < Struct.new( :dry_run, :excess_capacity_termination_policy, :fleet_id, :target_capacity_specification) include Aws::Structure end |
#fleet_id ⇒ String
The ID of the EC2 Fleet.
25237 25238 25239 25240 25241 25242 25243 |
# File 'lib/aws-sdk-ec2/types.rb', line 25237 class ModifyFleetRequest < Struct.new( :dry_run, :excess_capacity_termination_policy, :fleet_id, :target_capacity_specification) include Aws::Structure end |
#target_capacity_specification ⇒ Types::TargetCapacitySpecificationRequest
The size of the EC2 Fleet.
25237 25238 25239 25240 25241 25242 25243 |
# File 'lib/aws-sdk-ec2/types.rb', line 25237 class ModifyFleetRequest < Struct.new( :dry_run, :excess_capacity_termination_policy, :fleet_id, :target_capacity_specification) include Aws::Structure end |