Add JSON validation to the aws_sqs_queue_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>
This commit is contained in:
Krzysztof Wilczynski 2016-09-14 12:14:56 +01:00
parent 5697a52b4f
commit 80f799f69b
No known key found for this signature in database
GPG Key ID: B89F6447B63419A6
1 changed files with 1 additions and 0 deletions

View File

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