

# OAuthCodeCredential
<a name="API_OAuthCodeCredential"></a>

Credentials for an OAuth 2.0 authorization-code grant, supplied when completing the authorization of an integration.

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

 ** authCode **   <a name="cloudwatchomni-Type-OAuthCodeCredential-authCode"></a>
The OAuth 2.0 authorization code returned by the external system's authorization endpoint.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 4096.  
Required: Yes

## See Also
<a name="API_OAuthCodeCredential_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/cloudwatchomni-2025-01-01/OAuthCodeCredential) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudwatchomni-2025-01-01/OAuthCodeCredential) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudwatchomni-2025-01-01/OAuthCodeCredential) 