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

com.pulumi.aws.glue.kotlin.inputs.TriggerActionArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.glue.kotlin.inputs

import com.pulumi.aws.glue.inputs.TriggerActionArgs.builder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property arguments Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
 * @property crawlerName The name of the crawler to be executed. Conflicts with `job_name`.
 * @property jobName The name of a job to be executed. Conflicts with `crawler_name`.
 * @property notificationProperty Specifies configuration properties of a job run notification. See Notification Property details below.
 * @property securityConfiguration The name of the Security Configuration structure to be used with this action.
 * @property timeout The job run timeout in minutes. It overrides the timeout value of the job.
 */
public data class TriggerActionArgs(
    public val arguments: Output>? = null,
    public val crawlerName: Output? = null,
    public val jobName: Output? = null,
    public val notificationProperty: Output? = null,
    public val securityConfiguration: Output? = null,
    public val timeout: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.glue.inputs.TriggerActionArgs =
        com.pulumi.aws.glue.inputs.TriggerActionArgs.builder()
            .arguments(
                arguments?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .crawlerName(crawlerName?.applyValue({ args0 -> args0 }))
            .jobName(jobName?.applyValue({ args0 -> args0 }))
            .notificationProperty(
                notificationProperty?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .securityConfiguration(securityConfiguration?.applyValue({ args0 -> args0 }))
            .timeout(timeout?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TriggerActionArgs].
 */
@PulumiTagMarker
public class TriggerActionArgsBuilder internal constructor() {
    private var arguments: Output>? = null

    private var crawlerName: Output? = null

    private var jobName: Output? = null

    private var notificationProperty: Output? = null

    private var securityConfiguration: Output? = null

    private var timeout: Output? = null

    /**
     * @param value Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
     */
    @JvmName("gxqbftuvjrtgktyt")
    public suspend fun arguments(`value`: Output>) {
        this.arguments = value
    }

    /**
     * @param value The name of the crawler to be executed. Conflicts with `job_name`.
     */
    @JvmName("mqxncpvnluxaamrx")
    public suspend fun crawlerName(`value`: Output) {
        this.crawlerName = value
    }

    /**
     * @param value The name of a job to be executed. Conflicts with `crawler_name`.
     */
    @JvmName("wrlhfyinqfndvhbj")
    public suspend fun jobName(`value`: Output) {
        this.jobName = value
    }

    /**
     * @param value Specifies configuration properties of a job run notification. See Notification Property details below.
     */
    @JvmName("aqflqduvdncatogc")
    public suspend fun notificationProperty(`value`: Output) {
        this.notificationProperty = value
    }

    /**
     * @param value The name of the Security Configuration structure to be used with this action.
     */
    @JvmName("cptueneahnjtwiuk")
    public suspend fun securityConfiguration(`value`: Output) {
        this.securityConfiguration = value
    }

    /**
     * @param value The job run timeout in minutes. It overrides the timeout value of the job.
     */
    @JvmName("pjjdtygsnumqoxks")
    public suspend fun timeout(`value`: Output) {
        this.timeout = value
    }

    /**
     * @param value Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
     */
    @JvmName("hwxnxnqoxakxvrsu")
    public suspend fun arguments(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.arguments = mapped
    }

    /**
     * @param values Arguments to be passed to the job. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes.
     */
    @JvmName("weqocyhtmjjwliyo")
    public fun arguments(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.arguments = mapped
    }

    /**
     * @param value The name of the crawler to be executed. Conflicts with `job_name`.
     */
    @JvmName("oconrbrwihvkmbtk")
    public suspend fun crawlerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.crawlerName = mapped
    }

    /**
     * @param value The name of a job to be executed. Conflicts with `crawler_name`.
     */
    @JvmName("uvehgodrdurbfoyr")
    public suspend fun jobName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobName = mapped
    }

    /**
     * @param value Specifies configuration properties of a job run notification. See Notification Property details below.
     */
    @JvmName("rydsueutveahjkqj")
    public suspend fun notificationProperty(`value`: TriggerActionNotificationPropertyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationProperty = mapped
    }

    /**
     * @param argument Specifies configuration properties of a job run notification. See Notification Property details below.
     */
    @JvmName("rfyfpnkitgqbbvgt")
    public suspend fun notificationProperty(argument: suspend TriggerActionNotificationPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = TriggerActionNotificationPropertyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.notificationProperty = mapped
    }

    /**
     * @param value The name of the Security Configuration structure to be used with this action.
     */
    @JvmName("ivtliftoomlmoydn")
    public suspend fun securityConfiguration(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityConfiguration = mapped
    }

    /**
     * @param value The job run timeout in minutes. It overrides the timeout value of the job.
     */
    @JvmName("kclpejxbqglfghrv")
    public suspend fun timeout(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeout = mapped
    }

    internal fun build(): TriggerActionArgs = TriggerActionArgs(
        arguments = arguments,
        crawlerName = crawlerName,
        jobName = jobName,
        notificationProperty = notificationProperty,
        securityConfiguration = securityConfiguration,
        timeout = timeout,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy