com.pulumi.aws.sagemaker.outputs.ModelPrimaryContainerImageConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.sagemaker.outputs;
import com.pulumi.aws.sagemaker.outputs.ModelPrimaryContainerImageConfigRepositoryAuthConfig;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ModelPrimaryContainerImageConfig {
/**
* @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: `Platform` and `Vpc`.
*
*/
private String repositoryAccessMode;
/**
* @return 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. see Repository Auth Config.
*
*/
private @Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig;
private ModelPrimaryContainerImageConfig() {}
/**
* @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). Allowed values are: `Platform` and `Vpc`.
*
*/
public String repositoryAccessMode() {
return this.repositoryAccessMode;
}
/**
* @return 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. see Repository Auth Config.
*
*/
public Optional repositoryAuthConfig() {
return Optional.ofNullable(this.repositoryAuthConfig);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ModelPrimaryContainerImageConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String repositoryAccessMode;
private @Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig;
public Builder() {}
public Builder(ModelPrimaryContainerImageConfig defaults) {
Objects.requireNonNull(defaults);
this.repositoryAccessMode = defaults.repositoryAccessMode;
this.repositoryAuthConfig = defaults.repositoryAuthConfig;
}
@CustomType.Setter
public Builder repositoryAccessMode(String repositoryAccessMode) {
if (repositoryAccessMode == null) {
throw new MissingRequiredPropertyException("ModelPrimaryContainerImageConfig", "repositoryAccessMode");
}
this.repositoryAccessMode = repositoryAccessMode;
return this;
}
@CustomType.Setter
public Builder repositoryAuthConfig(@Nullable ModelPrimaryContainerImageConfigRepositoryAuthConfig repositoryAuthConfig) {
this.repositoryAuthConfig = repositoryAuthConfig;
return this;
}
public ModelPrimaryContainerImageConfig build() {
final var _resultValue = new ModelPrimaryContainerImageConfig();
_resultValue.repositoryAccessMode = repositoryAccessMode;
_resultValue.repositoryAuthConfig = repositoryAuthConfig;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy