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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecWorkerArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property alerts Describes an alert policy for the component.
* @property buildCommand An optional build command to run while building this component from source.
* @property dockerfilePath The path to a Dockerfile relative to the root of the repo. If set, overrides usage of buildpacks.
* @property environmentSlug An environment slug describing the type of this app.
* @property envs Describes an environment variable made available to an app competent.
* @property git A Git repo to use as the component's source. The repository must be able to be cloned without authentication. Only one of `git`, `github` or `gitlab` may be set.
* @property github A GitHub repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/github/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
* @property gitlab A Gitlab repo to use as the component's source. DigitalOcean App Platform must have [access to the repository](https://cloud.digitalocean.com/apps/gitlab/install). Only one of `git`, `github`, `gitlab`, or `image` may be set.
* @property image An image to use as the component's source. Only one of `git`, `github`, `gitlab`, or `image` may be set.
* @property instanceCount The amount of instances that this component should be scaled to.
* @property instanceSizeSlug The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs`
* @property logDestinations Describes a log forwarding destination.
* @property name The name of the component.
* @property runCommand An optional run command to override the component's default.
* @property sourceDir An optional path to the working directory to use for the build.
*/
public data class AppSpecWorkerArgs(
public val alerts: Output>? = null,
public val buildCommand: Output? = null,
public val dockerfilePath: Output? = null,
public val environmentSlug: Output? = null,
public val envs: Output>? = null,
public val git: Output? = null,
public val github: Output? = null,
public val gitlab: Output? = null,
public val image: Output? = null,
public val instanceCount: Output? = null,
public val instanceSizeSlug: Output? = null,
public val logDestinations: Output>? = null,
public val name: Output,
public val runCommand: Output? = null,
public val sourceDir: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecWorkerArgs =
com.pulumi.digitalocean.inputs.AppSpecWorkerArgs.builder()
.alerts(alerts?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.buildCommand(buildCommand?.applyValue({ args0 -> args0 }))
.dockerfilePath(dockerfilePath?.applyValue({ args0 -> args0 }))
.environmentSlug(environmentSlug?.applyValue({ args0 -> args0 }))
.envs(envs?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.git(git?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.github(github?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.gitlab(gitlab?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.image(image?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.instanceCount(instanceCount?.applyValue({ args0 -> args0 }))
.instanceSizeSlug(instanceSizeSlug?.applyValue({ args0 -> args0 }))
.logDestinations(
logDestinations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.name(name.applyValue({ args0 -> args0 }))
.runCommand(runCommand?.applyValue({ args0 -> args0 }))
.sourceDir(sourceDir?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecWorkerArgs].
*/
@PulumiTagMarker
public class AppSpecWorkerArgsBuilder internal constructor() {
private var alerts: Output>? = null
private var buildCommand: Output? = null
private var dockerfilePath: Output? = null
private var environmentSlug: Output? = null
private var envs: Output>? = null
private var git: Output? = null
private var github: Output? = null
private var gitlab: Output? = null
private var image: Output? = null
private var instanceCount: Output? = null
private var instanceSizeSlug: Output? = null
private var logDestinations: Output>? = null
private var name: Output? = null
private var runCommand: Output? = null
private var sourceDir: Output? = null
/**
* @param value Describes an alert policy for the component.
*/
@JvmName("kabcshnogmtqkwly")
public suspend fun alerts(`value`: Output>) {
this.alerts = value
}
@JvmName("bcewuihceitwkfgn")
public suspend fun alerts(vararg values: Output) {
this.alerts = Output.all(values.asList())
}
/**
* @param values Describes an alert policy for the component.
*/
@JvmName("lwwohxwgahogedft")
public suspend fun alerts(values: List