Skip to content

Commit 900b8e3

Browse files
committed
removed debug line. Addressed various comments.
1 parent 8913363 commit 900b8e3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

datadog/fwprovider/resource_datadog_compliance_resource_evaluation_filter.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package fwprovider
22

33
import (
44
"context"
5-
"fmt"
65
"regexp"
76
"strings"
87

@@ -78,11 +77,11 @@ func toSliceString(list types.List) ([]string, diag.Diagnostics) {
7877

7978
func (r *ComplianceResourceEvaluationFilter) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
8079
resp.Schema = schema.Schema{
81-
Description: "Manage a single resource evaluation filter.",
80+
Description: "Provides a Datadog ResourceEvaluationFilter resource. This can be used to create and manage a resource evaluation filter.",
8281
Attributes: map[string]schema.Attribute{
8382
"cloud_provider": schema.StringAttribute{
8483
Required: true,
85-
Description: "The cloud provider of the filter's targeted resource.",
84+
Description: "The cloud provider of the filter's targeted resource. Only `aws`, `gcp` or `azure` are considered valid cloud providers.",
8685
},
8786
"id": schema.StringAttribute{
8887
Required: true,
@@ -187,7 +186,6 @@ func (r *ComplianceResourceEvaluationFilter) Update(ctx context.Context, request
187186
return
188187
}
189188

190-
fmt.Println("DEBUG UPDATE - creating payload")
191189
body, diags := r.buildUpdateResourceEvaluationFilterRequest(ctx, &state)
192190
response.Diagnostics.Append(diags...)
193191
if response.Diagnostics.HasError() {

docs/resources/compliance_resource_evaluation_filter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
page_title: "datadog_compliance_resource_evaluation_filter Resource - terraform-provider-datadog"
44
subcategory: ""
55
description: |-
6-
Manage a single resource evaluation filter.
6+
Provides a Datadog ResourceEvaluationFilter resource. This can be used to create and manage a resource evaluation filter.
77
---
88

99
# datadog_compliance_resource_evaluation_filter (Resource)
1010

11-
Manage a single resource evaluation filter.
11+
Provides a Datadog ResourceEvaluationFilter resource. This can be used to create and manage a resource evaluation filter.
1212

1313

1414

@@ -17,7 +17,7 @@ Manage a single resource evaluation filter.
1717

1818
### Required
1919

20-
- `cloud_provider` (String) The cloud provider of the filter's targeted resource.
20+
- `cloud_provider` (String) The cloud provider of the filter's targeted resource. Only `aws`, `gcp` or `azure` are considered valid cloud providers.
2121
- `id` (String) The ID of the of the filter's targeted resource. Different cloud providers target different resource IDs:
2222
- `aws`: account id
2323
- `gcp`: project id

0 commit comments

Comments
 (0)