Skip to content

EC2  >  Structures  >  SpotPrice

SpotPrice

Structure Class

SpotPrice dataclass

Bases: _SerdeShape

The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

Warning

If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

Attributes

availability_zone class-attribute instance-attribute
availability_zone: str | None = ...

The Availability Zone.

availability_zone_id class-attribute instance-attribute
availability_zone_id: str | None = ...

The ID of the Availability Zone.

instance_type class-attribute instance-attribute
instance_type: str | None = ...

The instance type.

product_description class-attribute instance-attribute
product_description: str | None = ...

A general description of the AMI.

spot_price class-attribute instance-attribute
spot_price: str | None = ...

The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

Warning

If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

timestamp class-attribute instance-attribute
timestamp: datetime | None = ...

The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).