Skip to content
v2.277.0

RepositoryAuthConfigProperty Struct ​

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.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const repositoryAuthConfigProperty: sagemaker.CfnModel.RepositoryAuthConfigProperty = {
  repositoryCredentialsProviderArn: 'repositoryCredentialsProviderArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

repository_auth_config_property = sagemaker.CfnModel.RepositoryAuthConfigProperty(
    repository_credentials_provider_arn="repositoryCredentialsProviderArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

RepositoryAuthConfigProperty repositoryAuthConfigProperty = RepositoryAuthConfigProperty.builder()
        .repositoryCredentialsProviderArn("repositoryCredentialsProviderArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var repositoryAuthConfigProperty = new RepositoryAuthConfigProperty {
    RepositoryCredentialsProviderArn = "repositoryCredentialsProviderArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

repositoryAuthConfigProperty := &RepositoryAuthConfigProperty{
	RepositoryCredentialsProviderArn: jsii.String("repositoryCredentialsProviderArn"),
}

Properties ​

repositoryCredentialsProviderArnstringrepository_credentials_provider_arnstrrepositoryCredentialsProviderArnStringRepositoryCredentialsProviderArnstringRepositoryCredentialsProviderArn*string required #
The Amazon Resource Name (ARN) of an AWS 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 AWS Lambda function, see Create a Lambda function with the console in the AWS Lambda Developer Guide .