Add JSON validation to the aws_sns_topic_policy resource.

This commit adds support for new helper function which is used to
normalise and validate JSON string.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
pull/8903/head
Krzysztof Wilczynski 10 years ago
parent 5697a52b4f
commit 3b1b4fb571
No known key found for this signature in database
GPG Key ID: B89F6447B63419A6

@ -30,6 +30,7 @@ func resourceAwsSnsTopicPolicy() *schema.Resource {
"policy": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validateJsonString,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
},

Loading…
Cancel
Save