

# RepositoryAuthConfig
<a name="API_RepositoryAuthConfig"></a>

Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified `Vpc` as the value for the `RepositoryAccessMode` field of the `ImageConfig` object that you passed to a call to `CreateModel` and the private Docker registry where the model image is hosted requires authentication.

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

 ** RepositoryCredentialsProviderArn **   <a name="sagemaker-Type-RepositoryAuthConfig-RepositoryCredentialsProviderArn"></a>
The Amazon Resource Name (ARN) of an Amazon Lambda function that provides credentials to authenticate to the private Docker registry where your model image is hosted. For information about how to create an Amazon Lambda function, see [Create a Lambda function with the console](https://docs.amazonaws.cn/lambda/latest/dg/getting-started-create-function.html) in the * Amazon Lambda Developer Guide*.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `.*`   
Required: Yes

## See Also
<a name="API_RepositoryAuthConfig_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/sagemaker-2017-07-24/RepositoryAuthConfig) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/sagemaker-2017-07-24/RepositoryAuthConfig) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/sagemaker-2017-07-24/RepositoryAuthConfig) 