Skip to content

Commit

Permalink
azurerm_postgresql_flexible_server - update nil check for `customer…
Browse files Browse the repository at this point in the history
…_managed_key` (#24981)

* azurerm_postgresql_flexible_server - update nil check for customer_managed_key

* update code
  • Loading branch information
neil-yechenwei authored Feb 23, 2024
1 parent c2f0b98 commit 1b2480e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func resourcePostgresqlFlexibleServer() *pluginsdk.Resource {
Schema: map[string]*pluginsdk.Schema{
"key_vault_key_id": {
Type: pluginsdk.TypeString,
Optional: true,
Required: true,
ValidateFunc: keyVaultValidate.NestedItemIdWithOptionalVersion,
RequiredWith: []string{
"identity",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/postgresql_flexible_server.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ An `authentication` block supports the following:

A `customer_managed_key` block supports the following:

* `key_vault_key_id` - (Optional) The ID of the Key Vault Key.
* `key_vault_key_id` - (Required) The ID of the Key Vault Key.

* `primary_user_assigned_identity_id` - (Optional) Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.

Expand Down

0 comments on commit 1b2480e

Please sign in to comment.