@@ -38,7 +38,6 @@ type ELBV2API interface {
38
38
UpdateTags (arn * string , old util.ELBv2Tags , new util.ELBv2Tags ) error
39
39
UpdateAttributes (arn * string , new []* elbv2.LoadBalancerAttribute ) error
40
40
RemoveTargetGroup (arn * string ) error
41
- DescribeTagsForArn (arn * string ) (util.ELBv2Tags , error )
42
41
DescribeTargetGroupTargetsForArn (arn * string , targets ... []* elbv2.TargetDescription ) (util.AWSStringSlice , error )
43
42
RemoveListener (arn * string ) error
44
43
DescribeListenersForLoadBalancer (loadBalancerArn * string ) ([]* elbv2.Listener , error )
@@ -204,24 +203,6 @@ func (e *ELBV2) DescribeListenersForLoadBalancer(loadBalancerArn *string) ([]*el
204
203
return listeners , nil
205
204
}
206
205
207
- // DescribeTagsForArn looks up all tags for a given ARN.
208
- func (e * ELBV2 ) DescribeTagsForArn (arn * string ) (util.ELBv2Tags , error ) {
209
- describeTags , err := e .DescribeTags (& elbv2.DescribeTagsInput {
210
- ResourceArns : []* string {arn },
211
- })
212
-
213
- var tags []* elbv2.Tag
214
- if len (describeTags .TagDescriptions ) == 0 {
215
- return tags , err
216
- }
217
-
218
- for _ , tag := range describeTags .TagDescriptions [0 ].Tags {
219
- tags = append (tags , & elbv2.Tag {Key : tag .Key , Value : tag .Value })
220
- }
221
-
222
- return tags , err
223
- }
224
-
225
206
// DescribeTargetGroupTargetsForArn looks up target group targets by an ARN.
226
207
func (e * ELBV2 ) DescribeTargetGroupTargetsForArn (arn * string , targets ... []* elbv2.TargetDescription ) (result util.AWSStringSlice , err error ) {
227
208
var targetHealth * elbv2.DescribeTargetHealthOutput
0 commit comments