TrafficTargetArgs

data class TrafficTargetArgs(val configurationName: Output<String>? = null, val latestRevision: Output<Boolean>? = null, val percent: Output<Int>? = null, val revisionName: Output<String>? = null, val tag: Output<String>? = null) : ConvertibleToJava<TrafficTargetArgs>

TrafficTarget holds a single entry of the routing table for a Route.

Constructors

Link copied to clipboard
fun TrafficTargetArgs(configurationName: Output<String>? = null, latestRevision: Output<Boolean>? = null, percent: Output<Int>? = null, revisionName: Output<String>? = null, tag: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TrafficTargetArgs

Properties

Link copied to clipboard
val configurationName: Output<String>? = null

Deprecated Not supported in Cloud Run. It must be empty.

Link copied to clipboard
val latestRevision: Output<Boolean>? = null

Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision.

Link copied to clipboard
val percent: Output<Int>? = null

Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.

Link copied to clipboard
val revisionName: Output<String>? = null

Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision.

Link copied to clipboard
val tag: Output<String>? = null

Tag is used to expose a dedicated url for referencing this target exclusively.