

# ExchangeCodeForTokenRequestBody
<a name="API_ExchangeCodeForTokenRequestBody"></a>

Describes the configuration of a request to exchange an access code for a token.

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

 ** code **   <a name="amplifyuibuilder-Type-ExchangeCodeForTokenRequestBody-code"></a>
The access code to send in the request.  
Type: String  
Required: Yes

 ** redirectUri **   <a name="amplifyuibuilder-Type-ExchangeCodeForTokenRequestBody-redirectUri"></a>
The location of the application that will receive the access code.  
Type: String  
Required: Yes

 ** clientId **   <a name="amplifyuibuilder-Type-ExchangeCodeForTokenRequestBody-clientId"></a>
The ID of the client to request the token from.  
Type: String  
Required: No

## See Also
<a name="API_ExchangeCodeForTokenRequestBody_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/amplifyuibuilder-2021-08-11/ExchangeCodeForTokenRequestBody) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/amplifyuibuilder-2021-08-11/ExchangeCodeForTokenRequestBody) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/amplifyuibuilder-2021-08-11/ExchangeCodeForTokenRequestBody) 