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

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

@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`.
 * @property envs One or more `env` blocks as detailed below.
 * @property ephemeralStorage The amount of ephemeral storage available to the Container App.
 * @property image The image to use to create the container.
 * @property livenessProbes A `liveness_probe` block as detailed below.
 * @property memory The amount of memory to allocate to the container. Possible values include `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi`, and `4Gi`.
 * @property name The name of the Container App.
 * @property readinessProbes A `readiness_probe` block as detailed below.
 * @property startupProbes A `startup_probe` block as detailed below.
 * @property volumeMounts A `volume_mounts` block as detailed below.
 */
public data class GetAppTemplateContainer(
    public val args: List,
    public val commands: List,
    public val cpu: Double,
    public val envs: List,
    public val ephemeralStorage: String,
    public val image: String,
    public val livenessProbes: List,
    public val memory: String,
    public val name: String,
    public val readinessProbes: List,
    public val startupProbes: List,
    public val volumeMounts: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.GetAppTemplateContainer): GetAppTemplateContainer = GetAppTemplateContainer(
            args = javaType.args().map({ args0 -> args0 }),
            commands = javaType.commands().map({ args0 -> args0 }),
            cpu = javaType.cpu(),
            envs = javaType.envs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerEnv.Companion.toKotlin(args0)
                })
            }),
            ephemeralStorage = javaType.ephemeralStorage(),
            image = javaType.image(),
            livenessProbes = javaType.livenessProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerLivenessProbe.Companion.toKotlin(args0)
                })
            }),
            memory = javaType.memory(),
            name = javaType.name(),
            readinessProbes = javaType.readinessProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerReadinessProbe.Companion.toKotlin(args0)
                })
            }),
            startupProbes = javaType.startupProbes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerStartupProbe.Companion.toKotlin(args0)
                })
            }),
            volumeMounts = javaType.volumeMounts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainerVolumeMount.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy