ec2_get_spot_placement_scores: Calculates the Spot placement score for a Region or...

View source: R/ec2_operations.R

ec2_get_spot_placement_scoresR Documentation

Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements

Description

Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.

See https://www.paws-r-sdk.com/docs/ec2_get_spot_placement_scores/ for full documentation.

Usage

ec2_get_spot_placement_scores(
  InstanceTypes = NULL,
  TargetCapacity,
  TargetCapacityUnitType = NULL,
  SingleAvailabilityZone = NULL,
  RegionNames = NULL,
  InstanceRequirementsWithMetadata = NULL,
  DryRun = NULL,
  MaxResults = NULL,
  NextToken = NULL
)

Arguments

InstanceTypes

The instance types. We recommend that you specify at least three instance types. If you specify one or two instance types, or specify variations of a single instance type (for example, an m3.xlarge with and without instance storage), the returned placement score will always be low.

If you specify InstanceTypes, you can't specify InstanceRequirementsWithMetadata.

TargetCapacity

[required] The target capacity.

TargetCapacityUnitType

The unit for the target capacity.

Default: units (translates to number of instances)

SingleAvailabilityZone

Specify true so that the response returns a list of scored Availability Zones. Otherwise, the response returns a list of scored Regions.

A list of scored Availability Zones is useful if you want to launch all of your Spot capacity into a single Availability Zone.

RegionNames

The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example, us-east-1.

InstanceRequirementsWithMetadata

The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

If you specify InstanceRequirementsWithMetadata, you can't specify InstanceTypes.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

MaxResults

The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

NextToken

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.


paws.compute documentation built on Sept. 12, 2023, 1:28 a.m.