From 4f3254f739054953581ef848f998ead20bc1b6fb Mon Sep 17 00:00:00 2001 From: Henry Buckle Date: Tue, 10 Dec 2024 15:05:54 +0000 Subject: [PATCH 1/2] add managedEnvironments target_type --- internal/services/cdn/cdn_frontdoor_origin_resource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/cdn/cdn_frontdoor_origin_resource.go b/internal/services/cdn/cdn_frontdoor_origin_resource.go index 430ccfd7d531..c19856454357 100644 --- a/internal/services/cdn/cdn_frontdoor_origin_resource.go +++ b/internal/services/cdn/cdn_frontdoor_origin_resource.go @@ -131,6 +131,7 @@ func resourceCdnFrontDoorOrigin() *pluginsdk.Resource { "blob", "blob_secondary", "sites", + "managedEnvironments", "web", }, false), }, From 86071dff551eddb06c368fdb326d5123a92300af Mon Sep 17 00:00:00 2001 From: Henry Buckle Date: Tue, 10 Dec 2024 15:12:35 +0000 Subject: [PATCH 2/2] docs --- internal/services/cdn/cdn_frontdoor_origin_resource.go | 2 +- website/docs/r/cdn_frontdoor_origin.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/cdn/cdn_frontdoor_origin_resource.go b/internal/services/cdn/cdn_frontdoor_origin_resource.go index c19856454357..0c9c863c80df 100644 --- a/internal/services/cdn/cdn_frontdoor_origin_resource.go +++ b/internal/services/cdn/cdn_frontdoor_origin_resource.go @@ -130,8 +130,8 @@ func resourceCdnFrontDoorOrigin() *pluginsdk.Resource { ValidateFunc: validation.StringInSlice([]string{ "blob", "blob_secondary", - "sites", "managedEnvironments", + "sites", "web", }, false), }, diff --git a/website/docs/r/cdn_frontdoor_origin.html.markdown b/website/docs/r/cdn_frontdoor_origin.html.markdown index e1c8ef61c436..c43d01f24935 100644 --- a/website/docs/r/cdn_frontdoor_origin.html.markdown +++ b/website/docs/r/cdn_frontdoor_origin.html.markdown @@ -251,7 +251,7 @@ A `private_link` block supports the following: * `request_message` - (Optional) Specifies the request message that will be submitted to the `private_link_target_id` when requesting the private link endpoint connection. Values must be between `1` and `140` characters in length. Defaults to `Access request for CDN FrontDoor Private Link Origin`. -* `target_type` - (Optional) Specifies the type of target for this Private Link Endpoint. Possible values are `blob`, `blob_secondary`, `web` and `sites`. +* `target_type` - (Optional) Specifies the type of target for this Private Link Endpoint. Possible values are `blob`, `blob_secondary`, `managedEnvironments`, `sites` and `web`. -> **NOTE:** `target_type` cannot be specified when using a Load Balancer as an Origin.