AWSEC2SpotInstanceRequest

@interface AWSEC2SpotInstanceRequest

Describes a Spot Instance request.

  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable actualBlockHourlyPrice;

    Swift

    var actualBlockHourlyPrice: String? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable availabilityZoneGroup;

    Swift

    var availabilityZoneGroup: String? { get set }
  • The duration for the Spot Instance, in minutes.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable blockDurationMinutes;

    Swift

    var blockDurationMinutes: NSNumber? { get set }
  • The date and time when the Spot Instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable createTime;

    Swift

    var createTime: Date? { get set }
  • The fault codes for the Spot Instance request, if any.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2SpotInstanceStateFault *_Nullable fault;

    Swift

    var fault: AWSEC2SpotInstanceStateFault? { get set }
  • The instance ID, if an instance has been launched to fulfill the Spot Instance request.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable instanceId;

    Swift

    var instanceId: String? { get set }
  • The behavior when a Spot Instance is interrupted.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2InstanceInterruptionBehavior instanceInterruptionBehavior;

    Swift

    var instanceInterruptionBehavior: AWSEC2InstanceInterruptionBehavior { get set }
  • The instance launch group. Launch groups are Spot Instances that launch together and terminate together.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable launchGroup;

    Swift

    var launchGroup: String? { get set }
  • Additional information for launching instances.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2LaunchSpecification *_Nullable launchSpecification;

    Swift

    var launchSpecification: AWSEC2LaunchSpecification? { get set }
  • The Availability Zone in which the request is launched.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable launchedAvailabilityZone;

    Swift

    var launchedAvailabilityZone: String? { get set }
  • The product description associated with the Spot Instance.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2RIProductDescription productDescription;

    Swift

    var productDescription: AWSEC2RIProductDescription { get set }
  • The ID of the Spot Instance request.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable spotInstanceRequestId;

    Swift

    var spotInstanceRequestId: String? { get set }
  • The maximum price per hour that you are willing to pay for a Spot Instance.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable spotPrice;

    Swift

    var spotPrice: String? { get set }
  • The state of the Spot Instance request. Spot status information helps track your Spot Instance requests. For more information, see Spot Status in the Amazon EC2 User Guide for Linux Instances.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2SpotInstanceState state;

    Swift

    var state: AWSEC2SpotInstanceState { get set }
  • The status code and status message describing the Spot Instance request.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2SpotInstanceStatus *_Nullable status;

    Swift

    var status: AWSEC2SpotInstanceStatus? { get set }
  • Any tags assigned to the resource.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Tag *> *_Nullable tags;

    Swift

    var tags: [AWSEC2Tag]? { get set }
  • The Spot Instance request type.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2SpotInstanceType types;

    Swift

    var types: AWSEC2SpotInstanceType { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable validFrom;

    Swift

    var validFrom: Date? { get set }
  • 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. The default end date is 7 days from the current date.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable validUntil;

    Swift

    var validUntil: Date? { get set }