Skip to content

Commit acc60af

Browse files
committed
update docs
1 parent 9cff07e commit acc60af

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "sentry_project_spike_protection Resource - terraform-provider-sentry"
4+
subcategory: ""
5+
description: |-
6+
Sentry Project Spike Protection resource. This resource is used to create and manage spike protection for a project.
7+
---
8+
9+
# sentry_project_spike_protection (Resource)
10+
11+
Sentry Project Spike Protection resource. This resource is used to create and manage spike protection for a project.
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "sentry_project" "default" {
17+
organization = "my-organization"
18+
19+
teams = ["my-first-team", "my-second-team"]
20+
name = "web-app"
21+
22+
platform = "javascript"
23+
}
24+
25+
# Enable spike protection for the project
26+
resource "sentry_project_spike_protection" "default" {
27+
organization = sentry_project.default.organization
28+
project_slug = sentry_project.default.slug
29+
enabled = true
30+
}
31+
```
32+
33+
<!-- schema generated by tfplugindocs -->
34+
## Schema
35+
36+
### Required
37+
38+
- `enabled` (Boolean) Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off.
39+
- `organization` (String) The slug of the organization the project belongs to.
40+
- `project_slug` (String) The slug of the project to create the filter for.
41+
42+
### Read-Only
43+
44+
- `id` (String) The ID of this resource.
45+
46+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
resource "sentry_project" "default" {
2+
organization = "my-organization"
3+
4+
teams = ["my-first-team", "my-second-team"]
5+
name = "web-app"
6+
7+
platform = "javascript"
8+
}
9+
10+
# Enable spike protection for the project
11+
resource "sentry_project_spike_protection" "default" {
12+
organization = sentry_project.default.organization
13+
project_slug = sentry_project.default.slug
14+
enabled = true
15+
}

0 commit comments

Comments
 (0)