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

com.pulumi.gcp.clouddeploy.kotlin.outputs.AutomationRulePromoteReleaseRule.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.clouddeploy.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property destinationPhase Optional. The starting phase of the rollout created by this operation. Default to the first phase.
 * @property destinationTargetId Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline. * "@next", the next target in the promotion sequence.
 * @property id Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.
 * @property wait Optional. How long the release need to be paused until being promoted to the next target.
 */
public data class AutomationRulePromoteReleaseRule(
    public val destinationPhase: String? = null,
    public val destinationTargetId: String? = null,
    public val id: String,
    public val wait: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.clouddeploy.outputs.AutomationRulePromoteReleaseRule): AutomationRulePromoteReleaseRule = AutomationRulePromoteReleaseRule(
            destinationPhase = javaType.destinationPhase().map({ args0 -> args0 }).orElse(null),
            destinationTargetId = javaType.destinationTargetId().map({ args0 -> args0 }).orElse(null),
            id = javaType.id(),
            wait = javaType.wait_().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy