--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_cloudfront_function Resource - terraform-provider-awscc" subcategory: "" description: |- Resource Type definition for AWS::CloudFront::Function --- # awscc_cloudfront_function (Resource) Resource Type definition for AWS::CloudFront::Function ## Schema ### Required - `name` (String) ### Optional - `auto_publish` (Boolean) - `function_code` (String) - `function_config` (Attributes) (see [below for nested schema](#nestedatt--function_config)) - `function_metadata` (Attributes) (see [below for nested schema](#nestedatt--function_metadata)) ### Read-Only - `function_arn` (String) - `id` (String) Uniquely identifies the resource. - `stage` (String) ### Nested Schema for `function_config` Optional: - `comment` (String) - `runtime` (String) ### Nested Schema for `function_metadata` Optional: - `function_arn` (String) ## Import Import is supported using the following syntax: ```shell $ terraform import awscc_cloudfront_function.example ```