Class: Aws::EC2::Types::InstanceMarketOptionsRequest

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 InstanceMarketOptionsRequest data as a hash:

{
  market_type: "spot", # accepts spot
  spot_options: {
    max_price: "String",
    spot_instance_type: "one-time", # accepts one-time, persistent
    block_duration_minutes: 1,
    valid_until: Time.now,
    instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
  },
}

Describes the market (purchasing) option for the instances.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#market_typeString

The market type.

Returns:

  • (String)


31405
31406
31407
31408
31409
31410
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 31405

class InstanceMarketOptionsRequest < Struct.new(
  :market_type,
  :spot_options)
  SENSITIVE = []
  include Aws::Structure
end

#spot_optionsTypes::SpotMarketOptions

The options for Spot Instances.



31405
31406
31407
31408
31409
31410
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 31405

class InstanceMarketOptionsRequest < Struct.new(
  :market_type,
  :spot_options)
  SENSITIVE = []
  include Aws::Structure
end