GoogleCloudRunV2TaskTemplateArgs

data class GoogleCloudRunV2TaskTemplateArgs(val containers: Output<List<GoogleCloudRunV2ContainerArgs>>? = null, val encryptionKey: Output<String>? = null, val executionEnvironment: Output<GoogleCloudRunV2TaskTemplateExecutionEnvironment>? = null, val maxRetries: Output<Int>? = null, val serviceAccount: Output<String>? = null, val timeout: Output<String>? = null, val volumes: Output<List<GoogleCloudRunV2VolumeArgs>>? = null, val vpcAccess: Output<GoogleCloudRunV2VpcAccessArgs>? = null) : ConvertibleToJava<GoogleCloudRunV2TaskTemplateArgs>

TaskTemplate describes the data a task should have when created from a template.

Constructors

Link copied to clipboard
fun GoogleCloudRunV2TaskTemplateArgs(containers: Output<List<GoogleCloudRunV2ContainerArgs>>? = null, encryptionKey: Output<String>? = null, executionEnvironment: Output<GoogleCloudRunV2TaskTemplateExecutionEnvironment>? = null, maxRetries: Output<Int>? = null, serviceAccount: Output<String>? = null, timeout: Output<String>? = null, volumes: Output<List<GoogleCloudRunV2VolumeArgs>>? = null, vpcAccess: Output<GoogleCloudRunV2VpcAccessArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudRunV2TaskTemplateArgs

Properties

Link copied to clipboard

Holds the single container that defines the unit of execution for this task.

Link copied to clipboard
val encryptionKey: Output<String>? = null

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

Link copied to clipboard

The execution environment being used to host this Task.

Link copied to clipboard
val maxRetries: Output<Int>? = null

Number of retries allowed per Task, before marking this Task failed. Defaults to 3.

Link copied to clipboard
val serviceAccount: Output<String>? = null

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.

Link copied to clipboard
val timeout: Output<String>? = null

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. Defaults to 600 seconds.

Link copied to clipboard

A list of Volumes to make available to containers.

Link copied to clipboard

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.