Class TrainingJobState.Builder

  • Enclosing class:
    TrainingJobState

    public static final class TrainingJobState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • algorithmSpecification

        public TrainingJobState.Builder algorithmSpecification​(@Nullable
                                                               com.pulumi.core.Output<TrainingJobAlgorithmSpecificationArgs> algorithmSpecification)
        Parameters:
        algorithmSpecification - Algorithm-related parameters of the training job. See `algorithmSpecification` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • algorithmSpecification

        public TrainingJobState.Builder algorithmSpecification​(TrainingJobAlgorithmSpecificationArgs algorithmSpecification)
        Parameters:
        algorithmSpecification - Algorithm-related parameters of the training job. See `algorithmSpecification` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • arn

        public TrainingJobState.Builder arn​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the Training Job.
        Returns:
        builder
      • arn

        public TrainingJobState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the Training Job.
        Returns:
        builder
      • checkpointConfig

        public TrainingJobState.Builder checkpointConfig​(@Nullable
                                                         com.pulumi.core.Output<TrainingJobCheckpointConfigArgs> checkpointConfig)
        Parameters:
        checkpointConfig - Location of checkpoints during training. See `checkpointConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • checkpointConfig

        public TrainingJobState.Builder checkpointConfig​(TrainingJobCheckpointConfigArgs checkpointConfig)
        Parameters:
        checkpointConfig - Location of checkpoints during training. See `checkpointConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • debugHookConfig

        public TrainingJobState.Builder debugHookConfig​(@Nullable
                                                        com.pulumi.core.Output<TrainingJobDebugHookConfigArgs> debugHookConfig)
        Parameters:
        debugHookConfig - Configuration for debugging rules. See `debugHookConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • debugRuleConfigurations

        public TrainingJobState.Builder debugRuleConfigurations​(@Nullable
                                                                com.pulumi.core.Output<java.util.List<TrainingJobDebugRuleConfigurationArgs>> debugRuleConfigurations)
        Parameters:
        debugRuleConfigurations - List of debug rule configurations. Maximum of 20. See `debugRuleConfigurations` below.
        Returns:
        builder
      • debugRuleConfigurations

        public TrainingJobState.Builder debugRuleConfigurations​(java.util.List<TrainingJobDebugRuleConfigurationArgs> debugRuleConfigurations)
        Parameters:
        debugRuleConfigurations - List of debug rule configurations. Maximum of 20. See `debugRuleConfigurations` below.
        Returns:
        builder
      • deleteModelPackagesOnDestroy

        public TrainingJobState.Builder deleteModelPackagesOnDestroy​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.Boolean> deleteModelPackagesOnDestroy)
        Parameters:
        deleteModelPackagesOnDestroy - Whether to delete model packages in the configured model package group when the training job is destroyed. Default is `false`.
        Returns:
        builder
      • deleteModelPackagesOnDestroy

        public TrainingJobState.Builder deleteModelPackagesOnDestroy​(java.lang.Boolean deleteModelPackagesOnDestroy)
        Parameters:
        deleteModelPackagesOnDestroy - Whether to delete model packages in the configured model package group when the training job is destroyed. Default is `false`.
        Returns:
        builder
      • deleteVpcEnisOnDestroy

        public TrainingJobState.Builder deleteVpcEnisOnDestroy​(@Nullable
                                                               com.pulumi.core.Output<java.lang.Boolean> deleteVpcEnisOnDestroy)
        Parameters:
        deleteVpcEnisOnDestroy - Whether to delete detached VPC ENIs SageMaker may leave behind when the training job is destroyed. Default is `false`.
        Returns:
        builder
      • deleteVpcEnisOnDestroy

        public TrainingJobState.Builder deleteVpcEnisOnDestroy​(java.lang.Boolean deleteVpcEnisOnDestroy)
        Parameters:
        deleteVpcEnisOnDestroy - Whether to delete detached VPC ENIs SageMaker may leave behind when the training job is destroyed. Default is `false`.
        Returns:
        builder
      • enableInterContainerTrafficEncryption

        public TrainingJobState.Builder enableInterContainerTrafficEncryption​(@Nullable
                                                                              com.pulumi.core.Output<java.lang.Boolean> enableInterContainerTrafficEncryption)
        Parameters:
        enableInterContainerTrafficEncryption - Whether to encrypt inter-container traffic. When enabled, communications between containers are encrypted.
        Returns:
        builder
      • enableInterContainerTrafficEncryption

        public TrainingJobState.Builder enableInterContainerTrafficEncryption​(java.lang.Boolean enableInterContainerTrafficEncryption)
        Parameters:
        enableInterContainerTrafficEncryption - Whether to encrypt inter-container traffic. When enabled, communications between containers are encrypted.
        Returns:
        builder
      • enableManagedSpotTraining

        public TrainingJobState.Builder enableManagedSpotTraining​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.Boolean> enableManagedSpotTraining)
        Parameters:
        enableManagedSpotTraining - Whether to use managed spot training. Optimizes the cost of training by using Amazon EC2 Spot Instances. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • enableManagedSpotTraining

        public TrainingJobState.Builder enableManagedSpotTraining​(java.lang.Boolean enableManagedSpotTraining)
        Parameters:
        enableManagedSpotTraining - Whether to use managed spot training. Optimizes the cost of training by using Amazon EC2 Spot Instances. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • enableNetworkIsolation

        public TrainingJobState.Builder enableNetworkIsolation​(@Nullable
                                                               com.pulumi.core.Output<java.lang.Boolean> enableNetworkIsolation)
        Parameters:
        enableNetworkIsolation - Whether to isolate the training container from the network. No inbound or outbound network calls can be made.
        Returns:
        builder
      • enableNetworkIsolation

        public TrainingJobState.Builder enableNetworkIsolation​(java.lang.Boolean enableNetworkIsolation)
        Parameters:
        enableNetworkIsolation - Whether to isolate the training container from the network. No inbound or outbound network calls can be made.
        Returns:
        builder
      • environment

        public TrainingJobState.Builder environment​(@Nullable
                                                    com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> environment)
        Parameters:
        environment - Map of environment variables to set in the training container. Maximum of 100 entries. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • environment

        public TrainingJobState.Builder environment​(java.util.Map<java.lang.String,​java.lang.String> environment)
        Parameters:
        environment - Map of environment variables to set in the training container. Maximum of 100 entries. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • experimentConfig

        public TrainingJobState.Builder experimentConfig​(@Nullable
                                                         com.pulumi.core.Output<TrainingJobExperimentConfigArgs> experimentConfig)
        Parameters:
        experimentConfig - Associates a SageMaker AI Experiment or Trial to the training job. See `experimentConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • experimentConfig

        public TrainingJobState.Builder experimentConfig​(TrainingJobExperimentConfigArgs experimentConfig)
        Parameters:
        experimentConfig - Associates a SageMaker AI Experiment or Trial to the training job. See `experimentConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • hyperParameters

        public TrainingJobState.Builder hyperParameters​(@Nullable
                                                        com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> hyperParameters)
        Parameters:
        hyperParameters - Map of hyperparameters for the training algorithm. Maximum of 100 entries.
        Returns:
        builder
      • hyperParameters

        public TrainingJobState.Builder hyperParameters​(java.util.Map<java.lang.String,​java.lang.String> hyperParameters)
        Parameters:
        hyperParameters - Map of hyperparameters for the training algorithm. Maximum of 100 entries.
        Returns:
        builder
      • infraCheckConfig

        public TrainingJobState.Builder infraCheckConfig​(@Nullable
                                                         com.pulumi.core.Output<TrainingJobInfraCheckConfigArgs> infraCheckConfig)
        Parameters:
        infraCheckConfig - Infrastructure health check configuration. See `infraCheckConfig` below.
        Returns:
        builder
      • inputDataConfigs

        public TrainingJobState.Builder inputDataConfigs​(@Nullable
                                                         com.pulumi.core.Output<java.util.List<TrainingJobInputDataConfigArgs>> inputDataConfigs)
        Parameters:
        inputDataConfigs - List of input data channel configurations for the training job. Maximum of 20. See `inputDataConfig` below.
        Returns:
        builder
      • inputDataConfigs

        public TrainingJobState.Builder inputDataConfigs​(java.util.List<TrainingJobInputDataConfigArgs> inputDataConfigs)
        Parameters:
        inputDataConfigs - List of input data channel configurations for the training job. Maximum of 20. See `inputDataConfig` below.
        Returns:
        builder
      • inputDataConfigs

        public TrainingJobState.Builder inputDataConfigs​(TrainingJobInputDataConfigArgs... inputDataConfigs)
        Parameters:
        inputDataConfigs - List of input data channel configurations for the training job. Maximum of 20. See `inputDataConfig` below.
        Returns:
        builder
      • modelPackageConfig

        public TrainingJobState.Builder modelPackageConfig​(@Nullable
                                                           com.pulumi.core.Output<TrainingJobModelPackageConfigArgs> modelPackageConfig)
        Parameters:
        modelPackageConfig - Model package configuration. Requires `serverlessJobConfig`. See `modelPackageConfig` below.
        Returns:
        builder
      • outputDataConfig

        public TrainingJobState.Builder outputDataConfig​(@Nullable
                                                         com.pulumi.core.Output<TrainingJobOutputDataConfigArgs> outputDataConfig)
        Parameters:
        outputDataConfig - Location of the output data from the training job. See `outputDataConfig` below. The following arguments are optional:
        Returns:
        builder
      • outputDataConfig

        public TrainingJobState.Builder outputDataConfig​(TrainingJobOutputDataConfigArgs outputDataConfig)
        Parameters:
        outputDataConfig - Location of the output data from the training job. See `outputDataConfig` below. The following arguments are optional:
        Returns:
        builder
      • profilerConfig

        public TrainingJobState.Builder profilerConfig​(@Nullable
                                                       com.pulumi.core.Output<TrainingJobProfilerConfigArgs> profilerConfig)
        Parameters:
        profilerConfig - Configuration for the profiler. See `profilerConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • profilerRuleConfigurations

        public TrainingJobState.Builder profilerRuleConfigurations​(@Nullable
                                                                   com.pulumi.core.Output<java.util.List<TrainingJobProfilerRuleConfigurationArgs>> profilerRuleConfigurations)
        Parameters:
        profilerRuleConfigurations - List of profiler rule configurations. Maximum of 20. See `profilerRuleConfigurations` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • profilerRuleConfigurations

        public TrainingJobState.Builder profilerRuleConfigurations​(java.util.List<TrainingJobProfilerRuleConfigurationArgs> profilerRuleConfigurations)
        Parameters:
        profilerRuleConfigurations - List of profiler rule configurations. Maximum of 20. See `profilerRuleConfigurations` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • profilerRuleConfigurations

        public TrainingJobState.Builder profilerRuleConfigurations​(TrainingJobProfilerRuleConfigurationArgs... profilerRuleConfigurations)
        Parameters:
        profilerRuleConfigurations - List of profiler rule configurations. Maximum of 20. See `profilerRuleConfigurations` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • region

        public TrainingJobState.Builder region​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public TrainingJobState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • resourceConfig

        public TrainingJobState.Builder resourceConfig​(@Nullable
                                                       com.pulumi.core.Output<TrainingJobResourceConfigArgs> resourceConfig)
        Parameters:
        resourceConfig - Resources for the training job, including compute instances and storage volumes. See `resourceConfig` below.
        Returns:
        builder
      • resourceConfig

        public TrainingJobState.Builder resourceConfig​(TrainingJobResourceConfigArgs resourceConfig)
        Parameters:
        resourceConfig - Resources for the training job, including compute instances and storage volumes. See `resourceConfig` below.
        Returns:
        builder
      • retryStrategy

        public TrainingJobState.Builder retryStrategy​(@Nullable
                                                      com.pulumi.core.Output<TrainingJobRetryStrategyArgs> retryStrategy)
        Parameters:
        retryStrategy - Number of times to retry the job if it fails. See `retryStrategy` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • retryStrategy

        public TrainingJobState.Builder retryStrategy​(TrainingJobRetryStrategyArgs retryStrategy)
        Parameters:
        retryStrategy - Number of times to retry the job if it fails. See `retryStrategy` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • roleArn

        public TrainingJobState.Builder roleArn​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> roleArn)
        Parameters:
        roleArn - ARN of the IAM role that SageMaker AI assumes to perform tasks on your behalf during training.
        Returns:
        builder
      • roleArn

        public TrainingJobState.Builder roleArn​(java.lang.String roleArn)
        Parameters:
        roleArn - ARN of the IAM role that SageMaker AI assumes to perform tasks on your behalf during training.
        Returns:
        builder
      • serverlessJobConfig

        public TrainingJobState.Builder serverlessJobConfig​(@Nullable
                                                            com.pulumi.core.Output<TrainingJobServerlessJobConfigArgs> serverlessJobConfig)
        Parameters:
        serverlessJobConfig - Configuration for serverless training jobs using foundation models. Conflicts with `algorithmSpecification`, `enableManagedSpotTraining`, `environment`, `retryStrategy`, `checkpointConfig`, `debugHookConfig`, `experimentConfig`, `profilerConfig`, `profilerRuleConfigurations`, and `tensorBoardOutputConfig`. See `serverlessJobConfig` below.
        Returns:
        builder
      • serverlessJobConfig

        public TrainingJobState.Builder serverlessJobConfig​(TrainingJobServerlessJobConfigArgs serverlessJobConfig)
        Parameters:
        serverlessJobConfig - Configuration for serverless training jobs using foundation models. Conflicts with `algorithmSpecification`, `enableManagedSpotTraining`, `environment`, `retryStrategy`, `checkpointConfig`, `debugHookConfig`, `experimentConfig`, `profilerConfig`, `profilerRuleConfigurations`, and `tensorBoardOutputConfig`. See `serverlessJobConfig` below.
        Returns:
        builder
      • sessionChainingConfig

        public TrainingJobState.Builder sessionChainingConfig​(@Nullable
                                                              com.pulumi.core.Output<TrainingJobSessionChainingConfigArgs> sessionChainingConfig)
        Parameters:
        sessionChainingConfig - Configuration for session tag chaining. See `sessionChainingConfig` below.
        Returns:
        builder
      • tags

        public TrainingJobState.Builder tags​(@Nullable
                                             com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public TrainingJobState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        public TrainingJobState.Builder tagsAll​(@Nullable
                                                com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public TrainingJobState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tensorBoardOutputConfig

        public TrainingJobState.Builder tensorBoardOutputConfig​(@Nullable
                                                                com.pulumi.core.Output<TrainingJobTensorBoardOutputConfigArgs> tensorBoardOutputConfig)
        Parameters:
        tensorBoardOutputConfig - Configuration for TensorBoard output. See `tensorBoardOutputConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • tensorBoardOutputConfig

        public TrainingJobState.Builder tensorBoardOutputConfig​(TrainingJobTensorBoardOutputConfigArgs tensorBoardOutputConfig)
        Parameters:
        tensorBoardOutputConfig - Configuration for TensorBoard output. See `tensorBoardOutputConfig` below. Conflicts with `serverlessJobConfig`.
        Returns:
        builder
      • trainingJobName

        public TrainingJobState.Builder trainingJobName​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> trainingJobName)
        Parameters:
        trainingJobName - Name of the training job. Must be between 1 and 63 characters, start with a letter or number, and contain only letters, numbers, and hyphens.
        Returns:
        builder
      • trainingJobName

        public TrainingJobState.Builder trainingJobName​(java.lang.String trainingJobName)
        Parameters:
        trainingJobName - Name of the training job. Must be between 1 and 63 characters, start with a letter or number, and contain only letters, numbers, and hyphens.
        Returns:
        builder