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

com.pulumi.aws.bedrock.inputs.CustomModelState 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.72.0
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.inputs;

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.CustomModelTrainingMetricArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelValidationDataConfigArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelValidationMetricArgs;
import com.pulumi.aws.bedrock.inputs.CustomModelVpcConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 CustomModelState extends com.pulumi.resources.ResourceArgs {

    public static final CustomModelState Empty = new CustomModelState();

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

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

    /**
     * The ARN of the output model.
     * 
     */
    @Import(name="customModelArn")
    private @Nullable Output customModelArn;

    /**
     * @return The ARN of the output model.
     * 
     */
    public Optional> customModelArn() {
        return Optional.ofNullable(this.customModelArn);
    }

    /**
     * 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")
    private @Nullable Output customModelName;

    /**
     * @return Name for the custom model.
     * 
     */
    public Optional> customModelName() {
        return Optional.ofNullable(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")
    private @Nullable Output> hyperparameters;

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

    /**
     * The ARN of the customization job.
     * 
     */
    @Import(name="jobArn")
    private @Nullable Output jobArn;

    /**
     * @return The ARN of the customization job.
     * 
     */
    public Optional> jobArn() {
        return Optional.ofNullable(this.jobArn);
    }

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

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

    /**
     * The status of the customization job. A successful job transitions from `InProgress` to `Completed` when the output model is ready to use.
     * 
     */
    @Import(name="jobStatus")
    private @Nullable Output jobStatus;

    /**
     * @return The status of the customization job. A successful job transitions from `InProgress` to `Completed` when the output model is ready to use.
     * 
     */
    public Optional> jobStatus() {
        return Optional.ofNullable(this.jobStatus);
    }

    /**
     * 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")
    private @Nullable Output roleArn;

    /**
     * @return The Amazon Resource Name (ARN) of an IAM role that Bedrock can assume to perform tasks on your behalf.
     * 
     */
    public Optional> roleArn() {
        return Optional.ofNullable(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);
    }

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

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

    /**
     * Metrics associated with the customization job.
     * 
     */
    @Import(name="trainingMetrics")
    private @Nullable Output> trainingMetrics;

    /**
     * @return Metrics associated with the customization job.
     * 
     */
    public Optional>> trainingMetrics() {
        return Optional.ofNullable(this.trainingMetrics);
    }

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

    /**
     * The loss metric for each validator that you provided.
     * 
     */
    @Import(name="validationMetrics")
    private @Nullable Output> validationMetrics;

    /**
     * @return The loss metric for each validator that you provided.
     * 
     */
    public Optional>> validationMetrics() {
        return Optional.ofNullable(this.validationMetrics);
    }

    /**
     * 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 CustomModelState() {}

    private CustomModelState(CustomModelState $) {
        this.baseModelIdentifier = $.baseModelIdentifier;
        this.customModelArn = $.customModelArn;
        this.customModelKmsKeyId = $.customModelKmsKeyId;
        this.customModelName = $.customModelName;
        this.customizationType = $.customizationType;
        this.hyperparameters = $.hyperparameters;
        this.jobArn = $.jobArn;
        this.jobName = $.jobName;
        this.jobStatus = $.jobStatus;
        this.outputDataConfig = $.outputDataConfig;
        this.roleArn = $.roleArn;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.timeouts = $.timeouts;
        this.trainingDataConfig = $.trainingDataConfig;
        this.trainingMetrics = $.trainingMetrics;
        this.validationDataConfig = $.validationDataConfig;
        this.validationMetrics = $.validationMetrics;
        this.vpcConfig = $.vpcConfig;
    }

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

    public static final class Builder {
        private CustomModelState $;

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

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

        /**
         * @param baseModelIdentifier The Amazon Resource Name (ARN) of the base model.
         * 
         * @return builder
         * 
         */
        public Builder baseModelIdentifier(@Nullable 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 customModelArn The ARN of the output model.
         * 
         * @return builder
         * 
         */
        public Builder customModelArn(@Nullable Output customModelArn) {
            $.customModelArn = customModelArn;
            return this;
        }

        /**
         * @param customModelArn The ARN of the output model.
         * 
         * @return builder
         * 
         */
        public Builder customModelArn(String customModelArn) {
            return customModelArn(Output.of(customModelArn));
        }

        /**
         * @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(@Nullable 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(@Nullable 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 jobArn The ARN of the customization job.
         * 
         * @return builder
         * 
         */
        public Builder jobArn(@Nullable Output jobArn) {
            $.jobArn = jobArn;
            return this;
        }

        /**
         * @param jobArn The ARN of the customization job.
         * 
         * @return builder
         * 
         */
        public Builder jobArn(String jobArn) {
            return jobArn(Output.of(jobArn));
        }

        /**
         * @param jobName A name for the customization job.
         * 
         * @return builder
         * 
         */
        public Builder jobName(@Nullable 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 jobStatus The status of the customization job. A successful job transitions from `InProgress` to `Completed` when the output model is ready to use.
         * 
         * @return builder
         * 
         */
        public Builder jobStatus(@Nullable Output jobStatus) {
            $.jobStatus = jobStatus;
            return this;
        }

        /**
         * @param jobStatus The status of the customization job. A successful job transitions from `InProgress` to `Completed` when the output model is ready to use.
         * 
         * @return builder
         * 
         */
        public Builder jobStatus(String jobStatus) {
            return jobStatus(Output.of(jobStatus));
        }

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

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

        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 trainingMetrics Metrics associated with the customization job.
         * 
         * @return builder
         * 
         */
        public Builder trainingMetrics(@Nullable Output> trainingMetrics) {
            $.trainingMetrics = trainingMetrics;
            return this;
        }

        /**
         * @param trainingMetrics Metrics associated with the customization job.
         * 
         * @return builder
         * 
         */
        public Builder trainingMetrics(List trainingMetrics) {
            return trainingMetrics(Output.of(trainingMetrics));
        }

        /**
         * @param trainingMetrics Metrics associated with the customization job.
         * 
         * @return builder
         * 
         */
        public Builder trainingMetrics(CustomModelTrainingMetricArgs... trainingMetrics) {
            return trainingMetrics(List.of(trainingMetrics));
        }

        /**
         * @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 validationMetrics The loss metric for each validator that you provided.
         * 
         * @return builder
         * 
         */
        public Builder validationMetrics(@Nullable Output> validationMetrics) {
            $.validationMetrics = validationMetrics;
            return this;
        }

        /**
         * @param validationMetrics The loss metric for each validator that you provided.
         * 
         * @return builder
         * 
         */
        public Builder validationMetrics(List validationMetrics) {
            return validationMetrics(Output.of(validationMetrics));
        }

        /**
         * @param validationMetrics The loss metric for each validator that you provided.
         * 
         * @return builder
         * 
         */
        public Builder validationMetrics(CustomModelValidationMetricArgs... validationMetrics) {
            return validationMetrics(List.of(validationMetrics));
        }

        /**
         * @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 CustomModelState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy