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

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

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

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

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

/**
 *
 * @property command The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
 * @property cpu The number of `cpu` units reserved for the container, instead of the default value from the task definition. You must also specify a container name.
 * @property environment The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.
 * @property environmentFiles A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
 * @property memory The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
 * @property memoryReservation The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
 * @property name The name of the container that receives the override. This parameter is required if any override is specified.
 * @property resourceRequirements The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
 */
public data class PipeEcsContainerOverride(
    public val command: List? = null,
    public val cpu: Int? = null,
    public val environment: List? = null,
    public val environmentFiles: List? = null,
    public val memory: Int? = null,
    public val memoryReservation: Int? = null,
    public val name: String? = null,
    public val resourceRequirements: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeEcsContainerOverride): PipeEcsContainerOverride = PipeEcsContainerOverride(
            command = javaType.command().map({ args0 -> args0 }),
            cpu = javaType.cpu().map({ args0 -> args0 }).orElse(null),
            environment = javaType.environment().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pipes.kotlin.outputs.PipeEcsEnvironmentVariable.Companion.toKotlin(args0)
                })
            }),
            environmentFiles = javaType.environmentFiles().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pipes.kotlin.outputs.PipeEcsEnvironmentFile.Companion.toKotlin(args0)
                })
            }),
            memory = javaType.memory().map({ args0 -> args0 }).orElse(null),
            memoryReservation = javaType.memoryReservation().map({ args0 -> args0 }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            resourceRequirements = javaType.resourceRequirements().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pipes.kotlin.outputs.PipeEcsResourceRequirement.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy