

# LambdaFunctionAssociations
<a name="API_LambdaFunctionAssociations"></a>

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

If you want to invoke one or more Lambda@Edge 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 Lambda@Edge functions for the requests that match `PathPattern`, specify `0` for `Quantity` and omit `Items`.

## Contents
<a name="API_LambdaFunctionAssociations_Contents"></a>

 ** Quantity **   <a name="cloudfront-Type-LambdaFunctionAssociations-Quantity"></a>
The number of Lambda@Edge function associations for this cache behavior.  
Type: Integer  
Required: Yes

 ** Items **   <a name="cloudfront-Type-LambdaFunctionAssociations-Items"></a>
 **Optional**: A complex type that contains `LambdaFunctionAssociation` items for this cache behavior. If `Quantity` is `0`, you can omit `Items`.  
Type: Array of [LambdaFunctionAssociation](API_LambdaFunctionAssociation.md) objects  
Required: No

## See Also
<a name="API_LambdaFunctionAssociations_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/cloudfront-2020-05-31/LambdaFunctionAssociations) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudfront-2020-05-31/LambdaFunctionAssociations) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudfront-2020-05-31/LambdaFunctionAssociations) 