-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c77d312
commit d7e86b1
Showing
6 changed files
with
127 additions
and
8 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
49 changes: 49 additions & 0 deletions
49
docs/resources/automation_rule_slackbot_send_notification.md
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "wiz_automation_rule_slackbot_send_notification Resource - terraform-provider-wiz" | ||
subcategory: "" | ||
description: |- | ||
Automation Rules define associations between actions and findings. | ||
--- | ||
|
||
# wiz_automation_rule_slackbot_send_notification (Resource) | ||
|
||
Automation Rules define associations between actions and findings. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `description` (String) Description of the automation rule | ||
- `filters` (String) Value should be wrapped in jsonencode() to avoid diff detection. This is required even though the API states it is not required. Validate is performed by the UI. | ||
- `integration_id` (String) Wiz identifier for the Integration to leverage for this action. Must be resource type integration_aws_sns. | ||
- `name` (String) Name of the automation rule | ||
- `slack_channel` (String) Channel to send the message to | ||
- `trigger_source` (String) Trigger source. | ||
- Allowed values: | ||
- ISSUES | ||
- CLOUD_EVENTS | ||
- CONTROL | ||
- CONFIGURATION_FINDING | ||
- `trigger_type` (List of String) Trigger type. Must be set to `CREATED` for wiz_automation_rule_slackbot_send_notification. | ||
- Allowed values: | ||
- CREATED | ||
- UPDATED | ||
- RESOLVED | ||
- REOPENED | ||
|
||
### Optional | ||
|
||
- `enabled` (Boolean) Enabled? | ||
- Defaults to `true`. | ||
- `project_id` (String) Wiz internal ID for a project. | ||
- `slack_note` (String) An optional note sent with the slack message | ||
|
||
### Read-Only | ||
|
||
- `action_id` (String) Wiz internal ID for the action. | ||
- `created_at` (String) The date/time at which the automation rule was created. | ||
- `id` (String) Wiz internal identifier. |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "wiz_integration_slackbot Resource - terraform-provider-wiz" | ||
subcategory: "" | ||
description: |- | ||
Integrations are reusable, generic connections between Wiz and third-party platforms like Slack, Google Chat, and Jira that allow data from Wiz to be passed to your preferred tool. | ||
--- | ||
|
||
# wiz_integration_slackbot (Resource) | ||
|
||
Integrations are reusable, generic connections between Wiz and third-party platforms like Slack, Google Chat, and Jira that allow data from Wiz to be passed to your preferred tool. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "wiz_integration_slackbot" "default" { | ||
name = "default" | ||
slack_token = var.slack_token | ||
scope = "All Resources, Restrict this Integration to global roles only" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the integration. | ||
|
||
### Optional | ||
|
||
- `project_id` (String) The project this action is scoped to. | ||
- `scope` (String) Scoping to a selected Project makes this Integration accessible only to users with global roles or Project-scoped access to the selected Project. Other users will not be able to see it, use it, or view its results. Integrations restricted to global roles cannot be seen or used by users with Project-scoped roles. | ||
- Allowed values: | ||
- Selected Project | ||
- All Resources | ||
- All Resources, Restrict this Integration to global roles only | ||
|
||
- Defaults to `All Resources, Restrict this Integration to global roles only`. | ||
- `slack_token` (String) Slack Token. (default: none, environment variable: WIZ_INTEGRATION_SLACK_TOKEN) | ||
|
||
### Read-Only | ||
|
||
- `created_at` (String) Identifies the date and time when the object was created. | ||
- `id` (String) Identifier for this object. |
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
23 changes: 23 additions & 0 deletions
23
examples/resources/wiz_automation_rule_slack_send_notification/resource.tf
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
resource "wiz_integration_slackbot" "default" { | ||
name = "default" | ||
slack_token = var.slack_token | ||
scope = "All Resources, Restrict this Integration to global roles only" | ||
} | ||
|
||
resource "wiz_automation_rule_slackbot_send_notification" "default" { | ||
name = "example" | ||
description = "example description" | ||
enabled = true | ||
integration_id = wiz_integration_slackbot.default.id | ||
trigger_source = "ISSUES" | ||
trigger_type = [ | ||
"RESOLVED", | ||
] | ||
filters = jsonencode({ | ||
"severity" : [ | ||
"CRITICAL" | ||
] | ||
}) | ||
slack_channel = var.slack_channel | ||
slack_note = var.slack_note | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
resource "wiz_integration_slackbot" "default" { | ||
name = "default" | ||
slack_token = var.slack_token | ||
scope = "All Resources, Restrict this Integration to global roles only" | ||
} |