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

com.pulumi.gcp.vertex.kotlin.inputs.AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs.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.vertex.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vertex.inputs.AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property metricName The resource metric name. Supported metrics: For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
 * @property target The target resource utilization in percentage (1% - 100%) for the given metric; once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided.
 */
public data class AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs(
    public val metricName: Output,
    public val target: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vertex.inputs.AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs =
        com.pulumi.gcp.vertex.inputs.AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs.builder()
            .metricName(metricName.applyValue({ args0 -> args0 }))
            .target(target?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs].
 */
@PulumiTagMarker
public class AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgsBuilder internal constructor() {
    private var metricName: Output? = null

    private var target: Output? = null

    /**
     * @param value The resource metric name. Supported metrics: For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
     */
    @JvmName("elmafgpjesmenhds")
    public suspend fun metricName(`value`: Output) {
        this.metricName = value
    }

    /**
     * @param value The target resource utilization in percentage (1% - 100%) for the given metric; once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided.
     */
    @JvmName("eshlarsggrpgdriy")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value The resource metric name. Supported metrics: For Online Prediction: * `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle` * `aiplatform.googleapis.com/prediction/online/cpu/utilization`
     */
    @JvmName("bmkieqfdsqicxvkt")
    public suspend fun metricName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricName = mapped
    }

    /**
     * @param value The target resource utilization in percentage (1% - 100%) for the given metric; once the real usage deviates from the target by a certain percentage, the machine replicas change. The default value is 60 (representing 60%) if not provided.
     */
    @JvmName("netachlucvwhaisu")
    public suspend fun target(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.target = mapped
    }

    internal fun build(): AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs =
        AiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecArgs(
            metricName = metricName ?: throw PulumiNullFieldException("metricName"),
            target = target,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy