Skip to content

Commit

Permalink
Updates README.rst for CFPP::Include.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoker committed Jun 15, 2016
1 parent a9fc20c commit c79f739
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@ Here are some of the functions that are implemented:
{ "CFFP::JsonFileToString": "mappings.json" },
...

``CFPP::Include``
Include parses a JSON file, replaces Refs with values in the given dictionary, and
returns the results. This allows you to create reusable snippets of JSON with
Ref-style variables that can be optionally substituted for other refs or literal JSON.

Example::

"MyRole": ...,
"MyIAMPolicy": {
"CFPP::Include": [
"read-s3-policy.json",
{
"PolicyName": "MyIAMPolicy",
"RootRole": [{"Ref":"MyRole"}]
}
]
}

``CFPP::JsonFile``
Reads a JSON file and injects its content in its JSON form.

Expand Down

0 comments on commit c79f739

Please sign in to comment.