diff --git a/aws/structure.go b/aws/structure.go index 298759c511e..e16af3aa6ce 100644 --- a/aws/structure.go +++ b/aws/structure.go @@ -2629,7 +2629,7 @@ func flattenCognitoUserPoolVerificationMessageTemplate(s *cognitoidentityprovide m["email_subject"] = *s.EmailSubject } - if s.EmailMessageByLink != nil { + if s.EmailSubjectByLink != nil { m["email_subject_by_link"] = *s.EmailSubjectByLink }