

# GroupDefinition

How to group the spend of a budget. A group definition has the same shape as the group definition of the Cost Explorer `GetCostAndUsage` operation.

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

 ** Key **   <a name="awscostmanagement-Type-budgets_GroupDefinition-Key"></a>
The key to group by. The key must be the same value as the budget's `SpendAttributions`. Valid values are `IDENTITY_CENTER_USER` and `IAM_PRINCIPAL`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Required: Yes

 ** Type **   <a name="awscostmanagement-Type-budgets_GroupDefinition-Type"></a>
The type of the group. The only valid value is `DIMENSION`.  
Type: String  
Valid Values: `DIMENSION`   
Required: Yes

## See Also
<a name="API_budgets_GroupDefinition_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/budgets-2016-10-20/GroupDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/budgets-2016-10-20/GroupDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/budgets-2016-10-20/GroupDefinition) 