Skip to content

RuleTransform

Source code in docs_src/capo_elastic_load_balancing_v2/types/rule_transform.py
class RuleTransform(TypedDict, closed=True):
    type: NotRequired[
        "capo_elastic_load_balancing_v2.types.transform_type_enum.TransformTypeEnum"
    ]
    """<p>The type of transform. </p> <ul> <li> <p> <code>host-header-rewrite</code> - Rewrite the host header.</p> </li> <li> <p> <code>url-rewrite</code> - Rewrite the request URL.</p> </li> </ul>"""
    host_header_rewrite_config: NotRequired[
        "capo_elastic_load_balancing_v2.types.host_header_rewrite_config.HostHeaderRewriteConfig"
    ]
    """<p>Information about a host header rewrite transform. This transform modifies the host header in an HTTP request. Specify only when <code>Type</code> is <code>host-header-rewrite</code>.</p>"""
    url_rewrite_config: NotRequired[
        "capo_elastic_load_balancing_v2.types.url_rewrite_config.UrlRewriteConfig"
    ]
    """<p>Information about a URL rewrite transform. This transform modifies the request URL. Specify only when <code>Type</code> is <code>url-rewrite</code>.</p>"""

host_header_rewrite_config instance-attribute

host_header_rewrite_config: NotRequired[HostHeaderRewriteConfig]

Information about a host header rewrite transform. This transform modifies the host header in an HTTP request. Specify only when Type is host-header-rewrite.

type instance-attribute

type: NotRequired[TransformTypeEnum]

The type of transform.

  • host-header-rewrite - Rewrite the host header.

  • url-rewrite - Rewrite the request URL.

url_rewrite_config instance-attribute

url_rewrite_config: NotRequired[UrlRewriteConfig]

Information about a URL rewrite transform. This transform modifies the request URL. Specify only when Type is url-rewrite.