com.pulumi.aws.backup.kotlin.outputs.PlanRuleCopyActionLifecycle.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.backup.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
/**
*
* @property coldStorageAfter Specifies the number of days after creation that a recovery point is moved to cold storage.
* @property deleteAfter Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
* @property optInToArchiveForSupportedResources This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
*/
public data class PlanRuleCopyActionLifecycle(
public val coldStorageAfter: Int? = null,
public val deleteAfter: Int? = null,
public val optInToArchiveForSupportedResources: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.backup.outputs.PlanRuleCopyActionLifecycle): PlanRuleCopyActionLifecycle = PlanRuleCopyActionLifecycle(
coldStorageAfter = javaType.coldStorageAfter().map({ args0 -> args0 }).orElse(null),
deleteAfter = javaType.deleteAfter().map({ args0 -> args0 }).orElse(null),
optInToArchiveForSupportedResources = javaType.optInToArchiveForSupportedResources().map({ args0 ->
args0
}).orElse(null),
)
}
}