diff --git a/docs/index.md b/docs/index.md index 8a79cee..6853d38 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ page_title: "sigsci Provider" subcategory: "" description: |- - + --- ## Requirements diff --git a/docs/resources/site_rule.md b/docs/resources/site_rule.md index e3c16b4..2aa6c31 100644 --- a/docs/resources/site_rule.md +++ b/docs/resources/site_rule.md @@ -250,7 +250,7 @@ Required: Optional: - `redirect_url` (String) URL to redirect to when blocking response code is set to 301 or 302 -- `response_code` (Number) HTTP code agent for agent to respond with. range: 301, 302, or 400-599, defaults to '406' if not provided +- `response_code` (Number) HTTP code agent for agent to respond with. range: 301, 302, or 400-599, defaults to '406' if not provided. Only valid with the 'block' action type. - `signal` (String) signal id to tag ### Templated Signals diff --git a/provider/resource_site_rule.go b/provider/resource_site_rule.go index 7280ab4..64ddf2c 100644 --- a/provider/resource_site_rule.go +++ b/provider/resource_site_rule.go @@ -2,7 +2,6 @@ package provider import ( "fmt" - "net/http" "strings" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" @@ -74,10 +73,9 @@ func resourceSiteRule() *schema.Resource { }, "response_code": { Type: schema.TypeInt, - Description: "HTTP code agent for agent to respond with. range: 301, 302, or 400-599, defaults to '406' if not provided", + Description: "HTTP code agent for agent to respond with. range: 301, 302, or 400-599, defaults to '406' if not provided. Only valid with the 'block' action type.", Optional: true, ValidateFunc: validateActionResponseCode, - Default: http.StatusNotAcceptable, }, "redirect_url": { Type: schema.TypeString,