

# ReferencedSecurityGroup
<a name="API_ReferencedSecurityGroup"></a>

 Describes the security group that is referenced in the security group rule.

## Contents
<a name="API_ReferencedSecurityGroup_Contents"></a>

 ** groupId **   
The ID of the security group.  
Type: String  
Required: No

 ** peeringStatus **   
The status of a VPC peering connection, if applicable.  
Type: String  
Required: No

 ** userId **   
The AWS account ID.  
Type: String  
Required: No

 ** vpcId **   
The ID of the VPC.  
Type: String  
Required: No

 ** vpcPeeringConnectionId **   
The ID of the VPC peering connection (if applicable).  
Type: String  
Required: No

## See Also
<a name="API_ReferencedSecurityGroup_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/ec2-2016-11-15/ReferencedSecurityGroup) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ec2-2016-11-15/ReferencedSecurityGroup) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ec2-2016-11-15/ReferencedSecurityGroup) 