Listener
A resource of the AWS provider, version 0.3.0, in its Load Balancing group. Import it with:
import Listener from "aws/loadbalancing"Example
resource Listener example {
loadBalancerArn = "example-value"
port = 3.14
protocol = "HTTP"
certificateArn = "example-value"
sslPolicy = "example-value"
alpnPolicy = "example-value"
defaultTargetGroupArn = "example-value"
defaultActionType = "forward"
redirectConfig = "..."
fixedResponseConfig = "..."
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
loadBalancerArn | string | — | No | The ARN of the load balancer |
port | number | — | No | The port on which the listener listens |
protocol | string | — | No | The protocol for the listener Allowed: "HTTP", "HTTPS", "TCP", "TLS", "UDP", "TCP_UDP", "GENEVE" |
certificateArn | string | — | No | The ARN of the default SSL server certificate (HTTPS/TLS only) |
sslPolicy | string | — | No | The SSL policy for HTTPS/TLS listeners |
alpnPolicy | string | — | No | The ALPN policy for TLS listeners (NLB only) |
defaultTargetGroupArn | string | — | No | The ARN of the default target group for forward action |
defaultActionType | string | "forward" | No | The default action type Allowed: "forward", "redirect", "fixed-response" |
redirectConfig | any | — | No | Redirect configuration when defaultActionType is 'redirect' |
fixedResponseConfig | any | — | No | Fixed response configuration when defaultActionType is 'fixed-response' |
tags | object | — | No | Tags to apply to the listener |
Set by AWS after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
arn | string | Yes | The ARN of the listener |