Module Values.ComputeEnvironmentDetailSource

An object that represents an Batch compute environment.

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

    The name of the compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

    *)
  2. computeEnvironmentArn : String_.t option;
    (*

    The Amazon Resource Name (ARN) of the compute environment.

    *)
  3. unmanagedvCpus : Integer.t option;
    (*

    The maximum number of VCPUs expected to be used for an unmanaged compute environment.

    *)
  4. ecsClusterArn : String_.t option;
    (*

    The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster that the compute environment uses.

    *)
  5. tags : TagrisTagsMap.t option;
    (*

    The tags applied to the compute environment.

    *)
  6. type_ : CEType.t option;
    (*

    The type of the compute environment: MANAGED or UNMANAGED. For more information, see Compute environments in the Batch User Guide.

    *)
  7. state : CEState.t option;
    (*

    The state of the compute environment. The valid values are ENABLED or DISABLED. If the state is ENABLED, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically based on the job queue demand. If the state is DISABLED, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state don't scale out. Compute environments in a DISABLED state may continue to incur billing charges, for example, if they have running instances due to jobs that are still executing or a non-zero minvCpus setting. To prevent additional charges, disable and delete the compute environment. When an instance is idle, the instance scales down to the minvCpus value. However, the instance size doesn't change. For example, consider a c5.8xlarge instance with a minvCpus value of 4 and a desiredvCpus value of 36. This instance doesn't scale down to a c5.large instance.

    *)
  8. status : CEStatus.t option;
    (*

    The current status of the compute environment (for example, CREATING or VALID).

    *)
  9. statusReason : String_.t option;
    (*

    A short, human-readable string to provide additional details for the current status of the compute environment.

    *)
  10. computeResources : ComputeResource.t option;
    (*

    The compute resources defined for the compute environment. For more information, see Compute environments in the Batch User Guide.

    *)
  11. serviceRole : String_.t option;
    (*

    The service role that's associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the Batch User Guide.

    *)
  12. updatePolicy : UpdatePolicy.t option;
    (*

    Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments in the Batch User Guide.

    *)
  13. eksConfiguration : EksConfiguration.t option;
    (*

    The configuration for the Amazon EKS cluster that supports the Batch compute environment. Only specify this parameter if the containerOrchestrationType is EKS.

    *)
  14. containerOrchestrationType : OrchestrationType.t option;
    (*

    The orchestration type of the compute environment. The valid values are ECS (default) or EKS.

    *)
  15. uuid : String_.t option;
    (*

    Unique identifier for the compute environment.

    *)
  16. context : String_.t option;
    (*

    Reserved.

    *)
}
Sourceval make : ?computeEnvironmentName:??? -> ?computeEnvironmentArn:??? -> ?unmanagedvCpus:??? -> ?ecsClusterArn:??? -> ?tags:??? -> ?type_:??? -> ?state:??? -> ?status:??? -> ?statusReason:??? -> ?computeResources:??? -> ?serviceRole:??? -> ?updatePolicy:??? -> ?eksConfiguration:??? -> ?containerOrchestrationType:??? -> ?uuid:??? -> ?context:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of String_.t | `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Integer of Integer.t | `List of [> `String of String_.t | `Structure of (string * [> `String of ImageType.t ]) list ] list | `Long of JobExecutionTimeoutMinutes.t | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of String_.t | `Structure of (string * [> `Enum of string | `Integer of Integer.t | `List of [> `Structure of (string * [> `Enum of string | `List of [> `String of String_.t ] list | `String of String_.t ]) list ] list | `String of String_.t ]) list ]) list ]) 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