Skip to content

feat(cloudfront_distribution): add support for CloudFront Functions#2346

Draft
boutetnico wants to merge 3 commits intoansible-collections:mainfrom
boutetnico:boutetnico/cf-distrib-fn
Draft

feat(cloudfront_distribution): add support for CloudFront Functions#2346
boutetnico wants to merge 3 commits intoansible-collections:mainfrom
boutetnico:boutetnico/cf-distrib-fn

Conversation

@boutetnico
Copy link
Copy Markdown
Contributor

@boutetnico boutetnico commented Oct 15, 2025

SUMMARY

This PR adds support for CloudFront Functions via the function_associations parameter in cache behaviors of the cloudfront_distribution module.

Tests of this PR requires cloudfront_function module #2345.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cloudfront_distribution

ADDITIONAL INFORMATION

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 15, 2025

Docs Build 📝

Thank you for contribution!✨

The docsite for this PR is available for download as an artifact from this run:
https://github.com/ansible-collections/community.aws/actions/runs/18527648324

You can compare to the docs for the main branch here:
https://ansible-collections.github.io/community.aws/branch/main

File changes:

  • M collections/community/aws/cloudfront_distribution_module.html
Click to see the diff comparison.

NOTE: only file modifications are shown here. New and deleted files are excluded.
See the file list and check the published docs to see those files.

The diff output was truncated because it exceeded the maximum size.

diff --git a/home/runner/work/community.aws/community.aws/docsbuild/base/collections/community/aws/cloudfront_distribution_module.html b/home/runner/work/community.aws/community.aws/docsbuild/head/collections/community/aws/cloudfront_distribution_module.html
index 642d053..2fcebdf 100644
--- a/home/runner/work/community.aws/community.aws/docsbuild/base/collections/community/aws/cloudfront_distribution_module.html
+++ b/home/runner/work/community.aws/community.aws/docsbuild/head/collections/community/aws/cloudfront_distribution_module.html
@@ -320,6 +320,29 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </div></td>
 </tr>
 <tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/function_associations"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-function-associations"><strong>function_associations</strong></p>
+<a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/function_associations" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list of CloudFront function associations to use for this cache behavior.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/function_associations/event_type"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-function-associations-event-type"><strong>event_type</strong></p>
+<a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/function_associations/event_type" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Specifies the event type that triggers a CloudFront function invocation.</p>
+<p>This can be <code class="docutils literal notranslate"><span class="pre">viewer-request</span></code> or <code class="docutils literal notranslate"><span class="pre">viewer-response</span></code>.</p>
+<p>CloudFront functions only support viewer events, not origin events.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/function_associations/function_arn"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-function-associations-function-arn"><strong>function_arn</strong></p>
+<a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/function_associations/function_arn" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The ARN of the CloudFront function.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/headers"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-headers"><strong>headers</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/headers" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
@@ -327,14 +350,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>To forward all headers use a list containing a single element ‘*’ (<code class="docutils literal notranslate"><span class="pre">['*']</span></code>)</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/lambda_function_associations"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-lambda-function-associations"><strong>lambda_function_associations</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/lambda_function_associations" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list of Lambda function associations to use for this cache behavior.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/lambda_function_associations/event_type"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-lambda-function-associations-event-type"><strong>event_type</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/lambda_function_associations/event_type" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
@@ -342,28 +365,28 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>This can be <code class="docutils literal notranslate"><span class="pre">viewer-request</span></code>, <code class="docutils literal notranslate"><span class="pre">origin-request</span></code>, <code class="docutils literal notranslate"><span class="pre">origin-response</span></code> or <code class="docutils literal notranslate"><span class="pre">viewer-response</span></code>.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/lambda_function_associations/lambda_function_arn"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-lambda-function-associations-lambda-function-arn"><strong>lambda_function_arn</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/lambda_function_associations/lambda_function_arn" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The ARN of the Lambda function.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/max_ttl"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-max-ttl"><strong>max_ttl</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/max_ttl" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The maximum amount of time that you want objects to stay in CloudFront caches.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/min_ttl"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-min-ttl"><strong>min_ttl</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/min_ttl" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The minimum amount of time that you want objects to stay in CloudFront caches.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/query_string"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-query-string"><strong>query_string</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/query_string" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
 </div></td>
@@ -375,14 +398,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </ul>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/query_string_cache_keys"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-query-string-cache-keys"><strong>query_string_cache_keys</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/query_string_cache_keys" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list that contains the query string parameters you want CloudFront to use as a basis for caching for a cache behavior.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/smooth_streaming"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-smooth-streaming"><strong>smooth_streaming</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/smooth_streaming" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
 </div></td>
@@ -394,14 +417,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </ul>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/trusted_signers"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-trusted-signers"><strong>trusted_signers</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/trusted_signers" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A dict that specifies the AWS accounts that you want to allow to create signed URLs for private content.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/trusted_signers/enabled"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-trusted-signers-enabled"><strong>enabled</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/trusted_signers/enabled" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
 </div></td>
@@ -413,14 +436,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </ul>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/trusted_signers/items"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-trusted-signers-items"><strong>items</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/trusted_signers/items" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list of trusted signers for this cache behavior.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/forwarded_values/viewer_protocol_policy"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-forwarded-values-viewer-protocol-policy"><strong>viewer_protocol_policy</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/forwarded_values/viewer_protocol_policy" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
@@ -428,7 +451,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>Valid values are <code class="docutils literal notranslate"><span class="pre">allow-all</span></code>, <code class="docutils literal notranslate"><span class="pre">redirect-to-https</span></code> and <code class="docutils literal notranslate"><span class="pre">https-only</span></code>.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/origin_request_policy_id"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-origin-request-policy-id"><strong>origin_request_policy_id</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/origin_request_policy_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 <p><em class="ansible-option-versionadded">added in community.aws 7.1.0</em></p>
@@ -437,28 +460,28 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>For more information see the CloudFront documentation at <a class="reference external" href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html">https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html</a></p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/path_pattern"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-path-pattern"><strong>path_pattern</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/path_pattern" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The pattern that specifies which requests to apply the behavior to.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/response_headers_policy_id"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-response-headers-policy-id"><strong>response_headers_policy_id</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/response_headers_policy_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The ID of the header policy that CloudFront adds to responses that it sends to viewers.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-cache_behaviors/target_origin_id"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-cache-behaviors-target-origin-id"><strong>target_origin_id</strong></p>
 <a class="ansibleOptionLink" href="#parameter-cache_behaviors/target_origin_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The ID of the origin that you want CloudFront to route requests to by default.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-caller_reference"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-caller-reference"><strong>caller_reference</strong></p>
 <a class="ansibleOptionLink" href="#parameter-caller_reference" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
@@ -466,7 +489,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>Each caller reference must be unique across all distributions. e.g. a caller reference used in a web distribution cannot be reused in a streaming distribution. This parameter can be used instead of <em>distribution_id</em> to reference an existing distribution. If not specified, this defaults to a datetime stamp of the format <code class="docutils literal notranslate"><span class="pre">YYYY-MM-DDTHH:MM:SS.ffffff</span></code>.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-comment"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-comment"><strong>comment</strong></p>
 <a class="ansibleOptionLink" href="#parameter-comment" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
@@ -474,7 +497,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>If not specified, it defaults to a generic message that it has been created with Ansible, and a datetime stamp.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-custom_error_responses"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-custom-error-responses"><strong>custom_error_responses</strong></p>
 <a class="ansibleOptionLink" href="#parameter-custom_error_responses" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
 </div></td>
@@ -482,35 +505,35 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>This attribute configures custom http error messages returned to the user.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-custom_error_responses/error_caching_min_ttl"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-custom-error-responses-error-caching-min-ttl"><strong>error_caching_min_ttl</strong></p>
 <a class="ansibleOptionLink" href="#parameter-custom_error_responses/error_caching_min_ttl" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The length of time (in seconds) that CloudFront will cache status codes for.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-custom_error_responses/error_code"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-custom-error-responses-error-code"><strong>error_code</strong></p>
 <a class="ansibleOptionLink" href="#parameter-custom_error_responses/error_code" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The error code the custom error page is for.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-custom_error_responses/response_code"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-custom-error-responses-response-code"><strong>response_code</strong></p>
 <a class="ansibleOptionLink" href="#parameter-custom_error_responses/response_code" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The HTTP status code that CloudFront should return to a user when the origin returns the HTTP status code specified by <em>error_code</em>.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-custom_error_responses/response_page_path"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-custom-error-responses-response-page-path"><strong>response_page_path</strong></p>
 <a class="ansibleOptionLink" href="#parameter-custom_error_responses/response_page_path" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the HTTP status code specified by <em>error_code</em>.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-debug_botocore_endpoint_logs"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-debug-botocore-endpoint-logs"><strong>debug_botocore_endpoint_logs</strong></p>
 <a class="ansibleOptionLink" href="#parameter-debug_botocore_endpoint_logs" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
 </div></td>
@@ -523,7 +546,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </ul>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior"><strong>default_cache_behavior</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
 </div></td>
@@ -531,7 +554,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>If not specified, the <em>target_origin_id</em> is defined as the <em>target_origin_id</em> of the first valid cache_behavior in <em>cache_behaviors</em> with defaults.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/cache_policy_id"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-cache-policy-id"><strong>cache_policy_id</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/cache_policy_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 <p><em class="ansible-option-versionadded">added in community.aws 7.1.0</em></p>
@@ -541,7 +564,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>For more information see the CloudFront documentation at <a class="reference external" href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html</a></p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values"><strong>forwarded_values</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
 </div></td>
@@ -549,14 +572,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>A behavior should use either a <code class="docutils literal notranslate"><span class="pre">cache_policy_id</span></code> or a <code class="docutils literal notranslate"><span class="pre">forwarded_values</span></code> option.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/allowed_methods"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-allowed-methods"><strong>allowed_methods</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/allowed_methods" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A dict that controls which HTTP methods CloudFront processes and forwards.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/allowed_methods/cached_methods"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-allowed-methods-cached-methods"><strong>cached_methods</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/allowed_methods/cached_methods" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
@@ -564,14 +587,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>This can either be <code class="docutils literal notranslate"><span class="pre">[GET,HEAD]</span></code>, or <code class="docutils literal notranslate"><span class="pre">[GET,HEAD,OPTIONS]</span></code>.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/allowed_methods/items"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-allowed-methods-items"><strong>items</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/allowed_methods/items" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list of HTTP methods that you want CloudFront to process and forward.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/compress"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-compress"><strong>compress</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/compress" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
 </div></td>
@@ -583,14 +606,14 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </ul>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/cookies"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-cookies"><strong>cookies</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/cookies" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">dictionary</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A dict that specifies whether you want CloudFront to forward cookies to the origin and, if so, which ones.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/cookies/forward"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-cookies-forward"><strong>forward</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/cookies/forward" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
@@ -598,27 +621,50 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p>Valid values are <code class="docutils literal notranslate"><span class="pre">all</span></code>, <code class="docutils literal notranslate"><span class="pre">none</span></code>, or <code class="docutils literal notranslate"><span class="pre">whitelist</span></code>.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/cookies/whitelisted_names"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-cookies-whitelisted-names"><strong>whitelisted_names</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/cookies/whitelisted_names" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list of cookies to forward to the origin for this cache behavior.</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/default_ttl"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-default-ttl"><strong>default_ttl</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/default_ttl" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The default amount of time that you want objects to stay in CloudFront caches.</p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/field_level_encryption_id"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-field-level-encryption-id"><strong>field_level_encryption_id</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/field_level_encryption_id" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
 <td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data.</p>
 </div></td>
 </tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/function_associations"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-function-associations"><strong>function_associations</strong></p>
+<a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/function_associations" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=dictionary</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>A list of CloudFront function associations to use for this cache behavior.</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/function_associations/event_type"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-function-associations-event-type"><strong>event_type</strong></p>
+<a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/function_associations/event_type" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Specifies the event type that triggers a CloudFront function invocation.</p>
+<p>This can be <code class="docutils literal notranslate"><span class="pre">viewer-request</span></code> or <code class="docutils literal notranslate"><span class="pre">viewer-response</span></code>.</p>
+<p>CloudFront functions only support viewer events, not origin events.</p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/function_associations/function_arn"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-function-associations-function-arn"><strong>function_arn</strong></p>
+<a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/function_associations/function_arn" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>The ARN of the CloudFront function.</p>
+</div></td>
+</tr>
 <tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="parameter-default_cache_behavior/forwarded_values/headers"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-parameter-default-cache-behavior-forwarded-values-headers"><strong>headers</strong></p>
 <a class="ansibleOptionLink" href="#parameter-default_cache_behavior/forwarded_values/headers" title="Permalink to this option"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
@@ -1714,6 +1760,32 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 </div></td>
 </tr>
 <tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-cache_behaviors/items/function_associations"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-function-associations"><strong>function_associations</strong></p>
+<a class="ansibleOptionLink" href="#return-cache_behaviors/items/function_associations" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">complex</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>CloudFront function associations for a cache behavior.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-cache_behaviors/items/function_associations/items"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-function-associations-items"><strong>items</strong></p>
+<a class="ansibleOptionLink" href="#return-cache_behaviors/items/function_associations/items" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>List of CloudFront function associations.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> when list is not empty</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{&quot;event_type&quot;:</span> <span class="pre">&quot;viewer-request&quot;,</span> <span class="pre">&quot;function_arn&quot;:</span> <span class="pre">&quot;arn:aws:cloudfront::123456789012:function/my-function&quot;}]</span></code></p>
+</div></td>
+</tr>
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<div class="ansibleOptionAnchor" id="return-cache_behaviors/items/function_associations/quantity"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-function-associations-quantity"><strong>quantity</strong></p>
+<a class="ansibleOptionLink" href="#return-cache_behaviors/items/function_associations/quantity" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
+</div></td>
+<td><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-indent-desc"></div><div class="ansible-option-cell"><p>Count of CloudFront function associations.</p>
+<p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
+<p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">1</span></code></p>
+</div></td>
+</tr>
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/lambda_function_associations"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-lambda-function-associations"><strong>lambda_function_associations</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/lambda_function_associations" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">complex</span></p>
 </div></td>
@@ -1721,7 +1793,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line"><strong class="ansible-option-returned-bold">Returned:</strong> always</p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/lambda_function_associations/items"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-lambda-function-associations-items"><strong>items</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/lambda_function_associations/items" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">list</span> / <span class="ansible-option-elements">elements=string</span></p>
 </div></td>
@@ -1730,7 +1802,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">[{&quot;event_type&quot;:</span> <span class="pre">&quot;viewer-response&quot;,</span> <span class="pre">&quot;lambda_function_arn&quot;:</span> <span class="pre">&quot;arn:aws:lambda:123456789012:us-east-1/lambda/lambda-function&quot;}]</span></code></p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/lambda_function_associations/quantity"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-lambda-function-associations-quantity"><strong>quantity</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/lambda_function_associations/quantity" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
@@ -1739,7 +1811,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">1</span></code></p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/max_ttl"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-max-ttl"><strong>max_ttl</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/max_ttl" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
@@ -1748,7 +1820,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">31536000</span></code></p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/min_ttl"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-min-ttl"><strong>min_ttl</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/min_ttl" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">integer</span></p>
 </div></td>
@@ -1757,7 +1829,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">0</span></code></p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/path_pattern"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-path-pattern"><strong>path_pattern</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/path_pattern" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">string</span></p>
 </div></td>
@@ -1766,7 +1838,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">&quot;/path/to/files/*&quot;</span></code></p>
 </div></td>
 </tr>
-<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div class="ansibleOptionAnchor" id="return-cache_behaviors/items/smooth_streaming"></div><p class="ansible-option-title" id="ansible-collections-community-aws-cloudfront-distribution-module-return-cache-behaviors-items-smooth-streaming"><strong>smooth_streaming</strong></p>
 <a class="ansibleOptionLink" href="#return-cache_behaviors/items/smooth_streaming" title="Permalink to this return value"></a><p class="ansible-option-type-line"><span class="ansible-option-type">boolean</span></p>
 </div></td>
@@ -1775,7 +1847,7 @@ see <a class="reference internal" href="#ansible-collections-community-aws-cloud
 <p class="ansible-option-line ansible-option-sample"><strong class="ansible-option-sample-bold">Sample:</strong> <code class="ansible-option-sample docutils literal notranslate"><span class="pre">false</span></code></p>
 </div></td>
 </tr>
-<tr class="row-even"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
+<tr class="row-odd"><td><div class="ansible-option-indent"></div><div class="ansible-option-indent"></div><div class="ansible-option-cell">
 <div 

@softwarefactory-project-zuul
Copy link
Copy Markdown
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/4938d556945a438697d479bfbd61549d

ansible-galaxy-importer FAILURE in 3m 57s (non-voting)
✔️ build-ansible-collection SUCCESS in 11m 11s
✔️ ansible-test-splitter SUCCESS in 4m 50s
integration-community.aws-1 FAILURE in 2m 47s
Skipped 21 jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant