// Purchases the Scheduled Instances with the specified schedule. Scheduled
// Instances enable you to purchase Amazon EC2 compute capacity by the hour for a
// one-year term. Before you can purchase a Scheduled Instance, you must call
// DescribeScheduledInstanceAvailability to check for available schedules and
// obtain a purchase token. After you purchase a Scheduled Instance, you must call
// RunScheduledInstances during each scheduled time period. After you purchase a
// Scheduled Instance, you can't cancel, modify, or resell your purchase.
Purchases the Scheduled Instances with the specified schedule. Scheduled
Instances enable you to purchase Amazon EC2 compute capacity by the hour for a
one-year term. Before you can purchase a Scheduled Instance, you must call
DescribeScheduledInstanceAvailability to check for available schedules and
obtain a purchase token. After you purchase a Scheduled Instance, you must call
RunScheduledInstances during each scheduled time period. After you purchase a
Scheduled Instance, you can't cancel, modify, or resell your purchase.
// Purchases the Scheduled Instances with the specified schedule . Scheduled // Instances enable you to purchase Amazon EC2 compute capacity by the hour for a // one - year term . Before you can purchase a Scheduled Instance you must call // DescribeScheduledInstanceAvailability to check for available schedules and // obtain a purchase token . After you purchase a Scheduled Instance you must call // RunScheduledInstances during each scheduled time period . After you purchase a // Scheduled Instance you can ' t cancel modify or resell your purchase .
func (c *Client) PurchaseScheduledInstances(ctx context.Context, params *PurchaseScheduledInstancesInput, optFns ...func(*Options)) (*PurchaseScheduledInstancesOutput, error) {
	if params == nil {
		params = &PurchaseScheduledInstancesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "PurchaseScheduledInstances", params, optFns, addOperationPurchaseScheduledInstancesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*PurchaseScheduledInstancesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) PurchaseScheduledInstances ( ctx context . Context , params * PurchaseScheduledInstancesInput , optFns ... func ( * Options ) ) ( * PurchaseScheduledInstancesOutput , error ) { if params == nil { params = & PurchaseScheduledInstancesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationPurchaseScheduledInstancesMiddlewares ) if err != nil { return nil , err } out := result . ( * PurchaseScheduledInstancesOutput ) out . ResultMetadata = metadata return out , nil }
Purchases the Scheduled Instances with the specified schedule.
Purchases the Scheduled Instances with the specified schedule .