Creates a Spot Instance request.
Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.
For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide.
Inheritance Hierarchy
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class RequestSpotInstancesRequest : AmazonWebServiceRequest IRequestEvents
The RequestSpotInstancesRequest type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
RequestSpotInstancesRequest() |
Properties
Name | Description | |
---|---|---|
![]() |
AvailabilityZoneGroup | Specifies the Availability Zone group. When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone. |
![]() |
InstanceCount | Specifies the maximum number of Spot Instances to launch. |
![]() |
LaunchGroup | Specifies the instance launch group. Launch groups are Spot Instances that launch and terminate together. |
![]() |
LaunchSpecification | Specifies additional launch instance information. |
![]() |
SpotPrice | Specifies the maximum hourly price for any Spot Instance launched to fulfill the request. |
![]() |
Type |
Specifies the Spot Instance type.
Constraints: |
![]() |
ValidFrom | Defines the start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled. |
![]() |
ValidUntil | End date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached. |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8