AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Describe a Spot instance request.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.SpotInstanceRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class SpotInstanceRequest : Object

The SpotInstanceRequest type exposes the following members

Constructors

NameDescription
Public Method SpotInstanceRequest()

Properties

NameTypeDescription
Public Property AvailabilityZoneGroup System.String Gets and sets the property AvailabilityZoneGroup.

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.

Public Property CreateTime System.DateTime Gets and sets the property CreateTime.

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

Public Property Fault Amazon.EC2.Model.SpotInstanceStateFault Gets and sets the property Fault.

The fault codes for the Spot instance request, if any.

Public Property InstanceId System.String Gets and sets the property InstanceId.

The instance ID, if an instance has been launched to fulfill the Spot instance request.

Public Property LaunchedAvailabilityZone System.String Gets and sets the property LaunchedAvailabilityZone.

The Availability Zone in which the bid is launched.

Public Property LaunchGroup System.String Gets and sets the property LaunchGroup.

The instance launch group. Launch groups are Spot instances that launch together and terminate together.

Public Property LaunchSpecification Amazon.EC2.Model.LaunchSpecification Gets and sets the property LaunchSpecification.

Additional information for launching instances.

Public Property ProductDescription Amazon.EC2.RIProductDescription Gets and sets the property ProductDescription.

The product description associated with the Spot instance.

Public Property SpotInstanceRequestId System.String Gets and sets the property SpotInstanceRequestId.

The ID of the Spot instance request.

Public Property SpotPrice System.String Gets and sets the property SpotPrice.

The maximum hourly price (bid) for any Spot instance launched to fulfill the request.

Public Property State Amazon.EC2.SpotInstanceState Gets and sets the property State.

The state of the Spot instance request. Spot bid status information can help you track your Spot instance requests. For more information, see Spot Bid Status in the Amazon Elastic Compute Cloud User Guide.

Public Property Status Amazon.EC2.Model.SpotInstanceStatus Gets and sets the property Status.

The status code and status message describing the Spot instance request.

Public Property Tags System.Collections.Generic.List<Amazon.EC2.Model.Tag> Gets and sets the property Tags.

Any tags assigned to the resource.

Public Property Type Amazon.EC2.SpotInstanceType Gets and sets the property Type.

The Spot instance request type.

Public Property ValidFrom System.DateTime Gets and sets the property ValidFrom.

The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). 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.

Public Property ValidUntil System.DateTime Gets and sets the property ValidUntil.

The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). 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 is reached.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8