def __init__(__self__, *, host_rewrite: Optional[pulumi.Input[str]]=None, path_prefix_rewrite: Optional[pulumi.Input[str]]=None):
    "\n        The spec for modifying the path before sending the request to the matched backend service.\n        :param pulumi.Input[str] host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.\n        :param pulumi.Input[str] path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.\n        "
    if (host_rewrite is not None):
        pulumi.set(__self__, 'host_rewrite', host_rewrite)
    if (path_prefix_rewrite is not None):
        pulumi.set(__self__, 'path_prefix_rewrite', path_prefix_rewrite)
The spec for modifying the path before sending the request to the matched backend service.
:param pulumi.Input[str] host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
:param pulumi.Input[str] path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
def __init__(__self__, *, host_rewrite: Optional[pulumi.Input[str]]=None, path_prefix_rewrite: Optional[pulumi.Input[str]]=None):
    "\n        The spec for modifying the path before sending the request to the matched backend service.\n        :param pulumi.Input[str] host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.\n        :param pulumi.Input[str] path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.\n        "
    if (host_rewrite is not None):
        pulumi.set(__self__, 'host_rewrite', host_rewrite)
    if (path_prefix_rewrite is not None):
        pulumi.set(__self__, 'path_prefix_rewrite', path_prefix_rewrite)