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

com.pulumi.awsnative.synthetics.kotlin.outputs.GetCanaryResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.synthetics.kotlin.outputs

import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property artifactConfig Provide artifact configuration
 * @property artifactS3Location Provide the s3 bucket output location for test results
 * @property code Provide the canary script source
 * @property executionRoleArn Lambda Execution role used to run your canaries
 * @property failureRetentionPeriod Retention period of failed canary runs represented in number of days
 * @property id Id of the canary
 * @property runConfig Provide canary run configuration
 * @property runtimeVersion Runtime version of Synthetics Library
 * @property schedule Frequency to run your canaries
 * @property state State of the canary
 * @property successRetentionPeriod Retention period of successful canary runs represented in number of days
 * @property tags The list of key-value pairs that are associated with the canary.
 * @property vpcConfig Provide VPC Configuration if enabled.
 */
public data class GetCanaryResult(
    public val artifactConfig: CanaryArtifactConfig? = null,
    public val artifactS3Location: String? = null,
    public val code: CanaryCode? = null,
    public val executionRoleArn: String? = null,
    public val failureRetentionPeriod: Int? = null,
    public val id: String? = null,
    public val runConfig: CanaryRunConfig? = null,
    public val runtimeVersion: String? = null,
    public val schedule: CanarySchedule? = null,
    public val state: String? = null,
    public val successRetentionPeriod: Int? = null,
    public val tags: List? = null,
    public val vpcConfig: CanaryVpcConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.synthetics.outputs.GetCanaryResult): GetCanaryResult = GetCanaryResult(
            artifactConfig = javaType.artifactConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.synthetics.kotlin.outputs.CanaryArtifactConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            artifactS3Location = javaType.artifactS3Location().map({ args0 -> args0 }).orElse(null),
            code = javaType.code().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.synthetics.kotlin.outputs.CanaryCode.Companion.toKotlin(args0)
                })
            }).orElse(null),
            executionRoleArn = javaType.executionRoleArn().map({ args0 -> args0 }).orElse(null),
            failureRetentionPeriod = javaType.failureRetentionPeriod().map({ args0 -> args0 }).orElse(null),
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            runConfig = javaType.runConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.synthetics.kotlin.outputs.CanaryRunConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            runtimeVersion = javaType.runtimeVersion().map({ args0 -> args0 }).orElse(null),
            schedule = javaType.schedule().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.synthetics.kotlin.outputs.CanarySchedule.Companion.toKotlin(args0)
                })
            }).orElse(null),
            state = javaType.state().map({ args0 -> args0 }).orElse(null),
            successRetentionPeriod = javaType.successRetentionPeriod().map({ args0 -> args0 }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
            vpcConfig = javaType.vpcConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.synthetics.kotlin.outputs.CanaryVpcConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy