Values.GetCapacityTaskOutputSourceGets details of the specified capacity task.
type nonrec t = {capacityTaskId : CapacityTaskId.t option;ID of the capacity task.
*)outpostId : OutpostId.t option;ID of the Outpost associated with the specified capacity task.
*)orderId : OrderId.t option;ID of the Amazon Web Services Outposts order associated with the specified capacity task.
*)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.
*)requestedInstancePools : RequestedInstancePools.t option;List of instance pools requested in the capacity task.
*)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.
*)dryRun : DryRun.t option;Performs a dry run to determine if you are above or below instance capacity.
*)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.
*)failed : CapacityTaskFailure.t option;Reason why the capacity task failed.
*)creationDate : ISO8601Timestamp.t option;The date the capacity task was created.
*)completionDate : ISO8601Timestamp.t option;The date the capacity task ran successfully.
*)lastModifiedDate : ISO8601Timestamp.t option;The date the capacity task was last modified.
*)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.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `InternalServerException of InternalServerException.t| `NotFoundException of NotFoundException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val make :
?capacityTaskId:??? ->
?outpostId:??? ->
?orderId:??? ->
?assetId:??? ->
?requestedInstancePools:??? ->
?instancesToExclude:??? ->
?dryRun:??? ->
?capacityTaskStatus:??? ->
?failed:??? ->
?creationDate:??? ->
?completionDate:??? ->
?lastModifiedDate:??? ->
?taskActionOnBlockingInstances:??? ->
unit ->
tval 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 ]val 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 ]val 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 ]