com.pulumi.aws.imagebuilder.kotlin.inputs.LifecyclePolicyPolicyDetailActionArgs.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.imagebuilder.kotlin.inputs
import com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property includeResources Specifies the resources that the lifecycle policy applies to. Detailed below.
* @property type Specifies the lifecycle action to take. Valid values: `DELETE`, `DEPRECATE` or `DISABLE`.
* The following arguments are optional:
*/
public data class LifecyclePolicyPolicyDetailActionArgs(
public val includeResources: Output? =
null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailActionArgs =
com.pulumi.aws.imagebuilder.inputs.LifecyclePolicyPolicyDetailActionArgs.builder()
.includeResources(includeResources?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LifecyclePolicyPolicyDetailActionArgs].
*/
@PulumiTagMarker
public class LifecyclePolicyPolicyDetailActionArgsBuilder internal constructor() {
private var includeResources: Output? =
null
private var type: Output? = null
/**
* @param value Specifies the resources that the lifecycle policy applies to. Detailed below.
*/
@JvmName("byesbodqqixodtxb")
public suspend fun includeResources(`value`: Output) {
this.includeResources = value
}
/**
* @param value Specifies the lifecycle action to take. Valid values: `DELETE`, `DEPRECATE` or `DISABLE`.
* The following arguments are optional:
*/
@JvmName("wubelnnxteoyyhnd")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Specifies the resources that the lifecycle policy applies to. Detailed below.
*/
@JvmName("wwrfhdvlowqipjjf")
public suspend fun includeResources(`value`: LifecyclePolicyPolicyDetailActionIncludeResourcesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.includeResources = mapped
}
/**
* @param argument Specifies the resources that the lifecycle policy applies to. Detailed below.
*/
@JvmName("lamfjvjljdupvesr")
public suspend fun includeResources(argument: suspend LifecyclePolicyPolicyDetailActionIncludeResourcesArgsBuilder.() -> Unit) {
val toBeMapped = LifecyclePolicyPolicyDetailActionIncludeResourcesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.includeResources = mapped
}
/**
* @param value Specifies the lifecycle action to take. Valid values: `DELETE`, `DEPRECATE` or `DISABLE`.
* The following arguments are optional:
*/
@JvmName("bvyfmiqnxqtmvetn")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): LifecyclePolicyPolicyDetailActionArgs =
LifecyclePolicyPolicyDetailActionArgs(
includeResources = includeResources,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy