From 6bfda949d6762779889a9917d4b0cbe6d8570198 Mon Sep 17 00:00:00 2001 From: TakumiHaruta Date: Fri, 1 Jul 2022 11:50:26 +0900 Subject: [PATCH 1/4] #25644 fix typo; maximum size is 20000, not 2000 --- internal/service/cognitoidp/risk_configuration.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/service/cognitoidp/risk_configuration.go b/internal/service/cognitoidp/risk_configuration.go index 37dd28adda0..bfcb1ad9ded 100644 --- a/internal/service/cognitoidp/risk_configuration.go +++ b/internal/service/cognitoidp/risk_configuration.go @@ -121,7 +121,7 @@ func ResourceRiskConfiguration() *schema.Resource { "html_body": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(6, 2000), + ValidateFunc: validation.StringLenBetween(6, 20000), }, "subject": { Type: schema.TypeString, @@ -131,7 +131,7 @@ func ResourceRiskConfiguration() *schema.Resource { "text_body": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(6, 2000), + ValidateFunc: validation.StringLenBetween(6, 20000), }, }, }, @@ -149,7 +149,7 @@ func ResourceRiskConfiguration() *schema.Resource { "html_body": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(6, 2000), + ValidateFunc: validation.StringLenBetween(6, 20000), }, "subject": { Type: schema.TypeString, @@ -159,7 +159,7 @@ func ResourceRiskConfiguration() *schema.Resource { "text_body": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(6, 2000), + ValidateFunc: validation.StringLenBetween(6, 20000), }, }, }, @@ -173,7 +173,7 @@ func ResourceRiskConfiguration() *schema.Resource { "html_body": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(6, 2000), + ValidateFunc: validation.StringLenBetween(6, 20000), }, "subject": { Type: schema.TypeString, @@ -183,7 +183,7 @@ func ResourceRiskConfiguration() *schema.Resource { "text_body": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringLenBetween(6, 2000), + ValidateFunc: validation.StringLenBetween(6, 20000), }, }, }, From 5788b65633c0994b93105fe4d731a1f1abd644a4 Mon Sep 17 00:00:00 2001 From: TakumiHaruta Date: Fri, 1 Jul 2022 11:51:30 +0900 Subject: [PATCH 2/4] fix typo in docs of cognito_risk_configuration --- website/docs/r/cognito_risk_configuration.html.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/r/cognito_risk_configuration.html.markdown b/website/docs/r/cognito_risk_configuration.html.markdown index 82ba6bd77fd..e2a6b4a06e8 100644 --- a/website/docs/r/cognito_risk_configuration.html.markdown +++ b/website/docs/r/cognito_risk_configuration.html.markdown @@ -49,8 +49,8 @@ The following arguments are supported: ##### notify email type * `html_body` - (Required) The email HTML body. -* `block_email` - (Required) The email subject. -* `block_email` - (Required) The email text body. +* `subject` - (Required) The email subject. +* `test_body` - (Required) The email text body. #### actions From 6f7a228dfbdc432791f69afcafd730fbbbe473ce Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 1 Jul 2022 09:43:31 -0400 Subject: [PATCH 3/4] Add CHANGELOG entry. --- .changelog/25645.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/25645.txt diff --git a/.changelog/25645.txt b/.changelog/25645.txt new file mode 100644 index 00000000000..fad4cd2d2e6 --- /dev/null +++ b/.changelog/25645.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_cognito_risk_configuration: Increase maximum allowed length of `account_takeover_risk_configuration.notify_configuration.block_email.html_body`, `account_takeover_risk_configuration.notify_configuration.block_email.text_body`, `account_takeover_risk_configuration.notify_configuration.mfa_email.html_body`, `account_takeover_risk_configuration.notify_configuration.mfa_email.text_body`, `account_takeover_risk_configuration.notify_configuration.no_action_email.html_body` and `account_takeover_risk_configuration.notify_configuration.no_action_email.text_body` argumnets from `2000` to `20000` +``` \ No newline at end of file From 2fef9a0d882cc27a7de9faaf1f829369f3812c4e Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Fri, 1 Jul 2022 09:53:10 -0400 Subject: [PATCH 4/4] Update 25645.txt --- .changelog/25645.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changelog/25645.txt b/.changelog/25645.txt index fad4cd2d2e6..8f6a002356e 100644 --- a/.changelog/25645.txt +++ b/.changelog/25645.txt @@ -1,3 +1,3 @@ ```release-note:bug -resource/aws_cognito_risk_configuration: Increase maximum allowed length of `account_takeover_risk_configuration.notify_configuration.block_email.html_body`, `account_takeover_risk_configuration.notify_configuration.block_email.text_body`, `account_takeover_risk_configuration.notify_configuration.mfa_email.html_body`, `account_takeover_risk_configuration.notify_configuration.mfa_email.text_body`, `account_takeover_risk_configuration.notify_configuration.no_action_email.html_body` and `account_takeover_risk_configuration.notify_configuration.no_action_email.text_body` argumnets from `2000` to `20000` -``` \ No newline at end of file +resource/aws_cognito_risk_configuration: Increase maximum allowed length of `account_takeover_risk_configuration.notify_configuration.block_email.html_body`, `account_takeover_risk_configuration.notify_configuration.block_email.text_body`, `account_takeover_risk_configuration.notify_configuration.mfa_email.html_body`, `account_takeover_risk_configuration.notify_configuration.mfa_email.text_body`, `account_takeover_risk_configuration.notify_configuration.no_action_email.html_body` and `account_takeover_risk_configuration.notify_configuration.no_action_email.text_body` arguments from `2000` to `20000` +```