com.pulumi.aws.cloudfront.kotlin.inputs.DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs.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.DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property eventType Specific event to trigger this function. Valid values: `viewer-request`, `origin-request`, `viewer-response`, `origin-response`.
* @property includeBody When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: `true`, `false`.
* @property lambdaArn ARN of the Lambda function.
*/
public data class DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs(
public val eventType: Output,
public val includeBody: Output? = null,
public val lambdaArn: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudfront.inputs.DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs =
com.pulumi.aws.cloudfront.inputs.DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs.builder()
.eventType(eventType.applyValue({ args0 -> args0 }))
.includeBody(includeBody?.applyValue({ args0 -> args0 }))
.lambdaArn(lambdaArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs].
*/
@PulumiTagMarker
public class DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgsBuilder internal constructor() {
private var eventType: Output? = null
private var includeBody: Output? = null
private var lambdaArn: Output? = null
/**
* @param value Specific event to trigger this function. Valid values: `viewer-request`, `origin-request`, `viewer-response`, `origin-response`.
*/
@JvmName("duawdbrofgmxkhmm")
public suspend fun eventType(`value`: Output) {
this.eventType = value
}
/**
* @param value When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: `true`, `false`.
*/
@JvmName("bsnyiiutssghblvu")
public suspend fun includeBody(`value`: Output) {
this.includeBody = value
}
/**
* @param value ARN of the Lambda function.
*/
@JvmName("ixowudfmmdelktdg")
public suspend fun lambdaArn(`value`: Output) {
this.lambdaArn = value
}
/**
* @param value Specific event to trigger this function. Valid values: `viewer-request`, `origin-request`, `viewer-response`, `origin-response`.
*/
@JvmName("bglaiaswghsnxvhm")
public suspend fun eventType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.eventType = mapped
}
/**
* @param value When set to true it exposes the request body to the lambda function. Defaults to false. Valid values: `true`, `false`.
*/
@JvmName("jdxprkjhkkcxkiqy")
public suspend fun includeBody(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.includeBody = mapped
}
/**
* @param value ARN of the Lambda function.
*/
@JvmName("oyoscwjqpamfavxl")
public suspend fun lambdaArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.lambdaArn = mapped
}
internal fun build(): DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs =
DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs(
eventType = eventType ?: throw PulumiNullFieldException("eventType"),
includeBody = includeBody,
lambdaArn = lambdaArn ?: throw PulumiNullFieldException("lambdaArn"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy