From 2f7a24f3804b9510c2043f0b9a9909809b37a242 Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Tue, 27 Apr 2021 16:51:09 -0700 Subject: [PATCH] Updates function comments --- aws/internal/service/ec2/finder/finder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/internal/service/ec2/finder/finder.go b/aws/internal/service/ec2/finder/finder.go index 0929aed8617..4c12fc6a5ac 100644 --- a/aws/internal/service/ec2/finder/finder.go +++ b/aws/internal/service/ec2/finder/finder.go @@ -326,7 +326,6 @@ func RouteByPrefixListIDDestination(conn *ec2.EC2, routeTableID, prefixListID st return nil, &resource.NotFoundError{} } -// SecurityGroupByID looks up a security group by ID. When not found, returns nil and potentially an API error. // SecurityGroupByID looks up a security group by ID. Returns a resource.NotFoundError if not found. func SecurityGroupByID(conn *ec2.EC2, id string) (*ec2.SecurityGroup, error) { input := &ec2.DescribeSecurityGroupsInput{ @@ -348,6 +347,7 @@ func SecurityGroupByNameAndVpcID(conn *ec2.EC2, name, vpcID string) (*ec2.Securi return SecurityGroup(conn, input) } +// SecurityGroup looks up a security group using an ec2.DescribeSecurityGroupsInput. Returns a resource.NotFoundError if not found. func SecurityGroup(conn *ec2.EC2, input *ec2.DescribeSecurityGroupsInput) (*ec2.SecurityGroup, error) { result, err := conn.DescribeSecurityGroups(input) if tfawserr.ErrCodeEquals(err, tfec2.InvalidSecurityGroupIDNotFound) ||