Function Args
    data class FunctionArgs(val code: Output<String>? = null, val comment: Output<String>? = null, val keyValueStoreAssociations: Output<List<String>>? = null, val name: Output<String>? = null, val publish: Output<Boolean>? = null, val runtime: Output<String>? = null) : ConvertibleToJava<FunctionArgs> 
Provides a CloudFront Function resource. With CloudFront Functions in Amazon CloudFront, you can write lightweight functions in JavaScript for high-scale, latency-sensitive CDN customizations. See CloudFront Functions
NOTE: You cannot delete a function if it’s associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function.
Example Usage
Import
Using pulumi import, import CloudFront Functions using the name. For example:
$ pulumi import aws:cloudfront/function:Function test my_test_functionContent copied to clipboard