You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::PurchaseRequest

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

{
  instance_count: 1, # required
  purchase_token: "String", # required
}

Describes a request to purchase Scheduled Instances.

Instance Attribute Summary collapse

Instance Attribute Details

#instance_countInteger

The number of instances.

Returns:

  • (Integer)


18955
18956
18957
18958
18959
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18955

class PurchaseRequest < Struct.new(
  :instance_count,
  :purchase_token)
  include Aws::Structure
end

#purchase_tokenString

The purchase token.

Returns:

  • (String)


18955
18956
18957
18958
18959
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18955

class PurchaseRequest < Struct.new(
  :instance_count,
  :purchase_token)
  include Aws::Structure
end