Skip to content

Commit

Permalink
chore(ec2): deprecate security group name accessor (#16116)
Browse files Browse the repository at this point in the history
The security group name accessor will (almost) always return the security group ID, rather than the name. This change deprecates the name accessor to make it clearer to users that this is not a supported use case.

fixes #13774

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mprencipe authored Sep 21, 2021
1 parent 3a486c4 commit ac503cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-ec2/lib/security-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ export class SecurityGroup extends SecurityGroupBase {
* An attribute that represents the security group name.
*
* @attribute
* @deprecated returns the security group ID, rather than the name.
*/
public readonly securityGroupName: string;

Expand Down

0 comments on commit ac503cb

Please sign in to comment.