

# SecurityGroup
<a name="API_SecurityGroup"></a>

Contains information about the security groups associated with the EC2 instance.

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

 ** groupId **   <a name="guardduty-Type-SecurityGroup-groupId"></a>
The security group ID of the EC2 instance.  
Type: String  
Required: No

 ** groupName **   <a name="guardduty-Type-SecurityGroup-groupName"></a>
The security group name of the EC2 instance.  
Type: String  
Required: No

## See Also
<a name="API_SecurityGroup_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/guardduty-2017-11-28/SecurityGroup) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/guardduty-2017-11-28/SecurityGroup) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/guardduty-2017-11-28/SecurityGroup) 