

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# CloudFront Functions examples for CloudFront
<a name="cloudfront_code_examples_cloudfront_functions_examples"></a>

The following code examples show how to use CloudFront with AWS SDKs.

**Topics**
+ [Add HTTP security headers](cloudfront_example_cloudfront_functions_add_security_headers_section.md)
+ [Add a CORS header](cloudfront_example_cloudfront_functions_add_cors_header_section.md)
+ [Add a cache control header](cloudfront_example_cloudfront_functions_add_cache_control_header_section.md)
+ [Add a true client IP header](cloudfront_example_cloudfront_functions_add_true_client_ip_header_section.md)
+ [Add an origin header](cloudfront_example_cloudfront_functions_add_origin_header_section.md)
+ [Add index.html to request URLs](cloudfront_example_cloudfront_functions_url_rewrite_single_page_apps_section.md)
+ [Normalize query string parameters](cloudfront_example_cloudfront_functions_normalize_query_string_parameters_section.md)
+ [Redirect to a new URL](cloudfront_example_cloudfront_functions_redirect_based_on_country_section.md)
+ [Rewrite a request URI](cloudfront_example_cloudfront_functions_kvs_conditional_read_section.md)
+ [Select origin closer to the viewer](cloudfront_example_cloudfront_functions_select_origin_based_on_country_section.md)
+ [Use key-value pairs](cloudfront_example_cloudfront_functions_kvs_key_value_pairs_section.md)
+ [Validate a simple token](cloudfront_example_cloudfront_functions_kvs_jwt_verify_section.md)