Skip to content

Commit

Permalink
azurerm_redis_cache_access_policy_assignment: Allow `object_id_alia…
Browse files Browse the repository at this point in the history
…s` to be an arbitrary non-empty string (#25523)

* `azurerm_redis_cache_access_policy_assignment`: Allow `object_id_alias` to be an arbitrary non-empty string

* Update docs
  • Loading branch information
favoretti authored Apr 5, 2024
1 parent 1aba2ea commit 53a6013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,10 @@ func (r RedisCacheAccessPolicyAssignmentResource) Arguments() map[string]*plugin
ForceNew: true,
},
"object_id_alias": {
Type: pluginsdk.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice(
[]string{
"ServicePrincipal",
"UserMSI",
}, false),
Type: pluginsdk.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringIsNotEmpty,
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The following arguments are supported:

* `object_id` - (Required) The principal ID to be assigned the Access Policy. Changing this forces a new Redis Cache Access Policy Assignment to be created.

* `object_id_alias` - (Required) The alias of the principal ID. Possible values are `ServicePrincipal` and `UserMSI`. Changing this forces a new Redis Cache Access Policy Assignment to be created.
* `object_id_alias` - (Required) The alias of the principal ID. User-friendly name for object ID. Also represents username for token based authentication. Changing this forces a new Redis Cache Access Policy Assignment to be created.

## Attributes Reference

Expand Down

0 comments on commit 53a6013

Please sign in to comment.