All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.clouddeploy.kotlin.outputs.TargetExecutionConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.clouddeploy.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property artifactStorage Optional. Cloud Storage location in which to store execution outputs. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.
 * @property executionTimeout Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and 24h in seconds format. If unspecified, a default timeout of 1h is used.
 * @property serviceAccount Optional. Google service account to use for execution. If unspecified, the project execution service account ([email protected]) is used.
 * @property usages Required. Usages when this configuration should be applied.
 * @property workerPool Optional. The resource name of the `WorkerPool`, with the format `projects/{project}/locations/{location}/workerPools/{worker_pool}`. If this optional field is unspecified, the default Cloud Build pool will be used.
 */
public data class TargetExecutionConfig(
    public val artifactStorage: String? = null,
    public val executionTimeout: String? = null,
    public val serviceAccount: String? = null,
    public val usages: List,
    public val workerPool: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.clouddeploy.outputs.TargetExecutionConfig): TargetExecutionConfig = TargetExecutionConfig(
            artifactStorage = javaType.artifactStorage().map({ args0 -> args0 }).orElse(null),
            executionTimeout = javaType.executionTimeout().map({ args0 -> args0 }).orElse(null),
            serviceAccount = javaType.serviceAccount().map({ args0 -> args0 }).orElse(null),
            usages = javaType.usages().map({ args0 -> args0 }),
            workerPool = javaType.workerPool().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy