Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TargetCapacitySpecification

import type { TargetCapacitySpecification } from "https://aws-api.deno.dev/v0.3/services/ec2.ts?docs=full";

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

You can use the On-Demand Instance MaxTotalPrice parameter, the Spot Instance MaxTotalPrice, or both to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, EC2 Fleet will launch instances until it reaches the maximum amount that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. The MaxTotalPrice parameters are located in OnDemandOptions and SpotOptions.

interface TargetCapacitySpecification {
DefaultTargetCapacityType?: DefaultTargetCapacityType | null;
OnDemandTargetCapacity?: number | null;
SpotTargetCapacity?: number | null;
TargetCapacityUnitType?: TargetCapacityUnitType | null;
TotalTargetCapacity?: number | null;
}

§Properties

§
DefaultTargetCapacityType?: DefaultTargetCapacityType | null
[src]

The default TotalTargetCapacity, which is either Spot or On-Demand.

§
OnDemandTargetCapacity?: number | null
[src]

The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

§
SpotTargetCapacity?: number | null
[src]

The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

§
TargetCapacityUnitType?: TargetCapacityUnitType | null
[src]

The unit for the target capacity.

Default: units (translates to number of instances)

§
TotalTargetCapacity?: number | null
[src]

The number of units to request, filled using DefaultTargetCapacityType.