-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(aws-ec2): ApplicationLoadBalancer - Expose created Listeners as collection #11841
Copy link
Copy link
Closed
Closed
Copy link
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp2
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloudeffort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortfeature-requestA feature should be added or improved.A feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdp2