

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CredentialBroker::CredentialProvider 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.

## Syntax
<a name="aws-properties-credentialbroker-credentialprovider-subjecttokensourceconfiguration-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-credentialbroker-credentialprovider-subjecttokensourceconfiguration-syntax.json"></a>

```json
{
  "[CredentialProvider](#cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-credentialprovider)" : {{String}},
  "[CredentialProviderSelf](#cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-credentialproviderself)" : {{Json}},
  "[IamIdentityCenter](#cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-iamidentitycenter)" : {{Json}}
}
```

### YAML
<a name="aws-properties-credentialbroker-credentialprovider-subjecttokensourceconfiguration-syntax.yaml"></a>

```yaml
  [CredentialProvider](#cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-credentialprovider): {{String}}
  [CredentialProviderSelf](#cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-credentialproviderself): {{Json}}
  [IamIdentityCenter](#cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-iamidentitycenter): {{Json}}
```

## Properties
<a name="aws-properties-credentialbroker-credentialprovider-subjecttokensourceconfiguration-properties"></a>

`CredentialProvider`  <a name="cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-credentialprovider"></a>
Use an end-user token stored by the credential provider named here as the subject.  
*Required*: No  
*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}$`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CredentialProviderSelf`  <a name="cfn-credentialbroker-credentialprovider-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.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`IamIdentityCenter`  <a name="cfn-credentialbroker-credentialprovider-subjecttokensourceconfiguration-iamidentitycenter"></a>
Use the identity in the caller's IAM Identity Center session as the subject.  
*Required*: No  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)