com.pulumi.gcp.dataplex.kotlin.outputs.TaskExecutionSpec.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.dataplex.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property args The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${taskId} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument. An object containing a list of 'key': value pairs. Example: { 'name': 'wrench', 'mass': '1.3kg', 'count': '3' }.
* @property kmsKey The Cloud KMS key to use for encryption, of the form: projects/{project_number}/locations/{locationId}/keyRings/{key-ring-name}/cryptoKeys/{key-name}.
* - - -
* @property maxJobExecutionLifetime The maximum duration after which the job execution is expired. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '3.5s'.
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property serviceAccount Service account to use to execute a task. If not provided, the default Compute service account for the project is used.
*/
public data class TaskExecutionSpec(
public val args: Map? = null,
public val kmsKey: String? = null,
public val maxJobExecutionLifetime: String? = null,
public val project: String? = null,
public val serviceAccount: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataplex.outputs.TaskExecutionSpec): TaskExecutionSpec = TaskExecutionSpec(
args = javaType.args().map({ args0 -> args0.key.to(args0.value) }).toMap(),
kmsKey = javaType.kmsKey().map({ args0 -> args0 }).orElse(null),
maxJobExecutionLifetime = javaType.maxJobExecutionLifetime().map({ args0 -> args0 }).orElse(null),
project = javaType.project().map({ args0 -> args0 }).orElse(null),
serviceAccount = javaType.serviceAccount(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy