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

com.pulumi.awsnative.sagemaker.kotlin.MonitoringScheduleArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.sagemaker.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.sagemaker.MonitoringScheduleArgs.builder
import com.pulumi.awsnative.sagemaker.kotlin.enums.MonitoringScheduleStatus
import com.pulumi.awsnative.sagemaker.kotlin.inputs.MonitoringScheduleConfigArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.MonitoringScheduleConfigArgsBuilder
import com.pulumi.awsnative.sagemaker.kotlin.inputs.MonitoringScheduleMonitoringExecutionSummaryArgs
import com.pulumi.awsnative.sagemaker.kotlin.inputs.MonitoringScheduleMonitoringExecutionSummaryArgsBuilder
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::MonitoringSchedule
 * @property endpointName The name of the endpoint using the monitoring schedule.
 * @property failureReason Contains the reason a monitoring job failed, if it failed.
 * @property lastMonitoringExecutionSummary Describes metadata on the last execution to run, if there was one.
 * @property monitoringScheduleConfig The configuration object that specifies the monitoring schedule and defines the monitoring job.
 * @property monitoringScheduleName The name of the monitoring schedule.
 * @property monitoringScheduleStatus The status of a schedule job.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class MonitoringScheduleArgs(
    public val endpointName: Output? = null,
    public val failureReason: Output? = null,
    public val lastMonitoringExecutionSummary: Output? = null,
    public val monitoringScheduleConfig: Output? = null,
    public val monitoringScheduleName: Output? = null,
    public val monitoringScheduleStatus: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sagemaker.MonitoringScheduleArgs =
        com.pulumi.awsnative.sagemaker.MonitoringScheduleArgs.builder()
            .endpointName(endpointName?.applyValue({ args0 -> args0 }))
            .failureReason(failureReason?.applyValue({ args0 -> args0 }))
            .lastMonitoringExecutionSummary(
                lastMonitoringExecutionSummary?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .monitoringScheduleConfig(
                monitoringScheduleConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .monitoringScheduleName(monitoringScheduleName?.applyValue({ args0 -> args0 }))
            .monitoringScheduleStatus(
                monitoringScheduleStatus?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var failureReason: Output? = null

    private var lastMonitoringExecutionSummary:
        Output? = null

    private var monitoringScheduleConfig: Output? = null

    private var monitoringScheduleName: Output? = null

    private var monitoringScheduleStatus: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the endpoint using the monitoring schedule.
     */
    @JvmName("kdlibehtgvrkcwjf")
    public suspend fun endpointName(`value`: Output) {
        this.endpointName = value
    }

    /**
     * @param value Contains the reason a monitoring job failed, if it failed.
     */
    @JvmName("eyacjrpetekvwnjx")
    public suspend fun failureReason(`value`: Output) {
        this.failureReason = value
    }

    /**
     * @param value Describes metadata on the last execution to run, if there was one.
     */
    @JvmName("wkxsfsxycxqyxxhk")
    public suspend fun lastMonitoringExecutionSummary(`value`: Output) {
        this.lastMonitoringExecutionSummary = value
    }

    /**
     * @param value The configuration object that specifies the monitoring schedule and defines the monitoring job.
     */
    @JvmName("tyjhdetsfedhyfao")
    public suspend fun monitoringScheduleConfig(`value`: Output) {
        this.monitoringScheduleConfig = value
    }

    /**
     * @param value The name of the monitoring schedule.
     */
    @JvmName("fxmdfwmwbeceunkw")
    public suspend fun monitoringScheduleName(`value`: Output) {
        this.monitoringScheduleName = value
    }

    /**
     * @param value The status of a schedule job.
     */
    @JvmName("fgoihpcpegeuemxs")
    public suspend fun monitoringScheduleStatus(`value`: Output) {
        this.monitoringScheduleStatus = value
    }

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

    @JvmName("xegfuvlabrawtllj")
    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("rotiogpdxpjccxin")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the endpoint using the monitoring schedule.
     */
    @JvmName("comqqxgnnvgpteew")
    public suspend fun endpointName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointName = mapped
    }

    /**
     * @param value Contains the reason a monitoring job failed, if it failed.
     */
    @JvmName("jqbnuxtardqicigl")
    public suspend fun failureReason(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.failureReason = mapped
    }

    /**
     * @param value Describes metadata on the last execution to run, if there was one.
     */
    @JvmName("jxxxptanlmpnumsc")
    public suspend fun lastMonitoringExecutionSummary(`value`: MonitoringScheduleMonitoringExecutionSummaryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lastMonitoringExecutionSummary = mapped
    }

    /**
     * @param argument Describes metadata on the last execution to run, if there was one.
     */
    @JvmName("patcijnrnulnuivw")
    public suspend fun lastMonitoringExecutionSummary(argument: suspend MonitoringScheduleMonitoringExecutionSummaryArgsBuilder.() -> Unit) {
        val toBeMapped = MonitoringScheduleMonitoringExecutionSummaryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.lastMonitoringExecutionSummary = mapped
    }

    /**
     * @param value The configuration object that specifies the monitoring schedule and defines the monitoring job.
     */
    @JvmName("fqikcreaecirnbdc")
    public suspend fun monitoringScheduleConfig(`value`: MonitoringScheduleConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoringScheduleConfig = mapped
    }

    /**
     * @param argument The configuration object that specifies the monitoring schedule and defines the monitoring job.
     */
    @JvmName("wnnudanwullwxmyq")
    public suspend fun monitoringScheduleConfig(argument: suspend MonitoringScheduleConfigArgsBuilder.() -> Unit) {
        val toBeMapped = MonitoringScheduleConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.monitoringScheduleConfig = mapped
    }

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

    /**
     * @param value The status of a schedule job.
     */
    @JvmName("derygcgnhjgnultw")
    public suspend fun monitoringScheduleStatus(`value`: MonitoringScheduleStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.monitoringScheduleStatus = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("frxotcfvbdobfpkc")
    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("erlphjfrqsijaifl")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

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

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

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

    internal fun build(): MonitoringScheduleArgs = MonitoringScheduleArgs(
        endpointName = endpointName,
        failureReason = failureReason,
        lastMonitoringExecutionSummary = lastMonitoringExecutionSummary,
        monitoringScheduleConfig = monitoringScheduleConfig,
        monitoringScheduleName = monitoringScheduleName,
        monitoringScheduleStatus = monitoringScheduleStatus,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy