
com.pulumi.gcp.dataproc.kotlin.outputs.BatchEnvironmentConfigExecutionConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.dataproc.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property kmsKey The Cloud KMS key to use for encryption.
* @property networkTags Tags used for network traffic control.
* @property networkUri Network configuration for workload execution.
* @property serviceAccount Service account that used to execute workload.
* @property stagingBucket A Cloud Storage bucket used to stage workload dependencies, config files, and store
* workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket,
* Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running,
* and then create and manage project-level, per-location staging and temporary buckets.
* This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
* @property subnetworkUri Subnetwork configuration for workload execution.
* @property ttl The duration after which the workload will be terminated.
* When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing
* work to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it
* exits naturally (or run forever without exiting). If ttl is not specified for an interactive session,
* it defaults to 24 hours. If ttl is not specified for a batch that uses 2.1+ runtime version, it defaults to 4 hours.
* Minimum value is 10 minutes; maximum value is 14 days. If both ttl and idleTtl are specified (for an interactive session),
* the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idleTtl or
* when ttl has been exceeded, whichever occurs first.
*/
public data class BatchEnvironmentConfigExecutionConfig(
public val kmsKey: String? = null,
public val networkTags: List? = null,
public val networkUri: String? = null,
public val serviceAccount: String? = null,
public val stagingBucket: String? = null,
public val subnetworkUri: String? = null,
public val ttl: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.dataproc.outputs.BatchEnvironmentConfigExecutionConfig): BatchEnvironmentConfigExecutionConfig = BatchEnvironmentConfigExecutionConfig(
kmsKey = javaType.kmsKey().map({ args0 -> args0 }).orElse(null),
networkTags = javaType.networkTags().map({ args0 -> args0 }),
networkUri = javaType.networkUri().map({ args0 -> args0 }).orElse(null),
serviceAccount = javaType.serviceAccount().map({ args0 -> args0 }).orElse(null),
stagingBucket = javaType.stagingBucket().map({ args0 -> args0 }).orElse(null),
subnetworkUri = javaType.subnetworkUri().map({ args0 -> args0 }).orElse(null),
ttl = javaType.ttl().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy