Skip to content

Commit 9fe9fc4

Browse files
authored
Add documentation for TargetGroupName (#1366)
elb_application_lb/elb_network_lb - Add documentation for TargetGroupName SUMMARY fixes: #915 elb_application_lb and elb_network_lb have a poorly documented feature, that you can use TargetGroupName instead of TargetGroupArn. While this is shown in the examples, it's in the options documentation. While undocumented the feature's been there since at release 1.0.0 ISSUE TYPE Docs Pull Request COMPONENT NAME plugins/modules/elb_application_lb.py plugins/modules/elb_network_lb.py ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis <None>
1 parent 464c6ca commit 9fe9fc4

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

plugins/modules/elb_application_lb.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,14 @@
122122
description: The type of action.
123123
type: str
124124
TargetGroupArn:
125-
description: The Amazon Resource Name (ARN) of the target group.
125+
description:
126+
- The Amazon Resource Name (ARN) of the target group.
127+
- Mutually exclusive with I(TargetGroupName).
126128
type: str
129+
TargetGroupName:
130+
description:
131+
- The name of the target group.
132+
- Mutually exclusive with I(TargetGroupArn).
127133
Rules:
128134
type: list
129135
elements: dict

plugins/modules/elb_network_lb.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@
6464
description: The type of action.
6565
type: str
6666
TargetGroupArn:
67-
description: The Amazon Resource Name (ARN) of the target group.
67+
description:
68+
- The Amazon Resource Name (ARN) of the target group.
69+
- Mutually exclusive with I(TargetGroupName).
6870
type: str
71+
TargetGroupName:
72+
description:
73+
- The name of the target group.
74+
- Mutually exclusive with I(TargetGroupArn).
6975
name:
7076
description:
7177
- The name of the load balancer. This name must be unique within your AWS account, can have a maximum of 32 characters, must contain only alphanumeric

0 commit comments

Comments
 (0)