Module Values.ResourceSource

Describes the resources available for a container instance.

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

    The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.

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

    The type of the resource. Valid values: INTEGER, DOUBLE, LONG, or STRINGSET.

    *)
  3. doubleValue : Double.t option;
    (*

    When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

    *)
  4. longValue : Long.t option;
    (*

    When the longValue type is set, the value of the resource must be an extended precision floating-point type.

    *)
  5. integerValue : Integer.t option;
    (*

    When the integerValue type is set, the value of the resource must be an integer.

    *)
  6. stringSetValue : StringList.t option;
    (*

    When the stringSetValue type is set, the value of the resource must be a string type.

    *)
}
Sourceval make : ?name:??? -> ?type_:??? -> ?doubleValue:??? -> ?longValue:??? -> ?integerValue:??? -> ?stringSetValue:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of Double.t | `Integer of Integer.t | `List of [> `String of String_.t ] list | `Long of Long.t | `String of String_.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