Skip to content

Commit 4174290

Browse files
Add SENSITIVITY_UNKNOWN enum value to actions.tag_resources.tag_conditions.sensitivity_score.score in DiscoveryConfig (#15261) (#10820)
[upstream:b095b76a2c634a802a2382f3b1a6e7991b704af8] Signed-off-by: Modular Magician <[email protected]>
1 parent d061105 commit 4174290

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.changelog/15261.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
dlp: added `SENSITIVITY_UNKNOWN` as possible enum value for `actions.tag_resources.tag_conditions.sensitivity_score.score` in `google_data_loss_prevention_discovery_config` resource
3+
```

google-beta/services/datalossprevention/resource_data_loss_prevention_discovery_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ func ResourceDataLossPreventionDiscoveryConfig() *schema.Resource {
219219
"score": {
220220
Type: schema.TypeString,
221221
Required: true,
222-
ValidateFunc: verify.ValidateEnum([]string{"SENSITIVITY_LOW", "SENSITIVITY_MODERATE", "SENSITIVITY_HIGH"}),
223-
Description: `The sensitivity score applied to the resource. Possible values: ["SENSITIVITY_LOW", "SENSITIVITY_MODERATE", "SENSITIVITY_HIGH"]`,
222+
ValidateFunc: verify.ValidateEnum([]string{"SENSITIVITY_LOW", "SENSITIVITY_MODERATE", "SENSITIVITY_HIGH", "SENSITIVITY_UNKNOWN"}),
223+
Description: `The sensitivity score applied to the resource. Possible values: ["SENSITIVITY_LOW", "SENSITIVITY_MODERATE", "SENSITIVITY_HIGH", "SENSITIVITY_UNKNOWN"]`,
224224
},
225225
},
226226
},

google-beta/services/datalossprevention/resource_data_loss_prevention_discovery_config_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ resource "google_data_loss_prevention_inspect_template" "basic" {
637637
}
638638
639639
resource "google_pubsub_topic" "basic" {
640-
name = "test-topic"
640+
name = "tf-test-topic-%{random_suffix}"
641641
}
642642
643643
resource "google_project_iam_member" "tag_role" {
@@ -692,6 +692,14 @@ resource "google_data_loss_prevention_discovery_config" "basic" {
692692
score = "SENSITIVITY_HIGH"
693693
}
694694
}
695+
tag_conditions {
696+
tag {
697+
namespaced_value = "%{project}/tf_test_environment%{random_suffix}/tf_test_prod%{random_suffix}"
698+
}
699+
sensitivity_score {
700+
score = "SENSITIVITY_UNKNOWN"
701+
}
702+
}
695703
profile_generations_to_tag = ["PROFILE_GENERATION_NEW", "PROFILE_GENERATION_UPDATE"]
696704
lower_data_risk_to_low = true
697705
}
@@ -721,7 +729,7 @@ resource "google_data_loss_prevention_inspect_template" "basic" {
721729
}
722730
723731
resource "google_pubsub_topic" "basic" {
724-
name = "test-topic"
732+
name = "tf-test-topic-%{random_suffix}"
725733
}
726734
727735
resource "google_data_loss_prevention_discovery_config" "basic" {

website/docs/r/data_loss_prevention_discovery_config.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ The following arguments are supported:
736736
* `score` -
737737
(Required)
738738
The sensitivity score applied to the resource.
739-
Possible values are: `SENSITIVITY_LOW`, `SENSITIVITY_MODERATE`, `SENSITIVITY_HIGH`.
739+
Possible values are: `SENSITIVITY_LOW`, `SENSITIVITY_MODERATE`, `SENSITIVITY_HIGH`, `SENSITIVITY_UNKNOWN`.
740740

741741
<a name="nested_targets"></a>The `targets` block supports:
742742

0 commit comments

Comments
 (0)