CDK Python latest.
I'm doing a:
something = elbv2.ApplicationLoadBalancer(
...
)
something.add_security_group(securitygroupid)
and I'm getting a error:
AttributeError: 'ApplicationLoadBalancer' object has no attribute 'add_security_group" when in the CDK docs, it says there is a method? bug?
I was able to run cdk synth and it didn't complain about the add_security_group.
Which version of the CDK are you using ?
See the dummy example below. I'm using aws-cdk version 1.64.1