

# CreateAuthenticationProfile
<a name="API_CreateAuthenticationProfile"></a>

Creates an authentication profile with the specified parameters.

## Request Parameters
<a name="API_CreateAuthenticationProfile_RequestParameters"></a>

 For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

 ** AuthenticationProfileContent **   
The content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account.  
Type: String  
Length Constraints: Maximum length of 2147483647.  
Required: Yes

 ** AuthenticationProfileName **   
The name of the authentication profile to be created.  
Type: String  
Length Constraints: Maximum length of 63.  
Pattern: `^[a-zA-Z0-9\-]+$`   
Required: Yes

## Response Elements
<a name="API_CreateAuthenticationProfile_ResponseElements"></a>

The following elements are returned by the service.

 ** AuthenticationProfileContent **   
The content of the authentication profile in JSON format.  
Type: String  
Length Constraints: Maximum length of 2147483647.

 ** AuthenticationProfileName **   
The name of the authentication profile that was created.  
Type: String  
Length Constraints: Maximum length of 63.  
Pattern: `^[a-zA-Z0-9\-]+$` 

## Errors
<a name="API_CreateAuthenticationProfile_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AuthenticationProfileAlreadyExistsFault **   
The authentication profile already exists.  
HTTP Status Code: 400

 ** AuthenticationProfileQuotaExceededFault **   
The size or number of authentication profiles has exceeded the quota. The maximum length of the JSON string and maximum number of authentication profiles is determined by a quota for your account.  
HTTP Status Code: 400

 ** InvalidAuthenticationProfileRequestFault **   
The authentication profile request is not valid. The profile name can't be null or empty. The authentication profile API operation must be available in the Amazon Web Services Region.  
HTTP Status Code: 400

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/redshift-2012-12-01/CreateAuthenticationProfile) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/redshift-2012-12-01/CreateAuthenticationProfile) 