com.pulumi.aws.cloudfront.kotlin.inputs.DistributionDefaultCacheBehaviorFunctionAssociationArgs.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.DistributionDefaultCacheBehaviorFunctionAssociationArgs.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 DistributionDefaultCacheBehaviorFunctionAssociationArgs(
public val eventType: Output,
public val functionArn: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorFunctionAssociationArgs =
com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorFunctionAssociationArgs.builder()
.eventType(eventType.applyValue({ args0 -> args0 }))
.functionArn(functionArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionDefaultCacheBehaviorFunctionAssociationArgs].
*/
@PulumiTagMarker
public class DistributionDefaultCacheBehaviorFunctionAssociationArgsBuilder 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("hfduutngybcqgdfr")
public suspend fun eventType(`value`: Output) {
this.eventType = value
}
/**
* @param value ARN of the CloudFront function.
*/
@JvmName("wmiborqqiujqesxf")
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("qmaaldwwvgtpviag")
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("gyrysgvxuxdnjpvh")
public suspend fun functionArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.functionArn = mapped
}
internal fun build(): DistributionDefaultCacheBehaviorFunctionAssociationArgs =
DistributionDefaultCacheBehaviorFunctionAssociationArgs(
eventType = eventType ?: throw PulumiNullFieldException("eventType"),
functionArn = functionArn ?: throw PulumiNullFieldException("functionArn"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy