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

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

package com.pulumi.awsnative.databrew.kotlin

import com.pulumi.awsnative.databrew.ScheduleArgs.builder
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
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 schema for AWS::DataBrew::Schedule.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property cronExpression Schedule cron
 * @property jobNames A list of jobs to be run, according to the schedule.
 * @property name Schedule Name
 * @property tags Metadata tags that have been applied to the schedule.
 */
public data class ScheduleArgs(
    public val cronExpression: Output? = null,
    public val jobNames: Output>? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.ScheduleArgs =
        com.pulumi.awsnative.databrew.ScheduleArgs.builder()
            .cronExpression(cronExpression?.applyValue({ args0 -> args0 }))
            .jobNames(jobNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ScheduleArgs].
 */
@PulumiTagMarker
public class ScheduleArgsBuilder internal constructor() {
    private var cronExpression: Output? = null

    private var jobNames: Output>? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Schedule cron
     */
    @JvmName("rxrlitqcvktjcvpn")
    public suspend fun cronExpression(`value`: Output) {
        this.cronExpression = value
    }

    /**
     * @param value A list of jobs to be run, according to the schedule.
     */
    @JvmName("munncyuxbfmcxcvp")
    public suspend fun jobNames(`value`: Output>) {
        this.jobNames = value
    }

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

    /**
     * @param values A list of jobs to be run, according to the schedule.
     */
    @JvmName("byolduuclbavtxkg")
    public suspend fun jobNames(values: List>) {
        this.jobNames = Output.all(values)
    }

    /**
     * @param value Schedule Name
     */
    @JvmName("ooyrvrkgciastujq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Metadata tags that have been applied to the schedule.
     */
    @JvmName("qlmvifykwtyawiqd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Metadata tags that have been applied to the schedule.
     */
    @JvmName("wkixisbusficrcee")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value A list of jobs to be run, according to the schedule.
     */
    @JvmName("tnwqkoqwtpsavcwn")
    public suspend fun jobNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobNames = mapped
    }

    /**
     * @param values A list of jobs to be run, according to the schedule.
     */
    @JvmName("umumthuponvyxbgg")
    public suspend fun jobNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jobNames = mapped
    }

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

    /**
     * @param value Metadata tags that have been applied to the schedule.
     */
    @JvmName("wigdntnpblydwjkv")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Metadata tags that have been applied to the schedule.
     */
    @JvmName("ttpqxrngfieivtmb")
    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 Metadata tags that have been applied to the schedule.
     */
    @JvmName("yqthmqurvcrggqha")
    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 Metadata tags that have been applied to the schedule.
     */
    @JvmName("tsdqfpppabriivsp")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Metadata tags that have been applied to the schedule.
     */
    @JvmName("swxqmgsmlwabmact")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ScheduleArgs = ScheduleArgs(
        cronExpression = cronExpression,
        jobNames = jobNames,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy