All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.cloudfront.kotlin.outputs.DistributionFunctionAssociation.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudfront.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
 * @property eventType 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.
 * @property functionArn The Amazon Resource Name (ARN) of the function.
 */
public data class DistributionFunctionAssociation(
    public val eventType: String? = null,
    public val functionArn: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.DistributionFunctionAssociation): DistributionFunctionAssociation = DistributionFunctionAssociation(
            eventType = javaType.eventType().map({ args0 -> args0 }).orElse(null),
            functionArn = javaType.functionArn().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy