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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigAutoscalingConfigArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAutoscalingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property policyUri The autoscaling policy used by the cluster.
 * Only resource names including projectid and location (region) are valid. Examples:
 * `https://www.googleapis.com/compute/v1/projects/[projectId]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
 * `projects/[projectId]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
 * Note that the policy must be in the same project and Cloud Dataproc region.
 * - - -
 */
public data class ClusterClusterConfigAutoscalingConfigArgs(
    public val policyUri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAutoscalingConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigAutoscalingConfigArgs.builder()
            .policyUri(policyUri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterClusterConfigAutoscalingConfigArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigAutoscalingConfigArgsBuilder internal constructor() {
    private var policyUri: Output? = null

    /**
     * @param value The autoscaling policy used by the cluster.
     * Only resource names including projectid and location (region) are valid. Examples:
     * `https://www.googleapis.com/compute/v1/projects/[projectId]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * `projects/[projectId]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * Note that the policy must be in the same project and Cloud Dataproc region.
     * - - -
     */
    @JvmName("kqhhfetpanqaxtwi")
    public suspend fun policyUri(`value`: Output) {
        this.policyUri = value
    }

    /**
     * @param value The autoscaling policy used by the cluster.
     * Only resource names including projectid and location (region) are valid. Examples:
     * `https://www.googleapis.com/compute/v1/projects/[projectId]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * `projects/[projectId]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`
     * Note that the policy must be in the same project and Cloud Dataproc region.
     * - - -
     */
    @JvmName("exegpfmhpxsfhend")
    public suspend fun policyUri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyUri = mapped
    }

    internal fun build(): ClusterClusterConfigAutoscalingConfigArgs =
        ClusterClusterConfigAutoscalingConfigArgs(
            policyUri = policyUri ?: throw PulumiNullFieldException("policyUri"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy