Skip to content

CloudFront  >  Structures  >  FunctionAssociation

FunctionAssociation

Structure Class

FunctionAssociation dataclass

Bases: _SerdeShape

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

Attributes

event_type instance-attribute
event_type: str

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: str

The Amazon Resource Name (ARN) of the function.