com.pulumi.awsnative.cloudfront.kotlin.CachePolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.cloudfront.kotlin
import com.pulumi.awsnative.cloudfront.CachePolicyArgs.builder
import com.pulumi.awsnative.cloudfront.kotlin.inputs.CachePolicyConfigArgs
import com.pulumi.awsnative.cloudfront.kotlin.inputs.CachePolicyConfigArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::CloudFront::CachePolicy
* @property cachePolicyConfig The cache policy configuration.
*/
public data class CachePolicyArgs(
public val cachePolicyConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.CachePolicyArgs =
com.pulumi.awsnative.cloudfront.CachePolicyArgs.builder()
.cachePolicyConfig(
cachePolicyConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [CachePolicyArgs].
*/
@PulumiTagMarker
public class CachePolicyArgsBuilder internal constructor() {
private var cachePolicyConfig: Output? = null
/**
* @param value The cache policy configuration.
*/
@JvmName("gijdxbdbiuvwonvi")
public suspend fun cachePolicyConfig(`value`: Output) {
this.cachePolicyConfig = value
}
/**
* @param value The cache policy configuration.
*/
@JvmName("twmdbcdebtrrupsg")
public suspend fun cachePolicyConfig(`value`: CachePolicyConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cachePolicyConfig = mapped
}
/**
* @param argument The cache policy configuration.
*/
@JvmName("ctautgarlbpfgnhw")
public suspend fun cachePolicyConfig(argument: suspend CachePolicyConfigArgsBuilder.() -> Unit) {
val toBeMapped = CachePolicyConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.cachePolicyConfig = mapped
}
internal fun build(): CachePolicyArgs = CachePolicyArgs(
cachePolicyConfig = cachePolicyConfig,
)
}