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

com.pulumi.gcp.dataflow.kotlin.outputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters.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.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property environment The runtime environment for the job.
 * https://cloud.google.com/dataflow/docs/reference/data-pipelines/rest/v1/projects.locations.pipelines#RuntimeEnvironment
 * Structure is documented below.
 * @property jobName The job name to use for the created job.
 * @property parameters The runtime parameters to pass to the job.
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property transformNameMapping Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. Only applicable when updating a pipeline.
 * 'An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.'
 * @property update If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state.
 */
public data class PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters(
    public val environment: PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersEnvironment? =
        null,
    public val jobName: String,
    public val parameters: Map? = null,
    public val transformNameMapping: Map? = null,
    public val update: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataflow.outputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters): PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters =
            PipelineWorkloadDataflowLaunchTemplateRequestLaunchParameters(
                environment = javaType.environment().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataflow.kotlin.outputs.PipelineWorkloadDataflowLaunchTemplateRequestLaunchParametersEnvironment.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                jobName = javaType.jobName(),
                parameters = javaType.parameters().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                transformNameMapping = javaType.transformNameMapping().map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap(),
                update = javaType.update().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy