diff --git a/docs/resources/compliance_security_profile_setting.md b/docs/resources/compliance_security_profile_setting.md new file mode 100644 index 0000000000..7de715dec1 --- /dev/null +++ b/docs/resources/compliance_security_profile_setting.md @@ -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 +``` \ No newline at end of file diff --git a/settings/resource_compliance_security_profile_setting_test.go b/settings/resource_compliance_security_profile_setting_test.go index a10a6bae0a..ec7da734e9 100644 --- a/settings/resource_compliance_security_profile_setting_test.go +++ b/settings/resource_compliance_security_profile_setting_test.go @@ -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) {