SpotMarketOptions
import type { SpotMarketOptions } from "https://aws-api.deno.dev/v0.3/services/ec2.ts?docs=full";
The options for Spot Instances.
interface SpotMarketOptions {
BlockDurationMinutes?: number | null;
InstanceInterruptionBehavior?: InstanceInterruptionBehavior | null;
MaxPrice?: string | null;
SpotInstanceType?: SpotInstanceType | null;
ValidUntil?: Date | number | null;
}§Properties
§
InstanceInterruptionBehavior?: InstanceInterruptionBehavior | null
[src]The behavior when a Spot Instance is interrupted.
The default is terminate
.
§
MaxPrice?: string | null
[src]The maximum hourly price you're willing to pay for the Spot Instances. The default is the On-Demand price.
§
SpotInstanceType?: SpotInstanceType | null
[src]The Spot Instance request type.
For RunInstances, persistent Spot Instance requests are only supported when the instance interruption behavior is either hibernate
or stop
.
§
ValidUntil?: Date | number | null
[src]The end date of the request, in UTC format (YYYY-MM-DD_T_HH:MM:_SS_Z). Supported only for persistent requests.
- For a persistent request, the request remains active until the
ValidUntil
date and time is reached. Otherwise, the request remains active until you cancel it. - For a one-time request,
ValidUntil
is not supported. The request remains active until all instances launch or you cancel the request.