

# Credentials
<a name="API_Credentials"></a>

The credentials that you can use to connect to cluster endpoints. Credentials consist of a username and a password.

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

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

 ** UsernamePassword **   <a name="EMR-Type-Credentials-UsernamePassword"></a>
The username and password that you use to connect to cluster endpoints.  
Type: [UsernamePassword](API_UsernamePassword.md) object  
Required: No

## See Also
<a name="API_Credentials_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/elasticmapreduce-2009-03-31/Credentials) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/elasticmapreduce-2009-03-31/Credentials) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/elasticmapreduce-2009-03-31/Credentials) 