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

com.pulumi.azure.containerapp.kotlin.outputs.JobTemplateInitContainer.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.outputs

import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property args A list of extra arguments to pass to the container.
 * @property commands A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
 * @property cpu The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
 * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`
 * @property envs One or more `env` blocks as detailed below.
 * @property ephemeralStorage The amount of ephemeral storage available to the Container App.
 * > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.
 * @property image The image to use to create the container.
 * @property memory The amount of memory to allocate to the container. Possible values are `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi` and `4Gi`.
 * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`
 * @property name The name of the container.
 * @property volumeMounts A `volume_mounts` block as detailed below.
 */
public data class JobTemplateInitContainer(
    public val args: List? = null,
    public val commands: List? = null,
    public val cpu: Double? = null,
    public val envs: List? = null,
    public val ephemeralStorage: String? = null,
    public val image: String,
    public val memory: String? = null,
    public val name: String,
    public val volumeMounts: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.JobTemplateInitContainer):
            JobTemplateInitContainer = JobTemplateInitContainer(
            args = javaType.args().map({ args0 -> args0 }),
            commands = javaType.commands().map({ args0 -> args0 }),
            cpu = javaType.cpu().map({ args0 -> args0 }).orElse(null),
            envs = javaType.envs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.JobTemplateInitContainerEnv.Companion.toKotlin(args0)
                })
            }),
            ephemeralStorage = javaType.ephemeralStorage().map({ args0 -> args0 }).orElse(null),
            image = javaType.image(),
            memory = javaType.memory().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            volumeMounts = javaType.volumeMounts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.JobTemplateInitContainerVolumeMount.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy