# ApplicationLoadBalancerRedirectConfig

Properties for a redirection config.

- Source: [`aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts#L1374)

## Example

```ts
declare const lb: elbv2.ApplicationLoadBalancer;

lb.addRedirect({
  sourceProtocol: elbv2.ApplicationProtocol.HTTPS,
  sourcePort: 8443,
  targetProtocol: elbv2.ApplicationProtocol.HTTP,
  targetPort: 8080,
});
```

## Properties

- `open`: boolean = true — Allow anyone to connect to this listener.

  If this is specified, the listener will be opened up to anyone who can reach it.
  For internal load balancers this is anyone in the same VPC. For public load
  balancers, this is anyone on the internet.

  If you want to be more selective about who can access this load
  balancer, set this to `false` and use the listener's `connections`
  object to selectively grant access to the listener.

- `sourcePort`: number = 80 — The port number to listen to.

- `sourceProtocol`: [ApplicationProtocol](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationProtocol.html) = HTTP — The protocol of the listener being created.

- `targetPort`: number = 443 — The port number to redirect to.

- `targetProtocol`: [ApplicationProtocol](/cdk/api/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationProtocol.html) = HTTPS — The protocol of the redirection target.
