com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetJobTemplateTemplate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property containers Holds the single container that defines the unit of execution for this task.
* @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: ["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.
* @property vpcAccesses VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
*/
public data class GetJobTemplateTemplate(
public val containers: List,
public val encryptionKey: String,
public val executionEnvironment: String,
public val maxRetries: Int,
public val serviceAccount: String,
public val timeout: String,
public val volumes: List,
public val vpcAccesses: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.GetJobTemplateTemplate): GetJobTemplateTemplate = GetJobTemplateTemplate(
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetJobTemplateTemplateContainer.Companion.toKotlin(args0)
})
}),
encryptionKey = javaType.encryptionKey(),
executionEnvironment = javaType.executionEnvironment(),
maxRetries = javaType.maxRetries(),
serviceAccount = javaType.serviceAccount(),
timeout = javaType.timeout(),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetJobTemplateTemplateVolume.Companion.toKotlin(args0)
})
}),
vpcAccesses = javaType.vpcAccesses().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetJobTemplateTemplateVpcAccess.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy