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

com.pulumi.aws.emr.kotlin.inputs.ClusterBootstrapActionArgs.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.emr.kotlin.inputs

import com.pulumi.aws.emr.inputs.ClusterBootstrapActionArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property args List of command line arguments to pass to the bootstrap action script.
 * @property name Name of the bootstrap action.
 * @property path Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
 */
public data class ClusterBootstrapActionArgs(
    public val args: Output>? = null,
    public val name: Output,
    public val path: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emr.inputs.ClusterBootstrapActionArgs =
        com.pulumi.aws.emr.inputs.ClusterBootstrapActionArgs.builder()
            .args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 }))
            .path(path.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterBootstrapActionArgs].
 */
@PulumiTagMarker
public class ClusterBootstrapActionArgsBuilder internal constructor() {
    private var args: Output>? = null

    private var name: Output? = null

    private var path: Output? = null

    /**
     * @param value List of command line arguments to pass to the bootstrap action script.
     */
    @JvmName("bnccionjmrjbxueu")
    public suspend fun args(`value`: Output>) {
        this.args = value
    }

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

    /**
     * @param values List of command line arguments to pass to the bootstrap action script.
     */
    @JvmName("sujxgoicxgprfyva")
    public suspend fun args(values: List>) {
        this.args = Output.all(values)
    }

    /**
     * @param value Name of the bootstrap action.
     */
    @JvmName("nedjntbhdalvocaf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
     */
    @JvmName("wmpcpsjaufjpfdra")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value List of command line arguments to pass to the bootstrap action script.
     */
    @JvmName("ikqjrllxckmgwxqe")
    public suspend fun args(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param values List of command line arguments to pass to the bootstrap action script.
     */
    @JvmName("scpxvphgvxmeahar")
    public suspend fun args(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.args = mapped
    }

    /**
     * @param value Name of the bootstrap action.
     */
    @JvmName("pnrubyrrakrwuwjh")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
     */
    @JvmName("acvuoqjopgcosobj")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    internal fun build(): ClusterBootstrapActionArgs = ClusterBootstrapActionArgs(
        args = args,
        name = name ?: throw PulumiNullFieldException("name"),
        path = path ?: throw PulumiNullFieldException("path"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy