Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetSpotPlacementScoresCommand

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.

For more information, see Spot placement score in the Amazon EC2 User Guide.

example

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);
see

GetSpotPlacementScoresCommandInput for command's input shape.

see

GetSpotPlacementScoresCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: GetSpotPlacementScoresCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions