AWSEC2SpotInstanceRequest

Objective-C

@interface AWSEC2SpotInstanceRequest

Swift

class AWSEC2SpotInstanceRequest

Describes a Spot Instance request.

  • Deprecated.

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

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

    Declaration

    Objective-C

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

    Swift

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

    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 (YYYY-MM-DDTHH:MM:SSZ).

    • For a persistent request, the request remains active until the validUntil date 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 validUntil date and time is reached. By default, the request is valid for 7 days from the date the request was created.

    Declaration

    Objective-C

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

    Swift

    var validUntil: Date? { get set }