com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property azureQueueScaleRules
* @property containers One or more `container` blocks as detailed below.
* @property customScaleRules
* @property httpScaleRules
* @property initContainers One or more `init_container` blocks as detailed below.
* @property maxReplicas The maximum number of replicas for this container.
* @property minReplicas The minimum number of replicas for this container.
* @property revisionSuffix The suffix string to which this `traffic_weight` applies.
* @property tcpScaleRules
* @property volumes A `volume` block as detailed below.
*/
public data class GetAppTemplate(
public val azureQueueScaleRules: List,
public val containers: List,
public val customScaleRules: List? = null,
public val httpScaleRules: List,
public val initContainers: List,
public val maxReplicas: Int,
public val minReplicas: Int,
public val revisionSuffix: String,
public val tcpScaleRules: List,
public val volumes: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.GetAppTemplate):
GetAppTemplate = GetAppTemplate(
azureQueueScaleRules = javaType.azureQueueScaleRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateAzureQueueScaleRule.Companion.toKotlin(args0)
})
}),
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateContainer.Companion.toKotlin(args0)
})
}),
customScaleRules = javaType.customScaleRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateCustomScaleRule.Companion.toKotlin(args0)
})
}),
httpScaleRules = javaType.httpScaleRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateHttpScaleRule.Companion.toKotlin(args0)
})
}),
initContainers = javaType.initContainers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateInitContainer.Companion.toKotlin(args0)
})
}),
maxReplicas = javaType.maxReplicas(),
minReplicas = javaType.minReplicas(),
revisionSuffix = javaType.revisionSuffix(),
tcpScaleRules = javaType.tcpScaleRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateTcpScaleRule.Companion.toKotlin(args0)
})
}),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.containerapp.kotlin.outputs.GetAppTemplateVolume.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy