DistributionFunctionAssociation

data class DistributionFunctionAssociation(val eventType: String? = null, val functionArn: String? = null)

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

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val eventType: 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: String? = null

The Amazon Resource Name (ARN) of the function.