Replies: 1 comment 1 reply
-
metricHealthHostCount() is actually a construct method of NetworkTargetGroup L2 construct class and only available when you create a new |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I see there is method
NetworkTargetGroup.metricHealthyHostCount()
to generateHealthyHostCount
metric but when I useelbv2.NetworkTargetGroup.fromTargetGroupAttributes()
to obtain existing instance then it gives object of typeINetworkTargetGroup
which does not implementmetricHealthyHostCount
. I can use sth like this:but previous method looks better/is shorter/don't need to specify some params.
And sth like this (casting) does not work:
Beta Was this translation helpful? Give feedback.
All reactions