Skip to content

FunctionAssociation

Source code in docs_src/capo_cloudfront/types/function_association.py
class FunctionAssociation(TypedDict, closed=True):
    function_arn: "capo_cloudfront.types.function_arn.FunctionARN"
    """<p>The Amazon Resource Name (ARN) of the function.</p>"""
    event_type: "capo_cloudfront.types.event_type.EventType"
    """<p>The event type of the function, either <code>viewer-request</code> or <code>viewer-response</code>. You cannot use origin-facing event types (<code>origin-request</code> and <code>origin-response</code>) with a CloudFront function.</p>"""

event_type instance-attribute

event_type: 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.

function_arn instance-attribute

function_arn: FunctionARN

The Amazon Resource Name (ARN) of the function.