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 false and use the listener’s connections object 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

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 false and use the listener’s connections object to selectively grant access to the listener.

Default

true

Return type

Optional[bool]

source_port

The port number to listen to.

Default

80

Return type

Union[int, float, None]

source_protocol

The protocol of the listener being created.

Default

HTTP

Return type

Optional[ApplicationProtocol]

target_port

The port number to redirect to.

Default

443

Return type

Union[int, float, None]

target_protocol

The protocol of the redirection target.

Default

HTTPS

Return type

Optional[ApplicationProtocol]