

# SpendPrincipal

A principal whose spend you want to query.

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

 ** Id **   <a name="awscostmanagement-Type-budgets_SpendPrincipal-Id"></a>
The ID of the principal. The value depends on the principal type:  
+ For an Identity Center user, specify the user ID.
+ For an IAM principal, specify the ARN of the IAM root user, IAM user or role, or the STS assumed-role or federated-user ARN.
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `^(([0-9a-f]{10}-)?[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}|arn:aws(-[a-z]+)*:(iam::[0-9]{12}:(root|(role|user)/([\x21-\x7E]{1,510}/)?[A-Za-z0-9+=,.@_-]{1,64})|sts::[0-9]{12}:(assumed-role/[A-Za-z0-9+=,.@_-]{1,64}/[A-Za-z0-9+=,.@_-]{2,64}|federated-user/[A-Za-z0-9+=,.@_-]{2,32})))$`   
Required: Yes

 ** Type **   <a name="awscostmanagement-Type-budgets_SpendPrincipal-Type"></a>
The kind of principal. Valid values are `IDENTITY_CENTER_USER` and `IAM_PRINCIPAL`.  
Type: String  
Valid Values: `IDENTITY_CENTER_USER | IAM_PRINCIPAL`   
Required: Yes

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