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

com.pulumi.awsnative.pipes.kotlin.outputs.PipeEcsResourceRequirement.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pipes.kotlin.outputs

import com.pulumi.awsnative.pipes.kotlin.enums.PipeEcsResourceRequirementType
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 PipeEcsResourceRequirement(
    public val type: PipeEcsResourceRequirementType,
    public val `value`: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeEcsResourceRequirement): PipeEcsResourceRequirement = PipeEcsResourceRequirement(
            type = javaType.type().let({ args0 ->
                com.pulumi.awsnative.pipes.kotlin.enums.PipeEcsResourceRequirementType.Companion.toKotlin(args0)
            }),
            `value` = javaType.`value`(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy