DistributionFunctionAssociationArgs

data class DistributionFunctionAssociationArgs(val eventType: Output<String>? = null, val functionArn: Output<String>? = null) : ConvertibleToJava<DistributionFunctionAssociationArgs>

A CloudFront function that is associated with a cache behavior in a CloudFront distribution.

Constructors

Link copied to clipboard
constructor(eventType: Output<String>? = null, functionArn: Output<String>? = null)

Properties

Link copied to clipboard
val eventType: Output<String>? = null

The event type of the function, either `viewer-request` or `viewer-response`. You cannot use origin-facing event types (`origin-request` and `origin-response`) with a CloudFront function.

Link copied to clipboard
val functionArn: Output<String>? = null

The Amazon Resource Name (ARN) of the function.

Functions

Link copied to clipboard
open override fun toJava(): DistributionFunctionAssociationArgs