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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeEcsResourceRequirementArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeEcsResourceRequirementArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeEcsResourceRequirementType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 type The type of resource to assign to a container. The supported values are `GPU` or `InferenceAccelerator` .
 * @property value The value for the specified resource type.
 * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.
 * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an InferenceAccelerator specified in a task definition.
 */
public data class PipeEcsResourceRequirementArgs(
    public val type: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeEcsResourceRequirementArgs =
        com.pulumi.awsnative.pipes.inputs.PipeEcsResourceRequirementArgs.builder()
            .type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipeEcsResourceRequirementArgs].
 */
@PulumiTagMarker
public class PipeEcsResourceRequirementArgsBuilder internal constructor() {
    private var type: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The type of resource to assign to a container. The supported values are `GPU` or `InferenceAccelerator` .
     */
    @JvmName("kbljmlwdyorsfiqv")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The value for the specified resource type.
     * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.
     * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an InferenceAccelerator specified in a task definition.
     */
    @JvmName("smlcfjixfkgunpmr")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The type of resource to assign to a container. The supported values are `GPU` or `InferenceAccelerator` .
     */
    @JvmName("fpikgilyehjpoghn")
    public suspend fun type(`value`: PipeEcsResourceRequirementType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The value for the specified resource type.
     * If the `GPU` type is used, the value is the number of physical `GPUs` the Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.
     * If the `InferenceAccelerator` type is used, the `value` matches the `deviceName` for an InferenceAccelerator specified in a task definition.
     */
    @JvmName("tswqiqyajoeuuegb")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): PipeEcsResourceRequirementArgs = PipeEcsResourceRequirementArgs(
        type = type ?: throw PulumiNullFieldException("type"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy