class Aws::CloudFront::Types::LambdaFunctionAssociations

A complex type that specifies a list of Edge at Lambda functions associations for a cache behavior.

If you want to invoke one or more Edge at Lambda functions triggered by requests that match the `PathPattern` of the cache behavior, specify the applicable values for `Quantity` and `Items`. Note that there can be up to 4 `LambdaFunctionAssociation` items in this list (one for each possible value of `EventType`) and each `EventType` can be associated with only one function.

If you don't want to invoke any Edge at Lambda functions for the requests that match `PathPattern`, specify `0` for `Quantity` and omit `Items`.

@note When making an API call, you may pass LambdaFunctionAssociations

data as a hash:

    {
      quantity: 1, # required
      items: [
        {
          lambda_function_arn: "LambdaFunctionARN", # required
          event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
          include_body: false,
        },
      ],
    }

@!attribute [rw] quantity

The number of Lambda@Edge function associations for this cache
behavior.
@return [Integer]

@!attribute [rw] items

**Optional**\: A complex type that contains
`LambdaFunctionAssociation` items for this cache behavior. If
`Quantity` is `0`, you can omit `Items`.
@return [Array<Types::LambdaFunctionAssociation>]

@see docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/LambdaFunctionAssociations AWS API Documentation

Constants

SENSITIVE