FunctionAssociation

class aws_cdk.aws_cloudfront.FunctionAssociation(*, event_type, function)

Bases: object

Represents a CloudFront function and event type when using CF Functions.

The type of the {@link AddBehaviorOptions.functionAssociations} property.

Parameters
  • event_type (FunctionEventType) – The type of event which should invoke the function.

  • function (IFunction) – The CloudFront function that will be invoked.

Attributes

event_type

The type of event which should invoke the function.

Return type

FunctionEventType

function

The CloudFront function that will be invoked.

Return type

IFunction