Skip to content

(aws-ec2): ApplicationLoadBalancer - Expose created Listeners as collection #11841

@rcollette

Description

@rcollette

Listeners that are created via calls to addListener() should be exposed as a collection property of ApplicationLoadBalancer.

Use Case

When the ALB is created through mechanisms outside of my direct control, such as ApplicationLoadBalancedFargateService, I am unable to alter listener properties such as the sslPolicy (see #8816).

Proposed Solution

There is a general OO design principal that goes something like "that which creates contains". (At least according to Craig Larman there is). This principal seems to be followed generally throughout the CDK but seems to have been missed in this instance.

Add a public Listeners property which includes listeners that were added via addListeners.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ec2Related to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions