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

com.pulumi.gcp.dataflow.kotlin.inputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataflow.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property containerSpecGcsPath Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
 * @property environment The runtime environment for the Flex Template job.
 * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#FlexTemplateRuntimeEnvironment
 * Structure is documented below.
 * @property jobName The job name to use for the created job. For an update job request, the job name should be the same as the existing running job.
 * @property launchOptions Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property parameters 'The parameters for the Flex Template. Example: {"numWorkers":"5"}'
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property transformNameMappings 'Use this to pass transform name mappings for streaming update jobs. Example: {"oldTransformName":"newTransformName",...}'
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property update Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.
 */
public data class PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs(
    public val containerSpecGcsPath: Output? = null,
    public val environment: Output? = null,
    public val jobName: Output,
    public val launchOptions: Output>? = null,
    public val parameters: Output>? = null,
    public val transformNameMappings: Output>? = null,
    public val update: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs =
        com.pulumi.gcp.dataflow.inputs.PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs.builder()
            .containerSpecGcsPath(containerSpecGcsPath?.applyValue({ args0 -> args0 }))
            .environment(environment?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .jobName(jobName.applyValue({ args0 -> args0 }))
            .launchOptions(
                launchOptions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .transformNameMappings(
                transformNameMappings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .update(update?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs].
 */
@PulumiTagMarker
public class PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgsBuilder internal constructor() {
    private var containerSpecGcsPath: Output? = null

    private var environment:
        Output? = null

    private var jobName: Output? = null

    private var launchOptions: Output>? = null

    private var parameters: Output>? = null

    private var transformNameMappings: Output>? = null

    private var update: Output? = null

    /**
     * @param value Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
     */
    @JvmName("ejmukmftitktyrvf")
    public suspend fun containerSpecGcsPath(`value`: Output) {
        this.containerSpecGcsPath = value
    }

    /**
     * @param value The runtime environment for the Flex Template job.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#FlexTemplateRuntimeEnvironment
     * Structure is documented below.
     */
    @JvmName("ejrrimcpunisuiin")
    public suspend fun environment(`value`: Output) {
        this.environment = value
    }

    /**
     * @param value The job name to use for the created job. For an update job request, the job name should be the same as the existing running job.
     */
    @JvmName("vrejqlwyvbgukxpf")
    public suspend fun jobName(`value`: Output) {
        this.jobName = value
    }

    /**
     * @param value Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("rdydoakdepyvstrg")
    public suspend fun launchOptions(`value`: Output>) {
        this.launchOptions = value
    }

    /**
     * @param value 'The parameters for the Flex Template. Example: {"numWorkers":"5"}'
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("nodeewyuxlrqisbl")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value 'Use this to pass transform name mappings for streaming update jobs. Example: {"oldTransformName":"newTransformName",...}'
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("lkmtjhuvsdkjnvop")
    public suspend fun transformNameMappings(`value`: Output>) {
        this.transformNameMappings = value
    }

    /**
     * @param value Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.
     */
    @JvmName("hlrglnfeujqsojct")
    public suspend fun update(`value`: Output) {
        this.update = value
    }

    /**
     * @param value Cloud Storage path to a file with a JSON-serialized ContainerSpec as content.
     */
    @JvmName("mecgxdnnbpnynwmm")
    public suspend fun containerSpecGcsPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerSpecGcsPath = mapped
    }

    /**
     * @param value The runtime environment for the Flex Template job.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#FlexTemplateRuntimeEnvironment
     * Structure is documented below.
     */
    @JvmName("jooovyqrfqwvryiu")
    public suspend fun environment(`value`: PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterEnvironmentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environment = mapped
    }

    /**
     * @param argument The runtime environment for the Flex Template job.
     * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#FlexTemplateRuntimeEnvironment
     * Structure is documented below.
     */
    @JvmName("fprhcjjwlcptvkjs")
    public suspend fun environment(argument: suspend PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterEnvironmentArgsBuilder.() -> Unit) {
        val toBeMapped =
            PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterEnvironmentArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.environment = mapped
    }

    /**
     * @param value The job name to use for the created job. For an update job request, the job name should be the same as the existing running job.
     */
    @JvmName("lmxlwtdxlntbqmtr")
    public suspend fun jobName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jobName = mapped
    }

    /**
     * @param value Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("xffgmafjbqjijdpt")
    public suspend fun launchOptions(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchOptions = mapped
    }

    /**
     * @param values Launch options for this Flex Template job. This is a common set of options across languages and templates. This should not be used to pass job parameters.
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("arirqyvqswbortbo")
    public fun launchOptions(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.launchOptions = mapped
    }

    /**
     * @param value 'The parameters for the Flex Template. Example: {"numWorkers":"5"}'
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("oplgbutvhemtixhv")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values 'The parameters for the Flex Template. Example: {"numWorkers":"5"}'
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("vjkulcshkwrtgrkm")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value 'Use this to pass transform name mappings for streaming update jobs. Example: {"oldTransformName":"newTransformName",...}'
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("gijrqjjqtpsvfllk")
    public suspend fun transformNameMappings(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transformNameMappings = mapped
    }

    /**
     * @param values 'Use this to pass transform name mappings for streaming update jobs. Example: {"oldTransformName":"newTransformName",...}'
     * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
     */
    @JvmName("wmpaabfmfgupvgln")
    public fun transformNameMappings(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transformNameMappings = mapped
    }

    /**
     * @param value Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job.
     */
    @JvmName("cnbijbwtttxmyacb")
    public suspend fun update(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.update = mapped
    }

    internal fun build(): PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs =
        PipelineWorkloadDataflowFlexTemplateRequestLaunchParameterArgs(
            containerSpecGcsPath = containerSpecGcsPath,
            environment = environment,
            jobName = jobName ?: throw PulumiNullFieldException("jobName"),
            launchOptions = launchOptions,
            parameters = parameters,
            transformNameMappings = transformNameMappings,
            update = update,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy