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

com.pulumi.awsnative.sagemaker.kotlin.ModelQualityJobDefinitionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
import com.pulumi.awsnative.sagemaker.ModelQualityJobDefinitionArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionModelQualityAppSpecificationArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionModelQualityAppSpecificationArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionModelQualityBaselineConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionModelQualityBaselineConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionModelQualityJobInputArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionModelQualityJobInputArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionMonitoringOutputConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionMonitoringOutputConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionMonitoringResourcesArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionMonitoringResourcesArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionNetworkConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionNetworkConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionStoppingConditionArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.ModelQualityJobDefinitionStoppingConditionArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::SageMaker::ModelQualityJobDefinition
 * @property endpointName
 * @property jobDefinitionName The name of the monitoring job definition.
 * @property jobResources Identifies the resources to deploy for a monitoring job.
 * @property modelQualityAppSpecification Container image configuration object for the monitoring job.
 * @property modelQualityBaselineConfig Specifies the constraints and baselines for the monitoring job.
 * @property modelQualityJobInput A list of the inputs that are monitored. Currently endpoints are supported.
 * @property modelQualityJobOutputConfig The output configuration for monitoring jobs.
 * @property networkConfig Specifies the network configuration for the monitoring job.
 * @property roleArn The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
 * @property stoppingCondition A time limit for how long the monitoring job is allowed to run before stopping.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ModelQualityJobDefinitionArgs(
    public val endpointName: Output? = null,
    public val jobDefinitionName: Output? = null,
    public val jobResources: Output? = null,
    public val modelQualityAppSpecification: Output? = null,
    public val modelQualityBaselineConfig: Output? = null,
    public val modelQualityJobInput: Output? =
        null,
    public val modelQualityJobOutputConfig: Output? = null,
    public val networkConfig: Output? = null,
    public val roleArn: Output? = null,
    public val stoppingCondition: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.ModelQualityJobDefinitionArgs =
        com.pulumi.awsnative.sagemaker.ModelQualityJobDefinitionArgs.builder()
            .endpointName(endpointName?.applyValue({ args0 -> args0 }))
            .jobDefinitionName(jobDefinitionName?.applyValue({ args0 -> args0 }))
            .jobResources(jobResources?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .modelQualityAppSpecification(
                modelQualityAppSpecification?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .modelQualityBaselineConfig(
                modelQualityBaselineConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .modelQualityJobInput(
                modelQualityJobInput?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .modelQualityJobOutputConfig(
                modelQualityJobOutputConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .networkConfig(networkConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .stoppingCondition(stoppingCondition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ModelQualityJobDefinitionArgs].
 */
@PulumiTagMarker
public class ModelQualityJobDefinitionArgsBuilder internal constructor() {
    private var endpointName: Output? = null

    private var jobDefinitionName: Output? = null

    private var jobResources: Output? = null

    private var modelQualityAppSpecification:
        Output? = null

    private var modelQualityBaselineConfig:
        Output? = null

    private var modelQualityJobInput: Output? =
        null

    private var modelQualityJobOutputConfig:
        Output? = null

    private var networkConfig: Output? = null

    private var roleArn: Output? = null

    private var stoppingCondition: Output? = null

    private var tags: Output>? = null

    /**
     * @param value
     */
    @JvmName("yldnefwmximutjsa")
    public suspend fun endpointName(`value`: Output) {
        this.endpointName = value
    }

    /**
     * @param value The name of the monitoring job definition.
     */
    @JvmName("drnngflwatgjrfpc")
    public suspend fun jobDefinitionName(`value`: Output) {
        this.jobDefinitionName = value
    }

    /**
     * @param value Identifies the resources to deploy for a monitoring job.
     */
    @JvmName("shcvrvdgsynpsqhj")
    public suspend fun jobResources(`value`: Output) {
        this.jobResources = value
    }

    /**
     * @param value Container image configuration object for the monitoring job.
     */
    @JvmName("vdxegmidknjttydr")
    public suspend fun modelQualityAppSpecification(`value`: Output) {
        this.modelQualityAppSpecification = value
    }

    /**
     * @param value Specifies the constraints and baselines for the monitoring job.
     */
    @JvmName("rmjpuccaqoorvyuh")
    public suspend fun modelQualityBaselineConfig(`value`: Output) {
        this.modelQualityBaselineConfig = value
    }

    /**
     * @param value A list of the inputs that are monitored. Currently endpoints are supported.
     */
    @JvmName("pklijbvmfrfwemjf")
    public suspend fun modelQualityJobInput(`value`: Output) {
        this.modelQualityJobInput = value
    }

    /**
     * @param value The output configuration for monitoring jobs.
     */
    @JvmName("vpbbkuugpvdtnolu")
    public suspend fun modelQualityJobOutputConfig(`value`: Output) {
        this.modelQualityJobOutputConfig = value
    }

    /**
     * @param value Specifies the network configuration for the monitoring job.
     */
    @JvmName("pbglrqktcumcjgxw")
    public suspend fun networkConfig(`value`: Output) {
        this.networkConfig = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
     */
    @JvmName("lmnjtvurdddiwhra")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value A time limit for how long the monitoring job is allowed to run before stopping.
     */
    @JvmName("lbhlxppjfclnudaq")
    public suspend fun stoppingCondition(`value`: Output) {
        this.stoppingCondition = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("rhqvdmeuicydyqmm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("mfetgolcrbqyasdf")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("otstaojeptgkulej")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("xokqsllieermabwp")
    public suspend fun endpointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointName = mapped
    }

    /**
     * @param value The name of the monitoring job definition.
     */
    @JvmName("pkadqtsqunofhvwm")
    public suspend fun jobDefinitionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobDefinitionName = mapped
    }

    /**
     * @param value Identifies the resources to deploy for a monitoring job.
     */
    @JvmName("acbfgrsgualngogf")
    public suspend fun jobResources(`value`: ModelQualityJobDefinitionMonitoringResourcesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobResources = mapped
    }

    /**
     * @param argument Identifies the resources to deploy for a monitoring job.
     */
    @JvmName("ooosovlwefirsxdm")
    public suspend fun jobResources(argument: suspend ModelQualityJobDefinitionMonitoringResourcesArgsBuilder.() -> Unit) {
        val toBeMapped = ModelQualityJobDefinitionMonitoringResourcesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.jobResources = mapped
    }

    /**
     * @param value Container image configuration object for the monitoring job.
     */
    @JvmName("mhylrqumwwhdbskf")
    public suspend fun modelQualityAppSpecification(`value`: ModelQualityJobDefinitionModelQualityAppSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelQualityAppSpecification = mapped
    }

    /**
     * @param argument Container image configuration object for the monitoring job.
     */
    @JvmName("udcmhfquobkrpteu")
    public suspend fun modelQualityAppSpecification(argument: suspend ModelQualityJobDefinitionModelQualityAppSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            ModelQualityJobDefinitionModelQualityAppSpecificationArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.modelQualityAppSpecification = mapped
    }

    /**
     * @param value Specifies the constraints and baselines for the monitoring job.
     */
    @JvmName("kcpqdxtkvvoiymyv")
    public suspend fun modelQualityBaselineConfig(`value`: ModelQualityJobDefinitionModelQualityBaselineConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelQualityBaselineConfig = mapped
    }

    /**
     * @param argument Specifies the constraints and baselines for the monitoring job.
     */
    @JvmName("ryxqmfrsudqgpnfs")
    public suspend fun modelQualityBaselineConfig(argument: suspend ModelQualityJobDefinitionModelQualityBaselineConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ModelQualityJobDefinitionModelQualityBaselineConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.modelQualityBaselineConfig = mapped
    }

    /**
     * @param value A list of the inputs that are monitored. Currently endpoints are supported.
     */
    @JvmName("lyjfghyuikmolfpx")
    public suspend fun modelQualityJobInput(`value`: ModelQualityJobDefinitionModelQualityJobInputArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelQualityJobInput = mapped
    }

    /**
     * @param argument A list of the inputs that are monitored. Currently endpoints are supported.
     */
    @JvmName("wprvkorweilkquyd")
    public suspend fun modelQualityJobInput(argument: suspend ModelQualityJobDefinitionModelQualityJobInputArgsBuilder.() -> Unit) {
        val toBeMapped = ModelQualityJobDefinitionModelQualityJobInputArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.modelQualityJobInput = mapped
    }

    /**
     * @param value The output configuration for monitoring jobs.
     */
    @JvmName("jlntoiiyiqmsaqey")
    public suspend fun modelQualityJobOutputConfig(`value`: ModelQualityJobDefinitionMonitoringOutputConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.modelQualityJobOutputConfig = mapped
    }

    /**
     * @param argument The output configuration for monitoring jobs.
     */
    @JvmName("doofpkawrnlnrlng")
    public suspend fun modelQualityJobOutputConfig(argument: suspend ModelQualityJobDefinitionMonitoringOutputConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ModelQualityJobDefinitionMonitoringOutputConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.modelQualityJobOutputConfig = mapped
    }

    /**
     * @param value Specifies the network configuration for the monitoring job.
     */
    @JvmName("xuxnetywsnryumih")
    public suspend fun networkConfig(`value`: ModelQualityJobDefinitionNetworkConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkConfig = mapped
    }

    /**
     * @param argument Specifies the network configuration for the monitoring job.
     */
    @JvmName("drqticchsafiffyo")
    public suspend fun networkConfig(argument: suspend ModelQualityJobDefinitionNetworkConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ModelQualityJobDefinitionNetworkConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.networkConfig = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
     */
    @JvmName("clhirvdjfxminmno")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value A time limit for how long the monitoring job is allowed to run before stopping.
     */
    @JvmName("mkglmolixggcyshg")
    public suspend fun stoppingCondition(`value`: ModelQualityJobDefinitionStoppingConditionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stoppingCondition = mapped
    }

    /**
     * @param argument A time limit for how long the monitoring job is allowed to run before stopping.
     */
    @JvmName("wosjectjvvvuxojh")
    public suspend fun stoppingCondition(argument: suspend ModelQualityJobDefinitionStoppingConditionArgsBuilder.() -> Unit) {
        val toBeMapped = ModelQualityJobDefinitionStoppingConditionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.stoppingCondition = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("oafpmacewvkrkpof")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("lilynnqldgjsjuvh")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ghotnonhfksxteqo")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("mxncqegycxldvntn")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("kiwhuswdsgujsptb")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ModelQualityJobDefinitionArgs = ModelQualityJobDefinitionArgs(
        endpointName = endpointName,
        jobDefinitionName = jobDefinitionName,
        jobResources = jobResources,
        modelQualityAppSpecification = modelQualityAppSpecification,
        modelQualityBaselineConfig = modelQualityBaselineConfig,
        modelQualityJobInput = modelQualityJobInput,
        modelQualityJobOutputConfig = modelQualityJobOutputConfig,
        networkConfig = networkConfig,
        roleArn = roleArn,
        stoppingCondition = stoppingCondition,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy