Class: Aws::EC2::Types::LaunchTemplateInstanceMarketOptionsRequest

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

Overview

Note:

When making an API call, you may pass LaunchTemplateInstanceMarketOptionsRequest 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
  },
}

The market (purchasing) option for the instances.

Instance Attribute Summary collapse

Instance Attribute Details

#market_typeString

The market type.

Returns:

  • (String)


24089
24090
24091
24092
24093
# File 'lib/aws-sdk-ec2/types.rb', line 24089

class LaunchTemplateInstanceMarketOptionsRequest < Struct.new(
  :market_type,
  :spot_options)
  include Aws::Structure
end

#spot_optionsTypes::LaunchTemplateSpotMarketOptionsRequest

The options for Spot Instances.



24089
24090
24091
24092
24093
# File 'lib/aws-sdk-ec2/types.rb', line 24089

class LaunchTemplateInstanceMarketOptionsRequest < Struct.new(
  :market_type,
  :spot_options)
  include Aws::Structure
end