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

com.pulumi.aws.alb.kotlin.inputs.GetTargetGroupPlainArgs.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.alb.kotlin.inputs

import com.pulumi.aws.alb.inputs.GetTargetGroupPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getTargetGroup.
 * @property arn Full ARN of the target group.
 * @property loadBalancingAnomalyMitigation
 * @property name Unique name of the target group.
 * @property tags Mapping of tags, each pair of which must exactly match a pair on the desired target group.
 * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
 */
public data class GetTargetGroupPlainArgs(
    public val arn: String? = null,
    public val loadBalancingAnomalyMitigation: String? = null,
    public val name: String? = null,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.alb.inputs.GetTargetGroupPlainArgs =
        com.pulumi.aws.alb.inputs.GetTargetGroupPlainArgs.builder()
            .arn(arn?.let({ args0 -> args0 }))
            .loadBalancingAnomalyMitigation(loadBalancingAnomalyMitigation?.let({ args0 -> args0 }))
            .name(name?.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetTargetGroupPlainArgs].
 */
@PulumiTagMarker
public class GetTargetGroupPlainArgsBuilder internal constructor() {
    private var arn: String? = null

    private var loadBalancingAnomalyMitigation: String? = null

    private var name: String? = null

    private var tags: Map? = null

    /**
     * @param value Full ARN of the target group.
     */
    @JvmName("fnbdlsfhcqvtyxfw")
    public suspend fun arn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.arn = mapped
    }

    /**
     * @param value
     */
    @JvmName("tabdsoctkbhdnbuq")
    public suspend fun loadBalancingAnomalyMitigation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.loadBalancingAnomalyMitigation = mapped
    }

    /**
     * @param value Unique name of the target group.
     */
    @JvmName("pcpdqkafqvlikdly")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value Mapping of tags, each pair of which must exactly match a pair on the desired target group.
     * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
     */
    @JvmName("ycmmfjhjvlewysdg")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values Mapping of tags, each pair of which must exactly match a pair on the desired target group.
     * > **NOTE:** When both `arn` and `name` are specified, `arn` takes precedence. `tags` has the lowest precedence.
     */
    @JvmName("uurhffcvchwltldx")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetTargetGroupPlainArgs = GetTargetGroupPlainArgs(
        arn = arn,
        loadBalancingAnomalyMitigation = loadBalancingAnomalyMitigation,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy