Skip to content

Commit

Permalink
Merge pull request #33192 from hashicorp/b-aws_appflow_connector_prof…
Browse files Browse the repository at this point in the history
…ile_oauth2

aws_appflow_connector_profile: correct validation on oauth2 custom auth
  • Loading branch information
johnsonaj authored Aug 25, 2023
2 parents e59ae0b + 8fe5082 commit 944c01f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changelog/33192.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_appflow_connector_profile: Fix validation on `oauth2` in `custom_connector_profile`
```
6 changes: 3 additions & 3 deletions internal/service/appflow/connector_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func ResourceConnectorProfile() *schema.Resource {
Optional: true,
Sensitive: true,
ValidateFunc: validation.All(
validation.StringLenBetween(1, 2048),
validation.StringLenBetween(1, 4096),
validation.StringMatch(regexache.MustCompile(`\S+`), "must not contain any whitespace characters"),
),
},
Expand Down Expand Up @@ -223,7 +223,7 @@ func ResourceConnectorProfile() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.All(
validation.StringLenBetween(1, 2048),
validation.StringLenBetween(1, 4096),
validation.StringMatch(regexache.MustCompile(`\S+`), "must not contain any whitespace characters"),
),
},
Expand All @@ -242,7 +242,7 @@ func ResourceConnectorProfile() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.All(
validation.StringLenBetween(1, 1024),
validation.StringLenBetween(1, 4096),
validation.StringMatch(regexache.MustCompile(`\S+`), "must not contain any whitespace characters"),
),
},
Expand Down

0 comments on commit 944c01f

Please sign in to comment.