AWS SDK Version 3 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.

Describes a Spot instance request.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.SpotInstanceRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class SpotInstanceRequest

The SpotInstanceRequest type exposes the following members

Constructors

NameDescription
Public Method SpotInstanceRequest()

Properties

NameTypeDescription
Public Property ActualBlockHourlyPrice System.String

Gets and sets the property ActualBlockHourlyPrice.

If you specified a duration and your Spot instance request was fulfilled, this is the fixed hourly price in effect for the Spot instance while it runs.

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 BlockDurationMinutes System.Int32

Gets and sets the property BlockDurationMinutes.

The duration for the Spot instance, in minutes.

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 InstanceInterruptionBehavior Amazon.EC2.InstanceInterruptionBehavior

Gets and sets the property InstanceInterruptionBehavior.

Indicates whether a Spot instance stops or terminates when it is interrupted.

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 the 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). The request becomes active at this date and time.

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, it 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 Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms