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

com.pulumi.aws.bedrock.CustomModelArgs 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.bedrock;

import com.pulumi.aws.bedrock.inputs.CustomModelOutputDataConfigArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelTimeoutsArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelTrainingDataConfigArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelValidationDataConfigArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelVpcConfigArgs;
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 CustomModelArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomModelArgs Empty = new CustomModelArgs();

    /**
     * The Amazon Resource Name (ARN) of the base model.
     * 
     */
    @Import(name="baseModelIdentifier", required=true)
    private Output baseModelIdentifier;

    /**
     * @return The Amazon Resource Name (ARN) of the base model.
     * 
     */
    public Output baseModelIdentifier() {
        return this.baseModelIdentifier;
    }

    /**
     * The custom model is encrypted at rest using this key. Specify the key ARN.
     * 
     */
    @Import(name="customModelKmsKeyId")
    private @Nullable Output customModelKmsKeyId;

    /**
     * @return The custom model is encrypted at rest using this key. Specify the key ARN.
     * 
     */
    public Optional> customModelKmsKeyId() {
        return Optional.ofNullable(this.customModelKmsKeyId);
    }

    /**
     * Name for the custom model.
     * 
     */
    @Import(name="customModelName", required=true)
    private Output customModelName;

    /**
     * @return Name for the custom model.
     * 
     */
    public Output customModelName() {
        return this.customModelName;
    }

    /**
     * The customization type. Valid values: `FINE_TUNING`, `CONTINUED_PRE_TRAINING`.
     * 
     */
    @Import(name="customizationType")
    private @Nullable Output customizationType;

    /**
     * @return The customization type. Valid values: `FINE_TUNING`, `CONTINUED_PRE_TRAINING`.
     * 
     */
    public Optional> customizationType() {
        return Optional.ofNullable(this.customizationType);
    }

    /**
     * [Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html) related to tuning the model.
     * 
     */
    @Import(name="hyperparameters", required=true)
    private Output> hyperparameters;

    /**
     * @return [Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html) related to tuning the model.
     * 
     */
    public Output> hyperparameters() {
        return this.hyperparameters;
    }

    /**
     * A name for the customization job.
     * 
     */
    @Import(name="jobName", required=true)
    private Output jobName;

    /**
     * @return A name for the customization job.
     * 
     */
    public Output jobName() {
        return this.jobName;
    }

    /**
     * S3 location for the output data.
     * 
     */
    @Import(name="outputDataConfig")
    private @Nullable Output outputDataConfig;

    /**
     * @return S3 location for the output data.
     * 
     */
    public Optional> outputDataConfig() {
        return Optional.ofNullable(this.outputDataConfig);
    }

    /**
     * The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * A map of tags to assign to the customization job and custom model. 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 customization job and custom model. 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);
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    /**
     * Information about the training dataset.
     * 
     */
    @Import(name="trainingDataConfig")
    private @Nullable Output trainingDataConfig;

    /**
     * @return Information about the training dataset.
     * 
     */
    public Optional> trainingDataConfig() {
        return Optional.ofNullable(this.trainingDataConfig);
    }

    /**
     * Information about the validation dataset.
     * 
     */
    @Import(name="validationDataConfig")
    private @Nullable Output validationDataConfig;

    /**
     * @return Information about the validation dataset.
     * 
     */
    public Optional> validationDataConfig() {
        return Optional.ofNullable(this.validationDataConfig);
    }

    /**
     * Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
     * 
     */
    @Import(name="vpcConfig")
    private @Nullable Output vpcConfig;

    /**
     * @return Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
     * 
     */
    public Optional> vpcConfig() {
        return Optional.ofNullable(this.vpcConfig);
    }

    private CustomModelArgs() {}

    private CustomModelArgs(CustomModelArgs $) {
        this.baseModelIdentifier = $.baseModelIdentifier;
        this.customModelKmsKeyId = $.customModelKmsKeyId;
        this.customModelName = $.customModelName;
        this.customizationType = $.customizationType;
        this.hyperparameters = $.hyperparameters;
        this.jobName = $.jobName;
        this.outputDataConfig = $.outputDataConfig;
        this.roleArn = $.roleArn;
        this.tags = $.tags;
        this.timeouts = $.timeouts;
        this.trainingDataConfig = $.trainingDataConfig;
        this.validationDataConfig = $.validationDataConfig;
        this.vpcConfig = $.vpcConfig;
    }

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

    public static final class Builder {
        private CustomModelArgs $;

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

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

        /**
         * @param baseModelIdentifier The Amazon Resource Name (ARN) of the base model.
         * 
         * @return builder
         * 
         */
        public Builder baseModelIdentifier(Output baseModelIdentifier) {
            $.baseModelIdentifier = baseModelIdentifier;
            return this;
        }

        /**
         * @param baseModelIdentifier The Amazon Resource Name (ARN) of the base model.
         * 
         * @return builder
         * 
         */
        public Builder baseModelIdentifier(String baseModelIdentifier) {
            return baseModelIdentifier(Output.of(baseModelIdentifier));
        }

        /**
         * @param customModelKmsKeyId The custom model is encrypted at rest using this key. Specify the key ARN.
         * 
         * @return builder
         * 
         */
        public Builder customModelKmsKeyId(@Nullable Output customModelKmsKeyId) {
            $.customModelKmsKeyId = customModelKmsKeyId;
            return this;
        }

        /**
         * @param customModelKmsKeyId The custom model is encrypted at rest using this key. Specify the key ARN.
         * 
         * @return builder
         * 
         */
        public Builder customModelKmsKeyId(String customModelKmsKeyId) {
            return customModelKmsKeyId(Output.of(customModelKmsKeyId));
        }

        /**
         * @param customModelName Name for the custom model.
         * 
         * @return builder
         * 
         */
        public Builder customModelName(Output customModelName) {
            $.customModelName = customModelName;
            return this;
        }

        /**
         * @param customModelName Name for the custom model.
         * 
         * @return builder
         * 
         */
        public Builder customModelName(String customModelName) {
            return customModelName(Output.of(customModelName));
        }

        /**
         * @param customizationType The customization type. Valid values: `FINE_TUNING`, `CONTINUED_PRE_TRAINING`.
         * 
         * @return builder
         * 
         */
        public Builder customizationType(@Nullable Output customizationType) {
            $.customizationType = customizationType;
            return this;
        }

        /**
         * @param customizationType The customization type. Valid values: `FINE_TUNING`, `CONTINUED_PRE_TRAINING`.
         * 
         * @return builder
         * 
         */
        public Builder customizationType(String customizationType) {
            return customizationType(Output.of(customizationType));
        }

        /**
         * @param hyperparameters [Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html) related to tuning the model.
         * 
         * @return builder
         * 
         */
        public Builder hyperparameters(Output> hyperparameters) {
            $.hyperparameters = hyperparameters;
            return this;
        }

        /**
         * @param hyperparameters [Parameters](https://docs.aws.amazon.com/bedrock/latest/userguide/custom-models-hp.html) related to tuning the model.
         * 
         * @return builder
         * 
         */
        public Builder hyperparameters(Map hyperparameters) {
            return hyperparameters(Output.of(hyperparameters));
        }

        /**
         * @param jobName A name for the customization job.
         * 
         * @return builder
         * 
         */
        public Builder jobName(Output jobName) {
            $.jobName = jobName;
            return this;
        }

        /**
         * @param jobName A name for the customization job.
         * 
         * @return builder
         * 
         */
        public Builder jobName(String jobName) {
            return jobName(Output.of(jobName));
        }

        /**
         * @param outputDataConfig S3 location for the output data.
         * 
         * @return builder
         * 
         */
        public Builder outputDataConfig(@Nullable Output outputDataConfig) {
            $.outputDataConfig = outputDataConfig;
            return this;
        }

        /**
         * @param outputDataConfig S3 location for the output data.
         * 
         * @return builder
         * 
         */
        public Builder outputDataConfig(CustomModelOutputDataConfigArgs outputDataConfig) {
            return outputDataConfig(Output.of(outputDataConfig));
        }

        /**
         * @param roleArn The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param tags A map of tags to assign to the customization job and custom model. 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 customization job and custom model. 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 Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(CustomModelTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        /**
         * @param trainingDataConfig Information about the training dataset.
         * 
         * @return builder
         * 
         */
        public Builder trainingDataConfig(@Nullable Output trainingDataConfig) {
            $.trainingDataConfig = trainingDataConfig;
            return this;
        }

        /**
         * @param trainingDataConfig Information about the training dataset.
         * 
         * @return builder
         * 
         */
        public Builder trainingDataConfig(CustomModelTrainingDataConfigArgs trainingDataConfig) {
            return trainingDataConfig(Output.of(trainingDataConfig));
        }

        /**
         * @param validationDataConfig Information about the validation dataset.
         * 
         * @return builder
         * 
         */
        public Builder validationDataConfig(@Nullable Output validationDataConfig) {
            $.validationDataConfig = validationDataConfig;
            return this;
        }

        /**
         * @param validationDataConfig Information about the validation dataset.
         * 
         * @return builder
         * 
         */
        public Builder validationDataConfig(CustomModelValidationDataConfigArgs validationDataConfig) {
            return validationDataConfig(Output.of(validationDataConfig));
        }

        /**
         * @param vpcConfig Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfig(@Nullable Output vpcConfig) {
            $.vpcConfig = vpcConfig;
            return this;
        }

        /**
         * @param vpcConfig Configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for this job.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfig(CustomModelVpcConfigArgs vpcConfig) {
            return vpcConfig(Output.of(vpcConfig));
        }

        public CustomModelArgs build() {
            if ($.baseModelIdentifier == null) {
                throw new MissingRequiredPropertyException("CustomModelArgs", "baseModelIdentifier");
            }
            if ($.customModelName == null) {
                throw new MissingRequiredPropertyException("CustomModelArgs", "customModelName");
            }
            if ($.hyperparameters == null) {
                throw new MissingRequiredPropertyException("CustomModelArgs", "hyperparameters");
            }
            if ($.jobName == null) {
                throw new MissingRequiredPropertyException("CustomModelArgs", "jobName");
            }
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("CustomModelArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy