Skip to main content

Module patch

Module patch 

Source
Expand description

Minimal RFC 6902 JSON Patch applied to Cloud Control desired state.

Cloud Control’s UpdateResource takes a PatchDocument (a JSON Patch array) describing the change from the resource’s current properties to the desired ones. We apply it to the stored desired state, then hand the resulting properties to the CloudFormation update handler. Supports the full operation set (add, remove, replace, move, copy, test) over JSON Pointer paths (RFC 6901).

Functions§

apply_json_patch
Apply a JSON Patch document (an array of operations) to doc in place.