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.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin.inputs
import com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionContainerDefinitionArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Details about a container that is used in a container fleet
* @property command The command that's passed to the container.
* @property containerName A descriptive label for the container definition. Container definition names must be unique with a container group definition.
* @property cpu The maximum number of CPU units reserved for this container. The value is expressed as an integer amount of CPU units. 1 vCPU is equal to 1024 CPU units
* @property dependsOn A list of container dependencies that determines when this container starts up and shuts down. For container groups with multiple containers, dependencies let you define a startup/shutdown sequence across the containers.
* @property entryPoint The entry point that's passed to the container so that it will run as an executable. If there are multiple arguments, each argument is a string in the array.
* @property environment The environment variables to pass to a container.
* @property essential Specifies if the container is essential. If an essential container fails a health check, then all containers in the container group will be restarted. You must specify exactly 1 essential container in a container group.
* @property healthCheck Specifies how the health of the containers will be checked.
* @property imageUri Specifies the image URI of this container.
* @property memoryLimits Specifies how much memory is available to the container. You must specify at least this parameter or the TotalMemoryLimit parameter of the ContainerGroupDefinition.
* @property portConfiguration Defines the ports on the container.
* @property resolvedImageDigest The digest of the container image.
* @property workingDirectory The working directory to run commands inside the container in.
*/
public data class ContainerGroupDefinitionContainerDefinitionArgs(
public val command: Output>? = null,
public val containerName: Output,
public val cpu: Output? = null,
public val dependsOn: Output>? = null,
public val entryPoint: Output>? = null,
public val environment: Output>? = null,
public val essential: Output? = null,
public val healthCheck: Output? = null,
public val imageUri: Output,
public val memoryLimits: Output? = null,
public val portConfiguration: Output? = null,
public val resolvedImageDigest: Output? = null,
public val workingDirectory: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionContainerDefinitionArgs =
com.pulumi.awsnative.gamelift.inputs.ContainerGroupDefinitionContainerDefinitionArgs.builder()
.command(command?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.containerName(containerName.applyValue({ args0 -> args0 }))
.cpu(cpu?.applyValue({ args0 -> args0 }))
.dependsOn(
dependsOn?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.entryPoint(entryPoint?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.environment(
environment?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.essential(essential?.applyValue({ args0 -> args0 }))
.healthCheck(healthCheck?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.imageUri(imageUri.applyValue({ args0 -> args0 }))
.memoryLimits(memoryLimits?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.portConfiguration(portConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resolvedImageDigest(resolvedImageDigest?.applyValue({ args0 -> args0 }))
.workingDirectory(workingDirectory?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContainerGroupDefinitionContainerDefinitionArgs].
*/
@PulumiTagMarker
public class ContainerGroupDefinitionContainerDefinitionArgsBuilder internal constructor() {
private var command: Output>? = null
private var containerName: Output? = null
private var cpu: Output? = null
private var dependsOn: Output>? = null
private var entryPoint: Output>? = null
private var environment: Output>? = null
private var essential: Output? = null
private var healthCheck: Output? = null
private var imageUri: Output? = null
private var memoryLimits: Output? = null
private var portConfiguration: Output? = null
private var resolvedImageDigest: Output? = null
private var workingDirectory: Output? = null
/**
* @param value The command that's passed to the container.
*/
@JvmName("ecvqksqmoxubqhgm")
public suspend fun command(`value`: Output>) {
this.command = value
}
@JvmName("yfgkmyxwlfifibwm")
public suspend fun command(vararg values: Output) {
this.command = Output.all(values.asList())
}
/**
* @param values The command that's passed to the container.
*/
@JvmName("ulpvygrfiltplvid")
public suspend fun command(values: List