Class: Aws::EC2::Types::ModifyFleetRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

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: "FleetId", # 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
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

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.

Returns:

  • (Boolean)


33937
33938
33939
33940
33941
33942
33943
33944
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33937

class ModifyFleetRequest < Struct.new(
  :dry_run,
  :excess_capacity_termination_policy,
  :fleet_id,
  :target_capacity_specification)
  SENSITIVE = []
  include Aws::Structure
end

#excess_capacity_termination_policyString

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.

Returns:

  • (String)


33937
33938
33939
33940
33941
33942
33943
33944
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33937

class ModifyFleetRequest < Struct.new(
  :dry_run,
  :excess_capacity_termination_policy,
  :fleet_id,
  :target_capacity_specification)
  SENSITIVE = []
  include Aws::Structure
end

#fleet_idString

The ID of the EC2 Fleet.

Returns:

  • (String)


33937
33938
33939
33940
33941
33942
33943
33944
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33937

class ModifyFleetRequest < Struct.new(
  :dry_run,
  :excess_capacity_termination_policy,
  :fleet_id,
  :target_capacity_specification)
  SENSITIVE = []
  include Aws::Structure
end

#target_capacity_specificationTypes::TargetCapacitySpecificationRequest

The size of the EC2 Fleet.



33937
33938
33939
33940
33941
33942
33943
33944
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 33937

class ModifyFleetRequest < Struct.new(
  :dry_run,
  :excess_capacity_termination_policy,
  :fleet_id,
  :target_capacity_specification)
  SENSITIVE = []
  include Aws::Structure
end