Calculates the Spot placement score for a Region or Availability Zone based on the
specified target capacity and compute requirements.
You can specify your compute requirements either by using
InstanceRequirementsWithMetadata and letting Amazon EC2 choose the optimal
instance types to fulfill your Spot request, or you can specify the instance types by using
InstanceTypes.
Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.
You can specify your compute requirements either by using
InstanceRequirementsWithMetadata
and letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by usingInstanceTypes
.For more information, see Spot placement score in the Amazon EC2 User Guide.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, GetSpotPlacementScoresCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, GetSpotPlacementScoresCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new GetSpotPlacementScoresCommand(input); const response = await client.send(command);
GetSpotPlacementScoresCommandInput for command's
input
shape.GetSpotPlacementScoresCommandOutput for command's
response
shape.config for EC2Client's
config
shape.