-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Showing
2 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sentry_project_spike_protection Resource - terraform-provider-sentry" | ||
subcategory: "" | ||
description: |- | ||
Sentry Project Spike Protection resource. This resource is used to create and manage spike protection for a project. | ||
--- | ||
|
||
# sentry_project_spike_protection (Resource) | ||
|
||
Sentry Project Spike Protection resource. This resource is used to create and manage spike protection for a project. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "sentry_project" "default" { | ||
organization = "my-organization" | ||
teams = ["my-first-team", "my-second-team"] | ||
name = "web-app" | ||
platform = "javascript" | ||
} | ||
# Enable spike protection for the project | ||
resource "sentry_project_spike_protection" "default" { | ||
organization = sentry_project.default.organization | ||
project_slug = sentry_project.default.slug | ||
enabled = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `enabled` (Boolean) Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off. | ||
- `organization` (String) The slug of the organization the project belongs to. | ||
- `project_slug` (String) The slug of the project to create the filter for. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
|
15 changes: 15 additions & 0 deletions
15
examples/resources/sentry_project_spike_protection/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,15 @@ | ||
resource "sentry_project" "default" { | ||
organization = "my-organization" | ||
|
||
teams = ["my-first-team", "my-second-team"] | ||
name = "web-app" | ||
|
||
platform = "javascript" | ||
} | ||
|
||
# Enable spike protection for the project | ||
resource "sentry_project_spike_protection" "default" { | ||
organization = sentry_project.default.organization | ||
project_slug = sentry_project.default.slug | ||
enabled = true | ||
} |