Class: AWSCDK::Sagemaker::CfnModel::RepositoryAuthConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_model.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository_credentials_provider_arn:) ⇒ RepositoryAuthConfigProperty

Returns a new instance of RepositoryAuthConfigProperty.

Parameters:

  • repository_credentials_provider_arn (String)

    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.



999
1000
1001
1002
# File 'sagemaker/cfn_model.rb', line 999

def initialize(repository_credentials_provider_arn:)
  @repository_credentials_provider_arn = repository_credentials_provider_arn
  Jsii::Type.check_type(@repository_credentials_provider_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryCredentialsProviderArn")
end

Instance Attribute Details

#repository_credentials_provider_arnString (readonly)

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 .



1010
1011
1012
# File 'sagemaker/cfn_model.rb', line 1010

def repository_credentials_provider_arn
  @repository_credentials_provider_arn
end

Class Method Details

.jsii_propertiesObject



1012
1013
1014
1015
1016
# File 'sagemaker/cfn_model.rb', line 1012

def self.jsii_properties
  {
    :repository_credentials_provider_arn => "repositoryCredentialsProviderArn",
  }
end

Instance Method Details

#to_jsiiObject



1018
1019
1020
1021
1022
1023
1024
# File 'sagemaker/cfn_model.rb', line 1018

def to_jsii
  result = {}
  result.merge!({
    "repositoryCredentialsProviderArn" => @repository_credentials_provider_arn,
  })
  result.compact
end