Class: AWSCDK::Sagemaker::CfnModel::ImageConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModel::ImageConfigProperty
- Defined in:
- sagemaker/cfn_model.rb
Overview
Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC).
Instance Attribute Summary collapse
-
#repository_access_mode ⇒ String
readonly
Set this to one of the following values:.
-
#repository_auth_config ⇒ AWSCDK::IResolvable, ...
readonly
(Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository_access_mode:, repository_auth_config: nil) ⇒ ImageConfigProperty
constructor
A new instance of ImageConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(repository_access_mode:, repository_auth_config: nil) ⇒ ImageConfigProperty
Returns a new instance of ImageConfigProperty.
804 805 806 807 808 809 |
# File 'sagemaker/cfn_model.rb', line 804 def initialize(repository_access_mode:, repository_auth_config: nil) @repository_access_mode = repository_access_mode Jsii::Type.check_type(@repository_access_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryAccessMode") @repository_auth_config = repository_auth_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModel::RepositoryAuthConfigProperty.new(**repository_auth_config.transform_keys(&:to_sym)) : repository_auth_config Jsii::Type.check_type(@repository_auth_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWwuUmVwb3NpdG9yeUF1dGhDb25maWdQcm9wZXJ0eSJ9XX19")), "repositoryAuthConfig") unless @repository_auth_config.nil? end |
Instance Attribute Details
#repository_access_mode ⇒ String (readonly)
Set this to one of the following values:.
Platform- The model image is hosted in Amazon ECR.Vpc- The model image is hosted in a private Docker registry in your VPC.
818 819 820 |
# File 'sagemaker/cfn_model.rb', line 818 def repository_access_mode @repository_access_mode end |
#repository_auth_config ⇒ AWSCDK::IResolvable, ... (readonly)
(Optional) 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, and the private Docker registry where the model image is hosted requires authentication.
825 826 827 |
# File 'sagemaker/cfn_model.rb', line 825 def repository_auth_config @repository_auth_config end |
Class Method Details
.jsii_properties ⇒ Object
827 828 829 830 831 832 |
# File 'sagemaker/cfn_model.rb', line 827 def self.jsii_properties { :repository_access_mode => "repositoryAccessMode", :repository_auth_config => "repositoryAuthConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
834 835 836 837 838 839 840 841 |
# File 'sagemaker/cfn_model.rb', line 834 def to_jsii result = {} result.merge!({ "repositoryAccessMode" => @repository_access_mode, "repositoryAuthConfig" => @repository_auth_config, }) result.compact end |