Skip to content

Commit

Permalink
fix: add "concurrent" to rate_limit.period validation
Browse files Browse the repository at this point in the history
  • Loading branch information
leggetter committed Dec 11, 2024
1 parent 6063197 commit ea32035
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/destination.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ Basic (default) or Bearer Authentication
Read-Only:

- `limit` (Number) Limit event attempts to receive per period. Max value is workspace plan's max attempts thoughput.
- `period` (String) must be one of ["second", "minute", "hour"]
- `period` (String) must be one of ["second", "minute", "hour", "concurrent"]
Period to rate limit attempts
2 changes: 1 addition & 1 deletion docs/resources/destination.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Basic (default) or Bearer Authentication
Required:

- `limit` (Number) Limit event attempts to receive per period. Max value is workspace plan's max attempts thoughput.
- `period` (String) must be one of ["second", "minute", "hour"]
- `period` (String) must be one of ["second", "minute", "hour", "concurrent"]
Period to rate limit attempts

## Import
Expand Down
2 changes: 1 addition & 1 deletion examples/full/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HOOKDECK_API_KEY = "<YOUR_HOOKDECK_API_KEY>"
HOOKDECK_API_KEY = "3p3ea88e3k7k268l1dwshet8uhpppqfqh1ku791yiajmr6l02g"

HEADER_FILTER_VALUES = [
"account.created.v1",
Expand Down
3 changes: 2 additions & 1 deletion internal/provider/destination/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,13 @@ func schemaAttributes() map[string]schema.Attribute {
"second",
"minute",
"hour",
"concurrent",
),
},
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
MarkdownDescription: `must be one of ["second", "minute", "hour"]` + "\n" +
MarkdownDescription: `must be one of ["second", "minute", "hour", "concurrent"]` + "\n" +
`Period to rate limit attempts`,
},
},
Expand Down
Binary file added terraform-provider-hookdeck
Binary file not shown.

0 comments on commit ea32035

Please sign in to comment.