aws::network-load-balancer-listener

Example

aws::network-load-balancer-listener listener-example
    port: "80"
    protocol: "TCP"
    nlb: $(aws::network-load-balancer nlb-example | load-balancer)

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

Attributes

Attribute Description
certificate subresource

List of certificates associated with the listener. (Optional)

arn
ARN of the certificate. (Required)
is-default
Determines if the certificate is default. (Optional)
default-certificate The default certificate ARN associated with the listener. Required with HTTPS protocol. (Optional)
port Connection port between client and the load balancer. (Required)
protocol Connection protocol between client and the load balancer. Valid values are HTTP and HTTPS for ALBs and TCP and TLS for NLBs. (Required)
ssl-policy Security policy that defines supported protocols and ciphers. (Optional)
default-action subresource

The default action associated with the listener. (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)
nlb The nlb that the listener is attached to. (Required)

Outputs

Attribute Description
arn The arn of the listener.