diff --git a/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go b/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go index 001b2714e125..41904c45a62e 100644 --- a/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go +++ b/internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go @@ -83,12 +83,10 @@ func (r PrivateDNSResolverInboundEndpointResource) Arguments() map[string]*plugi }, "private_ip_allocation_method": { - Type: pluginsdk.TypeString, - Optional: true, - Default: string(inboundendpoints.IPAllocationMethodDynamic), - ValidateFunc: validation.StringInSlice([]string{ - string(inboundendpoints.IPAllocationMethodDynamic), - }, false), + Type: pluginsdk.TypeString, + Optional: true, + Default: string(inboundendpoints.IPAllocationMethodDynamic), + ValidateFunc: validation.StringInSlice(inboundendpoints.PossibleValuesForIPAllocationMethod(), false), }, }, }, diff --git a/website/docs/r/private_dns_resolver_inbound_endpoint.html.markdown b/website/docs/r/private_dns_resolver_inbound_endpoint.html.markdown index dd29f02829f8..12a9c5834df6 100644 --- a/website/docs/r/private_dns_resolver_inbound_endpoint.html.markdown +++ b/website/docs/r/private_dns_resolver_inbound_endpoint.html.markdown @@ -79,7 +79,7 @@ The following arguments are supported: An `ip_configurations` block supports the following: -* `private_ip_allocation_method` - (Optional) Private IP address allocation method. Allowed value is `Dynamic`. Defaults to `Dynamic`. +* `private_ip_allocation_method` - (Optional) Private IP address allocation method. Allowed value is `Dynamic` and `Static`. Defaults to `Dynamic`. * `subnet_id` - (Required) The subnet ID of the IP configuration.