All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.sagemaker.inputs.ModelContainerImageConfigArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show 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.inputs;

import com.pulumi.aws.sagemaker.inputs.ModelContainerImageConfigRepositoryAuthConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ModelContainerImageConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final ModelContainerImageConfigArgs Empty = new ModelContainerImageConfigArgs();

    /**
     * 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`.
     * 
     */
    @Import(name="repositoryAccessMode", required=true)
    private Output repositoryAccessMode;

    /**
     * @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 Output repositoryAccessMode() {
        return this.repositoryAccessMode;
    }

    /**
     * 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.
     * 
     */
    @Import(name="repositoryAuthConfig")
    private @Nullable Output repositoryAuthConfig;

    /**
     * @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);
    }

    private ModelContainerImageConfigArgs() {}

    private ModelContainerImageConfigArgs(ModelContainerImageConfigArgs $) {
        this.repositoryAccessMode = $.repositoryAccessMode;
        this.repositoryAuthConfig = $.repositoryAuthConfig;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ModelContainerImageConfigArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ModelContainerImageConfigArgs $;

        public Builder() {
            $ = new ModelContainerImageConfigArgs();
        }

        public Builder(ModelContainerImageConfigArgs defaults) {
            $ = new ModelContainerImageConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param repositoryAccessMode 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`.
         * 
         * @return builder
         * 
         */
        public Builder repositoryAccessMode(Output repositoryAccessMode) {
            $.repositoryAccessMode = repositoryAccessMode;
            return this;
        }

        /**
         * @param repositoryAccessMode 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`.
         * 
         * @return builder
         * 
         */
        public Builder repositoryAccessMode(String repositoryAccessMode) {
            return repositoryAccessMode(Output.of(repositoryAccessMode));
        }

        /**
         * @param repositoryAuthConfig 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.
         * 
         * @return builder
         * 
         */
        public Builder repositoryAuthConfig(@Nullable Output repositoryAuthConfig) {
            $.repositoryAuthConfig = repositoryAuthConfig;
            return this;
        }

        /**
         * @param repositoryAuthConfig 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.
         * 
         * @return builder
         * 
         */
        public Builder repositoryAuthConfig(ModelContainerImageConfigRepositoryAuthConfigArgs repositoryAuthConfig) {
            return repositoryAuthConfig(Output.of(repositoryAuthConfig));
        }

        public ModelContainerImageConfigArgs build() {
            if ($.repositoryAccessMode == null) {
                throw new MissingRequiredPropertyException("ModelContainerImageConfigArgs", "repositoryAccessMode");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy