Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.pipes.kotlin.inputs
import com.pulumi.awsnative.pipes.inputs.PipeEcsContainerOverrideArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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 PipeEcsContainerOverrideArgs(
public val command: Output>? = null,
public val cpu: Output? = null,
public val environment: Output>? = null,
public val environmentFiles: Output>? = null,
public val memory: Output? = null,
public val memoryReservation: Output? = null,
public val name: Output? = null,
public val resourceRequirements: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeEcsContainerOverrideArgs =
com.pulumi.awsnative.pipes.inputs.PipeEcsContainerOverrideArgs.builder()
.command(command?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.cpu(cpu?.applyValue({ args0 -> args0 }))
.environment(
environment?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.environmentFiles(
environmentFiles?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.memory(memory?.applyValue({ args0 -> args0 }))
.memoryReservation(memoryReservation?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceRequirements(
resourceRequirements?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [PipeEcsContainerOverrideArgs].
*/
@PulumiTagMarker
public class PipeEcsContainerOverrideArgsBuilder internal constructor() {
private var command: Output>? = null
private var cpu: Output? = null
private var environment: Output>? = null
private var environmentFiles: Output>? = null
private var memory: Output? = null
private var memoryReservation: Output? = null
private var name: Output? = null
private var resourceRequirements: Output>? = null
/**
* @param value 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.
*/
@JvmName("pdvdpfapdvdcakyl")
public suspend fun command(`value`: Output>) {
this.command = value
}
@JvmName("usrwjjymrwlarptj")
public suspend fun command(vararg values: Output) {
this.command = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("joavccvlchknhrim")
public suspend fun command(values: List