Skip to content

Commit

Permalink
Merge pull request #38513 from markmullme/aws_codebuild_webhook_fix-v…
Browse files Browse the repository at this point in the history
…alidation

Fix scope attribute validation for codebuild webhooks
  • Loading branch information
jar-b authored Jul 24, 2024
2 parents 7a607f0 + a95e34d commit f717e58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changelog/38513.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_codebuild_webhook: Remove errant validation on `scope_configuration.domain` argument
```
10 changes: 5 additions & 5 deletions internal/service/codebuild/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ func resourceWebhook() *schema.Resource {
Required: true,
},
names.AttrDomain: {
Type: schema.TypeString,
Optional: true,
ValidateDiagFunc: enum.Validate[types.WebhookScopeType](),
Type: schema.TypeString,
Optional: true,
},
names.AttrScope: {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
ValidateDiagFunc: enum.Validate[types.WebhookScopeType](),
},
},
},
Expand Down

0 comments on commit f717e58

Please sign in to comment.