terraform/builtin
Krzysztof Wilczynski 9ef9956ee2 provider/aws: Add JSON validation to the aws_cloudwatch_event_rule resource. (#8897)
* Add JSON validation to the aws_cloudwatch_event_rule resource.

This commit adds support for new helper function which is used to
normalise and validate JSON string. Also adds new validation function
to wrap around the aforementioned helper.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>

* Re-factor validation function.

This commit changes the logic of the function so that it would check length of
the normalised JSON string over the given string, plus short-circuit early
should JSON would not be valid.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2016-09-19 23:47:17 +01:00
..
bins Implement archive provider and "archive_file" resource. (#7322) 2016-08-08 12:56:44 +12:00
providers provider/aws: Add JSON validation to the aws_cloudwatch_event_rule resource. (#8897) 2016-09-19 23:47:17 +01:00
provisioners Support recreating clients and configuring Chef Vaults (#8577) 2016-09-15 14:20:18 +02:00