Skip to content

Commit ee04fff

Browse files
docs(elasticloadbalancingv2): update confusing AddNetworkTargets port description (#30208)
### Reason for this change The existing `port` description can be confusing as `listener` could easily be mistaken as a reference to a Load Balancers `listener` and imply that the value should match. Additionally, "traffic" seems more semtantically correct for an NLB than "requests". ### Description of changes Updated the `port` description on `AddNetworkTargetsProps` to match the one used in the `ApplicationTargetGroup` as that uses less ambigous language. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent d0f9688 commit ee04fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-listener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export interface AddNetworkActionProps {
335335
*/
336336
export interface AddNetworkTargetsProps {
337337
/**
338-
* The port on which the listener listens for requests.
338+
* The port on which the target receives traffic.
339339
*
340340
* @default Determined from protocol if known
341341
*/

0 commit comments

Comments
 (0)