

# SubjectTokenSourceConfiguration

Where an on-behalf-of token exchange gets the subject token. The token identifying the user the exchanged token will represent. Set exactly one member.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** credentialProvider **   <a name="credentialbrokercontrol-Type-SubjectTokenSourceConfiguration-credentialProvider"></a>
Use an end-user token stored by the credential provider named here as the subject.  
Type: String  
Pattern: `arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):credentialbroker:[a-z0-9-]{1,64}:[0-9]{12}:credentialproviderpool/[a-z0-9]{1,64}/credentialprovider/[a-z0-9]{1,64}`   
Required: No

 ** credentialProviderSelf **   <a name="credentialbrokercontrol-Type-SubjectTokenSourceConfiguration-credentialProviderSelf"></a>
Use this provider's own stored end-user token as the subject, so that the same provider both obtains the user's token and exchanges it. Requires the provider to allow the `AUTHORIZATION_CODE` grant.  
Type: [CredentialBrokerSelfSubjectTokenSource](API_CredentialBrokerSelfSubjectTokenSource.md) object  
Required: No

 ** iamIdentityCenter **   <a name="credentialbrokercontrol-Type-SubjectTokenSourceConfiguration-iamIdentityCenter"></a>
Use the identity in the caller's IAM Identity Center session as the subject.  
Type: Structure  
Required: No

## See Also
<a name="API_SubjectTokenSourceConfiguration_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/credentialbroker-control-2026-09-30/SubjectTokenSourceConfiguration) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/SubjectTokenSourceConfiguration) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/SubjectTokenSourceConfiguration) 