// Describes the specified security groups or all of your security groups. A
// security group is for use with instances either in the EC2-Classic platform or
// in a specific VPC. For more information, see Amazon EC2 Security Groups
// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
// in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC
// (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
// in the Amazon Virtual Private Cloud User Guide.
Describes the specified security groups or all of your security groups. A
security group is for use with instances either in the EC2-Classic platform or
in a specific VPC. For more information, see Amazon EC2 Security Groups

in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC

in the Amazon Virtual Private Cloud User Guide.
// Describes the specified security groups or all of your security groups . A // security group is for use with instances either in the EC2 - Classic platform or // in a specific VPC . For more information see Amazon EC2 Security Groups // ( https : // docs . aws . amazon . com / AWSEC2 / latest / UserGuide / using - network - security . html ) // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your VPC // ( https : // docs . aws . amazon . com / AmazonVPC / latest / UserGuide / VPC_SecurityGroups . html ) // in the Amazon Virtual Private Cloud User Guide .
func (c *Client) DescribeSecurityGroups(ctx context.Context, params *DescribeSecurityGroupsInput, optFns ...func(*Options)) (*DescribeSecurityGroupsOutput, error) {
	if params == nil {
		params = &DescribeSecurityGroupsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroups", params, optFns, addOperationDescribeSecurityGroupsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeSecurityGroupsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeSecurityGroups ( ctx context . Context , params * DescribeSecurityGroupsInput , optFns ... func ( * Options ) ) ( * DescribeSecurityGroupsOutput , error ) { if params == nil { params = & DescribeSecurityGroupsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeSecurityGroupsMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeSecurityGroupsOutput ) out . ResultMetadata = metadata return out , nil }
Describes the specified security groups or all of your security groups.
Describes the specified security groups or all of your security groups .