Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property containers Holds the single container that defines the unit of execution for this task.
* Structure is documented below.
* @property encryptionKey A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
* @property executionEnvironment The execution environment being used to host this Task.
* Possible values are: `EXECUTION_ENVIRONMENT_GEN1`, `EXECUTION_ENVIRONMENT_GEN2`.
* @property maxRetries Number of retries allowed per Task, before marking this Task failed.
* @property serviceAccount Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
* @property timeout Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.
* A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
* @property volumes A list of Volumes to make available to containers.
* Structure is documented below.
* @property vpcAccess VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
* Structure is documented below.
*/
public data class JobTemplateTemplateArgs(
public val containers: Output>? = null,
public val encryptionKey: Output? = null,
public val executionEnvironment: Output? = null,
public val maxRetries: Output? = null,
public val serviceAccount: Output? = null,
public val timeout: Output? = null,
public val volumes: Output>? = null,
public val vpcAccess: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs =
com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs.builder()
.containers(
containers?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.encryptionKey(encryptionKey?.applyValue({ args0 -> args0 }))
.executionEnvironment(executionEnvironment?.applyValue({ args0 -> args0 }))
.maxRetries(maxRetries?.applyValue({ args0 -> args0 }))
.serviceAccount(serviceAccount?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 }))
.volumes(
volumes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.vpcAccess(vpcAccess?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [JobTemplateTemplateArgs].
*/
@PulumiTagMarker
public class JobTemplateTemplateArgsBuilder internal constructor() {
private var containers: Output>? = null
private var encryptionKey: Output? = null
private var executionEnvironment: Output? = null
private var maxRetries: Output? = null
private var serviceAccount: Output? = null
private var timeout: Output? = null
private var volumes: Output>? = null
private var vpcAccess: Output? = null
/**
* @param value Holds the single container that defines the unit of execution for this task.
* Structure is documented below.
*/
@JvmName("ugnfybigxlfcuwbh")
public suspend fun containers(`value`: Output>) {
this.containers = value
}
@JvmName("gswehnyghhtaodfe")
public suspend fun containers(vararg values: Output) {
this.containers = Output.all(values.asList())
}
/**
* @param values Holds the single container that defines the unit of execution for this task.
* Structure is documented below.
*/
@JvmName("qooaajtntlgyqacq")
public suspend fun containers(values: List