ApplicationLoadBalancerRedirectConfig
- class aws_cdk.aws_elasticloadbalancingv2.ApplicationLoadBalancerRedirectConfig(*, open=None, source_port=None, source_protocol=None, target_port=None, target_protocol=None)
- Bases: - object- Properties for a redirection config. - Parameters:
- open ( - Optional[- bool]) – 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- falseand use the listener’s- connectionsobject to selectively grant access to the listener. Default: true
- source_port ( - Union[- int,- float,- None]) – The port number to listen to. Default: 80
- source_protocol ( - Optional[- ApplicationProtocol]) – The protocol of the listener being created. Default: HTTP
- target_port ( - Union[- int,- float,- None]) – The port number to redirect to. Default: 443
- target_protocol ( - Optional[- ApplicationProtocol]) – The protocol of the redirection target. Default: HTTPS
 
- ExampleMetadata:
- infused 
 - Example: - # lb: elbv2.ApplicationLoadBalancer lb.add_redirect( source_protocol=elbv2.ApplicationProtocol.HTTPS, source_port=8443, target_protocol=elbv2.ApplicationProtocol.HTTP, target_port=8080 ) - Attributes - open
- 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 - falseand use the listener’s- connectionsobject to selectively grant access to the listener.- Default:
- true 
 
 - source_port
- The port number to listen to. - Default:
- 80 
 
 - source_protocol
- The protocol of the listener being created. - Default:
- HTTP 
 
 - target_port
- The port number to redirect to. - Default:
- 443 
 
 - target_protocol
- The protocol of the redirection target. - Default:
- HTTPS