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

com.pulumi.aws.codedeploy.kotlin.outputs.DeploymentConfigZonalConfig.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codedeploy.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property firstZoneMonitorDurationInSeconds The period of time, in seconds, that CodeDeploy must wait after completing a deployment to the first Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the second Availability Zone. If you don't specify a value for `first_zone_monitor_duration_in_seconds`, then CodeDeploy uses the `monitor_duration_in_seconds` value for the first Availability Zone.
 * @property minimumHealthyHostsPerZone The number or percentage of instances that must remain available per Availability Zone during a deployment. If you don't specify a value under `minimum_healthy_hosts_per_zone`, then CodeDeploy uses a default value of 0 percent. This block is more documented below.
 * @property monitorDurationInSeconds The period of time, in seconds, that CodeDeploy must wait after completing a deployment to an Availability Zone. CodeDeploy will wait this amount of time before starting a deployment to the next Availability Zone. If you don't specify a `monitor_duration_in_seconds`, CodeDeploy starts deploying to the next Availability Zone immediately.
 */
public data class DeploymentConfigZonalConfig(
    public val firstZoneMonitorDurationInSeconds: Int? = null,
    public val minimumHealthyHostsPerZone: DeploymentConfigZonalConfigMinimumHealthyHostsPerZone? =
        null,
    public val monitorDurationInSeconds: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.aws.codedeploy.outputs.DeploymentConfigZonalConfig): DeploymentConfigZonalConfig = DeploymentConfigZonalConfig(
            firstZoneMonitorDurationInSeconds = javaType.firstZoneMonitorDurationInSeconds().map({ args0 ->
                args0
            }).orElse(null),
            minimumHealthyHostsPerZone = javaType.minimumHealthyHostsPerZone().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.aws.codedeploy.kotlin.outputs.DeploymentConfigZonalConfigMinimumHealthyHostsPerZone.Companion.toKotlin(args0)
                })
            }).orElse(null),
            monitorDurationInSeconds = javaType.monitorDurationInSeconds().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy