
com.pulumi.awsnative.synthetics.kotlin.outputs.CanaryRunConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.synthetics.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @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 CanaryRunConfig(
public val activeTracing: Boolean? = null,
public val environmentVariables: Map? = null,
public val memoryInMb: Int? = null,
public val timeoutInSeconds: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.synthetics.outputs.CanaryRunConfig): CanaryRunConfig = CanaryRunConfig(
activeTracing = javaType.activeTracing().map({ args0 -> args0 }).orElse(null),
environmentVariables = javaType.environmentVariables().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
memoryInMb = javaType.memoryInMb().map({ args0 -> args0 }).orElse(null),
timeoutInSeconds = javaType.timeoutInSeconds().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy