Skip to content

Commit

Permalink
update schema and depreation message
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Nov 15, 2024
1 parent 23503be commit eb448b5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions internal/services/databricks/databricks_workspace_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ func resourceDatabricksWorkspace() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: hsmValidate.ManagedHSMDataPlaneVersionedKeyID,
ConflictsWith: []string{"managed_services_cmk_key_vault_id"},
ConflictsWith: []string{"managed_services_cmk_key_vault_key_id", "managed_services_cmk_key_vault_id"},
},

"managed_services_cmk_key_vault_id": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: commonids.ValidateKeyVaultID,
Deprecated: "Use 'managed_services_cmk_key_vault_key_id' instead, this field is not needed for cross subscription key vaults anymore",
Deprecated: "'managed_services_cmk_key_vault_id' has been deprecated in favor of 'managed_services_cmk_key_vault_key_id' and will be removed in v5.0 of the provider",
},

"managed_disk_cmk_key_vault_key_id": {
Expand All @@ -310,20 +310,19 @@ func resourceDatabricksWorkspace() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: hsmValidate.ManagedHSMDataPlaneVersionedKeyID,
ConflictsWith: []string{"managed_disk_cmk_key_vault_key_id"},
ConflictsWith: []string{"managed_disk_cmk_key_vault_key_id", "managed_disk_cmk_key_vault_id"},
},

"managed_disk_cmk_key_vault_id": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: commonids.ValidateKeyVaultID,
Deprecated: "Use 'managed_disk_cmk_key_vault_key_id' instead, this field is not needed for cross subscription key vaults anymore",
Deprecated: "'managed_disk_cmk_key_vault_id' has been deprecated in favor of 'managed_disk_cmk_key_vault_key_id' and will be removed in v5.0 of the provider",
},

"managed_disk_cmk_rotation_to_latest_version_enabled": {
Type: pluginsdk.TypeBool,
Optional: true,
RequiredWith: []string{"managed_disk_cmk_key_vault_key_id", "managed_disk_cmk_managed_hsm_key_id"},
Type: pluginsdk.TypeBool,
Optional: true,
},

"disk_encryption_set_id": {
Expand Down

0 comments on commit eb448b5

Please sign in to comment.