Skip to content

Commit

Permalink
Merge pull request #25645 from TakumiHaruta/b-fix-max-size-of-html-in…
Browse files Browse the repository at this point in the history
…-cognito-risk-config

Fix max size of html in cognito risk config and typo in docs
  • Loading branch information
ewbankkit authored Jul 1, 2022
2 parents 04f9b24 + 2fef9a0 commit b6931d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/25645.txt
Original file line number Diff line number Diff line change
@@ -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` arguments from `2000` to `20000`
```
12 changes: 6 additions & 6 deletions internal/service/cognitoidp/risk_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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),
},
},
},
Expand All @@ -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,
Expand All @@ -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),
},
},
},
Expand All @@ -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,
Expand All @@ -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),
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/cognito_risk_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b6931d3

Please sign in to comment.