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.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.DaprArgs.builder
import com.pulumi.azurenative.app.kotlin.enums.AppProtocol
import com.pulumi.azurenative.app.kotlin.enums.LogLevel
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Container App Dapr configuration.
* @property appId Dapr application identifier
* @property appPort Tells Dapr which port your application is listening on
* @property appProtocol Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
* @property enableApiLogging Enables API logging for the Dapr sidecar
* @property enabled Boolean indicating if the Dapr side car is enabled
* @property httpMaxRequestSize Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
* @property httpReadBufferSize Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
* @property logLevel Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
*/
public data class DaprArgs(
public val appId: Output? = null,
public val appPort: Output? = null,
public val appProtocol: Output>? = null,
public val enableApiLogging: Output? = null,
public val enabled: Output? = null,
public val httpMaxRequestSize: Output? = null,
public val httpReadBufferSize: Output? = null,
public val logLevel: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.DaprArgs =
com.pulumi.azurenative.app.inputs.DaprArgs.builder()
.appId(appId?.applyValue({ args0 -> args0 }))
.appPort(appPort?.applyValue({ args0 -> args0 }))
.appProtocol(
appProtocol?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.enableApiLogging(enableApiLogging?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.httpMaxRequestSize(httpMaxRequestSize?.applyValue({ args0 -> args0 }))
.httpReadBufferSize(httpReadBufferSize?.applyValue({ args0 -> args0 }))
.logLevel(
logLevel?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [DaprArgs].
*/
@PulumiTagMarker
public class DaprArgsBuilder internal constructor() {
private var appId: Output? = null
private var appPort: Output? = null
private var appProtocol: Output>? = null
private var enableApiLogging: Output? = null
private var enabled: Output? = null
private var httpMaxRequestSize: Output? = null
private var httpReadBufferSize: Output? = null
private var logLevel: Output>? = null
/**
* @param value Dapr application identifier
*/
@JvmName("ysojeswntesewqbg")
public suspend fun appId(`value`: Output) {
this.appId = value
}
/**
* @param value Tells Dapr which port your application is listening on
*/
@JvmName("mpnetujlwtdxosix")
public suspend fun appPort(`value`: Output) {
this.appPort = value
}
/**
* @param value Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
*/
@JvmName("ecxchtjwdywvglsm")
public suspend fun appProtocol(`value`: Output>) {
this.appProtocol = value
}
/**
* @param value Enables API logging for the Dapr sidecar
*/
@JvmName("jnqfpvlgswdvvpex")
public suspend fun enableApiLogging(`value`: Output) {
this.enableApiLogging = value
}
/**
* @param value Boolean indicating if the Dapr side car is enabled
*/
@JvmName("dtymawhyvcvisjvs")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
*/
@JvmName("fvxjftcgjcuncymh")
public suspend fun httpMaxRequestSize(`value`: Output) {
this.httpMaxRequestSize = value
}
/**
* @param value Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
*/
@JvmName("sosiyvijblljggmn")
public suspend fun httpReadBufferSize(`value`: Output) {
this.httpReadBufferSize = value
}
/**
* @param value Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
*/
@JvmName("twktryilebnuetms")
public suspend fun logLevel(`value`: Output>) {
this.logLevel = value
}
/**
* @param value Dapr application identifier
*/
@JvmName("tmnsakserdqhtvbl")
public suspend fun appId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appId = mapped
}
/**
* @param value Tells Dapr which port your application is listening on
*/
@JvmName("eqnirqadgwpwrfsx")
public suspend fun appPort(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appPort = mapped
}
/**
* @param value Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
*/
@JvmName("nkmovmjfwqdfjxpv")
public suspend fun appProtocol(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appProtocol = mapped
}
/**
* @param value Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
*/
@JvmName("mufxmavwpnbwrltk")
public fun appProtocol(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.appProtocol = mapped
}
/**
* @param value Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
*/
@JvmName("dugifikqqicdlems")
public fun appProtocol(`value`: AppProtocol) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.appProtocol = mapped
}
/**
* @param value Enables API logging for the Dapr sidecar
*/
@JvmName("bdvoqafcgdgybouv")
public suspend fun enableApiLogging(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableApiLogging = mapped
}
/**
* @param value Boolean indicating if the Dapr side car is enabled
*/
@JvmName("xvchxvbtwkwjyalt")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
*/
@JvmName("yqjxeusfprqdtick")
public suspend fun httpMaxRequestSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpMaxRequestSize = mapped
}
/**
* @param value Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
*/
@JvmName("seydusmxgdynlbsy")
public suspend fun httpReadBufferSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.httpReadBufferSize = mapped
}
/**
* @param value Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
*/
@JvmName("ouavokhumvbmhmud")
public suspend fun logLevel(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logLevel = mapped
}
/**
* @param value Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
*/
@JvmName("tehtswvgvbesqxho")
public fun logLevel(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logLevel = mapped
}
/**
* @param value Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
*/
@JvmName("kwchxooavrlanypp")
public fun logLevel(`value`: LogLevel) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.logLevel = mapped
}
internal fun build(): DaprArgs = DaprArgs(
appId = appId,
appPort = appPort,
appProtocol = appProtocol,
enableApiLogging = enableApiLogging,
enabled = enabled,
httpMaxRequestSize = httpMaxRequestSize,
httpReadBufferSize = httpReadBufferSize,
logLevel = logLevel,
)
}