Merge pull request #8904 from kwilczynski/feature/json-validation-aws_sqs_queue

provider/aws: Add JSON validation to the aws_sqs_queue resource.
This commit is contained in:
Paul Stack 2016-09-21 09:14:41 +01:00 committed by GitHub
commit 3ad4056113
1 changed files with 9 additions and 4 deletions

View File

@ -73,13 +73,18 @@ func resourceAwsSqsQueue() *schema.Resource {
"policy": {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
Computed: true,
ValidateFunc: validateJsonString,
DiffSuppressFunc: suppressEquivalentAwsPolicyDiffs,
},
"redrive_policy": {
Type: schema.TypeString,
Optional: true,
StateFunc: normalizeJson,
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateJsonString,
StateFunc: func(v interface{}) string {
json, _ := normalizeJsonString(v)
return json
},
},
"arn": {
Type: schema.TypeString,