Skip to content

Commit

Permalink
Add ConflictsWith
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushi-ishibashi committed Jan 5, 2018
1 parent f5dc889 commit cf1ae93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions aws/resource_aws_cognito_user_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,10 @@ func resourceAwsCognitoUserPool() *schema.Resource {
},

"sms_verification_message": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateCognitoUserPoolSmsVerificationMessage,
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateCognitoUserPoolSmsVerificationMessage,
ConflictsWith: []string{"verification_message_template.0.sms_message"},
},

"tags": tagsSchema(),
Expand Down Expand Up @@ -413,10 +414,11 @@ func resourceAwsCognitoUserPool() *schema.Resource {
ValidateFunc: validateCognitoUserPoolTemplateEmailSubjectByLink,
},
"sms_message": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validateCognitoUserPoolTemplateSmsMessage,
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validateCognitoUserPoolTemplateSmsMessage,
ConflictsWith: []string{"sms_verification_message"},
},
},
},
Expand Down
1 change: 0 additions & 1 deletion aws/resource_aws_cognito_user_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,6 @@ resource "aws_cognito_user_pool" "pool" {
default_email_option = "CONFIRM_WITH_LINK"
email_message_by_link = "{##foobar##}"
email_subject_by_link = "foobar"
sms_message = "{####} Baz"
}
}`, name)
}
Expand Down

0 comments on commit cf1ae93

Please sign in to comment.