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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerapp.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property label The label to apply to the revision as a name prefix for routing traffic.
 * @property latestRevision This traffic Weight applies to the latest stable Container Revision. At most only one `traffic_weight` block can have the `latest_revision` set to `true`.
 * @property percentage The percentage of traffic which should be sent this revision.
 * > **Note:** The cumulative values for `weight` must equal 100 exactly and explicitly, no default weights are assumed.
 * @property revisionSuffix The suffix string to which this `traffic_weight` applies.
 * > **Note:** `latest_revision` conflicts with `revision_suffix`, which means you shall either set `latest_revision` to `true` or specify `revision_suffix`. Especially for creation, there shall only be one `traffic_weight`, with the `latest_revision` set to `true`, and leave the `revision_suffix` empty.
 */
public data class AppIngressTrafficWeight(
    public val label: String? = null,
    public val latestRevision: Boolean? = null,
    public val percentage: Int,
    public val revisionSuffix: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.AppIngressTrafficWeight): AppIngressTrafficWeight = AppIngressTrafficWeight(
            label = javaType.label().map({ args0 -> args0 }).orElse(null),
            latestRevision = javaType.latestRevision().map({ args0 -> args0 }).orElse(null),
            percentage = javaType.percentage(),
            revisionSuffix = javaType.revisionSuffix().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy