Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix max size of html in cognito risk config and typo in docs #25645

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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` argumnets 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