Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace PatchReplaceInstruction

An operation that "puts" a value, replacing every item of the selection with it, or creating it if the selection is empty. NOT_FOUND exceptions are handled by creating the implied containing structure (but note that this may put the target in an invalid state, which can be prevented by use of precondition operations). To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth.

Properties

Const operation

operation: string = "REPLACE"

selection

selection: string

The set of values to which the operation applies as a JMESPath expression for evaluation against the context resource. An operation fails if the selection yields an exception, except as otherwise specified. Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.

value

value: any

A value to be added into the target.

Methods

getDeserializedJsonObj

getJsonObj