diff --git a/internal/services/signalr/web_pubsub_hub_resource.go b/internal/services/signalr/web_pubsub_hub_resource.go index 4e23e8db0f05..97bc1291cb99 100644 --- a/internal/services/signalr/web_pubsub_hub_resource.go +++ b/internal/services/signalr/web_pubsub_hub_resource.go @@ -54,7 +54,7 @@ func resourceWebPubSubHub() *pluginsdk.Resource { "web_pubsub_id": commonschema.ResourceIDReferenceRequiredForceNew(webpubsub.WebPubSubId{}), "event_handler": { - Type: pluginsdk.TypeSet, + Type: pluginsdk.TypeList, Optional: true, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ @@ -146,7 +146,7 @@ func resourceWebPubSubHubCreateUpdate(d *pluginsdk.ResourceData, meta interface{ parameters := webpubsub.WebPubSubHub{ Properties: webpubsub.WebPubSubHubProperties{ - EventHandlers: expandEventHandler(d.Get("event_handler").(*pluginsdk.Set).List()), + EventHandlers: expandEventHandler(d.Get("event_handler").([]interface{})), AnonymousConnectPolicy: &anonymousPolicyEnabled, }, } diff --git a/website/docs/r/web_pubsub_hub.html.markdown b/website/docs/r/web_pubsub_hub.html.markdown index 05a0a36a36a9..f32f348a1cf5 100644 --- a/website/docs/r/web_pubsub_hub.html.markdown +++ b/website/docs/r/web_pubsub_hub.html.markdown @@ -71,6 +71,8 @@ The following arguments are supported: * `event_handler` - (Optional) An `event_handler` block as defined below. +-> **NOTE:** User can change the order of `event_handler` to change the priority accordingly. + --- An `event_handler` block supports the following: