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

com.pulumi.aws.sagemaker.PipelineArgs 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.66.3
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;

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


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

    public static final PipelineArgs Empty = new PipelineArgs();

    /**
     * This is the configuration that controls the parallelism of the pipeline. If specified, it applies to all runs of this pipeline by default. see Parallelism Configuration details below.
     * 
     */
    @Import(name="parallelismConfiguration")
    private @Nullable Output parallelismConfiguration;

    /**
     * @return This is the configuration that controls the parallelism of the pipeline. If specified, it applies to all runs of this pipeline by default. see Parallelism Configuration details below.
     * 
     */
    public Optional> parallelismConfiguration() {
        return Optional.ofNullable(this.parallelismConfiguration);
    }

    /**
     * The [JSON pipeline definition](https://aws-sagemaker-mlops.github.io/sagemaker-model-building-pipeline-definition-JSON-schema/) of the pipeline.
     * 
     */
    @Import(name="pipelineDefinition")
    private @Nullable Output pipelineDefinition;

    /**
     * @return The [JSON pipeline definition](https://aws-sagemaker-mlops.github.io/sagemaker-model-building-pipeline-definition-JSON-schema/) of the pipeline.
     * 
     */
    public Optional> pipelineDefinition() {
        return Optional.ofNullable(this.pipelineDefinition);
    }

    /**
     * The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline definition from this location. see Pipeline Definition S3 Location details below.
     * 
     */
    @Import(name="pipelineDefinitionS3Location")
    private @Nullable Output pipelineDefinitionS3Location;

    /**
     * @return The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline definition from this location. see Pipeline Definition S3 Location details below.
     * 
     */
    public Optional> pipelineDefinitionS3Location() {
        return Optional.ofNullable(this.pipelineDefinitionS3Location);
    }

    /**
     * A description of the pipeline.
     * 
     */
    @Import(name="pipelineDescription")
    private @Nullable Output pipelineDescription;

    /**
     * @return A description of the pipeline.
     * 
     */
    public Optional> pipelineDescription() {
        return Optional.ofNullable(this.pipelineDescription);
    }

    /**
     * The display name of the pipeline.
     * 
     */
    @Import(name="pipelineDisplayName", required=true)
    private Output pipelineDisplayName;

    /**
     * @return The display name of the pipeline.
     * 
     */
    public Output pipelineDisplayName() {
        return this.pipelineDisplayName;
    }

    /**
     * The name of the pipeline.
     * 
     */
    @Import(name="pipelineName", required=true)
    private Output pipelineName;

    /**
     * @return The name of the pipeline.
     * 
     */
    public Output pipelineName() {
        return this.pipelineName;
    }

    /**
     * The ARN of the IAM role the pipeline will execute as.
     * 
     */
    @Import(name="roleArn")
    private @Nullable Output roleArn;

    /**
     * @return The ARN of the IAM role the pipeline will execute as.
     * 
     */
    public Optional> roleArn() {
        return Optional.ofNullable(this.roleArn);
    }

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

    private PipelineArgs() {}

    private PipelineArgs(PipelineArgs $) {
        this.parallelismConfiguration = $.parallelismConfiguration;
        this.pipelineDefinition = $.pipelineDefinition;
        this.pipelineDefinitionS3Location = $.pipelineDefinitionS3Location;
        this.pipelineDescription = $.pipelineDescription;
        this.pipelineDisplayName = $.pipelineDisplayName;
        this.pipelineName = $.pipelineName;
        this.roleArn = $.roleArn;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PipelineArgs $;

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

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

        /**
         * @param parallelismConfiguration This is the configuration that controls the parallelism of the pipeline. If specified, it applies to all runs of this pipeline by default. see Parallelism Configuration details below.
         * 
         * @return builder
         * 
         */
        public Builder parallelismConfiguration(@Nullable Output parallelismConfiguration) {
            $.parallelismConfiguration = parallelismConfiguration;
            return this;
        }

        /**
         * @param parallelismConfiguration This is the configuration that controls the parallelism of the pipeline. If specified, it applies to all runs of this pipeline by default. see Parallelism Configuration details below.
         * 
         * @return builder
         * 
         */
        public Builder parallelismConfiguration(PipelineParallelismConfigurationArgs parallelismConfiguration) {
            return parallelismConfiguration(Output.of(parallelismConfiguration));
        }

        /**
         * @param pipelineDefinition The [JSON pipeline definition](https://aws-sagemaker-mlops.github.io/sagemaker-model-building-pipeline-definition-JSON-schema/) of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDefinition(@Nullable Output pipelineDefinition) {
            $.pipelineDefinition = pipelineDefinition;
            return this;
        }

        /**
         * @param pipelineDefinition The [JSON pipeline definition](https://aws-sagemaker-mlops.github.io/sagemaker-model-building-pipeline-definition-JSON-schema/) of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDefinition(String pipelineDefinition) {
            return pipelineDefinition(Output.of(pipelineDefinition));
        }

        /**
         * @param pipelineDefinitionS3Location The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline definition from this location. see Pipeline Definition S3 Location details below.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDefinitionS3Location(@Nullable Output pipelineDefinitionS3Location) {
            $.pipelineDefinitionS3Location = pipelineDefinitionS3Location;
            return this;
        }

        /**
         * @param pipelineDefinitionS3Location The location of the pipeline definition stored in Amazon S3. If specified, SageMaker will retrieve the pipeline definition from this location. see Pipeline Definition S3 Location details below.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDefinitionS3Location(PipelinePipelineDefinitionS3LocationArgs pipelineDefinitionS3Location) {
            return pipelineDefinitionS3Location(Output.of(pipelineDefinitionS3Location));
        }

        /**
         * @param pipelineDescription A description of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDescription(@Nullable Output pipelineDescription) {
            $.pipelineDescription = pipelineDescription;
            return this;
        }

        /**
         * @param pipelineDescription A description of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDescription(String pipelineDescription) {
            return pipelineDescription(Output.of(pipelineDescription));
        }

        /**
         * @param pipelineDisplayName The display name of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDisplayName(Output pipelineDisplayName) {
            $.pipelineDisplayName = pipelineDisplayName;
            return this;
        }

        /**
         * @param pipelineDisplayName The display name of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineDisplayName(String pipelineDisplayName) {
            return pipelineDisplayName(Output.of(pipelineDisplayName));
        }

        /**
         * @param pipelineName The name of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineName(Output pipelineName) {
            $.pipelineName = pipelineName;
            return this;
        }

        /**
         * @param pipelineName The name of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder pipelineName(String pipelineName) {
            return pipelineName(Output.of(pipelineName));
        }

        /**
         * @param roleArn The ARN of the IAM role the pipeline will execute as.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(@Nullable Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of the IAM role the pipeline will execute as.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

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

        public PipelineArgs build() {
            if ($.pipelineDisplayName == null) {
                throw new MissingRequiredPropertyException("PipelineArgs", "pipelineDisplayName");
            }
            if ($.pipelineName == null) {
                throw new MissingRequiredPropertyException("PipelineArgs", "pipelineName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy