Module Values_2.SpotInstanceRequestSource

Describes a Spot Instance request.

Sourcetype nonrec t = {
  1. actualBlockHourlyPrice : Values_0.String_.t option;
    (*

    Deprecated.

    *)
  2. availabilityZoneGroup : Values_0.String_.t option;
    (*

    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.

    *)
  3. blockDurationMinutes : Values_0.Integer.t option;
    (*

    Deprecated.

    *)
  4. createTime : Values_0.DateTime.t option;
    (*

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

    *)
  5. fault : Values_1.SpotInstanceStateFault.t option;
    (*

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

    *)
  6. instanceId : Values_0.InstanceId.t option;
    (*

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

    *)
  7. launchGroup : Values_0.String_.t option;
    (*

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

    *)
  8. launchSpecification : Values_1.LaunchSpecification.t option;
    (*

    Additional information for launching instances.

    *)
  9. launchedAvailabilityZone : Values_0.String_.t option;
    (*

    The Availability Zone in which the request is launched. Either launchedAvailabilityZone or launchedAvailabilityZoneId can be specified, but not both

    *)
  10. launchedAvailabilityZoneId : Values_0.String_.t option;
    (*

    The ID of the Availability Zone in which the request is launched. Either launchedAvailabilityZone or launchedAvailabilityZoneId can be specified, but not both

    *)
  11. productDescription : Values_1.RIProductDescription.t option;
    (*

    The product description associated with the Spot Instance.

    *)
  12. spotInstanceRequestId : Values_0.String_.t option;
    (*

    The ID of the Spot Instance request.

    *)
  13. spotPrice : Values_0.String_.t option;
    (*

    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.

    *)
  14. state : Values_1.SpotInstanceState.t option;
    (*

    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.

    *)
  15. status : Values_1.SpotInstanceStatus.t option;
    (*

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

    *)
  16. tags : Values_0.TagList.t option;
    (*

    Any tags assigned to the resource.

    *)
  17. type_ : Values_0.SpotInstanceType.t option;
    (*

    The Spot Instance request type.

    *)
  18. validFrom : Values_0.DateTime.t option;
    (*

    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.

    *)
  19. validUntil : Values_0.DateTime.t option;
    (*

    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.

    *)
  20. instanceInterruptionBehavior : Values_0.InstanceInterruptionBehavior.t option;
    (*

    The behavior when a Spot Instance is interrupted.

    *)
}
Sourceval make : ?actualBlockHourlyPrice:??? -> ?availabilityZoneGroup:??? -> ?blockDurationMinutes:??? -> ?createTime:??? -> ?fault:??? -> ?instanceId:??? -> ?launchGroup:??? -> ?launchSpecification:??? -> ?launchedAvailabilityZone:??? -> ?launchedAvailabilityZoneId:??? -> ?productDescription:??? -> ?spotInstanceRequestId:??? -> ?spotPrice:??? -> ?state:??? -> ?status:??? -> ?tags:??? -> ?type_:??? -> ?validFrom:??? -> ?validUntil:??? -> ?instanceInterruptionBehavior:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Values_0.Integer.t | `List of [> `Structure of (string * [> `String of string ]) list ] list | `String of Values_0.String_.t | `Structure of (string * [> `Boolean of Values_0.Boolean.t | `Enum of string | `List of [> `Structure of (string * [> `Boolean of bool | `Integer of int | `List of [> `String of string | `Structure of (string * [> `Boolean of bool | `String of string ]) list ] list | `String of string | `Structure of (string * [> `Boolean of bool | `Enum of string | `Integer of int | `String of string | `Structure of (string * [> `Boolean of bool ]) list ]) list ]) list ] list | `String of Values_0.String_.t | `Structure of (string * [> `Boolean of bool | `Enum of string | `String of string ]) list | `Timestamp of Values_0.DateTime.t ]) list | `Timestamp of Values_0.DateTime.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t