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

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

// *** 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.ModelContainerArgs;
import com.pulumi.aws.sagemaker.inputs.ModelInferenceExecutionConfigArgs;
import com.pulumi.aws.sagemaker.inputs.ModelPrimaryContainerArgs;
import com.pulumi.aws.sagemaker.inputs.ModelVpcConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ModelState Empty = new ModelState();

    /**
     * The Amazon Resource Name (ARN) assigned by AWS to this model.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The Amazon Resource Name (ARN) assigned by AWS to this model.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Specifies containers in the inference pipeline. If not specified, the `primary_container` argument is required. Fields are documented below.
     * 
     */
    @Import(name="containers")
    private @Nullable Output> containers;

    /**
     * @return Specifies containers in the inference pipeline. If not specified, the `primary_container` argument is required. Fields are documented below.
     * 
     */
    public Optional>> containers() {
        return Optional.ofNullable(this.containers);
    }

    /**
     * Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
     * 
     */
    @Import(name="enableNetworkIsolation")
    private @Nullable Output enableNetworkIsolation;

    /**
     * @return Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
     * 
     */
    public Optional> enableNetworkIsolation() {
        return Optional.ofNullable(this.enableNetworkIsolation);
    }

    /**
     * A role that SageMaker can assume to access model artifacts and docker images for deployment.
     * 
     */
    @Import(name="executionRoleArn")
    private @Nullable Output executionRoleArn;

    /**
     * @return A role that SageMaker can assume to access model artifacts and docker images for deployment.
     * 
     */
    public Optional> executionRoleArn() {
        return Optional.ofNullable(this.executionRoleArn);
    }

    /**
     * Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config.
     * 
     */
    @Import(name="inferenceExecutionConfig")
    private @Nullable Output inferenceExecutionConfig;

    /**
     * @return Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config.
     * 
     */
    public Optional> inferenceExecutionConfig() {
        return Optional.ofNullable(this.inferenceExecutionConfig);
    }

    /**
     * The name of the model (must be unique). If omitted, this provider will assign a random, unique name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the model (must be unique). If omitted, this provider will assign a random, unique name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The primary docker image containing inference code that is used when the model is deployed for predictions.  If not specified, the `container` argument is required. Fields are documented below.
     * 
     */
    @Import(name="primaryContainer")
    private @Nullable Output primaryContainer;

    /**
     * @return The primary docker image containing inference code that is used when the model is deployed for predictions.  If not specified, the `container` argument is required. Fields are documented below.
     * 
     */
    public Optional> primaryContainer() {
        return Optional.ofNullable(this.primaryContainer);
    }

    /**
     * A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform.
     * 
     */
    @Import(name="vpcConfig")
    private @Nullable Output vpcConfig;

    /**
     * @return Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform.
     * 
     */
    public Optional> vpcConfig() {
        return Optional.ofNullable(this.vpcConfig);
    }

    private ModelState() {}

    private ModelState(ModelState $) {
        this.arn = $.arn;
        this.containers = $.containers;
        this.enableNetworkIsolation = $.enableNetworkIsolation;
        this.executionRoleArn = $.executionRoleArn;
        this.inferenceExecutionConfig = $.inferenceExecutionConfig;
        this.name = $.name;
        this.primaryContainer = $.primaryContainer;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.vpcConfig = $.vpcConfig;
    }

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

    public static final class Builder {
        private ModelState $;

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

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

        /**
         * @param arn The Amazon Resource Name (ARN) assigned by AWS to this model.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name (ARN) assigned by AWS to this model.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param containers Specifies containers in the inference pipeline. If not specified, the `primary_container` argument is required. Fields are documented below.
         * 
         * @return builder
         * 
         */
        public Builder containers(@Nullable Output> containers) {
            $.containers = containers;
            return this;
        }

        /**
         * @param containers Specifies containers in the inference pipeline. If not specified, the `primary_container` argument is required. Fields are documented below.
         * 
         * @return builder
         * 
         */
        public Builder containers(List containers) {
            return containers(Output.of(containers));
        }

        /**
         * @param containers Specifies containers in the inference pipeline. If not specified, the `primary_container` argument is required. Fields are documented below.
         * 
         * @return builder
         * 
         */
        public Builder containers(ModelContainerArgs... containers) {
            return containers(List.of(containers));
        }

        /**
         * @param enableNetworkIsolation Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
         * 
         * @return builder
         * 
         */
        public Builder enableNetworkIsolation(@Nullable Output enableNetworkIsolation) {
            $.enableNetworkIsolation = enableNetworkIsolation;
            return this;
        }

        /**
         * @param enableNetworkIsolation Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
         * 
         * @return builder
         * 
         */
        public Builder enableNetworkIsolation(Boolean enableNetworkIsolation) {
            return enableNetworkIsolation(Output.of(enableNetworkIsolation));
        }

        /**
         * @param executionRoleArn A role that SageMaker can assume to access model artifacts and docker images for deployment.
         * 
         * @return builder
         * 
         */
        public Builder executionRoleArn(@Nullable Output executionRoleArn) {
            $.executionRoleArn = executionRoleArn;
            return this;
        }

        /**
         * @param executionRoleArn A role that SageMaker can assume to access model artifacts and docker images for deployment.
         * 
         * @return builder
         * 
         */
        public Builder executionRoleArn(String executionRoleArn) {
            return executionRoleArn(Output.of(executionRoleArn));
        }

        /**
         * @param inferenceExecutionConfig Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config.
         * 
         * @return builder
         * 
         */
        public Builder inferenceExecutionConfig(@Nullable Output inferenceExecutionConfig) {
            $.inferenceExecutionConfig = inferenceExecutionConfig;
            return this;
        }

        /**
         * @param inferenceExecutionConfig Specifies details of how containers in a multi-container endpoint are called. see Inference Execution Config.
         * 
         * @return builder
         * 
         */
        public Builder inferenceExecutionConfig(ModelInferenceExecutionConfigArgs inferenceExecutionConfig) {
            return inferenceExecutionConfig(Output.of(inferenceExecutionConfig));
        }

        /**
         * @param name The name of the model (must be unique). If omitted, this provider will assign a random, unique name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the model (must be unique). If omitted, this provider will assign a random, unique name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param primaryContainer The primary docker image containing inference code that is used when the model is deployed for predictions.  If not specified, the `container` argument is required. Fields are documented below.
         * 
         * @return builder
         * 
         */
        public Builder primaryContainer(@Nullable Output primaryContainer) {
            $.primaryContainer = primaryContainer;
            return this;
        }

        /**
         * @param primaryContainer The primary docker image containing inference code that is used when the model is deployed for predictions.  If not specified, the `container` argument is required. Fields are documented below.
         * 
         * @return builder
         * 
         */
        public Builder primaryContainer(ModelPrimaryContainerArgs primaryContainer) {
            return primaryContainer(Output.of(primaryContainer));
        }

        /**
         * @param tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param vpcConfig Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfig(@Nullable Output vpcConfig) {
            $.vpcConfig = vpcConfig;
            return this;
        }

        /**
         * @param vpcConfig Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfig(ModelVpcConfigArgs vpcConfig) {
            return vpcConfig(Output.of(vpcConfig));
        }

        public ModelState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy