Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
harshshah-db committed May 15, 2024
1 parent 900e145 commit a976e1b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions docs/resources/compliance_security_profile_setting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
subcategory: "Settings"
---

# databricks_compliance_security_profile_workspace_setting Resource

-> **Note** This resource could be only used with workspace-level provider!

The `databricks_compliance_security_profile_workspace_setting` resource allows you to control whether to enable the
compliance security profile for the current workspace. Enabling it on a workspace is permanent. By default, it is
turned off. This setting can NOT be disabled once it is enabled.

## Example Usage

```hcl
resource "databricks_compliance_security_profile_workspace_setting" "this" {
compliance_security_profile_workspace {
is_enabled = true
compliance_standards = ["HIPAA", "FEDRAMP_MODERATE"]
}
}
```

## Argument Reference

The resource supports the following arguments:

* `is_enabled` - (Required) Enable the Compliance Security Profile on the workspace
* `compliance_standards` - (Required) Enable one or more compliance standards on the workspace, e.g. `HIPAA`, `PCI_DSS`, `FEDRAMP_MODERATE`

## Import

This resource can be imported by predefined name `global`:

```bash
terraform import databricks_compliance_security_profile_workspace_setting.this global
```
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestQueryCreateComplianceSecurityProfileSettingWithNoneStandard(t *testing.
res := d.Get("compliance_security_profile_workspace").([]interface{})[0].(map[string]interface{})
assert.Equal(t, true, res["is_enabled"])
assert.Equal(t, "NONE", res["compliance_standards"].([]interface{})[0])

}

func TestQueryReadComplianceSecurityProfileSetting(t *testing.T) {
Expand Down

0 comments on commit a976e1b

Please sign in to comment.