ApplicationListenerProps

class aws_cdk.aws_elasticloadbalancingv2.ApplicationListenerProps(*, certificate_arns=None, default_target_groups=None, open=None, port=None, protocol=None, ssl_policy=None, load_balancer)

Bases: aws_cdk.aws_elasticloadbalancingv2.BaseApplicationListenerProps

__init__(*, certificate_arns=None, default_target_groups=None, open=None, port=None, protocol=None, ssl_policy=None, load_balancer)

Properties for defining a standalone ApplicationListener.

Parameters
  • certificate_arns (Optional[List[str]]) – The certificates to use on this listener. Default: - No certificates.

  • default_target_groups (Optional[List[IApplicationTargetGroup]]) – Default target groups to load balance to. Default: - None.

  • 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

  • port (Union[int, float, None]) – The port on which the listener listens for requests. Default: - Determined from protocol if known.

  • protocol (Optional[ApplicationProtocol]) – The protocol to use. Default: - Determined from port if known.

  • ssl_policy (Optional[SslPolicy]) – The security policy that defines which ciphers and protocols are supported. Default: - The current predefined security policy.

  • load_balancer (IApplicationLoadBalancer) – The load balancer to attach this listener to.

Attributes

certificate_arns

The certificates to use on this listener.

default :default: - No certificates.

Return type

Optional[List[str]]

default_target_groups

Default target groups to load balance to.

default :default: - None.

Return type

Optional[List[IApplicationTargetGroup]]

load_balancer

The load balancer to attach this listener to.

Return type

IApplicationLoadBalancer

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 :default: true

Return type

Optional[bool]

port

The port on which the listener listens for requests.

default :default: - Determined from protocol if known.

Return type

Union[int, float, None]

protocol

The protocol to use.

default :default: - Determined from port if known.

Return type

Optional[ApplicationProtocol]

ssl_policy

The security policy that defines which ciphers and protocols are supported.

default :default: - The current predefined security policy.

Return type

Optional[SslPolicy]