Skip to content

SpotPrice

Source code in docs_src/capo_ec2/types/spot_price.py
class SpotPrice(TypedDict, closed=True):
    availability_zone: NotRequired["capo_ec2.types.string.String"]
    """<p>The Availability Zone.</p>"""
    availability_zone_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the Availability Zone.</p>"""
    instance_type: NotRequired["capo_ec2.types.instance_type.InstanceType"]
    """<p>The instance type.</p>"""
    product_description: NotRequired[
        "capo_ec2.types.ri_product_description.RIProductDescription"
    ]
    """<p>A general description of the AMI.</p>"""
    spot_price: NotRequired["capo_ec2.types.string.String"]
    """<p>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.</p> <important> <p>If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.</p> </important>"""
    timestamp: NotRequired["capo_ec2.types.date_time.DateTime"]
    """<p>The date and time the request was created, in UTC format (for example, <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>"""

availability_zone instance-attribute

availability_zone: NotRequired[String]

The Availability Zone.

availability_zone_id instance-attribute

availability_zone_id: NotRequired[String]

The ID of the Availability Zone.

instance_type instance-attribute

instance_type: NotRequired[InstanceType]

The instance type.

product_description instance-attribute

product_description: NotRequired[RIProductDescription]

A general description of the AMI.

spot_price instance-attribute

spot_price: NotRequired[String]

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.

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

timestamp instance-attribute

timestamp: NotRequired[DateTime]

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