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

com.pulumi.awsnative.ssmincidents.kotlin.inputs.ResponsePlanSsmAutomationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ssmincidents.kotlin.inputs

import com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanSsmAutomationArgs.builder
import com.pulumi.awsnative.ssmincidents.kotlin.enums.ResponsePlanSsmAutomationTargetAccount
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 * The configuration to use when starting the SSM automation document.
 * @property documentName The document name to use when starting the SSM automation document.
 * @property documentVersion The version of the document to use when starting the SSM automation document.
 * @property dynamicParameters The parameters with dynamic values to set when starting the SSM automation document.
 * @property parameters The parameters to set when starting the SSM automation document.
 * @property roleArn The role ARN to use when starting the SSM automation document.
 * @property targetAccount The account type to use when starting the SSM automation document.
 */
public data class ResponsePlanSsmAutomationArgs(
    public val documentName: Output,
    public val documentVersion: Output? = null,
    public val dynamicParameters: Output>? = null,
    public val parameters: Output>? = null,
    public val roleArn: Output,
    public val targetAccount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanSsmAutomationArgs =
        com.pulumi.awsnative.ssmincidents.inputs.ResponsePlanSsmAutomationArgs.builder()
            .documentName(documentName.applyValue({ args0 -> args0 }))
            .documentVersion(documentVersion?.applyValue({ args0 -> args0 }))
            .dynamicParameters(
                dynamicParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .targetAccount(targetAccount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ResponsePlanSsmAutomationArgs].
 */
@PulumiTagMarker
public class ResponsePlanSsmAutomationArgsBuilder internal constructor() {
    private var documentName: Output? = null

    private var documentVersion: Output? = null

    private var dynamicParameters: Output>? = null

    private var parameters: Output>? = null

    private var roleArn: Output? = null

    private var targetAccount: Output? = null

    /**
     * @param value The document name to use when starting the SSM automation document.
     */
    @JvmName("oyeiwhecatoqtgvy")
    public suspend fun documentName(`value`: Output) {
        this.documentName = value
    }

    /**
     * @param value The version of the document to use when starting the SSM automation document.
     */
    @JvmName("ildrjybclmqlaiit")
    public suspend fun documentVersion(`value`: Output) {
        this.documentVersion = value
    }

    /**
     * @param value The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("iiyjfygpmavhbshi")
    public suspend fun dynamicParameters(`value`: Output>) {
        this.dynamicParameters = value
    }

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

    /**
     * @param values The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("fdiaxvmpipiwokbu")
    public suspend fun dynamicParameters(values: List>) {
        this.dynamicParameters = Output.all(values)
    }

    /**
     * @param value The parameters to set when starting the SSM automation document.
     */
    @JvmName("frrjqojghkpeweht")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values The parameters to set when starting the SSM automation document.
     */
    @JvmName("cgfiahmkhqpmmxur")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value The role ARN to use when starting the SSM automation document.
     */
    @JvmName("ldxaihkvqjsgglva")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The account type to use when starting the SSM automation document.
     */
    @JvmName("fnwljvkapnvgjlis")
    public suspend fun targetAccount(`value`: Output) {
        this.targetAccount = value
    }

    /**
     * @param value The document name to use when starting the SSM automation document.
     */
    @JvmName("lrcanrbekbgrtjvm")
    public suspend fun documentName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.documentName = mapped
    }

    /**
     * @param value The version of the document to use when starting the SSM automation document.
     */
    @JvmName("boslfbnwtwewtlho")
    public suspend fun documentVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.documentVersion = mapped
    }

    /**
     * @param value The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("eexcsdpubwfriayv")
    public suspend fun dynamicParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dynamicParameters = mapped
    }

    /**
     * @param argument The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("areqetxxlehtsfyt")
    public suspend fun dynamicParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResponsePlanDynamicSsmParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dynamicParameters = mapped
    }

    /**
     * @param argument The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("qbnhawguwqhgdfyo")
    public suspend fun dynamicParameters(vararg argument: suspend ResponsePlanDynamicSsmParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResponsePlanDynamicSsmParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dynamicParameters = mapped
    }

    /**
     * @param argument The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("qpfwogjlejwabmqt")
    public suspend fun dynamicParameters(argument: suspend ResponsePlanDynamicSsmParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResponsePlanDynamicSsmParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dynamicParameters = mapped
    }

    /**
     * @param values The parameters with dynamic values to set when starting the SSM automation document.
     */
    @JvmName("yhwovoyeaulwcyfv")
    public suspend fun dynamicParameters(vararg values: ResponsePlanDynamicSsmParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dynamicParameters = mapped
    }

    /**
     * @param value The parameters to set when starting the SSM automation document.
     */
    @JvmName("eetwmijqjwabqftm")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument The parameters to set when starting the SSM automation document.
     */
    @JvmName("dwsekdhlhcypnypc")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResponsePlanSsmParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument The parameters to set when starting the SSM automation document.
     */
    @JvmName("pqrytsvrhvdkdnty")
    public suspend fun parameters(vararg argument: suspend ResponsePlanSsmParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResponsePlanSsmParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument The parameters to set when starting the SSM automation document.
     */
    @JvmName("rfohhseptffavdca")
    public suspend fun parameters(argument: suspend ResponsePlanSsmParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ResponsePlanSsmParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values The parameters to set when starting the SSM automation document.
     */
    @JvmName("ifqwslrrsgxfhedl")
    public suspend fun parameters(vararg values: ResponsePlanSsmParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The role ARN to use when starting the SSM automation document.
     */
    @JvmName("rwkdhebuocsgmxke")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The account type to use when starting the SSM automation document.
     */
    @JvmName("wqpxsrvuqecclafc")
    public suspend fun targetAccount(`value`: ResponsePlanSsmAutomationTargetAccount?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetAccount = mapped
    }

    internal fun build(): ResponsePlanSsmAutomationArgs = ResponsePlanSsmAutomationArgs(
        documentName = documentName ?: throw PulumiNullFieldException("documentName"),
        documentVersion = documentVersion,
        dynamicParameters = dynamicParameters,
        parameters = parameters,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        targetAccount = targetAccount,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy