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

com.pulumi.awsnative.route53.kotlin.HealthCheckArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.route53.kotlin

import com.pulumi.awsnative.route53.HealthCheckArgs.builder
import com.pulumi.awsnative.route53.kotlin.inputs.HealthCheckConfigPropertiesArgs
import com.pulumi.awsnative.route53.kotlin.inputs.HealthCheckConfigPropertiesArgsBuilder
import com.pulumi.awsnative.route53.kotlin.inputs.HealthCheckTagArgs
import com.pulumi.awsnative.route53.kotlin.inputs.HealthCheckTagArgsBuilder
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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::Route53::HealthCheck.
 * @property healthCheckConfig A complex type that contains information about the health check.
 * @property healthCheckTags An array of key-value pairs to apply to this resource.
 */
public data class HealthCheckArgs(
    public val healthCheckConfig: Output? = null,
    public val healthCheckTags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53.HealthCheckArgs =
        com.pulumi.awsnative.route53.HealthCheckArgs.builder()
            .healthCheckConfig(healthCheckConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .healthCheckTags(
                healthCheckTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [HealthCheckArgs].
 */
@PulumiTagMarker
public class HealthCheckArgsBuilder internal constructor() {
    private var healthCheckConfig: Output? = null

    private var healthCheckTags: Output>? = null

    /**
     * @param value A complex type that contains information about the health check.
     */
    @JvmName("sjgvkygmmuqgaahh")
    public suspend fun healthCheckConfig(`value`: Output) {
        this.healthCheckConfig = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("xvinedyhlqutqqou")
    public suspend fun healthCheckTags(`value`: Output>) {
        this.healthCheckTags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("uotoyveodnlaeamv")
    public suspend fun healthCheckTags(values: List>) {
        this.healthCheckTags = Output.all(values)
    }

    /**
     * @param value A complex type that contains information about the health check.
     */
    @JvmName("tqfnfajtjgwjejok")
    public suspend fun healthCheckConfig(`value`: HealthCheckConfigPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthCheckConfig = mapped
    }

    /**
     * @param argument A complex type that contains information about the health check.
     */
    @JvmName("eupsfrxetbhbkgbd")
    public suspend fun healthCheckConfig(argument: suspend HealthCheckConfigPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = HealthCheckConfigPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.healthCheckConfig = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("xkwnnvfbjrcockbh")
    public suspend fun healthCheckTags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthCheckTags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("tcdntusffnrrgnig")
    public suspend fun healthCheckTags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            HealthCheckTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.healthCheckTags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("ewkxqmssvvhvlead")
    public suspend fun healthCheckTags(vararg argument: suspend HealthCheckTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            HealthCheckTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.healthCheckTags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("mdwcbkcxqgjtxdiu")
    public suspend fun healthCheckTags(argument: suspend HealthCheckTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(HealthCheckTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.healthCheckTags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("elhtdrkddlcmtcfg")
    public suspend fun healthCheckTags(vararg values: HealthCheckTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.healthCheckTags = mapped
    }

    internal fun build(): HealthCheckArgs = HealthCheckArgs(
        healthCheckConfig = healthCheckConfig,
        healthCheckTags = healthCheckTags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy