Module Values_7.CreateFleetRequestSource

Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. Instances are launched immediately if there is available capacity. A single EC2 Fleet can include multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet. For more information, see EC2 Fleet in the Amazon EC2 User Guide.

Sourcetype nonrec t = {
  1. dryRun : Values_0.Boolean.t option;
    (*

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

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

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency. For more information, see Ensuring idempotency.

    *)
  3. spotOptions : Values_4.SpotOptionsRequest.t option;
    (*

    Describes the configuration of Spot Instances in an EC2 Fleet.

    *)
  4. onDemandOptions : Values_4.OnDemandOptionsRequest.t option;
    (*

    Describes the configuration of On-Demand Instances in an EC2 Fleet.

    *)
  5. reservedCapacityOptions : Values_4.ReservedCapacityOptionsRequest.t option;
    (*

    Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity. Supported only for fleets of type instant.

    *)
  6. excessCapacityTerminationPolicy : Values_1.FleetExcessCapacityTerminationPolicy.t option;
    (*

    Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. Supported only for fleets of type maintain.

    *)
  7. launchTemplateConfigs : Values_3.FleetLaunchTemplateConfigListRequest.t;
    (*

    The configuration for the EC2 Fleet.

    *)
  8. targetCapacitySpecification : Values_3.TargetCapacitySpecificationRequest.t;
    (*

    The number of units to request.

    *)
  9. terminateInstancesWithExpiration : Values_0.Boolean.t option;
    (*

    Indicates whether running instances should be terminated when the EC2 Fleet expires.

    *)
  10. type_ : Values_0.FleetType.t option;
    (*

    The fleet type. The default value is maintain. maintain - The EC2 Fleet places an asynchronous request for your desired capacity, and continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances. request - The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot capacity if Spot Instances are interrupted. instant - The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns errors for any instances that could not be launched. For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.

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

    The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

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

    The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.

    *)
  13. replaceUnhealthyInstances : Values_0.Boolean.t option;
    (*

    Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type maintain. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.

    *)
  14. tagSpecifications : Values_0.TagSpecificationList.t option;
    (*

    The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tag your resources. If the fleet type is instant, specify a resource type of fleet to tag the fleet or instance to tag the instances at launch. If the fleet type is maintain or request, specify a resource type of fleet to tag the fleet. You cannot specify a resource type of instance. To tag instances at launch, specify the tags in a launch template.

    *)
  15. context : Values_0.String_.t option;
    (*

    Reserved.

    *)
}
Sourceval context_ : string
Sourceval make : ?dryRun:??? -> ?clientToken:??? -> ?spotOptions:??? -> ?onDemandOptions:??? -> ?reservedCapacityOptions:??? -> ?excessCapacityTerminationPolicy:??? -> ?terminateInstancesWithExpiration:??? -> ?type_:??? -> ?validFrom:??? -> ?validUntil:??? -> ?replaceUnhealthyInstances:??? -> ?tagSpecifications:??? -> ?context:??? -> launchTemplateConfigs:Values_3.FleetLaunchTemplateConfigListRequest.t -> targetCapacitySpecification:Values_3.TargetCapacitySpecificationRequest.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Values_0.Boolean.t | `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Double of float | `Enum of string | `List of [> `Structure of (string * [> `String of string | `Structure of (string * [> `Boolean of bool | `Enum of string | `Integer of int | `String of string ]) list ]) list ] list | `String of string | `Structure of (string * [> `Boolean of bool | `Enum of string | `Integer of int | `List of [> `Enum of string | `String of string ] list | `String of string | `Structure of (string * [> `Double of float | `Integer of int | `Structure of (string * [> `List of [> `Structure of (string * [> `String of string ]) list ] list ]) list ]) list ]) list ]) list ] list | `Structure of (string * [> `String of Values_0.LaunchTemplateId.t ]) list ]) list ] list | `String of Values_0.String_.t | `Structure of (string * [> `Boolean of Values_0.Boolean.t | `Enum of string | `Integer of Values_0.Integer.t | `List of [> `Enum of string ] list | `String of Values_0.String_.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `Integer of Values_0.Integer.t ]) list ]) list ]) 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