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

com.pulumi.awsnative.iot.kotlin.MitigationActionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iot.kotlin

import com.pulumi.awsnative.iot.MitigationActionArgs.builder
import com.pulumi.awsnative.iot.kotlin.inputs.MitigationActionActionParamsArgs
import com.pulumi.awsnative.iot.kotlin.inputs.MitigationActionActionParamsArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Mitigation actions can be used to take actions to mitigate issues that were found in an Audit finding or Detect violation.
 * @property actionName A unique identifier for the mitigation action.
 * @property actionParams The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
 * @property roleArn The IAM role ARN used to apply this mitigation action.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class MitigationActionArgs(
    public val actionName: Output? = null,
    public val actionParams: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.MitigationActionArgs =
        com.pulumi.awsnative.iot.MitigationActionArgs.builder()
            .actionName(actionName?.applyValue({ args0 -> args0 }))
            .actionParams(actionParams?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [MitigationActionArgs].
 */
@PulumiTagMarker
public class MitigationActionArgsBuilder internal constructor() {
    private var actionName: Output? = null

    private var actionParams: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A unique identifier for the mitigation action.
     */
    @JvmName("fobpirrhnrvrfnlk")
    public suspend fun actionName(`value`: Output) {
        this.actionName = value
    }

    /**
     * @param value The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
     */
    @JvmName("hbpjmoqcxpcqhcrf")
    public suspend fun actionParams(`value`: Output) {
        this.actionParams = value
    }

    /**
     * @param value The IAM role ARN used to apply this mitigation action.
     */
    @JvmName("agfvschvrirvptne")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

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

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

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

    /**
     * @param value A unique identifier for the mitigation action.
     */
    @JvmName("mtayvoolvwlmsyvv")
    public suspend fun actionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actionName = mapped
    }

    /**
     * @param value The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
     */
    @JvmName("uomegcjermphxxta")
    public suspend fun actionParams(`value`: MitigationActionActionParamsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.actionParams = mapped
    }

    /**
     * @param argument The set of parameters for this mitigation action. The parameters vary, depending on the kind of action you apply.
     */
    @JvmName("xrocfcpbrnsbfduy")
    public suspend fun actionParams(argument: suspend MitigationActionActionParamsArgsBuilder.() -> Unit) {
        val toBeMapped = MitigationActionActionParamsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.actionParams = mapped
    }

    /**
     * @param value The IAM role ARN used to apply this mitigation action.
     */
    @JvmName("oipreievsffqyxwg")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

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

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

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

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

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

    internal fun build(): MitigationActionArgs = MitigationActionArgs(
        actionName = actionName,
        actionParams = actionParams,
        roleArn = roleArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy