aws::application-load-balancer-listener-rule

Example

aws::application-load-balancer-listener-rule listener-rule-example
    alb-listener: $(aws::application-load-balancer-listener listener-example)
    priority: "1"

    action
        target-group: $(aws::load-balancer-target-group target-group-example | target-group-arn)
        type: "forward"
    end

    condition
        field: "path-pattern"
        value: ["/applespice"]
    end

    condition
        field: "host-header"
        value: ["www.example.net"]
    end
end

Attributes

Attribute Description
action subresource

List of actions associated with the rule. (Required)

target-group
The target group that this action is associated with (Optional)
type
The type of action to perform (Required)
authenticate-cognito-action
Authentication through user pools supported by Amazon Cognito. (Optional)
authenticate-oidc-action
Authentication through provider that is OpenID Connect (OIDC) compliant. (Optional)
fixed-response-action
Used to specify a custom response for an action. (Optional)
order
The order in which the action should take place. (Optional)
redirect-action
Redirect requests from one URL to another. (Optional)
condition subresource

List of conditions associated with the rule. (Required)

field
Condition field name. (Required)
value
Condition value. (Required)
alb-listener The alb associated with this listener rule. (Required)
priority Priority of the rule. Valid values between 1 and 50000. No two rules can have the same priority. -1 points to the default rule. (Required)

Outputs

Attribute Description
arn The arn of the rule.