com.pulumi.aws.cloudfront.kotlin.inputs.DistributionOrderedCacheBehaviorFunctionAssociationArgs.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.cloudfront.kotlin.inputs
import com.pulumi.aws.cloudfront.inputs.DistributionOrderedCacheBehaviorFunctionAssociationArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property eventType Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
* @property functionArn ARN of the CloudFront function.
*/
public data class DistributionOrderedCacheBehaviorFunctionAssociationArgs(
public val eventType: Output,
public val functionArn: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudfront.inputs.DistributionOrderedCacheBehaviorFunctionAssociationArgs =
com.pulumi.aws.cloudfront.inputs.DistributionOrderedCacheBehaviorFunctionAssociationArgs.builder()
.eventType(eventType.applyValue({ args0 -> args0 }))
.functionArn(functionArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionOrderedCacheBehaviorFunctionAssociationArgs].
*/
@PulumiTagMarker
public class DistributionOrderedCacheBehaviorFunctionAssociationArgsBuilder internal constructor() {
private var eventType: Output? = null
private var functionArn: Output? = null
/**
* @param value Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
*/
@JvmName("weicoojiqjlpbmaa")
public suspend fun eventType(`value`: Output) {
this.eventType = value
}
/**
* @param value ARN of the CloudFront function.
*/
@JvmName("lkeuyjiwjrwyfewq")
public suspend fun functionArn(`value`: Output) {
this.functionArn = value
}
/**
* @param value Specific event to trigger this function. Valid values: `viewer-request` or `viewer-response`.
*/
@JvmName("qlcartrkcuhsryrw")
public suspend fun eventType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventType = mapped
}
/**
* @param value ARN of the CloudFront function.
*/
@JvmName("yacthkbcbcrtxuln")
public suspend fun functionArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.functionArn = mapped
}
internal fun build(): DistributionOrderedCacheBehaviorFunctionAssociationArgs =
DistributionOrderedCacheBehaviorFunctionAssociationArgs(
eventType = eventType ?: throw PulumiNullFieldException("eventType"),
functionArn = functionArn ?: throw PulumiNullFieldException("functionArn"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy