com.pulumi.aws.backup.kotlin.inputs.PlanRuleLifecycleArgs.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.inputs
import com.pulumi.aws.backup.inputs.PlanRuleLifecycleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 PlanRuleLifecycleArgs(
public val coldStorageAfter: Output? = null,
public val deleteAfter: Output? = null,
public val optInToArchiveForSupportedResources: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.backup.inputs.PlanRuleLifecycleArgs =
com.pulumi.aws.backup.inputs.PlanRuleLifecycleArgs.builder()
.coldStorageAfter(coldStorageAfter?.applyValue({ args0 -> args0 }))
.deleteAfter(deleteAfter?.applyValue({ args0 -> args0 }))
.optInToArchiveForSupportedResources(
optInToArchiveForSupportedResources?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [PlanRuleLifecycleArgs].
*/
@PulumiTagMarker
public class PlanRuleLifecycleArgsBuilder internal constructor() {
private var coldStorageAfter: Output? = null
private var deleteAfter: Output? = null
private var optInToArchiveForSupportedResources: Output? = null
/**
* @param value Specifies the number of days after creation that a recovery point is moved to cold storage.
*/
@JvmName("yugwlhbajsuojmkk")
public suspend fun coldStorageAfter(`value`: Output) {
this.coldStorageAfter = value
}
/**
* @param value Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
*/
@JvmName("sgqnmjubvxasesvd")
public suspend fun deleteAfter(`value`: Output) {
this.deleteAfter = value
}
/**
* @param value This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
*/
@JvmName("aflkfjpibgdimeru")
public suspend fun optInToArchiveForSupportedResources(`value`: Output) {
this.optInToArchiveForSupportedResources = value
}
/**
* @param value Specifies the number of days after creation that a recovery point is moved to cold storage.
*/
@JvmName("lnkspdadvelphgbf")
public suspend fun coldStorageAfter(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.coldStorageAfter = mapped
}
/**
* @param value Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
*/
@JvmName("yrqoxivrlpbkxgwi")
public suspend fun deleteAfter(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteAfter = mapped
}
/**
* @param value This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
*/
@JvmName("rsemskkijntjpqrh")
public suspend fun optInToArchiveForSupportedResources(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.optInToArchiveForSupportedResources = mapped
}
internal fun build(): PlanRuleLifecycleArgs = PlanRuleLifecycleArgs(
coldStorageAfter = coldStorageAfter,
deleteAfter = deleteAfter,
optInToArchiveForSupportedResources = optInToArchiveForSupportedResources,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy