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.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.AppTemplateInitContainerArgs.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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @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`. When there's a workload profile specified, there's no such constraint.
* > **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`. When there's a workload profile specified, there's no such constraint.
* > **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 AppTemplateInitContainerArgs(
public val args: Output>? = null,
public val commands: Output>? = null,
public val cpu: Output? = null,
public val envs: Output>? = null,
public val ephemeralStorage: Output? = null,
public val image: Output,
public val memory: Output? = null,
public val name: Output,
public val volumeMounts: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.AppTemplateInitContainerArgs =
com.pulumi.azure.containerapp.inputs.AppTemplateInitContainerArgs.builder()
.args(args?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.commands(commands?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.cpu(cpu?.applyValue({ args0 -> args0 }))
.envs(envs?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.ephemeralStorage(ephemeralStorage?.applyValue({ args0 -> args0 }))
.image(image.applyValue({ args0 -> args0 }))
.memory(memory?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.volumeMounts(
volumeMounts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AppTemplateInitContainerArgs].
*/
@PulumiTagMarker
public class AppTemplateInitContainerArgsBuilder internal constructor() {
private var args: Output>? = null
private var commands: Output>? = null
private var cpu: Output? = null
private var envs: Output>? = null
private var ephemeralStorage: Output? = null
private var image: Output? = null
private var memory: Output? = null
private var name: Output? = null
private var volumeMounts: Output>? = null
/**
* @param value A list of extra arguments to pass to the container.
*/
@JvmName("brybqvkosnqgpqdy")
public suspend fun args(`value`: Output>) {
this.args = value
}
@JvmName("cqkuembmvrwqftvd")
public suspend fun args(vararg values: Output) {
this.args = Output.all(values.asList())
}
/**
* @param values A list of extra arguments to pass to the container.
*/
@JvmName("rcyconpsxyvrywev")
public suspend fun args(values: List