Class: Aws::EC2::Types::PurchaseScheduledInstancesRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::PurchaseScheduledInstancesRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
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
-
#client_token ⇒ String
Unique, case-sensitive identifier that ensures the idempotency of the request.
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#purchase_requests ⇒ Array<Types::PurchaseRequest>
One or more purchase requests.
Instance Attribute Details
#client_token ⇒ String
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.
[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
28467 28468 28469 28470 28471 28472 |
# File 'lib/aws-sdk-ec2/types.rb', line 28467 class PurchaseScheduledInstancesRequest < Struct.new( :client_token, :dry_run, :purchase_requests) include Aws::Structure end |
#dry_run ⇒ Boolean
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`.
28467 28468 28469 28470 28471 28472 |
# File 'lib/aws-sdk-ec2/types.rb', line 28467 class PurchaseScheduledInstancesRequest < Struct.new( :client_token, :dry_run, :purchase_requests) include Aws::Structure end |
#purchase_requests ⇒ Array<Types::PurchaseRequest>
One or more purchase requests.
28467 28468 28469 28470 28471 28472 |
# File 'lib/aws-sdk-ec2/types.rb', line 28467 class PurchaseScheduledInstancesRequest < Struct.new( :client_token, :dry_run, :purchase_requests) include Aws::Structure end |