com.pulumi.gcp.cloudscheduler.kotlin.outputs.JobRetryConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudscheduler.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property maxBackoffDuration The maximum amount of time to wait before retrying a job after it fails.
* A duration in seconds with up to nine fractional digits, terminated by 's'.
* @property maxDoublings The time between retries will double maxDoublings times.
* A job's retry interval starts at minBackoffDuration,
* then doubles maxDoublings times, then increases linearly,
* and finally retries retries at intervals of maxBackoffDuration up to retryCount times.
* @property maxRetryDuration The time limit for retrying a failed job, measured from time when an execution was first attempted.
* If specified with retryCount, the job will be retried until both limits are reached.
* A duration in seconds with up to nine fractional digits, terminated by 's'.
* @property minBackoffDuration The minimum amount of time to wait before retrying a job after it fails.
* A duration in seconds with up to nine fractional digits, terminated by 's'.
* @property retryCount The number of attempts that the system will make to run a
* job using the exponential backoff procedure described by maxDoublings.
* Values greater than 5 and negative values are not allowed.
*/
public data class JobRetryConfig(
public val maxBackoffDuration: String? = null,
public val maxDoublings: Int? = null,
public val maxRetryDuration: String? = null,
public val minBackoffDuration: String? = null,
public val retryCount: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudscheduler.outputs.JobRetryConfig): JobRetryConfig = JobRetryConfig(
maxBackoffDuration = javaType.maxBackoffDuration().map({ args0 -> args0 }).orElse(null),
maxDoublings = javaType.maxDoublings().map({ args0 -> args0 }).orElse(null),
maxRetryDuration = javaType.maxRetryDuration().map({ args0 -> args0 }).orElse(null),
minBackoffDuration = javaType.minBackoffDuration().map({ args0 -> args0 }).orElse(null),
retryCount = javaType.retryCount().map({ args0 -> args0 }).orElse(null),
)
}
}