Class: AWSCDK::Sagemaker::CfnModel::RepositoryAuthConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModel::RepositoryAuthConfigProperty
- 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
-
#repository_credentials_provider_arn ⇒ String
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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository_credentials_provider_arn:) ⇒ RepositoryAuthConfigProperty
constructor
A new instance of RepositoryAuthConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(repository_credentials_provider_arn:) ⇒ RepositoryAuthConfigProperty
Returns a new instance of RepositoryAuthConfigProperty.
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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |