Module Values.UpdateConsumableResourceRequestSource

Updates a consumable resource.

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

    The name or ARN of the consumable resource to be updated.

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

    Indicates how the quantity of the consumable resource will be updated. Must be one of: SET Sets the quantity of the resource to the value specified by the quantity parameter. ADD Increases the quantity of the resource by the value specified by the quantity parameter. REMOVE Reduces the quantity of the resource by the value specified by the quantity parameter.

    *)
  3. quantity : Long.t option;
    (*

    The change in the total quantity of the consumable resource. The operation parameter determines whether the value specified here will be the new total quantity, or the amount by which the total quantity will be increased or reduced. Must be a non-negative value.

    *)
  4. clientToken : ClientRequestToken.t option;
    (*

    If this parameter is specified and two update requests with identical payloads and clientTokens are received, these requests are considered the same request. Both requests will succeed, but the update will only happen once. A clientToken is valid for 8 hours.

    *)
}
Sourceval context_ : string
Sourceval make : ?operation:??? -> ?quantity:??? -> ?clientToken:??? -> consumableResource:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `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