Module Values.GetCapacityTaskOutputSource

Gets details of the specified capacity task.

Sourcetype nonrec t = {
  1. capacityTaskId : CapacityTaskId.t option;
    (*

    ID of the capacity task.

    *)
  2. outpostId : OutpostId.t option;
    (*

    ID of the Outpost associated with the specified capacity task.

    *)
  3. orderId : OrderId.t option;
    (*

    ID of the Amazon Web Services Outposts order associated with the specified capacity task.

    *)
  4. assetId : AssetId.t option;
    (*

    The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.

    *)
  5. requestedInstancePools : RequestedInstancePools.t option;
    (*

    List of instance pools requested in the capacity task.

    *)
  6. instancesToExclude : InstancesToExclude.t option;
    (*

    Instances that the user specified they cannot stop in order to free up the capacity needed to run the capacity task.

    *)
  7. dryRun : DryRun.t option;
    (*

    Performs a dry run to determine if you are above or below instance capacity.

    *)
  8. capacityTaskStatus : CapacityTaskStatus.t option;
    (*

    Status of the capacity task. A capacity task can have one of the following statuses: REQUESTED - The capacity task was created and is awaiting the next step by Amazon Web Services Outposts. IN_PROGRESS - The capacity task is running and cannot be cancelled. FAILED - The capacity task could not be completed. COMPLETED - The capacity task has completed successfully. WAITING_FOR_EVACUATION - The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run. CANCELLATION_IN_PROGRESS - The capacity task has been cancelled and is in the process of cleaning up resources. CANCELLED - The capacity task is cancelled.

    *)
  9. failed : CapacityTaskFailure.t option;
    (*

    Reason why the capacity task failed.

    *)
  10. creationDate : ISO8601Timestamp.t option;
    (*

    The date the capacity task was created.

    *)
  11. completionDate : ISO8601Timestamp.t option;
    (*

    The date the capacity task ran successfully.

    *)
  12. lastModifiedDate : ISO8601Timestamp.t option;
    (*

    The date the capacity task was last modified.

    *)
  13. taskActionOnBlockingInstances : TaskActionOnBlockingInstances.t option;
    (*

    User-specified option in case an instance is blocking the capacity task from running. Shows one of the following options: WAIT_FOR_EVACUATION - Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. FAIL_TASK - The capacity task fails.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `NotFoundException of NotFoundException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?capacityTaskId:??? -> ?outpostId:??? -> ?orderId:??? -> ?assetId:??? -> ?requestedInstancePools:??? -> ?instancesToExclude:??? -> ?dryRun:??? -> ?capacityTaskStatus:??? -> ?failed:??? -> ?creationDate:??? -> ?completionDate:??? -> ?lastModifiedDate:??? -> ?taskActionOnBlockingInstances:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `NotFoundException of NotFoundException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `NotFoundException of NotFoundException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of DryRun.t | `Enum of string | `List of [> `Structure of (string * [> `Integer of InstanceTypeCount.t | `String of InstanceTypeName.t ]) list ] list | `String of CapacityTaskId.t | `Structure of (string * [> `Enum of string | `List of [> `Enum of string | `String of InstanceId.t ] list | `String of CapacityTaskStatusReason.t ]) list | `Timestamp of ISO8601Timestamp.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