SpotInstanceRequest
¶
Source code in docs_src/capo_ec2/types/spot_instance_request.py
actual_block_hourly_price
instance-attribute
¶
actual_block_hourly_price: NotRequired[String]
Deprecated.
availability_zone_group
instance-attribute
¶
availability_zone_group: NotRequired[String]
The Availability Zone group. If you specify the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
block_duration_minutes
instance-attribute
¶
block_duration_minutes: NotRequired[Integer]
Deprecated.
create_time
instance-attribute
¶
create_time: NotRequired[DateTime]
The date and time when the Spot Instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
fault
instance-attribute
¶
fault: NotRequired[SpotInstanceStateFault]
The fault codes for the Spot Instance request, if any.
instance_id
instance-attribute
¶
instance_id: NotRequired[InstanceId]
The instance ID, if an instance has been launched to fulfill the Spot Instance request.
instance_interruption_behavior
instance-attribute
¶
instance_interruption_behavior: NotRequired[InstanceInterruptionBehavior]
The behavior when a Spot Instance is interrupted.
launch_group
instance-attribute
¶
launch_group: NotRequired[String]
The instance launch group. Launch groups are Spot Instances that launch together and terminate together.
launch_specification
instance-attribute
¶
launch_specification: NotRequired[LaunchSpecification]
Additional information for launching instances.
launched_availability_zone
instance-attribute
¶
launched_availability_zone: NotRequired[String]
The Availability Zone in which the request is launched.
Either launchedAvailabilityZone or launchedAvailabilityZoneId can be specified, but not both
launched_availability_zone_id
instance-attribute
¶
launched_availability_zone_id: NotRequired[String]
The ID of the Availability Zone in which the request is launched.
Either launchedAvailabilityZone or launchedAvailabilityZoneId can be specified, but not both
product_description
instance-attribute
¶
product_description: NotRequired[RIProductDescription]
The product description associated with the Spot Instance.
spot_instance_request_id
instance-attribute
¶
spot_instance_request_id: NotRequired[String]
The ID of the Spot Instance request.
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.
state
instance-attribute
¶
state: NotRequired[SpotInstanceState]
The state of the Spot Instance request. Spot request status information helps track your Spot Instance requests. For more information, see Spot request status in the Amazon EC2 User Guide.
status
instance-attribute
¶
status: NotRequired[SpotInstanceStatus]
The status code and status message describing the Spot Instance request.
valid_from
instance-attribute
¶
valid_from: NotRequired[DateTime]
The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.
valid_until
instance-attribute
¶
valid_until: NotRequired[DateTime]
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
-
For a persistent request, the request remains active until the
validUntildate and time is reached. Otherwise, the request remains active until you cancel it. -
For a one-time request, the request remains active until all instances launch, the request is canceled, or the
validUntildate and time is reached. By default, the request is valid for 7 days from the date the request was created.