RaiEgressRuleAction Class
The action an egress rule takes when it matches.
Allow/Deny: no additional fields needed; headers and rewrite must not be set.
Transform: headers is required with at least one entry; rewrite must not be set.
Rewrite: rewrite is required with at least one of scheme/host/path;
headers is optional for injecting headers alongside the redirect.
Constructor
RaiEgressRuleAction(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
action_type
|
The kind of action. Required. Known values are: "Allow", "Deny", "Transform", and "Rewrite". |
|
headers
|
Header transforms to apply. Required for Transform; optional for Rewrite; not allowed for Allow or Deny. |
|
rewrite
|
Destination override. Required for Rewrite; not allowed otherwise. |
Attributes
action_type
"Allow", "Deny", "Transform", and "Rewrite".
action_type: str | _models.RaiEgressRuleActionType
headers
Header transforms to apply. Required for Transform; optional for Rewrite; not allowed for Allow or Deny.
headers: list['_models.RaiEgressHeaderTransform'] | None
rewrite
Destination override. Required for Rewrite; not allowed otherwise.
rewrite: _models.RaiEgressRewriteTarget | None