
com.pulumi.awsnative.gamelift.kotlin.outputs.ContainerGroupDefinitionContainerDefinition.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.gamelift.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 ContainerGroupDefinitionContainerDefinition(
public val command: List? = null,
public val containerName: String,
public val cpu: Int? = null,
public val dependsOn: List? = null,
public val entryPoint: List? = null,
public val environment: List? = null,
public val essential: Boolean? = null,
public val healthCheck: ContainerGroupDefinitionContainerHealthCheck? = null,
public val imageUri: String,
public val memoryLimits: ContainerGroupDefinitionMemoryLimits? = null,
public val portConfiguration: ContainerGroupDefinitionPortConfiguration? = null,
public val resolvedImageDigest: String? = null,
public val workingDirectory: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.gamelift.outputs.ContainerGroupDefinitionContainerDefinition): ContainerGroupDefinitionContainerDefinition = ContainerGroupDefinitionContainerDefinition(
command = javaType.command().map({ args0 -> args0 }),
containerName = javaType.containerName(),
cpu = javaType.cpu().map({ args0 -> args0 }).orElse(null),
dependsOn = javaType.dependsOn().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.gamelift.kotlin.outputs.ContainerGroupDefinitionContainerDependency.Companion.toKotlin(args0)
})
}),
entryPoint = javaType.entryPoint().map({ args0 -> args0 }),
environment = javaType.environment().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.gamelift.kotlin.outputs.ContainerGroupDefinitionContainerEnvironment.Companion.toKotlin(args0)
})
}),
essential = javaType.essential().map({ args0 -> args0 }).orElse(null),
healthCheck = javaType.healthCheck().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.gamelift.kotlin.outputs.ContainerGroupDefinitionContainerHealthCheck.Companion.toKotlin(args0)
})
}).orElse(null),
imageUri = javaType.imageUri(),
memoryLimits = javaType.memoryLimits().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.gamelift.kotlin.outputs.ContainerGroupDefinitionMemoryLimits.Companion.toKotlin(args0)
})
}).orElse(null),
portConfiguration = javaType.portConfiguration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.gamelift.kotlin.outputs.ContainerGroupDefinitionPortConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
resolvedImageDigest = javaType.resolvedImageDigest().map({ args0 -> args0 }).orElse(null),
workingDirectory = javaType.workingDirectory().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy