Interface CfnModel.ImageConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnModel.ImageConfigProperty.Jsii$Proxy
Enclosing class:
CfnModel

@Stability(Stable) public static interface CfnModel.ImageConfigProperty extends software.amazon.jsii.JsiiSerializable
Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC).

Example:

 // 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.*;
 ImageConfigProperty imageConfigProperty = ImageConfigProperty.builder()
         .repositoryAccessMode("repositoryAccessMode")
         // the properties below are optional
         .repositoryAuthConfig(RepositoryAuthConfigProperty.builder()
                 .repositoryCredentialsProviderArn("repositoryCredentialsProviderArn")
                 .build())
         .build();
 
  • Method Details

    • getRepositoryAccessMode

      @Stability(Stable) @NotNull String getRepositoryAccessMode()
      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.
    • getRepositoryAuthConfig

      @Stability(Stable) @Nullable default Object getRepositoryAuthConfig()
      (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.

    • builder

      @Stability(Stable) static CfnModel.ImageConfigProperty.Builder builder()
      Returns:
      a CfnModel.ImageConfigProperty.Builder of CfnModel.ImageConfigProperty