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

Class: Aws::EC2::Types::PurchaseScheduledInstancesRequest

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

{
  client_token: "String",
  dry_run: false,
  purchase_requests: [ # required
    {
      instance_count: 1, # required
      purchase_token: "String", # required
    },
  ],
}

Contains the parameters for PurchaseScheduledInstances.

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


19044
19045
19046
19047
19048
19049
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 19044

class PurchaseScheduledInstancesRequest < Struct.new(
  :client_token,
  :dry_run,
  :purchase_requests)
  include Aws::Structure
end

#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)


19044
19045
19046
19047
19048
19049
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 19044

class PurchaseScheduledInstancesRequest < Struct.new(
  :client_token,
  :dry_run,
  :purchase_requests)
  include Aws::Structure
end

#purchase_requestsArray<Types::PurchaseRequest>

One or more purchase requests.

Returns:



19044
19045
19046
19047
19048
19049
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 19044

class PurchaseScheduledInstancesRequest < Struct.new(
  :client_token,
  :dry_run,
  :purchase_requests)
  include Aws::Structure
end