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

com.pulumi.awsnative.synthetics.kotlin.inputs.CanaryRunConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.synthetics.kotlin.inputs

import com.pulumi.awsnative.synthetics.inputs.CanaryRunConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property activeTracing Enable active tracing if set to true
 * @property environmentVariables Environment variable key-value pairs.
 * @property memoryInMb Provide maximum memory available for canary in MB
 * @property timeoutInSeconds Provide maximum canary timeout per run in seconds
 */
public data class CanaryRunConfigArgs(
    public val activeTracing: Output? = null,
    public val environmentVariables: Output>? = null,
    public val memoryInMb: Output? = null,
    public val timeoutInSeconds: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.synthetics.inputs.CanaryRunConfigArgs =
        com.pulumi.awsnative.synthetics.inputs.CanaryRunConfigArgs.builder()
            .activeTracing(activeTracing?.applyValue({ args0 -> args0 }))
            .environmentVariables(
                environmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .memoryInMb(memoryInMb?.applyValue({ args0 -> args0 }))
            .timeoutInSeconds(timeoutInSeconds?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CanaryRunConfigArgs].
 */
@PulumiTagMarker
public class CanaryRunConfigArgsBuilder internal constructor() {
    private var activeTracing: Output? = null

    private var environmentVariables: Output>? = null

    private var memoryInMb: Output? = null

    private var timeoutInSeconds: Output? = null

    /**
     * @param value Enable active tracing if set to true
     */
    @JvmName("nbkcwwqarowgfiwm")
    public suspend fun activeTracing(`value`: Output) {
        this.activeTracing = value
    }

    /**
     * @param value Environment variable key-value pairs.
     */
    @JvmName("pkmonpgcialcfmll")
    public suspend fun environmentVariables(`value`: Output>) {
        this.environmentVariables = value
    }

    /**
     * @param value Provide maximum memory available for canary in MB
     */
    @JvmName("yvpwutwdlpfxeedr")
    public suspend fun memoryInMb(`value`: Output) {
        this.memoryInMb = value
    }

    /**
     * @param value Provide maximum canary timeout per run in seconds
     */
    @JvmName("umgyvnsmaisrsokd")
    public suspend fun timeoutInSeconds(`value`: Output) {
        this.timeoutInSeconds = value
    }

    /**
     * @param value Enable active tracing if set to true
     */
    @JvmName("kglbtxchuhwvworu")
    public suspend fun activeTracing(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeTracing = mapped
    }

    /**
     * @param value Environment variable key-value pairs.
     */
    @JvmName("hotywagtbgkhufik")
    public suspend fun environmentVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param values Environment variable key-value pairs.
     */
    @JvmName("glwbousmvabhlrct")
    public fun environmentVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param value Provide maximum memory available for canary in MB
     */
    @JvmName("tfhoyvuslynohsrs")
    public suspend fun memoryInMb(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memoryInMb = mapped
    }

    /**
     * @param value Provide maximum canary timeout per run in seconds
     */
    @JvmName("afwmfcryfqrpvamq")
    public suspend fun timeoutInSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeoutInSeconds = mapped
    }

    internal fun build(): CanaryRunConfigArgs = CanaryRunConfigArgs(
        activeTracing = activeTracing,
        environmentVariables = environmentVariables,
        memoryInMb = memoryInMb,
        timeoutInSeconds = timeoutInSeconds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy