

# ResourceGroupByRule
<a name="API_ResourceGroupByRule"></a>

Defines the configuration for organizing and categorizing AWS resources based on associated security findings.

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

 ** GroupByField **   <a name="securityhub-Type-ResourceGroupByRule-GroupByField"></a>
Specifies the attribute that resources should be grouped by.  
Type: String  
Valid Values: `AccountId | AccountName | Region | ResourceProvider | ResourceOwnerAccountId | ResourceOwnerOrgId | ResourceCloudPartition | ResourceRegion | ResourceCategory | ResourceType | ResourceName | FindingsSummary.FindingType | ResourceSubCategory | DiscoveryType | ResourceInfo.AIDetails.HostResourceType | ResourceInfo.AIDetails.CanonicalId`   
Required: Yes

 ** Filters **   <a name="securityhub-Type-ResourceGroupByRule-Filters"></a>
The criteria used to select resources and associated security findings.  
Type: [ResourcesFilters](API_ResourcesFilters.md) object  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/securityhub-2018-10-26/ResourceGroupByRule) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/securityhub-2018-10-26/ResourceGroupByRule) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/securityhub-2018-10-26/ResourceGroupByRule) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS Security Hub. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query securityhub` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
