

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 OnBehalfOfTokenExchangeConfigurationInput

Configures on-behalf-of token exchange (RFC 8693) for a credential provider, so the provider can trade a token identifying a user for a token scoped to another audience while preserving that user's identity. Supply this to enable the `TOKEN_EXCHANGE` grant; omit it on update to leave the existing exchange configuration unchanged.

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

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

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

```json
{
  "[SubjectTokenSource](#cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-subjecttokensource)" : {{SubjectTokenSourceConfiguration}},
  "[TokenExchangeActorConfiguration](#cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-tokenexchangeactorconfiguration)" : {{TokenExchangeActorConfigurationInput}},
  "[TokenExchangeRequesterConfiguration](#cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-tokenexchangerequesterconfiguration)" : {{TokenExchangeRequesterConfigurationInput}}
}
```

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

```yaml
  [SubjectTokenSource](#cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-subjecttokensource): {{
    SubjectTokenSourceConfiguration}}
  [TokenExchangeActorConfiguration](#cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-tokenexchangeactorconfiguration): {{
    TokenExchangeActorConfigurationInput}}
  [TokenExchangeRequesterConfiguration](#cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-tokenexchangerequesterconfiguration): {{
    TokenExchangeRequesterConfigurationInput}}
```

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

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

`TokenExchangeActorConfiguration`  <a name="cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-tokenexchangeactorconfiguration"></a>
The actor presented alongside the subject in a token exchange, the party acting on the user's behalf. Omit to send no actor token.  
*Required*: No  
*Type*: [TokenExchangeActorConfigurationInput](aws-properties-credentialbroker-credentialprovider-tokenexchangeactorconfigurationinput.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TokenExchangeRequesterConfiguration`  <a name="cfn-credentialbroker-credentialprovider-onbehalfoftokenexchangeconfigurationinput-tokenexchangerequesterconfiguration"></a>
How the provider authenticates to the authorization server when making the token exchange request. Set exactly one member. This is separate from the provider's main client, so an exchange can present a different client than the one used to obtain the subject token.  
*Required*: No  
*Type*: [TokenExchangeRequesterConfigurationInput](aws-properties-credentialbroker-credentialprovider-tokenexchangerequesterconfigurationinput.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)