-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: webhook payloads templates on honeycombio_webhook_recipient (#580)
## Short description of the changes Expands the honeycombio_webhook_recipient resource to be aware of custom webhook templates. Follow-up PRs will include template variables and custom headers. --------- Co-authored-by: Jason Harley <[email protected]>
- Loading branch information
1 parent
6cbc7b6
commit 6aa970b
Showing
7 changed files
with
427 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
package models | ||
|
||
import ( | ||
"github.com/hashicorp/terraform-plugin-framework/attr" | ||
"github.com/hashicorp/terraform-plugin-framework/types" | ||
) | ||
|
||
type WebhookRecipientModel struct { | ||
ID types.String `tfsdk:"id"` | ||
Name types.String `tfsdk:"name"` | ||
Secret types.String `tfsdk:"secret"` | ||
URL types.String `tfsdk:"url"` | ||
ID types.String `tfsdk:"id"` | ||
Name types.String `tfsdk:"name"` | ||
Secret types.String `tfsdk:"secret"` | ||
URL types.String `tfsdk:"url"` | ||
Templates types.Set `tfsdk:"template"` // WebhookTemplateModel | ||
} | ||
|
||
type WebhookTemplateModel struct { | ||
Type types.String `tfsdk:"type"` | ||
Body types.String `tfsdk:"body"` | ||
} | ||
|
||
var WebhookTemplateAttrType = map[string]attr.Type{ | ||
"type": types.StringType, | ||
"body": types.StringType, | ||
} |
Oops, something went wrong.